configure
changeset 36 d86f1cebe419
parent 34 25e00090b15c
child 37 7e477cb285c5
equal deleted inserted replaced
35:38b7b8e93dc6 36:d86f1cebe419
   750   echo "$ac_t""no" 1>&6
   750   echo "$ac_t""no" 1>&6
   751   SET_MAKE="MAKE=${MAKE-make}"
   751   SET_MAKE="MAKE=${MAKE-make}"
   752 fi
   752 fi
   753 
   753 
   754 
   754 
   755 
   755 PACKAGE=SDL_mixer
   756 PACKAGE=SDLmixer
       
   757 
   756 
   758 VERSION=$VERSION
   757 VERSION=$VERSION
   759 
   758 
   760 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
   759 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
   761   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
   760   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
   770 
   769 
   771 
   770 
   772 
   771 
   773 missing_dir=`cd $ac_aux_dir && pwd`
   772 missing_dir=`cd $ac_aux_dir && pwd`
   774 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
   773 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
   775 echo "configure:776: checking for working aclocal" >&5
   774 echo "configure:775: checking for working aclocal" >&5
   776 # Run test in a subshell; some versions of sh will print an error if
   775 # Run test in a subshell; some versions of sh will print an error if
   777 # an executable is not found, even if stderr is redirected.
   776 # an executable is not found, even if stderr is redirected.
   778 # Redirect stdin to placate older versions of autoconf.  Sigh.
   777 # Redirect stdin to placate older versions of autoconf.  Sigh.
   779 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
   778 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
   780    ACLOCAL=aclocal
   779    ACLOCAL=aclocal
   783    ACLOCAL="$missing_dir/missing aclocal"
   782    ACLOCAL="$missing_dir/missing aclocal"
   784    echo "$ac_t""missing" 1>&6
   783    echo "$ac_t""missing" 1>&6
   785 fi
   784 fi
   786 
   785 
   787 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
   786 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
   788 echo "configure:789: checking for working autoconf" >&5
   787 echo "configure:788: checking for working autoconf" >&5
   789 # Run test in a subshell; some versions of sh will print an error if
   788 # Run test in a subshell; some versions of sh will print an error if
   790 # an executable is not found, even if stderr is redirected.
   789 # an executable is not found, even if stderr is redirected.
   791 # Redirect stdin to placate older versions of autoconf.  Sigh.
   790 # Redirect stdin to placate older versions of autoconf.  Sigh.
   792 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
   791 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
   793    AUTOCONF=autoconf
   792    AUTOCONF=autoconf
   796    AUTOCONF="$missing_dir/missing autoconf"
   795    AUTOCONF="$missing_dir/missing autoconf"
   797    echo "$ac_t""missing" 1>&6
   796    echo "$ac_t""missing" 1>&6
   798 fi
   797 fi
   799 
   798 
   800 echo $ac_n "checking for working automake""... $ac_c" 1>&6
   799 echo $ac_n "checking for working automake""... $ac_c" 1>&6
   801 echo "configure:802: checking for working automake" >&5
   800 echo "configure:801: checking for working automake" >&5
   802 # Run test in a subshell; some versions of sh will print an error if
   801 # Run test in a subshell; some versions of sh will print an error if
   803 # an executable is not found, even if stderr is redirected.
   802 # an executable is not found, even if stderr is redirected.
   804 # Redirect stdin to placate older versions of autoconf.  Sigh.
   803 # Redirect stdin to placate older versions of autoconf.  Sigh.
   805 if (automake --version) < /dev/null > /dev/null 2>&1; then
   804 if (automake --version) < /dev/null > /dev/null 2>&1; then
   806    AUTOMAKE=automake
   805    AUTOMAKE=automake
   809    AUTOMAKE="$missing_dir/missing automake"
   808    AUTOMAKE="$missing_dir/missing automake"
   810    echo "$ac_t""missing" 1>&6
   809    echo "$ac_t""missing" 1>&6
   811 fi
   810 fi
   812 
   811 
   813 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
   812 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
   814 echo "configure:815: checking for working autoheader" >&5
   813 echo "configure:814: checking for working autoheader" >&5
   815 # Run test in a subshell; some versions of sh will print an error if
   814 # Run test in a subshell; some versions of sh will print an error if
   816 # an executable is not found, even if stderr is redirected.
   815 # an executable is not found, even if stderr is redirected.
   817 # Redirect stdin to placate older versions of autoconf.  Sigh.
   816 # Redirect stdin to placate older versions of autoconf.  Sigh.
   818 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
   817 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
   819    AUTOHEADER=autoheader
   818    AUTOHEADER=autoheader
   822    AUTOHEADER="$missing_dir/missing autoheader"
   821    AUTOHEADER="$missing_dir/missing autoheader"
   823    echo "$ac_t""missing" 1>&6
   822    echo "$ac_t""missing" 1>&6
   824 fi
   823 fi
   825 
   824 
   826 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
   825 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
   827 echo "configure:828: checking for working makeinfo" >&5
   826 echo "configure:827: checking for working makeinfo" >&5
   828 # Run test in a subshell; some versions of sh will print an error if
   827 # Run test in a subshell; some versions of sh will print an error if
   829 # an executable is not found, even if stderr is redirected.
   828 # an executable is not found, even if stderr is redirected.
   830 # Redirect stdin to placate older versions of autoconf.  Sigh.
   829 # Redirect stdin to placate older versions of autoconf.  Sigh.
   831 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
   830 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
   832    MAKEINFO=makeinfo
   831    MAKEINFO=makeinfo
   838 
   837 
   839 
   838 
   840 
   839 
   841 
   840 
   842 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
   841 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
   843 echo "configure:844: checking whether ${MAKE-make} sets \${MAKE}" >&5
   842 echo "configure:843: checking whether ${MAKE-make} sets \${MAKE}" >&5
   844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
   843 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
   845 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
   844 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
   846   echo $ac_n "(cached) $ac_c" 1>&6
   845   echo $ac_n "(cached) $ac_c" 1>&6
   847 else
   846 else
   848   cat > conftestmake <<\EOF
   847   cat > conftestmake <<\EOF
   867 fi
   866 fi
   868 
   867 
   869 # Extract the first word of "gcc", so it can be a program name with args.
   868 # Extract the first word of "gcc", so it can be a program name with args.
   870 set dummy gcc; ac_word=$2
   869 set dummy gcc; ac_word=$2
   871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   872 echo "configure:873: checking for $ac_word" >&5
   871 echo "configure:872: checking for $ac_word" >&5
   873 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   874   echo $ac_n "(cached) $ac_c" 1>&6
   873   echo $ac_n "(cached) $ac_c" 1>&6
   875 else
   874 else
   876   if test -n "$CC"; then
   875   if test -n "$CC"; then
   877   ac_cv_prog_CC="$CC" # Let the user override the test.
   876   ac_cv_prog_CC="$CC" # Let the user override the test.
   897 
   896 
   898 if test -z "$CC"; then
   897 if test -z "$CC"; then
   899   # Extract the first word of "cc", so it can be a program name with args.
   898   # Extract the first word of "cc", so it can be a program name with args.
   900 set dummy cc; ac_word=$2
   899 set dummy cc; ac_word=$2
   901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   902 echo "configure:903: checking for $ac_word" >&5
   901 echo "configure:902: checking for $ac_word" >&5
   903 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   902 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   904   echo $ac_n "(cached) $ac_c" 1>&6
   903   echo $ac_n "(cached) $ac_c" 1>&6
   905 else
   904 else
   906   if test -n "$CC"; then
   905   if test -n "$CC"; then
   907   ac_cv_prog_CC="$CC" # Let the user override the test.
   906   ac_cv_prog_CC="$CC" # Let the user override the test.
   948     case "`uname -s`" in
   947     case "`uname -s`" in
   949     *win32* | *WIN32*)
   948     *win32* | *WIN32*)
   950       # Extract the first word of "cl", so it can be a program name with args.
   949       # Extract the first word of "cl", so it can be a program name with args.
   951 set dummy cl; ac_word=$2
   950 set dummy cl; ac_word=$2
   952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   953 echo "configure:954: checking for $ac_word" >&5
   952 echo "configure:953: checking for $ac_word" >&5
   954 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   953 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   955   echo $ac_n "(cached) $ac_c" 1>&6
   954   echo $ac_n "(cached) $ac_c" 1>&6
   956 else
   955 else
   957   if test -n "$CC"; then
   956   if test -n "$CC"; then
   958   ac_cv_prog_CC="$CC" # Let the user override the test.
   957   ac_cv_prog_CC="$CC" # Let the user override the test.
   980   fi
   979   fi
   981   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
   980   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
   982 fi
   981 fi
   983 
   982 
   984 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
   983 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
   985 echo "configure:986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
   984 echo "configure:985: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
   986 
   985 
   987 ac_ext=c
   986 ac_ext=c
   988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   989 ac_cpp='$CPP $CPPFLAGS'
   988 ac_cpp='$CPP $CPPFLAGS'
   990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   992 cross_compiling=$ac_cv_prog_cc_cross
   991 cross_compiling=$ac_cv_prog_cc_cross
   993 
   992 
   994 cat > conftest.$ac_ext << EOF
   993 cat > conftest.$ac_ext << EOF
   995 
   994 
   996 #line 997 "configure"
   995 #line 996 "configure"
   997 #include "confdefs.h"
   996 #include "confdefs.h"
   998 
   997 
   999 main(){return(0);}
   998 main(){return(0);}
  1000 EOF
   999 EOF
  1001 if { (eval echo configure:1002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1000 if { (eval echo configure:1001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1002   ac_cv_prog_cc_works=yes
  1001   ac_cv_prog_cc_works=yes
  1003   # If we can't run a trivial program, we are probably using a cross compiler.
  1002   # If we can't run a trivial program, we are probably using a cross compiler.
  1004   if (./conftest; exit) 2>/dev/null; then
  1003   if (./conftest; exit) 2>/dev/null; then
  1005     ac_cv_prog_cc_cross=no
  1004     ac_cv_prog_cc_cross=no
  1006   else
  1005   else
  1022 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1021 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1023 if test $ac_cv_prog_cc_works = no; then
  1022 if test $ac_cv_prog_cc_works = no; then
  1024   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1023   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1025 fi
  1024 fi
  1026 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1025 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1027 echo "configure:1028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1026 echo "configure:1027: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1028 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1027 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1029 cross_compiling=$ac_cv_prog_cc_cross
  1028 cross_compiling=$ac_cv_prog_cc_cross
  1030 
  1029 
  1031 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1030 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1032 echo "configure:1033: checking whether we are using GNU C" >&5
  1031 echo "configure:1032: checking whether we are using GNU C" >&5
  1033 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1032 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1034   echo $ac_n "(cached) $ac_c" 1>&6
  1033   echo $ac_n "(cached) $ac_c" 1>&6
  1035 else
  1034 else
  1036   cat > conftest.c <<EOF
  1035   cat > conftest.c <<EOF
  1037 #ifdef __GNUC__
  1036 #ifdef __GNUC__
  1038   yes;
  1037   yes;
  1039 #endif
  1038 #endif
  1040 EOF
  1039 EOF
  1041 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1040 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1042   ac_cv_prog_gcc=yes
  1041   ac_cv_prog_gcc=yes
  1043 else
  1042 else
  1044   ac_cv_prog_gcc=no
  1043   ac_cv_prog_gcc=no
  1045 fi
  1044 fi
  1046 fi
  1045 fi
  1055 
  1054 
  1056 ac_test_CFLAGS="${CFLAGS+set}"
  1055 ac_test_CFLAGS="${CFLAGS+set}"
  1057 ac_save_CFLAGS="$CFLAGS"
  1056 ac_save_CFLAGS="$CFLAGS"
  1058 CFLAGS=
  1057 CFLAGS=
  1059 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1058 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1060 echo "configure:1061: checking whether ${CC-cc} accepts -g" >&5
  1059 echo "configure:1060: checking whether ${CC-cc} accepts -g" >&5
  1061 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1060 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1062   echo $ac_n "(cached) $ac_c" 1>&6
  1061   echo $ac_n "(cached) $ac_c" 1>&6
  1063 else
  1062 else
  1064   echo 'void f(){}' > conftest.c
  1063   echo 'void f(){}' > conftest.c
  1065 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1064 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1163 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1162 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1164 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1163 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1165 fi
  1164 fi
  1166 
  1165 
  1167 echo $ac_n "checking host system type""... $ac_c" 1>&6
  1166 echo $ac_n "checking host system type""... $ac_c" 1>&6
  1168 echo "configure:1169: checking host system type" >&5
  1167 echo "configure:1168: checking host system type" >&5
  1169 
  1168 
  1170 host_alias=$host
  1169 host_alias=$host
  1171 case "$host_alias" in
  1170 case "$host_alias" in
  1172 NONE)
  1171 NONE)
  1173   case $nonopt in
  1172   case $nonopt in
  1184 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1183 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1185 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1184 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1186 echo "$ac_t""$host" 1>&6
  1185 echo "$ac_t""$host" 1>&6
  1187 
  1186 
  1188 echo $ac_n "checking build system type""... $ac_c" 1>&6
  1187 echo $ac_n "checking build system type""... $ac_c" 1>&6
  1189 echo "configure:1190: checking build system type" >&5
  1188 echo "configure:1189: checking build system type" >&5
  1190 
  1189 
  1191 build_alias=$build
  1190 build_alias=$build
  1192 case "$build_alias" in
  1191 case "$build_alias" in
  1193 NONE)
  1192 NONE)
  1194   case $nonopt in
  1193   case $nonopt in
  1213 
  1212 
  1214 ac_prog=ld
  1213 ac_prog=ld
  1215 if test "$ac_cv_prog_gcc" = yes; then
  1214 if test "$ac_cv_prog_gcc" = yes; then
  1216   # Check if gcc -print-prog-name=ld gives a path.
  1215   # Check if gcc -print-prog-name=ld gives a path.
  1217   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1216   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1218 echo "configure:1219: checking for ld used by GCC" >&5
  1217 echo "configure:1218: checking for ld used by GCC" >&5
  1219   case $host in
  1218   case $host in
  1220   *-*-mingw*)
  1219   *-*-mingw*)
  1221     # gcc leaves a trailing carriage return which upsets mingw
  1220     # gcc leaves a trailing carriage return which upsets mingw
  1222     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1221     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1223   *)
  1222   *)
  1243     with_gnu_ld=unknown
  1242     with_gnu_ld=unknown
  1244     ;;
  1243     ;;
  1245   esac
  1244   esac
  1246 elif test "$with_gnu_ld" = yes; then
  1245 elif test "$with_gnu_ld" = yes; then
  1247   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1246   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1248 echo "configure:1249: checking for GNU ld" >&5
  1247 echo "configure:1248: checking for GNU ld" >&5
  1249 else
  1248 else
  1250   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1249   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1251 echo "configure:1252: checking for non-GNU ld" >&5
  1250 echo "configure:1251: checking for non-GNU ld" >&5
  1252 fi
  1251 fi
  1253 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1252 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1254   echo $ac_n "(cached) $ac_c" 1>&6
  1253   echo $ac_n "(cached) $ac_c" 1>&6
  1255 else
  1254 else
  1256   if test -z "$LD"; then
  1255   if test -z "$LD"; then
  1282   echo "$ac_t""no" 1>&6
  1281   echo "$ac_t""no" 1>&6
  1283 fi
  1282 fi
  1284 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1283 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1285 
  1284 
  1286 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1285 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1287 echo "configure:1288: checking if the linker ($LD) is GNU ld" >&5
  1286 echo "configure:1287: checking if the linker ($LD) is GNU ld" >&5
  1288 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1287 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1289   echo $ac_n "(cached) $ac_c" 1>&6
  1288   echo $ac_n "(cached) $ac_c" 1>&6
  1290 else
  1289 else
  1291   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1290   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1292 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1291 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1298 
  1297 
  1299 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1298 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1300 
  1299 
  1301 
  1300 
  1302 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1301 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1303 echo "configure:1304: checking for BSD-compatible nm" >&5
  1302 echo "configure:1303: checking for BSD-compatible nm" >&5
  1304 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1303 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1305   echo $ac_n "(cached) $ac_c" 1>&6
  1304   echo $ac_n "(cached) $ac_c" 1>&6
  1306 else
  1305 else
  1307   if test -n "$NM"; then
  1306   if test -n "$NM"; then
  1308   # Let the user override the test.
  1307   # Let the user override the test.
  1335 NM="$ac_cv_path_NM"
  1334 NM="$ac_cv_path_NM"
  1336 echo "$ac_t""$NM" 1>&6
  1335 echo "$ac_t""$NM" 1>&6
  1337 
  1336 
  1338 
  1337 
  1339 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1338 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1340 echo "configure:1341: checking whether ln -s works" >&5
  1339 echo "configure:1340: checking whether ln -s works" >&5
  1341 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1340 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1342   echo $ac_n "(cached) $ac_c" 1>&6
  1341   echo $ac_n "(cached) $ac_c" 1>&6
  1343 else
  1342 else
  1344   rm -f conftestdata
  1343   rm -f conftestdata
  1345 if ln -s X conftestdata 2>/dev/null
  1344 if ln -s X conftestdata 2>/dev/null
  1365 
  1364 
  1366 
  1365 
  1367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1366 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1367 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1370 echo "configure:1371: checking for $ac_word" >&5
  1369 echo "configure:1370: checking for $ac_word" >&5
  1371 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1370 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1372   echo $ac_n "(cached) $ac_c" 1>&6
  1371   echo $ac_n "(cached) $ac_c" 1>&6
  1373 else
  1372 else
  1374   if test -n "$RANLIB"; then
  1373   if test -n "$RANLIB"; then
  1375   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1374   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1397 if test -z "$ac_cv_prog_RANLIB"; then
  1396 if test -z "$ac_cv_prog_RANLIB"; then
  1398 if test -n "$ac_tool_prefix"; then
  1397 if test -n "$ac_tool_prefix"; then
  1399   # Extract the first word of "ranlib", so it can be a program name with args.
  1398   # Extract the first word of "ranlib", so it can be a program name with args.
  1400 set dummy ranlib; ac_word=$2
  1399 set dummy ranlib; ac_word=$2
  1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1402 echo "configure:1403: checking for $ac_word" >&5
  1401 echo "configure:1402: checking for $ac_word" >&5
  1403 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1402 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1404   echo $ac_n "(cached) $ac_c" 1>&6
  1403   echo $ac_n "(cached) $ac_c" 1>&6
  1405 else
  1404 else
  1406   if test -n "$RANLIB"; then
  1405   if test -n "$RANLIB"; then
  1407   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1406   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1464 # Some flags need to be propagated to the compiler or linker for good
  1463 # Some flags need to be propagated to the compiler or linker for good
  1465 # libtool support.
  1464 # libtool support.
  1466 case "$host" in
  1465 case "$host" in
  1467 *-*-irix6*)
  1466 *-*-irix6*)
  1468   # Find out which ABI we are using.
  1467   # Find out which ABI we are using.
  1469   echo '#line 1470 "configure"' > conftest.$ac_ext
  1468   echo '#line 1469 "configure"' > conftest.$ac_ext
  1470   if { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1469   if { (eval echo configure:1470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1471     case "`/usr/bin/file conftest.o`" in
  1470     case "`/usr/bin/file conftest.o`" in
  1472     *32-bit*)
  1471     *32-bit*)
  1473       LD="${LD-ld} -32"
  1472       LD="${LD-ld} -32"
  1474       ;;
  1473       ;;
  1475     *N32*)
  1474     *N32*)
  1486 *-*-sco3.2v5*)
  1485 *-*-sco3.2v5*)
  1487   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1486   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1488   SAVE_CFLAGS="$CFLAGS"
  1487   SAVE_CFLAGS="$CFLAGS"
  1489   CFLAGS="$CFLAGS -belf"
  1488   CFLAGS="$CFLAGS -belf"
  1490   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  1489   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  1491 echo "configure:1492: checking whether the C compiler needs -belf" >&5
  1490 echo "configure:1491: checking whether the C compiler needs -belf" >&5
  1492 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  1491 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  1493   echo $ac_n "(cached) $ac_c" 1>&6
  1492   echo $ac_n "(cached) $ac_c" 1>&6
  1494 else
  1493 else
  1495   cat > conftest.$ac_ext <<EOF
  1494   cat > conftest.$ac_ext <<EOF
  1496 #line 1497 "configure"
  1495 #line 1496 "configure"
  1497 #include "confdefs.h"
  1496 #include "confdefs.h"
  1498 
  1497 
  1499 int main() {
  1498 int main() {
  1500 
  1499 
  1501 ; return 0; }
  1500 ; return 0; }
  1502 EOF
  1501 EOF
  1503 if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1502 if { (eval echo configure:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1504   rm -rf conftest*
  1503   rm -rf conftest*
  1505   lt_cv_cc_needs_belf=yes
  1504   lt_cv_cc_needs_belf=yes
  1506 else
  1505 else
  1507   echo "configure: failed program was:" >&5
  1506   echo "configure: failed program was:" >&5
  1508   cat conftest.$ac_ext >&5
  1507   cat conftest.$ac_ext >&5
  1521 
  1520 
  1522 *-*-cygwin* | *-*-mingw*)
  1521 *-*-cygwin* | *-*-mingw*)
  1523   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  1522   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  1524 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  1523 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  1525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1526 echo "configure:1527: checking for $ac_word" >&5
  1525 echo "configure:1526: checking for $ac_word" >&5
  1527 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
  1526 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
  1528   echo $ac_n "(cached) $ac_c" 1>&6
  1527   echo $ac_n "(cached) $ac_c" 1>&6
  1529 else
  1528 else
  1530   if test -n "$DLLTOOL"; then
  1529   if test -n "$DLLTOOL"; then
  1531   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  1530   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  1553 if test -z "$ac_cv_prog_DLLTOOL"; then
  1552 if test -z "$ac_cv_prog_DLLTOOL"; then
  1554 if test -n "$ac_tool_prefix"; then
  1553 if test -n "$ac_tool_prefix"; then
  1555   # Extract the first word of "dlltool", so it can be a program name with args.
  1554   # Extract the first word of "dlltool", so it can be a program name with args.
  1556 set dummy dlltool; ac_word=$2
  1555 set dummy dlltool; ac_word=$2
  1557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1558 echo "configure:1559: checking for $ac_word" >&5
  1557 echo "configure:1558: checking for $ac_word" >&5
  1559 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
  1558 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
  1560   echo $ac_n "(cached) $ac_c" 1>&6
  1559   echo $ac_n "(cached) $ac_c" 1>&6
  1561 else
  1560 else
  1562   if test -n "$DLLTOOL"; then
  1561   if test -n "$DLLTOOL"; then
  1563   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  1562   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  1588 fi
  1587 fi
  1589 
  1588 
  1590   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  1589   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  1591 set dummy ${ac_tool_prefix}as; ac_word=$2
  1590 set dummy ${ac_tool_prefix}as; ac_word=$2
  1592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1593 echo "configure:1594: checking for $ac_word" >&5
  1592 echo "configure:1593: checking for $ac_word" >&5
  1594 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1593 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1595   echo $ac_n "(cached) $ac_c" 1>&6
  1594   echo $ac_n "(cached) $ac_c" 1>&6
  1596 else
  1595 else
  1597   if test -n "$AS"; then
  1596   if test -n "$AS"; then
  1598   ac_cv_prog_AS="$AS" # Let the user override the test.
  1597   ac_cv_prog_AS="$AS" # Let the user override the test.
  1620 if test -z "$ac_cv_prog_AS"; then
  1619 if test -z "$ac_cv_prog_AS"; then
  1621 if test -n "$ac_tool_prefix"; then
  1620 if test -n "$ac_tool_prefix"; then
  1622   # Extract the first word of "as", so it can be a program name with args.
  1621   # Extract the first word of "as", so it can be a program name with args.
  1623 set dummy as; ac_word=$2
  1622 set dummy as; ac_word=$2
  1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1625 echo "configure:1626: checking for $ac_word" >&5
  1624 echo "configure:1625: checking for $ac_word" >&5
  1626 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1625 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1627   echo $ac_n "(cached) $ac_c" 1>&6
  1626   echo $ac_n "(cached) $ac_c" 1>&6
  1628 else
  1627 else
  1629   if test -n "$AS"; then
  1628   if test -n "$AS"; then
  1630   ac_cv_prog_AS="$AS" # Let the user override the test.
  1629   ac_cv_prog_AS="$AS" # Let the user override the test.
  1655 fi
  1654 fi
  1656 
  1655 
  1657   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  1656   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  1658 set dummy ${ac_tool_prefix}objdump; ac_word=$2
  1657 set dummy ${ac_tool_prefix}objdump; ac_word=$2
  1659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1660 echo "configure:1661: checking for $ac_word" >&5
  1659 echo "configure:1660: checking for $ac_word" >&5
  1661 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
  1660 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
  1662   echo $ac_n "(cached) $ac_c" 1>&6
  1661   echo $ac_n "(cached) $ac_c" 1>&6
  1663 else
  1662 else
  1664   if test -n "$OBJDUMP"; then
  1663   if test -n "$OBJDUMP"; then
  1665   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  1664   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  1687 if test -z "$ac_cv_prog_OBJDUMP"; then
  1686 if test -z "$ac_cv_prog_OBJDUMP"; then
  1688 if test -n "$ac_tool_prefix"; then
  1687 if test -n "$ac_tool_prefix"; then
  1689   # Extract the first word of "objdump", so it can be a program name with args.
  1688   # Extract the first word of "objdump", so it can be a program name with args.
  1690 set dummy objdump; ac_word=$2
  1689 set dummy objdump; ac_word=$2
  1691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1692 echo "configure:1693: checking for $ac_word" >&5
  1691 echo "configure:1692: checking for $ac_word" >&5
  1693 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
  1692 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
  1694   echo $ac_n "(cached) $ac_c" 1>&6
  1693   echo $ac_n "(cached) $ac_c" 1>&6
  1695 else
  1694 else
  1696   if test -n "$OBJDUMP"; then
  1695   if test -n "$OBJDUMP"; then
  1697   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  1696   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  1723 
  1722 
  1724 
  1723 
  1725   # recent cygwin and mingw systems supply a stub DllMain which the user
  1724   # recent cygwin and mingw systems supply a stub DllMain which the user
  1726   # can override, but on older systems we have to supply one
  1725   # can override, but on older systems we have to supply one
  1727   echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
  1726   echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
  1728 echo "configure:1729: checking if libtool should supply DllMain function" >&5
  1727 echo "configure:1728: checking if libtool should supply DllMain function" >&5
  1729 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
  1728 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
  1730   echo $ac_n "(cached) $ac_c" 1>&6
  1729   echo $ac_n "(cached) $ac_c" 1>&6
  1731 else
  1730 else
  1732   cat > conftest.$ac_ext <<EOF
  1731   cat > conftest.$ac_ext <<EOF
  1733 #line 1734 "configure"
  1732 #line 1733 "configure"
  1734 #include "confdefs.h"
  1733 #include "confdefs.h"
  1735 DllMain (0, 0, 0);
  1734 DllMain (0, 0, 0);
  1736 int main() {
  1735 int main() {
  1737 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
  1736 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
  1738 ; return 0; }
  1737 ; return 0; }
  1739 EOF
  1738 EOF
  1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1741   rm -rf conftest*
  1740   rm -rf conftest*
  1742   lt_cv_need_dllmain=yes
  1741   lt_cv_need_dllmain=yes
  1743 else
  1742 else
  1744   echo "configure: failed program was:" >&5
  1743   echo "configure: failed program was:" >&5
  1745   cat conftest.$ac_ext >&5
  1744   cat conftest.$ac_ext >&5
  1760     # old mingw systems require "-dll" to link a DLL, while more recent ones
  1759     # old mingw systems require "-dll" to link a DLL, while more recent ones
  1761     # require "-mdll"
  1760     # require "-mdll"
  1762     SAVE_CFLAGS="$CFLAGS"
  1761     SAVE_CFLAGS="$CFLAGS"
  1763     CFLAGS="$CFLAGS -mdll"
  1762     CFLAGS="$CFLAGS -mdll"
  1764     echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
  1763     echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
  1765 echo "configure:1766: checking how to link DLLs" >&5
  1764 echo "configure:1765: checking how to link DLLs" >&5
  1766 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
  1765 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
  1767   echo $ac_n "(cached) $ac_c" 1>&6
  1766   echo $ac_n "(cached) $ac_c" 1>&6
  1768 else
  1767 else
  1769   cat > conftest.$ac_ext <<EOF
  1768   cat > conftest.$ac_ext <<EOF
  1770 #line 1771 "configure"
  1769 #line 1770 "configure"
  1771 #include "confdefs.h"
  1770 #include "confdefs.h"
  1772 
  1771 
  1773 int main() {
  1772 int main() {
  1774 
  1773 
  1775 ; return 0; }
  1774 ; return 0; }
  1776 EOF
  1775 EOF
  1777 if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1776 if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1778   rm -rf conftest*
  1777   rm -rf conftest*
  1779   lt_cv_cc_dll_switch=-mdll
  1778   lt_cv_cc_dll_switch=-mdll
  1780 else
  1779 else
  1781   echo "configure: failed program was:" >&5
  1780   echo "configure: failed program was:" >&5
  1782   cat conftest.$ac_ext >&5
  1781   cat conftest.$ac_ext >&5
  1882 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1883 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1884 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1885 # ./install, which can be erroneously created by make from ./install.sh.
  1884 # ./install, which can be erroneously created by make from ./install.sh.
  1886 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1885 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1887 echo "configure:1888: checking for a BSD compatible install" >&5
  1886 echo "configure:1887: checking for a BSD compatible install" >&5
  1888 if test -z "$INSTALL"; then
  1887 if test -z "$INSTALL"; then
  1889 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1888 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1890   echo $ac_n "(cached) $ac_c" 1>&6
  1889   echo $ac_n "(cached) $ac_c" 1>&6
  1891 else
  1890 else
  1892     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  1891     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  1936 
  1935 
  1937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1936 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1938 
  1937 
  1939 
  1938 
  1940 echo $ac_n "checking target system type""... $ac_c" 1>&6
  1939 echo $ac_n "checking target system type""... $ac_c" 1>&6
  1941 echo "configure:1942: checking target system type" >&5
  1940 echo "configure:1941: checking target system type" >&5
  1942 
  1941 
  1943 target_alias=$target
  1942 target_alias=$target
  1944 case "$target_alias" in
  1943 case "$target_alias" in
  1945 NONE)
  1944 NONE)
  1946   case $nonopt in
  1945   case $nonopt in
  2001   fi
  2000   fi
  2002 
  2001 
  2003   # Extract the first word of "sdl-config", so it can be a program name with args.
  2002   # Extract the first word of "sdl-config", so it can be a program name with args.
  2004 set dummy sdl-config; ac_word=$2
  2003 set dummy sdl-config; ac_word=$2
  2005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2006 echo "configure:2007: checking for $ac_word" >&5
  2005 echo "configure:2006: checking for $ac_word" >&5
  2007 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
  2006 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
  2008   echo $ac_n "(cached) $ac_c" 1>&6
  2007   echo $ac_n "(cached) $ac_c" 1>&6
  2009 else
  2008 else
  2010   case "$SDL_CONFIG" in
  2009   case "$SDL_CONFIG" in
  2011   /*)
  2010   /*)
  2036   echo "$ac_t""no" 1>&6
  2035   echo "$ac_t""no" 1>&6
  2037 fi
  2036 fi
  2038 
  2037 
  2039   min_sdl_version=$SDL_VERSION
  2038   min_sdl_version=$SDL_VERSION
  2040   echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
  2039   echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
  2041 echo "configure:2042: checking for SDL - version >= $min_sdl_version" >&5
  2040 echo "configure:2041: checking for SDL - version >= $min_sdl_version" >&5
  2042   no_sdl=""
  2041   no_sdl=""
  2043   if test "$SDL_CONFIG" = "no" ; then
  2042   if test "$SDL_CONFIG" = "no" ; then
  2044     no_sdl=yes
  2043     no_sdl=yes
  2045   else
  2044   else
  2046     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
  2045     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
  2060       rm -f conf.sdltest
  2059       rm -f conf.sdltest
  2061       if test "$cross_compiling" = yes; then
  2060       if test "$cross_compiling" = yes; then
  2062   echo $ac_n "cross compiling; assumed OK... $ac_c"
  2061   echo $ac_n "cross compiling; assumed OK... $ac_c"
  2063 else
  2062 else
  2064   cat > conftest.$ac_ext <<EOF
  2063   cat > conftest.$ac_ext <<EOF
  2065 #line 2066 "configure"
  2064 #line 2065 "configure"
  2066 #include "confdefs.h"
  2065 #include "confdefs.h"
  2067 
  2066 
  2068 #include <stdio.h>
  2067 #include <stdio.h>
  2069 #include <stdlib.h>
  2068 #include <stdlib.h>
  2070 #include <string.h>
  2069 #include <string.h>
  2118     }
  2117     }
  2119 }
  2118 }
  2120 
  2119 
  2121 
  2120 
  2122 EOF
  2121 EOF
  2123 if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2122 if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2124 then
  2123 then
  2125   :
  2124   :
  2126 else
  2125 else
  2127   echo "configure: failed program was:" >&5
  2126   echo "configure: failed program was:" >&5
  2128   cat conftest.$ac_ext >&5
  2127   cat conftest.$ac_ext >&5
  2152        else
  2151        else
  2153           echo "*** Could not run SDL test program, checking why..."
  2152           echo "*** Could not run SDL test program, checking why..."
  2154           CFLAGS="$CFLAGS $SDL_CFLAGS"
  2153           CFLAGS="$CFLAGS $SDL_CFLAGS"
  2155           LIBS="$LIBS $SDL_LIBS"
  2154           LIBS="$LIBS $SDL_LIBS"
  2156           cat > conftest.$ac_ext <<EOF
  2155           cat > conftest.$ac_ext <<EOF
  2157 #line 2158 "configure"
  2156 #line 2157 "configure"
  2158 #include "confdefs.h"
  2157 #include "confdefs.h"
  2159 
  2158 
  2160 #include <stdio.h>
  2159 #include <stdio.h>
  2161 #include "SDL.h"
  2160 #include "SDL.h"
  2162 
  2161 
  2163 int main() {
  2162 int main() {
  2164  return 0; 
  2163  return 0; 
  2165 ; return 0; }
  2164 ; return 0; }
  2166 EOF
  2165 EOF
  2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2166 if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2168   rm -rf conftest*
  2167   rm -rf conftest*
  2169    echo "*** The test program compiled, but did not run. This usually means"
  2168    echo "*** The test program compiled, but did not run. This usually means"
  2170           echo "*** that the run-time linker is not finding SDL or finding the wrong"
  2169           echo "*** that the run-time linker is not finding SDL or finding the wrong"
  2171           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  2170           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  2172           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  2171           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  2255   enable_music_mp3=yes
  2254   enable_music_mp3=yes
  2256 fi
  2255 fi
  2257 
  2256 
  2258 if test x$enable_music_mp3 = xyes; then
  2257 if test x$enable_music_mp3 = xyes; then
  2259     echo $ac_n "checking for SMPEG headers and libraries""... $ac_c" 1>&6
  2258     echo $ac_n "checking for SMPEG headers and libraries""... $ac_c" 1>&6
  2260 echo "configure:2261: checking for SMPEG headers and libraries" >&5
  2259 echo "configure:2260: checking for SMPEG headers and libraries" >&5
  2261     have_smpeg=no
  2260     have_smpeg=no
  2262     cat > conftest.$ac_ext <<EOF
  2261     cat > conftest.$ac_ext <<EOF
  2263 #line 2264 "configure"
  2262 #line 2263 "configure"
  2264 #include "confdefs.h"
  2263 #include "confdefs.h"
  2265 
  2264 
  2266      #include <smpeg/smpeg.h>
  2265      #include <smpeg/smpeg.h>
  2267     
  2266     
  2268 int main() {
  2267 int main() {
  2269 
  2268 
  2270     
  2269     
  2271 ; return 0; }
  2270 ; return 0; }
  2272 EOF
  2271 EOF
  2273 if { (eval echo configure:2274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2272 if { (eval echo configure:2273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2274   rm -rf conftest*
  2273   rm -rf conftest*
  2275   
  2274   
  2276     have_smpeg=yes
  2275     have_smpeg=yes
  2277     
  2276     
  2278 else
  2277 else