diff -Naur giflib-5.0.0.orig/configure giflib-5.0.0/configure
--- giflib-5.0.0.orig/configure	2012-06-19 19:32:54.000000000 -0400
+++ giflib-5.0.0/configure	2012-06-19 19:36:38.000000000 -0400
@@ -9804,7 +9804,7 @@
   esac
   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 else
-  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+  sys_lib_search_path_spec=" "
 fi
 library_names_spec=
 libname_spec='lib$name'
@@ -9818,7 +9818,7 @@
 shlibpath_overrides_runpath=unknown
 version_type=none
 dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
+sys_lib_dlsearch_path_spec=" "
 need_lib_prefix=unknown
 hardcode_into_libs=no
 
@@ -10270,10 +10270,10 @@
   hardcode_into_libs=yes
 
   # Append ld.so.conf contents to the search path
-  if test -f /etc/ld.so.conf; then
-    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
-  fi
+  #if test -f /etc/ld.so.conf; then
+  #  lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
+  #  sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+  #fi
 
   # We used to test for /lib/ld.so.1 and disable shared libraries on
   # powerpc, because MkLinux only supported shared libraries with the
@@ -10497,7 +10497,7 @@
   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 fi
 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
-  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
+  sys_lib_dlsearch_path_spec=""
 fi
 
 
@@ -14357,10 +14357,10 @@
 hardcode_into_libs=$hardcode_into_libs
 
 # Compile-time system search path for libraries.
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+sys_lib_search_path_spec=
 
 # Run-time system search path for libraries.
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+sys_lib_dlsearch_path_spec=
 
 # Whether dlopen is supported.
 dlopen_support=$enable_dlopen
