--- configure.in.orig	Fri Oct  5 00:17:23 2012
+++ configure.in	Mon May 20 12:05:41 2013
@@ -53,7 +53,7 @@
 dnl specify optimization level, added 2010.02.20
 OPTIMIZATION_LEVEL="-O3"
 echo "setting optimization level to $OPTIMIZATION_LEVEL"
-CFLAGS="$CFLAGS $OPTIMIZATION_LEVEL"
+CFLAGS="${CFLAGS}"
 
 if test $CC = "gcc"; then
    echo -n "checking version of gcc... "
@@ -101,7 +101,7 @@
 dnl switch to C++ for DCMTK library stuff - also, if pthread is on the platform, probably need that
 dnl autoconf doesn't have a nice macro for checking for c++ libraries, therefore the below:
 AC_CHECK_LIB(pthread, pthread_mutex_init, THREAD_LIBS="-lpthread", THREAD_LIBS="")
-AMIDE_LIBDCMDATA_LIBS="-L/usr/local/dicom/lib -L/usr/lib64/dcmtk -L/usr/lib/dcmtk -ldcmdata -loflog -lofstd -lz $THREAD_LIBS"
+AMIDE_LIBDCMDATA_LIBS=""
 AMIDE_LIBDCMDATA_CFLAGS="-I/usr/local/dicom/include"
 dnl 2010.02.20	AMIDE_LIBDCMDATA_CFLAGS="-I/usr/local/dicom/include/dcmtk/dcmdata -I/usr/local/dicom/include/dcmtk/ofstd -I/usr/local/dicom/include -I/usr/include/dcmtk/dcmdata -I/usr/local/include/dcmtk/ofstd -I/sw/include/dcmtk/dcmdata -I/sw/include/dcmtk/ofstd -I/sw/include/dcmtk"
 saved_libs="${LIBS}"
@@ -348,11 +348,8 @@
 ## add in gnome-vfs if not on win32 or gtk-osx
 ## gnome-vfs is only used by amide_gnome.c and only on unix
 if (test $native_win32 = no) && (test $enable_native_gtk_osx = no); then
-   PKG_CHECK_MODULES(AMIDE_GTK_EXTRA_GVFS,[
-		gnome-vfs-2.0   >= 2.16.0
-   ])
-   AMIDE_GTK_LIBS="$AMIDE_GTK_LIBS $AMIDE_GTK_EXTRA_GVFS_LIBS"
-   AMIDE_GTK_CFLAGS="$AMIDE_GTK_CFLAGS $AMIDE_GTK_EXTRA_GVFS_CFLAGS"
+   AMIDE_GTK_LIBS="$AMIDE_GTK_LIBS"
+   AMIDE_GTK_CFLAGS="$AMIDE_GTK_CFLAGS"
 fi
  
 AC_SUBST(AMIDE_GTK_LIBS)
