comparison configure @ 1165:7a17588edbff

'configure' checks for libmhash and MLton
author Adam Chlipala <adamc@hcoop.net>
date Thu, 11 Feb 2010 11:29:36 -0500
parents 15767031950c
children be2ef50780ed
comparison
equal deleted inserted replaced
1164:8679ba87cf3c 1165:7a17588edbff
746 GCCARGS 746 GCCARGS
747 SITELISP 747 SITELISP
748 INCLUDE 748 INCLUDE
749 LIB 749 LIB
750 BIN 750 BIN
751 MLYACC
752 MLLEX
753 MLTON
751 OTOOL64 754 OTOOL64
752 OTOOL 755 OTOOL
753 LIPO 756 LIPO
754 NMEDIT 757 NMEDIT
755 DSYMUTIL 758 DSYMUTIL
5315 if test "${lt_cv_nm_interface+set}" = set; then : 5318 if test "${lt_cv_nm_interface+set}" = set; then :
5316 $as_echo_n "(cached) " >&6 5319 $as_echo_n "(cached) " >&6
5317 else 5320 else
5318 lt_cv_nm_interface="BSD nm" 5321 lt_cv_nm_interface="BSD nm"
5319 echo "int some_variable = 0;" > conftest.$ac_ext 5322 echo "int some_variable = 0;" > conftest.$ac_ext
5320 (eval echo "\"\$as_me:5320: $ac_compile\"" >&5) 5323 (eval echo "\"\$as_me:5323: $ac_compile\"" >&5)
5321 (eval "$ac_compile" 2>conftest.err) 5324 (eval "$ac_compile" 2>conftest.err)
5322 cat conftest.err >&5 5325 cat conftest.err >&5
5323 (eval echo "\"\$as_me:5323: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5326 (eval echo "\"\$as_me:5326: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5324 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5327 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5325 cat conftest.err >&5 5328 cat conftest.err >&5
5326 (eval echo "\"\$as_me:5326: output\"" >&5) 5329 (eval echo "\"\$as_me:5329: output\"" >&5)
5327 cat conftest.out >&5 5330 cat conftest.out >&5
5328 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5331 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5329 lt_cv_nm_interface="MS dumpbin" 5332 lt_cv_nm_interface="MS dumpbin"
5330 fi 5333 fi
5331 rm -f conftest* 5334 rm -f conftest*
6526 fi 6529 fi
6527 rm -rf conftest* 6530 rm -rf conftest*
6528 ;; 6531 ;;
6529 *-*-irix6*) 6532 *-*-irix6*)
6530 # Find out which ABI we are using. 6533 # Find out which ABI we are using.
6531 echo '#line 6531 "configure"' > conftest.$ac_ext 6534 echo '#line 6534 "configure"' > conftest.$ac_ext
6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533 (eval $ac_compile) 2>&5 6536 (eval $ac_compile) 2>&5
6534 ac_status=$? 6537 ac_status=$?
6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536 test $ac_status = 0; }; then 6539 test $ac_status = 0; }; then
7788 # The option is referenced via a variable to avoid confusing sed. 7791 # The option is referenced via a variable to avoid confusing sed.
7789 lt_compile=`echo "$ac_compile" | $SED \ 7792 lt_compile=`echo "$ac_compile" | $SED \
7790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7792 -e 's:$: $lt_compiler_flag:'` 7795 -e 's:$: $lt_compiler_flag:'`
7793 (eval echo "\"\$as_me:7793: $lt_compile\"" >&5) 7796 (eval echo "\"\$as_me:7796: $lt_compile\"" >&5)
7794 (eval "$lt_compile" 2>conftest.err) 7797 (eval "$lt_compile" 2>conftest.err)
7795 ac_status=$? 7798 ac_status=$?
7796 cat conftest.err >&5 7799 cat conftest.err >&5
7797 echo "$as_me:7797: \$? = $ac_status" >&5 7800 echo "$as_me:7800: \$? = $ac_status" >&5
7798 if (exit $ac_status) && test -s "$ac_outfile"; then 7801 if (exit $ac_status) && test -s "$ac_outfile"; then
7799 # The compiler can only warn and ignore the option if not recognized 7802 # The compiler can only warn and ignore the option if not recognized
7800 # So say no if there are warnings other than the usual output. 7803 # So say no if there are warnings other than the usual output.
7801 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7804 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8127 # The option is referenced via a variable to avoid confusing sed. 8130 # The option is referenced via a variable to avoid confusing sed.
8128 lt_compile=`echo "$ac_compile" | $SED \ 8131 lt_compile=`echo "$ac_compile" | $SED \
8129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8131 -e 's:$: $lt_compiler_flag:'` 8134 -e 's:$: $lt_compiler_flag:'`
8132 (eval echo "\"\$as_me:8132: $lt_compile\"" >&5) 8135 (eval echo "\"\$as_me:8135: $lt_compile\"" >&5)
8133 (eval "$lt_compile" 2>conftest.err) 8136 (eval "$lt_compile" 2>conftest.err)
8134 ac_status=$? 8137 ac_status=$?
8135 cat conftest.err >&5 8138 cat conftest.err >&5
8136 echo "$as_me:8136: \$? = $ac_status" >&5 8139 echo "$as_me:8139: \$? = $ac_status" >&5
8137 if (exit $ac_status) && test -s "$ac_outfile"; then 8140 if (exit $ac_status) && test -s "$ac_outfile"; then
8138 # The compiler can only warn and ignore the option if not recognized 8141 # The compiler can only warn and ignore the option if not recognized
8139 # So say no if there are warnings other than the usual output. 8142 # So say no if there are warnings other than the usual output.
8140 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8143 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8232 # with a dollar sign (not a hyphen), so the echo should work correctly. 8235 # with a dollar sign (not a hyphen), so the echo should work correctly.
8233 lt_compile=`echo "$ac_compile" | $SED \ 8236 lt_compile=`echo "$ac_compile" | $SED \
8234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8236 -e 's:$: $lt_compiler_flag:'` 8239 -e 's:$: $lt_compiler_flag:'`
8237 (eval echo "\"\$as_me:8237: $lt_compile\"" >&5) 8240 (eval echo "\"\$as_me:8240: $lt_compile\"" >&5)
8238 (eval "$lt_compile" 2>out/conftest.err) 8241 (eval "$lt_compile" 2>out/conftest.err)
8239 ac_status=$? 8242 ac_status=$?
8240 cat out/conftest.err >&5 8243 cat out/conftest.err >&5
8241 echo "$as_me:8241: \$? = $ac_status" >&5 8244 echo "$as_me:8244: \$? = $ac_status" >&5
8242 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8245 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8243 then 8246 then
8244 # The compiler can only warn and ignore the option if not recognized 8247 # The compiler can only warn and ignore the option if not recognized
8245 # So say no if there are warnings 8248 # So say no if there are warnings
8246 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8249 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8287 # with a dollar sign (not a hyphen), so the echo should work correctly. 8290 # with a dollar sign (not a hyphen), so the echo should work correctly.
8288 lt_compile=`echo "$ac_compile" | $SED \ 8291 lt_compile=`echo "$ac_compile" | $SED \
8289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8291 -e 's:$: $lt_compiler_flag:'` 8294 -e 's:$: $lt_compiler_flag:'`
8292 (eval echo "\"\$as_me:8292: $lt_compile\"" >&5) 8295 (eval echo "\"\$as_me:8295: $lt_compile\"" >&5)
8293 (eval "$lt_compile" 2>out/conftest.err) 8296 (eval "$lt_compile" 2>out/conftest.err)
8294 ac_status=$? 8297 ac_status=$?
8295 cat out/conftest.err >&5 8298 cat out/conftest.err >&5
8296 echo "$as_me:8296: \$? = $ac_status" >&5 8299 echo "$as_me:8299: \$? = $ac_status" >&5
8297 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8298 then 8301 then
8299 # The compiler can only warn and ignore the option if not recognized 8302 # The compiler can only warn and ignore the option if not recognized
8300 # So say no if there are warnings 8303 # So say no if there are warnings
8301 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8304 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10671 lt_cv_dlopen_self=cross 10674 lt_cv_dlopen_self=cross
10672 else 10675 else
10673 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10676 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10674 lt_status=$lt_dlunknown 10677 lt_status=$lt_dlunknown
10675 cat > conftest.$ac_ext <<_LT_EOF 10678 cat > conftest.$ac_ext <<_LT_EOF
10676 #line 10676 "configure" 10679 #line 10679 "configure"
10677 #include "confdefs.h" 10680 #include "confdefs.h"
10678 10681
10679 #if HAVE_DLFCN_H 10682 #if HAVE_DLFCN_H
10680 #include <dlfcn.h> 10683 #include <dlfcn.h>
10681 #endif 10684 #endif
10767 lt_cv_dlopen_self_static=cross 10770 lt_cv_dlopen_self_static=cross
10768 else 10771 else
10769 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10770 lt_status=$lt_dlunknown 10773 lt_status=$lt_dlunknown
10771 cat > conftest.$ac_ext <<_LT_EOF 10774 cat > conftest.$ac_ext <<_LT_EOF
10772 #line 10772 "configure" 10775 #line 10775 "configure"
10773 #include "confdefs.h" 10776 #include "confdefs.h"
10774 10777
10775 #if HAVE_DLFCN_H 10778 #if HAVE_DLFCN_H
10776 #include <dlfcn.h> 10779 #include <dlfcn.h>
10777 #endif 10780 #endif
10995 10998
10996 # Only expand once: 10999 # Only expand once:
10997 11000
10998 11001
10999 11002
11003
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash_get_block_size in -lmhash" >&5
11005 $as_echo_n "checking for mhash_get_block_size in -lmhash... " >&6; }
11006 if test "${ac_cv_lib_mhash_mhash_get_block_size+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-lmhash $LIBS"
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char mhash_get_block_size ();
11021 int
11022 main ()
11023 {
11024 return mhash_get_block_size ();
11025 ;
11026 return 0;
11027 }
11028 _ACEOF
11029 if ac_fn_c_try_link "$LINENO"; then :
11030 ac_cv_lib_mhash_mhash_get_block_size=yes
11031 else
11032 ac_cv_lib_mhash_mhash_get_block_size=no
11033 fi
11034 rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
11036 LIBS=$ac_check_lib_save_LIBS
11037 fi
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mhash_mhash_get_block_size" >&5
11039 $as_echo "$ac_cv_lib_mhash_mhash_get_block_size" >&6; }
11040 if test "x$ac_cv_lib_mhash_mhash_get_block_size" = x""yes; then :
11041 cat >>confdefs.h <<_ACEOF
11042 #define HAVE_LIBMHASH 1
11043 _ACEOF
11044
11045 LIBS="-lmhash $LIBS"
11046
11047 else
11048 echo "You must install libmhash."; exit 1
11049 fi
11050
11051 ac_fn_c_check_header_mongrel "$LINENO" "mhash.h" "ac_cv_header_mhash_h" "$ac_includes_default"
11052 if test "x$ac_cv_header_mhash_h" = x""yes; then :
11053
11054 else
11055 echo "You must install libmhash dev files."; exit 1
11056 fi
11057
11058
11059
11060 # Extract the first word of "mlton", so it can be a program name with args.
11061 set dummy mlton; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063 $as_echo_n "checking for $ac_word... " >&6; }
11064 if test "${ac_cv_prog_MLTON+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 if test -n "$MLTON"; then
11068 ac_cv_prog_MLTON="$MLTON" # Let the user override the test.
11069 else
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11072 do
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11077 ac_cv_prog_MLTON="yes"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 break 2
11080 fi
11081 done
11082 done
11083 IFS=$as_save_IFS
11084
11085 fi
11086 fi
11087 MLTON=$ac_cv_prog_MLTON
11088 if test -n "$MLTON"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLTON" >&5
11090 $as_echo "$MLTON" >&6; }
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11094 fi
11095
11096
11097
11098 if test -z $MLTON; then
11099 echo "You must install MLton."
11100 exit 1
11101 fi
11102
11103 # Extract the first word of "mllex", so it can be a program name with args.
11104 set dummy mllex; ac_word=$2
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106 $as_echo_n "checking for $ac_word... " >&6; }
11107 if test "${ac_cv_prog_MLLEX+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 if test -n "$MLLEX"; then
11111 ac_cv_prog_MLLEX="$MLLEX" # Let the user override the test.
11112 else
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $PATH
11115 do
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
11118 for ac_exec_ext in '' $ac_executable_extensions; do
11119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11120 ac_cv_prog_MLLEX="yes"
11121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 break 2
11123 fi
11124 done
11125 done
11126 IFS=$as_save_IFS
11127
11128 fi
11129 fi
11130 MLLEX=$ac_cv_prog_MLLEX
11131 if test -n "$MLLEX"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLLEX" >&5
11133 $as_echo "$MLLEX" >&6; }
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11137 fi
11138
11139
11140
11141 if test -z $MLLEX; then
11142 echo "You must install MLton (to get mllex)."
11143 exit 1
11144 fi
11145
11146 # Extract the first word of "mlyacc", so it can be a program name with args.
11147 set dummy mlyacc; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if test "${ac_cv_prog_MLYACC+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 if test -n "$MLYACC"; then
11154 ac_cv_prog_MLYACC="$MLYACC" # Let the user override the test.
11155 else
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $PATH
11158 do
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11163 ac_cv_prog_MLYACC="yes"
11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11166 fi
11167 done
11168 done
11169 IFS=$as_save_IFS
11170
11171 fi
11172 fi
11173 MLYACC=$ac_cv_prog_MLYACC
11174 if test -n "$MLYACC"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLYACC" >&5
11176 $as_echo "$MLYACC" >&6; }
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11180 fi
11181
11182
11183
11184 if test -z $MLYACC; then
11185 echo "You must install MLton (to get mlyacc)."
11186 exit 1
11187 fi
11000 11188
11001 if test $prefix = "NONE"; then 11189 if test $prefix = "NONE"; then
11002 prefix=/usr/local 11190 prefix=/usr/local
11003 fi 11191 fi
11004 11192