Mercurial > urweb
comparison configure @ 1317:e12cef71aa1a
Karn Kallio's patch for static mhash linking
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 18 Nov 2010 14:22:04 -0500 |
parents | 855c5adafc2d |
children | b2bc8bcd546f |
comparison
equal
deleted
inserted
replaced
1316:df7bfb30dcc3 | 1317:e12cef71aa1a |
---|---|
741 | 741 |
742 ac_subst_vars='am__EXEEXT_FALSE | 742 ac_subst_vars='am__EXEEXT_FALSE |
743 am__EXEEXT_TRUE | 743 am__EXEEXT_TRUE |
744 LTLIBOBJS | 744 LTLIBOBJS |
745 LIBOBJS | 745 LIBOBJS |
746 MHASH_LIB_DIR | |
746 GCCARGS | 747 GCCARGS |
747 SITELISP | 748 SITELISP |
748 INCLUDE | 749 INCLUDE |
749 LIB | 750 LIB |
750 BIN | 751 BIN |
864 enable_static | 865 enable_static |
865 with_pic | 866 with_pic |
866 enable_fast_install | 867 enable_fast_install |
867 with_gnu_ld | 868 with_gnu_ld |
868 enable_libtool_lock | 869 enable_libtool_lock |
870 with_mhash_dir | |
869 ' | 871 ' |
870 ac_precious_vars='build_alias | 872 ac_precious_vars='build_alias |
871 host_alias | 873 host_alias |
872 target_alias | 874 target_alias |
873 CC | 875 CC |
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1510 --with-pic try to use only PIC/non-PIC objects [default=use | 1512 --with-pic try to use only PIC/non-PIC objects [default=use |
1511 both] | 1513 both] |
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | 1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1515 --with-mhash-dir=DIR mhash directory; default = /usr | |
1513 | 1516 |
1514 Some influential environment variables: | 1517 Some influential environment variables: |
1515 CC C compiler command | 1518 CC C compiler command |
1516 CFLAGS C compiler flags | 1519 CFLAGS C compiler flags |
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | 1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
5324 if test "${lt_cv_nm_interface+set}" = set; then : | 5327 if test "${lt_cv_nm_interface+set}" = set; then : |
5325 $as_echo_n "(cached) " >&6 | 5328 $as_echo_n "(cached) " >&6 |
5326 else | 5329 else |
5327 lt_cv_nm_interface="BSD nm" | 5330 lt_cv_nm_interface="BSD nm" |
5328 echo "int some_variable = 0;" > conftest.$ac_ext | 5331 echo "int some_variable = 0;" > conftest.$ac_ext |
5329 (eval echo "\"\$as_me:5329: $ac_compile\"" >&5) | 5332 (eval echo "\"\$as_me:5332: $ac_compile\"" >&5) |
5330 (eval "$ac_compile" 2>conftest.err) | 5333 (eval "$ac_compile" 2>conftest.err) |
5331 cat conftest.err >&5 | 5334 cat conftest.err >&5 |
5332 (eval echo "\"\$as_me:5332: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | 5335 (eval echo "\"\$as_me:5335: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
5333 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | 5336 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5334 cat conftest.err >&5 | 5337 cat conftest.err >&5 |
5335 (eval echo "\"\$as_me:5335: output\"" >&5) | 5338 (eval echo "\"\$as_me:5338: output\"" >&5) |
5336 cat conftest.out >&5 | 5339 cat conftest.out >&5 |
5337 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | 5340 if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
5338 lt_cv_nm_interface="MS dumpbin" | 5341 lt_cv_nm_interface="MS dumpbin" |
5339 fi | 5342 fi |
5340 rm -f conftest* | 5343 rm -f conftest* |
6535 fi | 6538 fi |
6536 rm -rf conftest* | 6539 rm -rf conftest* |
6537 ;; | 6540 ;; |
6538 *-*-irix6*) | 6541 *-*-irix6*) |
6539 # Find out which ABI we are using. | 6542 # Find out which ABI we are using. |
6540 echo '#line 6540 "configure"' > conftest.$ac_ext | 6543 echo '#line 6543 "configure"' > conftest.$ac_ext |
6541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 6544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6542 (eval $ac_compile) 2>&5 | 6545 (eval $ac_compile) 2>&5 |
6543 ac_status=$? | 6546 ac_status=$? |
6544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 6547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6545 test $ac_status = 0; }; then | 6548 test $ac_status = 0; }; then |
7797 # The option is referenced via a variable to avoid confusing sed. | 7800 # The option is referenced via a variable to avoid confusing sed. |
7798 lt_compile=`echo "$ac_compile" | $SED \ | 7801 lt_compile=`echo "$ac_compile" | $SED \ |
7799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 7802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 7803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7801 -e 's:$: $lt_compiler_flag:'` | 7804 -e 's:$: $lt_compiler_flag:'` |
7802 (eval echo "\"\$as_me:7802: $lt_compile\"" >&5) | 7805 (eval echo "\"\$as_me:7805: $lt_compile\"" >&5) |
7803 (eval "$lt_compile" 2>conftest.err) | 7806 (eval "$lt_compile" 2>conftest.err) |
7804 ac_status=$? | 7807 ac_status=$? |
7805 cat conftest.err >&5 | 7808 cat conftest.err >&5 |
7806 echo "$as_me:7806: \$? = $ac_status" >&5 | 7809 echo "$as_me:7809: \$? = $ac_status" >&5 |
7807 if (exit $ac_status) && test -s "$ac_outfile"; then | 7810 if (exit $ac_status) && test -s "$ac_outfile"; then |
7808 # The compiler can only warn and ignore the option if not recognized | 7811 # The compiler can only warn and ignore the option if not recognized |
7809 # So say no if there are warnings other than the usual output. | 7812 # So say no if there are warnings other than the usual output. |
7810 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 7813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 7814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8136 # The option is referenced via a variable to avoid confusing sed. | 8139 # The option is referenced via a variable to avoid confusing sed. |
8137 lt_compile=`echo "$ac_compile" | $SED \ | 8140 lt_compile=`echo "$ac_compile" | $SED \ |
8138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 8141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 8142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8140 -e 's:$: $lt_compiler_flag:'` | 8143 -e 's:$: $lt_compiler_flag:'` |
8141 (eval echo "\"\$as_me:8141: $lt_compile\"" >&5) | 8144 (eval echo "\"\$as_me:8144: $lt_compile\"" >&5) |
8142 (eval "$lt_compile" 2>conftest.err) | 8145 (eval "$lt_compile" 2>conftest.err) |
8143 ac_status=$? | 8146 ac_status=$? |
8144 cat conftest.err >&5 | 8147 cat conftest.err >&5 |
8145 echo "$as_me:8145: \$? = $ac_status" >&5 | 8148 echo "$as_me:8148: \$? = $ac_status" >&5 |
8146 if (exit $ac_status) && test -s "$ac_outfile"; then | 8149 if (exit $ac_status) && test -s "$ac_outfile"; then |
8147 # The compiler can only warn and ignore the option if not recognized | 8150 # The compiler can only warn and ignore the option if not recognized |
8148 # So say no if there are warnings other than the usual output. | 8151 # So say no if there are warnings other than the usual output. |
8149 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 8152 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
8150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 8153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8241 # with a dollar sign (not a hyphen), so the echo should work correctly. | 8244 # with a dollar sign (not a hyphen), so the echo should work correctly. |
8242 lt_compile=`echo "$ac_compile" | $SED \ | 8245 lt_compile=`echo "$ac_compile" | $SED \ |
8243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 8246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 8247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8245 -e 's:$: $lt_compiler_flag:'` | 8248 -e 's:$: $lt_compiler_flag:'` |
8246 (eval echo "\"\$as_me:8246: $lt_compile\"" >&5) | 8249 (eval echo "\"\$as_me:8249: $lt_compile\"" >&5) |
8247 (eval "$lt_compile" 2>out/conftest.err) | 8250 (eval "$lt_compile" 2>out/conftest.err) |
8248 ac_status=$? | 8251 ac_status=$? |
8249 cat out/conftest.err >&5 | 8252 cat out/conftest.err >&5 |
8250 echo "$as_me:8250: \$? = $ac_status" >&5 | 8253 echo "$as_me:8253: \$? = $ac_status" >&5 |
8251 if (exit $ac_status) && test -s out/conftest2.$ac_objext | 8254 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8252 then | 8255 then |
8253 # The compiler can only warn and ignore the option if not recognized | 8256 # The compiler can only warn and ignore the option if not recognized |
8254 # So say no if there are warnings | 8257 # So say no if there are warnings |
8255 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 8258 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
8296 # with a dollar sign (not a hyphen), so the echo should work correctly. | 8299 # with a dollar sign (not a hyphen), so the echo should work correctly. |
8297 lt_compile=`echo "$ac_compile" | $SED \ | 8300 lt_compile=`echo "$ac_compile" | $SED \ |
8298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 8301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 8302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8300 -e 's:$: $lt_compiler_flag:'` | 8303 -e 's:$: $lt_compiler_flag:'` |
8301 (eval echo "\"\$as_me:8301: $lt_compile\"" >&5) | 8304 (eval echo "\"\$as_me:8304: $lt_compile\"" >&5) |
8302 (eval "$lt_compile" 2>out/conftest.err) | 8305 (eval "$lt_compile" 2>out/conftest.err) |
8303 ac_status=$? | 8306 ac_status=$? |
8304 cat out/conftest.err >&5 | 8307 cat out/conftest.err >&5 |
8305 echo "$as_me:8305: \$? = $ac_status" >&5 | 8308 echo "$as_me:8308: \$? = $ac_status" >&5 |
8306 if (exit $ac_status) && test -s out/conftest2.$ac_objext | 8309 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8307 then | 8310 then |
8308 # The compiler can only warn and ignore the option if not recognized | 8311 # The compiler can only warn and ignore the option if not recognized |
8309 # So say no if there are warnings | 8312 # So say no if there are warnings |
8310 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 8313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
10680 lt_cv_dlopen_self=cross | 10683 lt_cv_dlopen_self=cross |
10681 else | 10684 else |
10682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 10685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10683 lt_status=$lt_dlunknown | 10686 lt_status=$lt_dlunknown |
10684 cat > conftest.$ac_ext <<_LT_EOF | 10687 cat > conftest.$ac_ext <<_LT_EOF |
10685 #line 10685 "configure" | 10688 #line 10688 "configure" |
10686 #include "confdefs.h" | 10689 #include "confdefs.h" |
10687 | 10690 |
10688 #if HAVE_DLFCN_H | 10691 #if HAVE_DLFCN_H |
10689 #include <dlfcn.h> | 10692 #include <dlfcn.h> |
10690 #endif | 10693 #endif |
10776 lt_cv_dlopen_self_static=cross | 10779 lt_cv_dlopen_self_static=cross |
10777 else | 10780 else |
10778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 10781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10779 lt_status=$lt_dlunknown | 10782 lt_status=$lt_dlunknown |
10780 cat > conftest.$ac_ext <<_LT_EOF | 10783 cat > conftest.$ac_ext <<_LT_EOF |
10781 #line 10781 "configure" | 10784 #line 10784 "configure" |
10782 #include "confdefs.h" | 10785 #include "confdefs.h" |
10783 | 10786 |
10784 #if HAVE_DLFCN_H | 10787 #if HAVE_DLFCN_H |
10785 #include <dlfcn.h> | 10788 #include <dlfcn.h> |
10786 #endif | 10789 #endif |
11007 | 11010 |
11008 | 11011 |
11009 ac_config_headers="$ac_config_headers config.h" | 11012 ac_config_headers="$ac_config_headers config.h" |
11010 | 11013 |
11011 | 11014 |
11015 | |
11016 # Check whether --with-mhash-dir was given. | |
11017 if test "${with_mhash_dir+set}" = set; then : | |
11018 withval=$with_mhash_dir; with_mhash_dir="$withval" | |
11019 else | |
11020 with_mhash_dir="/usr" | |
11021 fi | |
11022 | |
11023 | |
11024 LIBS_save="$LIBS" | |
11025 LIBS="-L${with_mhash_dir}/lib/ -lmhash" | |
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash_get_block_size in -lmhash" >&5 | 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash_get_block_size in -lmhash" >&5 |
11013 $as_echo_n "checking for mhash_get_block_size in -lmhash... " >&6; } | 11027 $as_echo_n "checking for mhash_get_block_size in -lmhash... " >&6; } |
11014 if test "${ac_cv_lib_mhash_mhash_get_block_size+set}" = set; then : | 11028 if test "${ac_cv_lib_mhash_mhash_get_block_size+set}" = set; then : |
11015 $as_echo_n "(cached) " >&6 | 11029 $as_echo_n "(cached) " >&6 |
11016 else | 11030 else |
11044 LIBS=$ac_check_lib_save_LIBS | 11058 LIBS=$ac_check_lib_save_LIBS |
11045 fi | 11059 fi |
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mhash_mhash_get_block_size" >&5 | 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mhash_mhash_get_block_size" >&5 |
11047 $as_echo "$ac_cv_lib_mhash_mhash_get_block_size" >&6; } | 11061 $as_echo "$ac_cv_lib_mhash_mhash_get_block_size" >&6; } |
11048 if test "x$ac_cv_lib_mhash_mhash_get_block_size" = x""yes; then : | 11062 if test "x$ac_cv_lib_mhash_mhash_get_block_size" = x""yes; then : |
11049 cat >>confdefs.h <<_ACEOF | 11063 MHASH_LIB_DIR="${with_mhash_dir}/lib" |
11050 #define HAVE_LIBMHASH 1 | |
11051 _ACEOF | |
11052 | |
11053 LIBS="-lmhash $LIBS" | |
11054 | |
11055 else | 11064 else |
11056 echo "You must install libmhash."; exit 1 | 11065 echo "You must install libmhash."; exit 1 |
11057 fi | 11066 fi |
11058 | 11067 |
11059 ac_fn_c_check_header_mongrel "$LINENO" "mhash.h" "ac_cv_header_mhash_h" "$ac_includes_default" | 11068 LIBS="${LIBS_save}" |
11060 if test "x$ac_cv_header_mhash_h" = x""yes; then : | 11069 |
11061 | 11070 as_ac_Header=`$as_echo "ac_cv_header_"${with_mhash_dir}/include/mhash.h"" | $as_tr_sh` |
11071 ac_fn_c_check_header_mongrel "$LINENO" ""${with_mhash_dir}/include/mhash.h"" "$as_ac_Header" "$ac_includes_default" | |
11072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
11073 CPPFLAGS="${CPPFLAGS} -I${with_mhash_dir}/include" | |
11062 else | 11074 else |
11063 echo "You must install libmhash dev files."; exit 1 | 11075 echo "You must install libmhash dev files."; exit 1 |
11064 fi | 11076 fi |
11065 | 11077 |
11066 | 11078 |
11211 fi | 11223 fi |
11212 | 11224 |
11213 if test -z $SITELISP; then | 11225 if test -z $SITELISP; then |
11214 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode | 11226 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode |
11215 fi | 11227 fi |
11228 | |
11216 | 11229 |
11217 | 11230 |
11218 | 11231 |
11219 | 11232 |
11220 | 11233 |
13563 | 13576 |
13564 | 13577 |
13565 cat <<EOF | 13578 cat <<EOF |
13566 | 13579 |
13567 Ur/Web configuration: | 13580 Ur/Web configuration: |
13568 bin directory: BIN $BIN | 13581 bin directory: BIN $BIN |
13569 lib directory: LIB $LIB | 13582 lib directory: LIB $LIB |
13570 include directory: INCLUDE $INCLUDE | 13583 include directory: INCLUDE $INCLUDE |
13571 site-lisp directory: SITELISP $SITELISP | 13584 site-lisp directory: SITELISP $SITELISP |
13572 Extra GCC args: GCCARGS $GCCARGS | 13585 mhash lib directory: MHASH_LIB_DIR $MHASH_LIB_DIR |
13586 Extra GCC args: GCCARGS $GCCARGS | |
13573 EOF | 13587 EOF |