configure.in
changeset 372 4bc4ba77f1a1
parent 370 56cfd885bb2a
child 374 9f79d3a5eda1
     1.1 --- a/configure.in	Fri Jul 20 07:11:20 2007 +0000
     1.2 +++ b/configure.in	Sat Jul 21 05:54:10 2007 +0000
     1.3 @@ -117,9 +117,10 @@
     1.4  
     1.5  find_lib()
     1.6  {
     1.7 -    gcc_lib_path=[`$CC -print-search-dirs 2>/dev/null | fgrep libraries | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`]
     1.8 +    gcc_bin_path=[`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`]
     1.9 +    gcc_lib_path=[`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`]
    1.10      env_lib_path=[`echo $LIBS $LDFLAGS | sed 's/-L[ ]*//g'`]
    1.11 -    for path in $gcc_lib_path $env_lib_path /usr/lib /usr/local/lib; do
    1.12 +    for path in $gcc_bin_path $gcc_lib_path $env_lib_path /usr/lib /usr/local/lib; do
    1.13          lib=[`ls -- $path/$1 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
    1.14          if test x$lib != x; then
    1.15              echo $lib
    1.16 @@ -270,7 +271,7 @@
    1.17                      fi
    1.18                      ;;
    1.19                  *-*-cygwin* | *-*-mingw32*)
    1.20 -                    ogg_lib=[`find_lib "vorbisidec*dll"`]
    1.21 +                    ogg_lib=[`find_lib "vorbisidec*.dll"`]
    1.22                      ;;
    1.23                  *)
    1.24                      ogg_lib=[`find_lib "libvorbisidec.so.[0-9]"`]
    1.25 @@ -297,7 +298,7 @@
    1.26                      ogg_lib=[`find_lib libvorbisfile*.dylib`]
    1.27                      ;;
    1.28                  *-*-cygwin* | *-*-mingw32*)
    1.29 -                    ogg_lib=[`find_lib "vorbisfile*dll"`]
    1.30 +                    ogg_lib=[`find_lib "libvorbisfile*.dll"`]
    1.31                      ;;
    1.32                  *)
    1.33                      ogg_lib=[`find_lib "libvorbisfile.so.[0-9]"`]
    1.34 @@ -332,7 +333,7 @@
    1.35                  smpeg_lib=[`find_lib libsmpeg*.dylib`]
    1.36                  ;;
    1.37              *-*-cygwin* | *-*-mingw32*)
    1.38 -                smpeg_lib=[`find_lib "smpeg*dll"`]
    1.39 +                smpeg_lib=[`find_lib "smpeg*.dll"`]
    1.40                  ;;
    1.41              *)
    1.42                  smpeg_lib=[`find_lib "libsmpeg.so.[0-9]"`]