2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 # Find the correct PATH separator. Usually this is `:', but
553 # DJGPP uses `;' like DOS.
554 if test "X${PATH_SEPARATOR+set}" != Xset; then
555 UNAME=${UNAME-`uname 2>/dev/null`}
557 *-DOS) lt_cv_sys_path_separator=';' ;;
558 *) lt_cv_sys_path_separator=':' ;;
560 PATH_SEPARATOR=$lt_cv_sys_path_separator
564 # Check that we are running under the correct shell.
565 SHELL=${CONFIG_SHELL-/bin/sh}
569 # Remove one level of quotation (which was required for Make).
570 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
575 if test "X$1" = X--no-reexec; then
576 # Discard the --no-reexec flag, and continue.
578 elif test "X$1" = X--fallback-echo; then
579 # Avoid inline document here, it may be left over
581 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
582 # Yippee, $echo works!
585 # Restart under the correct shell.
586 exec $SHELL "$0" --no-reexec ${1+"$@"}
589 if test "X$1" = X--fallback-echo; then
590 # used as fallback echo
598 # The HP-UX ksh and POSIX shell print the target directory to stdout
600 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
602 if test -z "$ECHO"; then
603 if test "X${echo_test_string+set}" != Xset; then
604 # find a string as large as possible, as long as the shell can cope with it
605 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
606 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
607 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
608 echo_test_string="`eval $cmd`" &&
609 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
616 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # The Solaris, AIX, and Digital Unix default echo programs unquote
622 # backslashes. This makes it impossible to quote backslashes using
623 # echo "$something" | sed 's/\\/\\\\/g'
625 # So, first we look for a working echo in the user's PATH.
627 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
628 for dir in $PATH /usr/ucb; do
629 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
630 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
639 if test "X$echo" = Xecho; then
640 # We didn't find a better echo, so look for alternatives.
641 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 # This shell has a builtin print -r that does the trick.
646 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
647 test "X$CONFIG_SHELL" != X/bin/ksh; then
648 # If we have ksh, try running configure again with it.
649 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
650 export ORIGINAL_CONFIG_SHELL
651 CONFIG_SHELL=/bin/ksh
653 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
657 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
658 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
662 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
668 SHELL="$CONFIG_SHELL"
670 echo="$CONFIG_SHELL $0 --fallback-echo"
671 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
672 test "X$echo_testing_string" = 'X\t' &&
673 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
674 test "X$echo_testing_string" = "X$echo_test_string"; then
675 echo="$CONFIG_SHELL $0 --fallback-echo"
677 # maybe with a smaller string...
680 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
681 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
688 if test "$prev" != 'sed 50q "$0"'; then
689 echo_test_string=`eval $prev`
690 export echo_test_string
691 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
693 # Oops. We lost completely, so just stick with echo.
702 # Copy echo and quote the copy suitably for passing to libtool from
703 # the Makefile, instead of quoting the original, which is used later.
705 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
706 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
711 exec 7<&0 </dev/null 6>&1
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
721 ac_default_prefix=/usr/local
723 ac_config_libobj_dir=.
729 SHELL=${CONFIG_SHELL-/bin/sh}
731 # Identity of this package.
738 ac_unique_file=".version"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
752 # ifdef HAVE_STDLIB_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
784 program_transform_name
875 ac_precious_vars='build_alias
893 # Initialize some variables set by options.
895 ac_init_version=false
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
905 program_transform_name=s,x,x,
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
951 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 # Accept the important Cygnus configure options, so we can diagnose typos.
957 case $ac_dashdash$ac_option in
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
979 cache_file=config.cache ;;
981 -datadir | --datadir | --datadi | --datad)
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
993 -disable-* | --disable-*)
994 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998 { (exit 1); exit 1; }; }
999 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1000 eval enable_$ac_feature=no ;;
1002 -docdir | --docdir | --docdi | --doc | --do)
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1012 -enable-* | --enable-*)
1013 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1019 eval enable_$ac_feature=\$ac_optarg ;;
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 htmldir=$ac_optarg ;;
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1064 -libdir | --libdir | --libdi | --libd)
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1155 -psdir | --psdir | --psdi | --psd | --ps)
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 { echo "$as_me: error: invalid package name: $ac_package" >&2
1214 { (exit 1); exit 1; }; }
1215 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1216 eval with_$ac_package=\$ac_optarg ;;
1218 -without-* | --without-*)
1219 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=no ;;
1228 # Obsolete; use --with-x.
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) { echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247 { (exit 1); exit 1; }; }
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255 { (exit 1); exit 1; }; }
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 { echo "$as_me: error: missing argument to $ac_option" >&2
1273 { (exit 1); exit 1; }; }
1276 # Be sure to have absolute directory names.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288 { (exit 1); exit 1; }; }
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312 test "$silent" = yes && exec 6>/dev/null
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 { echo "$as_me: error: Working directory cannot be determined" >&2
1319 { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 { echo "$as_me: error: pwd does not report name of working directory" >&2
1322 { (exit 1); exit 1; }; }
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$0" ||
1330 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$0" : 'X\(//\)[^/]' \| \
1332 X"$0" : 'X\(//\)$' \| \
1333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1357 ac_srcdir_defaulted=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362 { (exit 1); exit 1; }; }
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1367 { (exit 1); exit 1; }; }
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1393 \`configure' configures this package to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 if test -n "$ac_init_help"; then
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-ucsim compile ucsim frontend
1464 --enable-dlso compile dynamically loadable shared libraries
1465 --disable-51 do not compile simulator for MCS51
1466 --disable-avr do not compile simulator for AVR
1467 --disable-z80 do not compile simulator for Z80
1468 --disable-hc08 do not compile simulator for hc08
1469 --enable-xa compile simulator for XA
1470 --enable-serio compile serio GUI tool (needs curses)
1471 --enable-statistic compile statistical features (slower simulation)
1472 --enable-shared=PKGS build shared libraries default=yes
1473 --enable-static=PKGS build static libraries default=yes
1474 --enable-fast-install=PKGS optimize for fast installation default=yes
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-gnu-ld assume the C compiler uses GNU ld default=no
1481 --with-pic try to use only PIC/non-PIC objects default=use both
1483 Some influential environment variables:
1484 docdir documentation installation directory
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1492 CXXCPP C++ preprocessor
1493 CC C compiler command
1494 CFLAGS C compiler flags
1496 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1497 the first program found out of: `bison -y', `byacc', `yacc'.
1498 YFLAGS The list of arguments that will be passed by default to $YACC.
1499 This script will default YFLAGS to the empty string to avoid a
1500 default value of `-d' given by some make applications.
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" || continue
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1532 .) # We are building in place.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1556 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1566 generated by GNU Autoconf 2.61
1568 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1569 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1579 It was created by $as_me, which was
1580 generated by GNU Autoconf 2.61. Invocation command line was
1592 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1601 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1602 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1603 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1604 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1605 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1606 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1607 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir=.
1616 echo "PATH: $as_dir"
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_must_keep_next=false
1646 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648 | -silent | --silent | --silen | --sile | --sil)
1651 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657 if test $ac_must_keep_next = true; then
1658 ac_must_keep_next=false # Got value, back to normal.
1661 *=* | --config-cache | -C | -disable-* | --disable-* \
1662 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664 | -with-* | --with-* | -without-* | --without-* | --x)
1665 case "$ac_configure_args0 " in
1666 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669 -* ) ac_must_keep_next=true ;;
1672 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log. We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686 # Save into config.log some information that might help in debugging.
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1696 # The following way of writing the cache mishandles newlines in values,
1698 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699 eval ac_val=\$$ac_var
1703 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707 _ | IFS | as_nl) ;; #(
1708 *) $as_unset $ac_var ;;
1713 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714 *${as_nl}ac_space=\ *)
1716 "s/'\''/'\''\\\\'\'''\''/g;
1717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1733 for ac_var in $ac_subst_vars
1735 eval ac_val=\$$ac_var
1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 echo "$ac_var='\''$ac_val'\''"
1743 if test -n "$ac_subst_files"; then
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1750 for ac_var in $ac_subst_files
1752 eval ac_val=\$$ac_var
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 echo "$ac_var='\''$ac_val'\''"
1761 if test -s confdefs.h; then
1771 test "$ac_signal" != 0 &&
1772 echo "$as_me: caught signal $ac_signal"
1773 echo "$as_me: exit $exit_status"
1775 rm -f core *.core core.conftest.* &&
1776 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779 for ac_signal in 1 2 13 15; do
1780 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1787 # Predefined preprocessor variables.
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817 set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 set x "$ac_default_prefix/share/config.site" \
1822 "$ac_default_prefix/etc/config.site"
1827 if test -r "$ac_site_file"; then
1828 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830 sed 's/^/| /' "$ac_site_file" >&5
1835 if test -r "$cache_file"; then
1836 # Some versions of bash will fail to source /dev/null (special
1837 # files actually), so we avoid doing that.
1838 if test -f "$cache_file"; then
1839 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1842 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843 *) . "./$cache_file";;
1847 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1852 # Check that the precious variables saved in the cache have kept the same
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857 eval ac_new_set=\$ac_env_${ac_var}_set
1858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859 eval ac_new_val=\$ac_env_${ac_var}_value
1860 case $ac_old_set,$ac_new_set in
1862 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1871 if test "x$ac_old_val" != "x$ac_new_val"; then
1872 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1875 echo "$as_me: former value: $ac_old_val" >&2;}
1876 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1877 echo "$as_me: current value: $ac_new_val" >&2;}
1878 ac_cache_corrupted=:
1881 # Pass precious variables to config.status.
1882 if test "$ac_new_set" = set; then
1884 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885 *) ac_arg=$ac_var=$ac_new_val ;;
1887 case " $ac_configure_args " in
1888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1889 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 if $ac_cache_corrupted; then
1894 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898 { (exit 1); exit 1; }; }
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924 ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
1927 for ac_prog in gawk mawk nawk awk
1929 # Extract the first word of "$ac_prog", so it can be a program name with args.
1930 set dummy $ac_prog; ac_word=$2
1931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1933 if test "${ac_cv_prog_AWK+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$AWK"; then
1937 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1946 ac_cv_prog_AWK="$ac_prog"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 if test -n "$AWK"; then
1958 { echo "$as_me:$LINENO: result: $AWK" >&5
1959 echo "${ECHO_T}$AWK" >&6; }
1961 { echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6; }
1966 test -n "$AWK" && break
1970 { echo "$as_me:$LINENO: checking version of the package" >&5
1971 echo $ECHO_N "checking version of the package... $ECHO_C" >&6; }
1972 if test -f ${srcdir}/.version; then
1973 { read VERSION; } < ${srcdir}/.version
1974 { echo "$as_me:$LINENO: result: $VERSION" >&5
1975 echo "${ECHO_T}$VERSION" >&6; }
1978 { echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1979 echo "${ECHO_T}unknown using 0.0.0" >&6; }
1981 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1982 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1983 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1988 cat >>confdefs.h <<_ACEOF
1989 #define VERSIONSTR "${VERSION}"
1992 cat >>confdefs.h <<_ACEOF
1993 #define VERSIONHI $VERSIONHI
1996 cat >>confdefs.h <<_ACEOF
1997 #define VERSIONLO $VERSIONLO
2000 cat >>confdefs.h <<_ACEOF
2001 #define VERSIONP $VERSIONP
2007 # *nix default: "${datadir}/sdcc/doc"
2009 if test "${docdir}" = ""; then
2010 docdir="\${datadir}"/sdcc/doc
2014 # Check whether --enable-ucsim was given.
2015 if test "${enable_ucsim+set}" = set; then
2016 enableval=$enable_ucsim; if test $enable_ucsim != "no"; then
2024 # Check whether --enable-dlso was given.
2025 if test "${enable_dlso+set}" = set; then
2026 enableval=$enable_dlso; if test $enable_dlso != "no"; then
2033 # Check whether --enable-51 was given.
2034 if test "${enable_51+set}" = set; then
2035 enableval=$enable_51; if test $enable_51 != "no"; then
2042 # Check whether --enable-avr was given.
2043 if test "${enable_avr+set}" = set; then
2044 enableval=$enable_avr; if test $enable_avr != "no"; then
2051 # Check whether --enable-z80 was given.
2052 if test "${enable_z80+set}" = set; then
2053 enableval=$enable_z80; if test $enable_z80 != "no"; then
2060 # Check whether --enable-hc08 was given.
2061 if test "${enable_hc08+set}" = set; then
2062 enableval=$enable_hc08; if test $enable_hc08 != "no"; then
2069 # Check whether --enable-xa was given.
2070 if test "${enable_xa+set}" = set; then
2071 enableval=$enable_xa; if test $enable_xa != "no"; then
2078 # Check whether --enable-portmon was given.
2079 if test "${enable_portmon+set}" = set; then
2080 enableval=$enable_portmon; if test $enable_serio != "no"; then
2096 # Check whether --enable-statistic was given.
2097 if test "${enable_statistic+set}" = set; then
2098 enableval=$enable_statistic; if test $enable_statistic != "no"; then
2099 enable_statistic="yes"
2102 enable_statistic="no"
2105 cat >>confdefs.h <<_ACEOF
2106 #define STATISTIC $enable_statistic
2112 #-------------------
2114 ac_cpp='$CXXCPP $CPPFLAGS'
2115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2118 if test -z "$CXX"; then
2119 if test -n "$CCC"; then
2122 if test -n "$ac_tool_prefix"; then
2123 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2129 if test "${ac_cv_prog_CXX+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 if test -n "$CXX"; then
2133 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 test -z "$as_dir" && as_dir=.
2140 for ac_exec_ext in '' $ac_executable_extensions; do
2141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2142 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 if test -n "$CXX"; then
2154 { echo "$as_me:$LINENO: result: $CXX" >&5
2155 echo "${ECHO_T}$CXX" >&6; }
2157 { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2162 test -n "$CXX" && break
2165 if test -z "$CXX"; then
2167 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy $ac_prog; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$ac_ct_CXX"; then
2177 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_ac_ct_CXX="$ac_prog"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2197 if test -n "$ac_ct_CXX"; then
2198 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2199 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2206 test -n "$ac_ct_CXX" && break
2209 if test "x$ac_ct_CXX" = x; then
2212 case $cross_compiling:$ac_tool_warned in
2214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2215 whose name does not start with the host triplet. If you think this
2216 configuration is useful to you, please write to autoconf@gnu.org." >&5
2217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2218 whose name does not start with the host triplet. If you think this
2219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2220 ac_tool_warned=yes ;;
2228 # Provide some information about the compiler.
2229 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2230 ac_compiler=`set X $ac_compile; echo $2`
2231 { (ac_try="$ac_compiler --version >&5"
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2237 (eval "$ac_compiler --version >&5") 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }
2241 { (ac_try="$ac_compiler -v >&5"
2243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244 *) ac_try_echo=$ac_try;;
2246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2247 (eval "$ac_compiler -v >&5") 2>&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }
2251 { (ac_try="$ac_compiler -V >&5"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_compiler -V >&5") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2262 cat >conftest.$ac_ext <<_ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 ac_clean_files_save=$ac_clean_files
2278 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2279 # Try to create an executable without -o first, disregard a.out.
2280 # It will help us diagnose broken compilers, and finding out an intuition
2282 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2283 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2284 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2286 # List of possible output files, starting from the most likely.
2287 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2288 # only as a last resort. b.out is created by i960 compilers.
2289 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2291 # The IRIX 6 linker writes into existing files which may not be
2292 # executable, retaining their permissions. Remove them first so a
2293 # subsequent execution test works.
2295 for ac_file in $ac_files
2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2304 if { (ac_try="$ac_link_default"
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310 (eval "$ac_link_default") 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
2314 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2315 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2316 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2317 # so that the user can short-circuit this test for compilers unknown to
2319 for ac_file in $ac_files ''
2321 test -f "$ac_file" || continue
2323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2326 # We found the default executable, but exeext='' is most
2330 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334 # We set ac_cv_exeext here because the later test for it is not
2335 # safe: cross compilers may not add the suffix if given an `-o'
2336 # argument, so we may need to know it at that point already.
2337 # Even if this section looks crufty: it has the advantage of
2344 test "$ac_cv_exeext" = no && ac_cv_exeext=
2350 { echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6; }
2352 if test -z "$ac_file"; then
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2356 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: C++ compiler cannot create executables
2359 See \`config.log' for more details." >&2;}
2360 { (exit 77); exit 77; }; }
2363 ac_exeext=$ac_cv_exeext
2365 # Check that the compiler produces executables we can run. If not, either
2366 # the compiler is broken, or we cross compile.
2367 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2368 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2369 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2370 # If not cross compiling, check that we can run a simple program.
2371 if test "$cross_compiling" != yes; then
2372 if { ac_try='./$ac_file'
2373 { (case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_try") 2>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2384 if test "$cross_compiling" = maybe; then
2387 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2388 If you meant to cross compile, use \`--host'.
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: cannot run C++ compiled programs.
2391 If you meant to cross compile, use \`--host'.
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2397 { echo "$as_me:$LINENO: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6; }
2400 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2401 ac_clean_files=$ac_clean_files_save
2402 # Check that the compiler produces executables we can run. If not, either
2403 # the compiler is broken, or we cross compile.
2404 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2405 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2406 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2407 echo "${ECHO_T}$cross_compiling" >&6; }
2409 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2410 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2411 if { (ac_try="$ac_link"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_link") 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2422 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2423 # work properly (i.e., refer to `conftest.exe'), while it won't with
2425 for ac_file in conftest.exe conftest conftest.*; do
2426 test -f "$ac_file" || continue
2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2429 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2442 rm -f conftest$ac_cv_exeext
2443 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2444 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2446 rm -f conftest.$ac_ext
2447 EXEEXT=$ac_cv_exeext
2449 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2450 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2451 if test "${ac_cv_objext+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 cat >conftest.$ac_ext <<_ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2469 rm -f conftest.o conftest.obj
2470 if { (ac_try="$ac_compile"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compile") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; then
2480 for ac_file in conftest.o conftest.obj conftest.*; do
2481 test -f "$ac_file" || continue;
2483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2484 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2495 See \`config.log' for more details." >&2;}
2496 { (exit 1); exit 1; }; }
2499 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2501 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2502 echo "${ECHO_T}$ac_cv_objext" >&6; }
2503 OBJEXT=$ac_cv_objext
2505 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2506 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2507 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 cat >conftest.$ac_ext <<_ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2528 rm -f conftest.$ac_objext
2529 if { (ac_try="$ac_compile"
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_compile") 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } && {
2542 test -z "$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2544 } && test -s conftest.$ac_objext; then
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2557 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2558 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2559 GXX=`test $ac_compiler_gnu = yes && echo yes`
2560 ac_test_CXXFLAGS=${CXXFLAGS+set}
2561 ac_save_CXXFLAGS=$CXXFLAGS
2562 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2563 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_cxx_g+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2568 ac_cxx_werror_flag=yes
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2586 rm -f conftest.$ac_objext
2587 if { (ac_try="$ac_compile"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_compile") 2>conftest.er1
2595 grep -v '^ *+' conftest.er1 >conftest.err
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } && {
2600 test -z "$ac_cxx_werror_flag" ||
2601 test ! -s conftest.err
2602 } && test -s conftest.$ac_objext; then
2603 ac_cv_prog_cxx_g=yes
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2609 cat >conftest.$ac_ext <<_ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2624 rm -f conftest.$ac_objext
2625 if { (ac_try="$ac_compile"
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_compile") 2>conftest.er1
2633 grep -v '^ *+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } && {
2638 test -z "$ac_cxx_werror_flag" ||
2639 test ! -s conftest.err
2640 } && test -s conftest.$ac_objext; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2663 rm -f conftest.$ac_objext
2664 if { (ac_try="$ac_compile"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compile") 2>conftest.er1
2672 grep -v '^ *+' conftest.er1 >conftest.err
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } && {
2677 test -z "$ac_cxx_werror_flag" ||
2678 test ! -s conftest.err
2679 } && test -s conftest.$ac_objext; then
2680 ac_cv_prog_cxx_g=yes
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2697 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2699 if test "$ac_test_CXXFLAGS" = set; then
2700 CXXFLAGS=$ac_save_CXXFLAGS
2701 elif test $ac_cv_prog_cxx_g = yes; then
2702 if test "$GXX" = yes; then
2708 if test "$GXX" = yes; then
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 ac_cpp='$CXXCPP $CPPFLAGS'
2722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2725 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2726 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
2727 if test -z "$CXXCPP"; then
2728 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 # Double quotes because CXXCPP needs to be expanded
2732 for CXXCPP in "$CXX -E" "/lib/cpp"
2735 for ac_cxx_preproc_warn_flag in '' yes
2737 # Use a header file that comes with gcc, so configuring glibc
2738 # with a fresh cross-compiler works.
2739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2740 # <limits.h> exists even on freestanding compilers.
2741 # On the NeXT, cc -E runs the code through the compiler's parser,
2742 # not just through cpp. "Syntax error" is here to catch this case.
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2750 # include <limits.h>
2752 # include <assert.h>
2756 if { (ac_try="$ac_cpp conftest.$ac_ext"
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } >/dev/null && {
2769 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2770 test ! -s conftest.err
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2777 # Broken: fails on valid input.
2781 rm -f conftest.err conftest.$ac_ext
2783 # OK, works on sane cases. Now check whether nonexistent headers
2784 # can be detected and how.
2785 cat >conftest.$ac_ext <<_ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2791 #include <ac_nonexistent.h>
2793 if { (ac_try="$ac_cpp conftest.$ac_ext"
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2801 grep -v '^ *+' conftest.er1 >conftest.err
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev/null && {
2806 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2807 test ! -s conftest.err
2809 # Broken: success on invalid input.
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 # Passes both tests.
2820 rm -f conftest.err conftest.$ac_ext
2823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2824 rm -f conftest.err conftest.$ac_ext
2825 if $ac_preproc_ok; then
2830 ac_cv_prog_CXXCPP=$CXXCPP
2833 CXXCPP=$ac_cv_prog_CXXCPP
2835 ac_cv_prog_CXXCPP=$CXXCPP
2837 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
2838 echo "${ECHO_T}$CXXCPP" >&6; }
2840 for ac_cxx_preproc_warn_flag in '' yes
2842 # Use a header file that comes with gcc, so configuring glibc
2843 # with a fresh cross-compiler works.
2844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2845 # <limits.h> exists even on freestanding compilers.
2846 # On the NeXT, cc -E runs the code through the compiler's parser,
2847 # not just through cpp. "Syntax error" is here to catch this case.
2848 cat >conftest.$ac_ext <<_ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2855 # include <limits.h>
2857 # include <assert.h>
2861 if { (ac_try="$ac_cpp conftest.$ac_ext"
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2869 grep -v '^ *+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } >/dev/null && {
2874 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2875 test ! -s conftest.err
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2882 # Broken: fails on valid input.
2886 rm -f conftest.err conftest.$ac_ext
2888 # OK, works on sane cases. Now check whether nonexistent headers
2889 # can be detected and how.
2890 cat >conftest.$ac_ext <<_ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2896 #include <ac_nonexistent.h>
2898 if { (ac_try="$ac_cpp conftest.$ac_ext"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2906 grep -v '^ *+' conftest.er1 >conftest.err
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } >/dev/null && {
2911 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2912 test ! -s conftest.err
2914 # Broken: success on invalid input.
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2920 # Passes both tests.
2925 rm -f conftest.err conftest.$ac_ext
2928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2929 rm -f conftest.err conftest.$ac_ext
2930 if $ac_preproc_ok; then
2933 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2936 See \`config.log' for more details." >&2;}
2937 { (exit 1); exit 1; }; }
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2948 if test -f "$ac_dir/install-sh"; then
2950 ac_install_sh="$ac_aux_dir/install-sh -c"
2952 elif test -f "$ac_dir/install.sh"; then
2954 ac_install_sh="$ac_aux_dir/install.sh -c"
2956 elif test -f "$ac_dir/shtool"; then
2958 ac_install_sh="$ac_aux_dir/shtool install -c"
2962 if test -z "$ac_aux_dir"; then
2963 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2964 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2965 { (exit 1); exit 1; }; }
2968 # These three variables are undocumented and unsupported,
2969 # and are intended to be withdrawn in a future Autoconf release.
2970 # They can cause serious problems if a builder's source tree is in a directory
2971 # whose full name contains unusual characters.
2972 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2973 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2974 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2977 # Find a good install program. We prefer a C program (faster),
2978 # so one script is as good as another. But avoid the broken or
2979 # incompatible versions:
2980 # SysV /etc/install, /usr/sbin/install
2981 # SunOS /usr/etc/install
2982 # IRIX /sbin/install
2984 # AmigaOS /C/install, which installs bootblocks on floppy discs
2985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2988 # OS/2's system install, which has a completely different semantic
2989 # ./install, which can be erroneously created by make from ./install.sh.
2990 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2991 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2992 if test -z "$INSTALL"; then
2993 if test "${ac_cv_path_install+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 # Account for people who put trailing slashes in PATH elements.
3003 ./ | .// | /cC/* | \
3004 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3005 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3008 # OSF1 and SCO ODT 3.0 have their own names for install.
3009 # Don't use installbsd from OSF since it installs stuff as root
3011 for ac_prog in ginstall scoinst install; do
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3014 if test $ac_prog = install &&
3015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3016 # AIX install. It has an incompatible calling convention.
3018 elif test $ac_prog = install &&
3019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3020 # program-specific install script used by HP pwplus--don't use.
3023 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3036 if test "${ac_cv_path_install+set}" = set; then
3037 INSTALL=$ac_cv_path_install
3039 # As a last resort, use the slow shell script. Don't cache a
3040 # value for INSTALL within a source directory, because that will
3041 # break other packages using the cache if that directory is
3042 # removed, or if the value is a relative name.
3043 INSTALL=$ac_install_sh
3046 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3047 echo "${ECHO_T}$INSTALL" >&6; }
3049 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3050 # It thinks the first close brace ends the variable substitution.
3051 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3053 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3062 if test "${ac_cv_prog_RANLIB+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 if test -n "$RANLIB"; then
3066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 RANLIB=$ac_cv_prog_RANLIB
3086 if test -n "$RANLIB"; then
3087 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3088 echo "${ECHO_T}$RANLIB" >&6; }
3090 { echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6; }
3096 if test -z "$ac_cv_prog_RANLIB"; then
3097 ac_ct_RANLIB=$RANLIB
3098 # Extract the first word of "ranlib", so it can be a program name with args.
3099 set dummy ranlib; ac_word=$2
3100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3102 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 if test -n "$ac_ct_RANLIB"; then
3106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 ac_cv_prog_ac_ct_RANLIB="ranlib"
3116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3126 if test -n "$ac_ct_RANLIB"; then
3127 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3128 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3130 { echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6; }
3134 if test "x$ac_ct_RANLIB" = x; then
3137 case $cross_compiling:$ac_tool_warned in
3139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3140 whose name does not start with the host triplet. If you think this
3141 configuration is useful to you, please write to autoconf@gnu.org." >&5
3142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3143 whose name does not start with the host triplet. If you think this
3144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3145 ac_tool_warned=yes ;;
3147 RANLIB=$ac_ct_RANLIB
3150 RANLIB="$ac_cv_prog_RANLIB"
3154 # Extract the first word of "strip", so it can be a program name with args.
3155 set dummy strip; ac_word=$2
3156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3158 if test "${ac_cv_prog_STRIP+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 if test -n "$STRIP"; then
3162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_prog_STRIP="strip"
3172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3182 STRIP=$ac_cv_prog_STRIP
3183 if test -n "$STRIP"; then
3184 { echo "$as_me:$LINENO: result: $STRIP" >&5
3185 echo "${ECHO_T}$STRIP" >&6; }
3187 { echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6; }
3194 # Check whether --enable-shared was given.
3195 if test "${enable_shared+set}" = set; then
3196 enableval=$enable_shared; p=${PACKAGE-default}
3198 yes) enable_shared=yes ;;
3199 no) enable_shared=no ;;
3202 # Look at the argument we got. We use all the common list separators.
3203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3204 for pkg in $enableval; do
3205 if test "X$pkg" = "X$p"; then
3216 # Check whether --enable-static was given.
3217 if test "${enable_static+set}" = set; then
3218 enableval=$enable_static; p=${PACKAGE-default}
3220 yes) enable_static=yes ;;
3221 no) enable_static=no ;;
3224 # Look at the argument we got. We use all the common list separators.
3225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3226 for pkg in $enableval; do
3227 if test "X$pkg" = "X$p"; then
3238 # Check whether --enable-fast-install was given.
3239 if test "${enable_fast_install+set}" = set; then
3240 enableval=$enable_fast_install; p=${PACKAGE-default}
3242 yes) enable_fast_install=yes ;;
3243 no) enable_fast_install=no ;;
3245 enable_fast_install=no
3246 # Look at the argument we got. We use all the common list separators.
3247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3248 for pkg in $enableval; do
3249 if test "X$pkg" = "X$p"; then
3250 enable_fast_install=yes
3257 enable_fast_install=yes
3260 # Make sure we can run config.sub.
3261 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3262 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3263 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3264 { (exit 1); exit 1; }; }
3266 { echo "$as_me:$LINENO: checking build system type" >&5
3267 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3268 if test "${ac_cv_build+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 ac_build_alias=$build_alias
3272 test "x$ac_build_alias" = x &&
3273 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3274 test "x$ac_build_alias" = x &&
3275 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3276 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3277 { (exit 1); exit 1; }; }
3278 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3279 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3280 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3281 { (exit 1); exit 1; }; }
3284 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3285 echo "${ECHO_T}$ac_cv_build" >&6; }
3286 case $ac_cv_build in
3288 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3289 echo "$as_me: error: invalid value of canonical build" >&2;}
3290 { (exit 1); exit 1; }; };;
3293 ac_save_IFS=$IFS; IFS='-'
3299 # Remember, the first character of IFS is used to create $*,
3300 # except with old shells:
3303 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3306 { echo "$as_me:$LINENO: checking host system type" >&5
3307 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3308 if test "${ac_cv_host+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 if test "x$host_alias" = x; then
3312 ac_cv_host=$ac_cv_build
3314 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3315 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3316 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3317 { (exit 1); exit 1; }; }
3321 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3322 echo "${ECHO_T}$ac_cv_host" >&6; }
3325 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3326 echo "$as_me: error: invalid value of canonical host" >&2;}
3327 { (exit 1); exit 1; }; };;
3330 ac_save_IFS=$IFS; IFS='-'
3336 # Remember, the first character of IFS is used to create $*,
3337 # except with old shells:
3340 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 if test -n "$ac_tool_prefix"; then
3349 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3353 if test "${ac_cv_prog_CC+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 if test -n "$CC"; then
3378 { echo "$as_me:$LINENO: result: $CC" >&5
3379 echo "${ECHO_T}$CC" >&6; }
3381 { echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6; }
3387 if test -z "$ac_cv_prog_CC"; then
3389 # Extract the first word of "gcc", so it can be a program name with args.
3390 set dummy gcc; ac_word=$2
3391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$ac_ct_CC"; then
3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406 ac_cv_prog_ac_ct_CC="gcc"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417 if test -n "$ac_ct_CC"; then
3418 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3419 echo "${ECHO_T}$ac_ct_CC" >&6; }
3421 { echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6; }
3425 if test "x$ac_ct_CC" = x; then
3428 case $cross_compiling:$ac_tool_warned in
3430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3431 whose name does not start with the host triplet. If you think this
3432 configuration is useful to you, please write to autoconf@gnu.org." >&5
3433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3434 whose name does not start with the host triplet. If you think this
3435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3436 ac_tool_warned=yes ;;
3444 if test -z "$CC"; then
3445 if test -n "$ac_tool_prefix"; then
3446 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}cc; ac_word=$2
3448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3450 if test "${ac_cv_prog_CC+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC="$CC" # Let the user override the test.
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_CC="${ac_tool_prefix}cc"
3464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 if test -n "$CC"; then
3475 { echo "$as_me:$LINENO: result: $CC" >&5
3476 echo "${ECHO_T}$CC" >&6; }
3478 { echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6; }
3485 if test -z "$CC"; then
3486 # Extract the first word of "cc", so it can be a program name with args.
3487 set dummy cc; ac_word=$2
3488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3490 if test "${ac_cv_prog_CC+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 if test -n "$CC"; then
3494 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3505 ac_prog_rejected=yes
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 if test $ac_prog_rejected = yes; then
3517 # We found a bogon in the path, so make sure we never use it.
3518 set dummy $ac_cv_prog_CC
3520 if test $# != 0; then
3521 # We chose a different compiler from the bogus one.
3522 # However, it has the same basename, so the bogon will be chosen
3523 # first if we set CC to just the basename; use the full file name.
3525 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3531 if test -n "$CC"; then
3532 { echo "$as_me:$LINENO: result: $CC" >&5
3533 echo "${ECHO_T}$CC" >&6; }
3535 { echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6; }
3541 if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 for ac_prog in cl.exe
3545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3549 if test "${ac_cv_prog_CC+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 if test -n "$CC"; then
3574 { echo "$as_me:$LINENO: result: $CC" >&5
3575 echo "${ECHO_T}$CC" >&6; }
3577 { echo "$as_me:$LINENO: result: no" >&5
3578 echo "${ECHO_T}no" >&6; }
3582 test -n "$CC" && break
3585 if test -z "$CC"; then
3587 for ac_prog in cl.exe
3589 # Extract the first word of "$ac_prog", so it can be a program name with args.
3590 set dummy $ac_prog; ac_word=$2
3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test -n "$ac_ct_CC"; then
3597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_ac_ct_CC="$ac_prog"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617 if test -n "$ac_ct_CC"; then
3618 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3619 echo "${ECHO_T}$ac_ct_CC" >&6; }
3621 { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3626 test -n "$ac_ct_CC" && break
3629 if test "x$ac_ct_CC" = x; then
3632 case $cross_compiling:$ac_tool_warned in
3634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3635 whose name does not start with the host triplet. If you think this
3636 configuration is useful to you, please write to autoconf@gnu.org." >&5
3637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3638 whose name does not start with the host triplet. If you think this
3639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3640 ac_tool_warned=yes ;;
3649 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3650 See \`config.log' for more details." >&5
3651 echo "$as_me: error: no acceptable C compiler found in \$PATH
3652 See \`config.log' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3655 # Provide some information about the compiler.
3656 echo "$as_me:$LINENO: checking for C compiler version" >&5
3657 ac_compiler=`set X $ac_compile; echo $2`
3658 { (ac_try="$ac_compiler --version >&5"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664 (eval "$ac_compiler --version >&5") 2>&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }
3668 { (ac_try="$ac_compiler -v >&5"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_compiler -v >&5") 2>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }
3678 { (ac_try="$ac_compiler -V >&5"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_compiler -V >&5") 2>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }
3689 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3690 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3691 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 cat >conftest.$ac_ext <<_ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3712 rm -f conftest.$ac_objext
3713 if { (ac_try="$ac_compile"
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_compile") 2>conftest.er1
3721 grep -v '^ *+' conftest.er1 >conftest.err
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } && {
3726 test -z "$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 } && test -s conftest.$ac_objext; then
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3741 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3742 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3743 GCC=`test $ac_compiler_gnu = yes && echo yes`
3744 ac_test_CFLAGS=${CFLAGS+set}
3745 ac_save_CFLAGS=$CFLAGS
3746 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3747 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3748 if test "${ac_cv_prog_cc_g+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 ac_save_c_werror_flag=$ac_c_werror_flag
3752 ac_c_werror_flag=yes
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3770 rm -f conftest.$ac_objext
3771 if { (ac_try="$ac_compile"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_compile") 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } && {
3784 test -z "$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3786 } && test -s conftest.$ac_objext; then
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3793 cat >conftest.$ac_ext <<_ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3808 rm -f conftest.$ac_objext
3809 if { (ac_try="$ac_compile"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_compile") 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } && {
3822 test -z "$ac_c_werror_flag" ||
3823 test ! -s conftest.err
3824 } && test -s conftest.$ac_objext; then
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 ac_c_werror_flag=$ac_save_c_werror_flag
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3847 rm -f conftest.$ac_objext
3848 if { (ac_try="$ac_compile"
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_compile") 2>conftest.er1
3856 grep -v '^ *+' conftest.er1 >conftest.err
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && {
3861 test -z "$ac_c_werror_flag" ||
3862 test ! -s conftest.err
3863 } && test -s conftest.$ac_objext; then
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 ac_c_werror_flag=$ac_save_c_werror_flag
3881 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3882 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3883 if test "$ac_test_CFLAGS" = set; then
3884 CFLAGS=$ac_save_CFLAGS
3885 elif test $ac_cv_prog_cc_g = yes; then
3886 if test "$GCC" = yes; then
3892 if test "$GCC" = yes; then
3898 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3899 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3900 if test "${ac_cv_prog_cc_c89+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 ac_cv_prog_cc_c89=no
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3913 #include <sys/types.h>
3914 #include <sys/stat.h>
3915 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3916 struct buf { int x; };
3917 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3918 static char *e (p, i)
3924 static char *f (char * (*g) (char **, int), char **p, ...)
3929 s = g (p, va_arg (v,int));
3934 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3935 function prototypes and stuff, but not '\xHH' hex character constants.
3936 These don't provoke an error unfortunately, instead are silently treated
3937 as 'x'. The following induces an error, until -std is added to get
3938 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3939 array size at least. It's necessary to write '\x00'==0 to get something
3940 that's true only with -std. */
3941 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3943 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3944 inside strings and character constants. */
3946 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3948 int test (int i, double x);
3949 struct s1 {int (*f) (int a);};
3950 struct s2 {int (*f) (double a);};
3951 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3957 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3962 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3963 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3965 CC="$ac_save_CC $ac_arg"
3966 rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_compile") 2>conftest.er1
3975 grep -v '^ *+' conftest.er1 >conftest.err
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } && {
3980 test -z "$ac_c_werror_flag" ||
3981 test ! -s conftest.err
3982 } && test -s conftest.$ac_objext; then
3983 ac_cv_prog_cc_c89=$ac_arg
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3991 rm -f core conftest.err conftest.$ac_objext
3992 test "x$ac_cv_prog_cc_c89" != "xno" && break
3994 rm -f conftest.$ac_ext
3999 case "x$ac_cv_prog_cc_c89" in
4001 { echo "$as_me:$LINENO: result: none needed" >&5
4002 echo "${ECHO_T}none needed" >&6; } ;;
4004 { echo "$as_me:$LINENO: result: unsupported" >&5
4005 echo "${ECHO_T}unsupported" >&6; } ;;
4007 CC="$CC $ac_cv_prog_cc_c89"
4008 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4009 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 # Find the correct PATH separator. Usually this is `:', but
4020 # DJGPP uses `;' like DOS.
4021 if test "X${PATH_SEPARATOR+set}" != Xset; then
4022 UNAME=${UNAME-`uname 2>/dev/null`}
4024 *-DOS) lt_cv_sys_path_separator=';' ;;
4025 *) lt_cv_sys_path_separator=':' ;;
4027 PATH_SEPARATOR=$lt_cv_sys_path_separator
4031 # Check whether --with-gnu-ld was given.
4032 if test "${with_gnu_ld+set}" = set; then
4033 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4039 if test "$GCC" = yes; then
4040 # Check if gcc -print-prog-name=ld gives a path.
4041 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4042 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4045 # gcc leaves a trailing carriage return which upsets mingw
4046 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4048 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4051 # Accept absolute paths.
4052 [\\/]* | [A-Za-z]:[\\/]*)
4053 re_direlt='/[^/][^/]*/\.\./'
4054 # Canonicalize the path of ld
4055 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4056 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4057 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4059 test -z "$LD" && LD="$ac_prog"
4062 # If it fails, then pretend we aren't using GCC.
4066 # If it is relative, then search for the first ld in PATH.
4070 elif test "$with_gnu_ld" = yes; then
4071 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4072 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4074 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4075 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4077 if test "${lt_cv_path_LD+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -z "$LD"; then
4081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4082 for ac_dir in $PATH; do
4083 test -z "$ac_dir" && ac_dir=.
4084 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4085 lt_cv_path_LD="$ac_dir/$ac_prog"
4086 # Check to see if the program is GNU ld. I'd rather use --version,
4087 # but apparently some GNU ld's only accept -v.
4088 # Break only if it was the GNU/non-GNU ld that we prefer.
4089 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4090 test "$with_gnu_ld" != no && break
4092 test "$with_gnu_ld" != yes && break
4098 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4103 if test -n "$LD"; then
4104 { echo "$as_me:$LINENO: result: $LD" >&5
4105 echo "${ECHO_T}$LD" >&6; }
4107 { echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6; }
4110 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4111 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4112 { (exit 1); exit 1; }; }
4113 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4114 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4115 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4119 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4120 lt_cv_prog_gnu_ld=yes
4122 lt_cv_prog_gnu_ld=no
4125 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4126 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4127 with_gnu_ld=$lt_cv_prog_gnu_ld
4130 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4131 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4132 if test "${lt_cv_ld_reload_flag+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 lt_cv_ld_reload_flag='-r'
4137 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4138 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4139 reload_flag=$lt_cv_ld_reload_flag
4140 test -n "$reload_flag" && reload_flag=" $reload_flag"
4142 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4143 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4144 if test "${lt_cv_path_NM+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 if test -n "$NM"; then
4148 # Let the user override the test.
4151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4153 test -z "$ac_dir" && ac_dir=.
4154 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4155 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4156 # Check to see if the nm accepts a BSD-compat flag.
4157 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4158 # nm: unknown option "B" ignored
4159 # Tru64's nm complains that /dev/null is an invalid object file
4160 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4161 lt_cv_path_NM="$tmp_nm -B"
4163 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4164 lt_cv_path_NM="$tmp_nm -p"
4167 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4168 continue # so that we can try to find one that supports BSD flags
4173 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4178 { echo "$as_me:$LINENO: result: $NM" >&5
4179 echo "${ECHO_T}$NM" >&6; }
4181 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4182 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4184 if test "$LN_S" = "ln -s"; then
4185 { echo "$as_me:$LINENO: result: yes" >&5
4186 echo "${ECHO_T}yes" >&6; }
4188 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4189 echo "${ECHO_T}no, using $LN_S" >&6; }
4192 { echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4193 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
4194 if test "${lt_cv_deplibs_check_method+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 lt_cv_file_magic_cmd='$MAGIC_CMD'
4198 lt_cv_file_magic_test_file=
4199 lt_cv_deplibs_check_method='unknown'
4200 # Need to set the preceding variable on all platforms that support
4201 # interlibrary dependencies.
4202 # 'none' -- dependencies not supported.
4203 # `unknown' -- same as none, but documents that we really don't know.
4204 # 'pass_all' -- all dependencies passed with no checks.
4205 # 'test_compile' -- check by making test program.
4206 # 'file_magic [[regex]]' -- check by looking for files in library path
4207 # which responds to the $file_magic_cmd with a given egrep regex.
4208 # If you have `file' or equivalent on your system and you're not sure
4209 # whether `pass_all' will *always* work, you probably want this one.
4213 lt_cv_deplibs_check_method=pass_all
4217 lt_cv_deplibs_check_method=pass_all
4221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4222 lt_cv_file_magic_cmd='/usr/bin/file -L'
4223 lt_cv_file_magic_test_file=/shlib/libc.so
4226 cygwin* | mingw* | pw32*)
4227 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4228 lt_cv_file_magic_cmd='$OBJDUMP -f'
4231 darwin* | rhapsody*)
4232 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4233 lt_cv_file_magic_cmd='/usr/bin/file -L'
4235 rhapsody* | darwin1.[012])
4236 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4239 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4245 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4248 # Not sure whether the presence of OpenBSD here was a mistake.
4249 # Let's accept both of them until this is cleared up.
4250 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4251 lt_cv_file_magic_cmd=/usr/bin/file
4252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4256 lt_cv_deplibs_check_method=pass_all
4261 lt_cv_deplibs_check_method=pass_all
4265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4266 lt_cv_file_magic_cmd=/usr/bin/file
4267 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4270 irix5* | irix6* | nonstopux*)
4272 irix5* | nonstopux*)
4273 # this will be overridden with pass_all, but let us keep it just in case
4274 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4278 *-32|*"-32 ") libmagic=32-bit;;
4279 *-n32|*"-n32 ") libmagic=N32;;
4280 *-64|*"-64 ") libmagic=64-bit;;
4281 *) libmagic=never-match;;
4283 # this will be overridden with pass_all, but let us keep it just in case
4284 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4287 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4288 lt_cv_deplibs_check_method=pass_all
4291 # This must be Linux ELF.
4294 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4295 lt_cv_deplibs_check_method=pass_all ;;
4297 # glibc up to 2.1.1 does not perform some relocations on ARM
4298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4300 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4304 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4305 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4307 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4313 lt_cv_file_magic_cmd=/usr/bin/file
4314 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4318 lt_cv_file_magic_cmd=/usr/bin/file
4319 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4320 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4323 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4327 osf3* | osf4* | osf5*)
4328 # this will be overridden with pass_all, but let us keep it just in case
4329 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4330 lt_cv_file_magic_test_file=/shlib/libc.so
4331 lt_cv_deplibs_check_method=pass_all
4335 lt_cv_deplibs_check_method=pass_all
4339 lt_cv_deplibs_check_method=pass_all
4340 lt_cv_file_magic_test_file=/lib/libc.so
4343 sysv5uw[78]* | sysv4*uw2*)
4344 lt_cv_deplibs_check_method=pass_all
4347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4348 case $host_vendor in
4350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4354 lt_cv_deplibs_check_method=pass_all
4357 lt_cv_file_magic_cmd='/bin/file'
4358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4361 lt_cv_file_magic_cmd='/bin/file'
4362 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4363 lt_cv_file_magic_test_file=/lib/libc.so
4370 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4371 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4372 file_magic_cmd=$lt_cv_file_magic_cmd
4373 deplibs_check_method=$lt_cv_deplibs_check_method
4382 # Check for command to grab the raw symbol name followed by C symbol from nm.
4383 { echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4384 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6; }
4385 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 # These are sane defaults that work on at least a few old systems.
4390 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4392 # Character class describing NM global symbol codes.
4393 symcode='[BCDEGRST]'
4395 # Regexp to match symbols that can be accessed directly from C.
4396 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4398 # Transform the above into a raw symbol and a C symbol.
4399 symxfrm='\1 \2\3 \3'
4401 # Transform an extracted symbol line into a proper C declaration
4402 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4404 # Transform an extracted symbol line into symbol name and symbol address
4405 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4407 # Define system-specific variables.
4412 cygwin* | mingw* | pw32*)
4413 symcode='[ABCDGISTW]'
4415 hpux*) # Its linker distinguishes data from code symbols
4416 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4417 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4420 symcode='[BCDEGRST]'
4430 # Handle CRLF in mingw tool chain
4434 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4438 # If we're using GNU nm, then use its standard symbol codes.
4439 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4440 symcode='[ABCDGISTW]'
4443 # Try without a prefix undercore, then with it.
4444 for ac_symprfx in "" "_"; do
4446 # Write the raw and C identifiers.
4447 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4449 # Check to see that the pipe works correctly.
4452 cat > conftest.$ac_ext <<EOF
4457 void nm_test_func(){}
4461 int main(){nm_test_var='a';nm_test_func();return(0);}
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; then
4469 # Now try to grab the symbols.
4471 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4472 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && test -s "$nlist"; then
4476 # Try sorting and uniquifying the output.
4477 if sort "$nlist" | uniq > "$nlist"T; then
4478 mv -f "$nlist"T "$nlist"
4483 # Make sure that we snagged all the symbols we need.
4484 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4485 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4486 cat <<EOF > conftest.$ac_ext
4492 # Now generate the symbol file.
4493 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4495 cat <<EOF >> conftest.$ac_ext
4496 #if defined (__STDC__) && __STDC__
4497 # define lt_ptr void *
4499 # define lt_ptr char *
4503 /* The mapping between symbol names and symbols. */
4508 lt_preloaded_symbols[] =
4511 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4512 cat <<\EOF >> conftest.$ac_ext
4520 # Now try linking the two files.
4521 mv conftest.$ac_objext conftstm.$ac_objext
4523 save_CFLAGS="$CFLAGS"
4524 LIBS="conftstm.$ac_objext"
4525 CFLAGS="$CFLAGS$no_builtin_flag"
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527 (eval $ac_link) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } && test -s conftest; then
4534 CFLAGS="$save_CFLAGS"
4536 echo "cannot find nm_test_func in $nlist" >&5
4539 echo "cannot find nm_test_var in $nlist" >&5
4542 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4545 echo "$progname: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4548 rm -f conftest* conftst*
4550 # Do not use the global_symbol_pipe unless it works.
4551 if test "$pipe_works" = yes; then
4554 lt_cv_sys_global_symbol_pipe=
4560 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4561 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4562 global_symbol_to_cdecl=
4563 global_symbol_to_c_name_address=
4565 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4566 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4568 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4570 { echo "$as_me:$LINENO: result: failed" >&5
4571 echo "${ECHO_T}failed" >&6; }
4573 { echo "$as_me:$LINENO: result: ok" >&5
4574 echo "${ECHO_T}ok" >&6; }
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4583 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4584 # On Suns, sometimes $CPP names a directory.
4585 if test -n "$CPP" && test -d "$CPP"; then
4588 if test -z "$CPP"; then
4589 if test "${ac_cv_prog_CPP+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 # Double quotes because CPP needs to be expanded
4593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4596 for ac_c_preproc_warn_flag in '' yes
4598 # Use a header file that comes with gcc, so configuring glibc
4599 # with a fresh cross-compiler works.
4600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4601 # <limits.h> exists even on freestanding compilers.
4602 # On the NeXT, cc -E runs the code through the compiler's parser,
4603 # not just through cpp. "Syntax error" is here to catch this case.
4604 cat >conftest.$ac_ext <<_ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4611 # include <limits.h>
4613 # include <assert.h>
4617 if { (ac_try="$ac_cpp conftest.$ac_ext"
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4625 grep -v '^ *+' conftest.er1 >conftest.err
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } >/dev/null && {
4630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 # Broken: fails on valid input.
4642 rm -f conftest.err conftest.$ac_ext
4644 # OK, works on sane cases. Now check whether nonexistent headers
4645 # can be detected and how.
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 #include <ac_nonexistent.h>
4654 if { (ac_try="$ac_cpp conftest.$ac_ext"
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4662 grep -v '^ *+' conftest.er1 >conftest.err
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } >/dev/null && {
4667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4670 # Broken: success on invalid input.
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 # Passes both tests.
4681 rm -f conftest.err conftest.$ac_ext
4684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4685 rm -f conftest.err conftest.$ac_ext
4686 if $ac_preproc_ok; then
4698 { echo "$as_me:$LINENO: result: $CPP" >&5
4699 echo "${ECHO_T}$CPP" >&6; }
4701 for ac_c_preproc_warn_flag in '' yes
4703 # Use a header file that comes with gcc, so configuring glibc
4704 # with a fresh cross-compiler works.
4705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4706 # <limits.h> exists even on freestanding compilers.
4707 # On the NeXT, cc -E runs the code through the compiler's parser,
4708 # not just through cpp. "Syntax error" is here to catch this case.
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4716 # include <limits.h>
4718 # include <assert.h>
4722 if { (ac_try="$ac_cpp conftest.$ac_ext"
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4730 grep -v '^ *+' conftest.er1 >conftest.err
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } >/dev/null && {
4735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4736 test ! -s conftest.err
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 # Broken: fails on valid input.
4747 rm -f conftest.err conftest.$ac_ext
4749 # OK, works on sane cases. Now check whether nonexistent headers
4750 # can be detected and how.
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 #include <ac_nonexistent.h>
4759 if { (ac_try="$ac_cpp conftest.$ac_ext"
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4767 grep -v '^ *+' conftest.er1 >conftest.err
4769 cat conftest.err >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } >/dev/null && {
4772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4773 test ! -s conftest.err
4775 # Broken: success on invalid input.
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 # Passes both tests.
4786 rm -f conftest.err conftest.$ac_ext
4789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790 rm -f conftest.err conftest.$ac_ext
4791 if $ac_preproc_ok; then
4794 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4795 See \`config.log' for more details." >&5
4796 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4797 See \`config.log' for more details." >&2;}
4798 { (exit 1); exit 1; }; }
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4809 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4810 if test "${ac_cv_path_GREP+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 # Extract the first word of "grep ggrep" to use in msg output
4814 if test -z "$GREP"; then
4815 set dummy grep ggrep; ac_prog_name=$2
4816 if test "${ac_cv_path_GREP+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 ac_path_GREP_found=false
4820 # Loop through the user's path and test for each of PROGNAME-LIST
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825 test -z "$as_dir" && as_dir=.
4826 for ac_prog in grep ggrep; do
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4829 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4830 # Check for GNU ac_path_GREP and select it if it is found.
4831 # Check for GNU $ac_path_GREP
4832 case `"$ac_path_GREP" --version 2>&1` in
4834 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4837 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4840 cat "conftest.in" "conftest.in" >"conftest.tmp"
4841 mv "conftest.tmp" "conftest.in"
4842 cp "conftest.in" "conftest.nl"
4843 echo 'GREP' >> "conftest.nl"
4844 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846 ac_count=`expr $ac_count + 1`
4847 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4848 # Best one so far, save it but keep looking for a better one
4849 ac_cv_path_GREP="$ac_path_GREP"
4850 ac_path_GREP_max=$ac_count
4852 # 10*(2^10) chars as input seems more than enough
4853 test $ac_count -gt 10 && break
4855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859 $ac_path_GREP_found && break 3
4869 GREP="$ac_cv_path_GREP"
4870 if test -z "$GREP"; then
4871 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4872 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4873 { (exit 1); exit 1; }; }
4877 ac_cv_path_GREP=$GREP
4882 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4883 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4884 GREP="$ac_cv_path_GREP"
4887 { echo "$as_me:$LINENO: checking for egrep" >&5
4888 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4889 if test "${ac_cv_path_EGREP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4893 then ac_cv_path_EGREP="$GREP -E"
4895 # Extract the first word of "egrep" to use in msg output
4896 if test -z "$EGREP"; then
4897 set dummy egrep; ac_prog_name=$2
4898 if test "${ac_cv_path_EGREP+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 ac_path_EGREP_found=false
4902 # Loop through the user's path and test for each of PROGNAME-LIST
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4907 test -z "$as_dir" && as_dir=.
4908 for ac_prog in egrep; do
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4911 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4912 # Check for GNU ac_path_EGREP and select it if it is found.
4913 # Check for GNU $ac_path_EGREP
4914 case `"$ac_path_EGREP" --version 2>&1` in
4916 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4919 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4922 cat "conftest.in" "conftest.in" >"conftest.tmp"
4923 mv "conftest.tmp" "conftest.in"
4924 cp "conftest.in" "conftest.nl"
4925 echo 'EGREP' >> "conftest.nl"
4926 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4928 ac_count=`expr $ac_count + 1`
4929 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4930 # Best one so far, save it but keep looking for a better one
4931 ac_cv_path_EGREP="$ac_path_EGREP"
4932 ac_path_EGREP_max=$ac_count
4934 # 10*(2^10) chars as input seems more than enough
4935 test $ac_count -gt 10 && break
4937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4941 $ac_path_EGREP_found && break 3
4951 EGREP="$ac_cv_path_EGREP"
4952 if test -z "$EGREP"; then
4953 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4954 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4955 { (exit 1); exit 1; }; }
4959 ac_cv_path_EGREP=$EGREP
4965 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4966 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4967 EGREP="$ac_cv_path_EGREP"
4970 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4971 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4972 if test "${ac_cv_header_stdc+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4994 rm -f conftest.$ac_objext
4995 if { (ac_try="$ac_compile"
4997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998 *) ac_try_echo=$ac_try;;
5000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5001 (eval "$ac_compile") 2>conftest.er1
5003 grep -v '^ *+' conftest.er1 >conftest.err
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && {
5008 test -z "$ac_c_werror_flag" ||
5009 test ! -s conftest.err
5010 } && test -s conftest.$ac_objext; then
5011 ac_cv_header_stdc=yes
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 ac_cv_header_stdc=no
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 if test $ac_cv_header_stdc = yes; then
5022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5033 $EGREP "memchr" >/dev/null 2>&1; then
5036 ac_cv_header_stdc=no
5042 if test $ac_cv_header_stdc = yes; then
5043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5044 cat >conftest.$ac_ext <<_ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5054 $EGREP "free" >/dev/null 2>&1; then
5057 ac_cv_header_stdc=no
5063 if test $ac_cv_header_stdc = yes; then
5064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5065 if test "$cross_compiling" = yes; then
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5076 #if ((' ' & 0x0FF) == 0x020)
5077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5080 # define ISLOWER(c) \
5081 (('a' <= (c) && (c) <= 'i') \
5082 || ('j' <= (c) && (c) <= 'r') \
5083 || ('s' <= (c) && (c) <= 'z'))
5084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5092 for (i = 0; i < 256; i++)
5093 if (XOR (islower (i), ISLOWER (i))
5094 || toupper (i) != TOUPPER (i))
5099 rm -f conftest$ac_exeext
5100 if { (ac_try="$ac_link"
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_link") 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5110 { (case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_try") 2>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5121 echo "$as_me: program exited with status $ac_status" >&5
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5126 ac_cv_header_stdc=no
5128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5134 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5135 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5136 if test $ac_cv_header_stdc = yes; then
5138 cat >>confdefs.h <<\_ACEOF
5139 #define STDC_HEADERS 1
5144 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5154 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5155 inttypes.h stdint.h unistd.h
5157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 $ac_includes_default
5171 #include <$ac_header>
5173 rm -f conftest.$ac_objext
5174 if { (ac_try="$ac_compile"
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_compile") 2>conftest.er1
5182 grep -v '^ *+' conftest.er1 >conftest.err
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } && {
5187 test -z "$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 } && test -s conftest.$ac_objext; then
5190 eval "$as_ac_Header=yes"
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 eval "$as_ac_Header=no"
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 ac_res=`eval echo '${'$as_ac_Header'}'`
5201 { echo "$as_me:$LINENO: result: $ac_res" >&5
5202 echo "${ECHO_T}$ac_res" >&6; }
5203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5204 cat >>confdefs.h <<_ACEOF
5205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5214 for ac_header in dlfcn.h
5216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 ac_res=`eval echo '${'$as_ac_Header'}'`
5224 { echo "$as_me:$LINENO: result: $ac_res" >&5
5225 echo "${ECHO_T}$ac_res" >&6; }
5227 # Is the header compilable?
5228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5230 cat >conftest.$ac_ext <<_ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 $ac_includes_default
5237 #include <$ac_header>
5239 rm -f conftest.$ac_objext
5240 if { (ac_try="$ac_compile"
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_compile") 2>conftest.er1
5248 grep -v '^ *+' conftest.er1 >conftest.err
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && {
5253 test -z "$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5255 } && test -s conftest.$ac_objext; then
5256 ac_header_compiler=yes
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5261 ac_header_compiler=no
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266 echo "${ECHO_T}$ac_header_compiler" >&6; }
5268 # Is the header present?
5269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5271 cat >conftest.$ac_ext <<_ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5277 #include <$ac_header>
5279 if { (ac_try="$ac_cpp conftest.$ac_ext"
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5287 grep -v '^ *+' conftest.er1 >conftest.err
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } >/dev/null && {
5292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5295 ac_header_preproc=yes
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 ac_header_preproc=no
5303 rm -f conftest.err conftest.$ac_ext
5304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5305 echo "${ECHO_T}$ac_header_preproc" >&6; }
5307 # So? What about this header?
5308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5314 ac_header_preproc=yes
5317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 eval "$as_ac_Header=\$ac_header_preproc"
5339 ac_res=`eval echo '${'$as_ac_Header'}'`
5340 { echo "$as_me:$LINENO: result: $ac_res" >&5
5341 echo "${ECHO_T}$ac_res" >&6; }
5344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5345 cat >>confdefs.h <<_ACEOF
5346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5357 # Only perform the check for file, if the check method requires it
5358 case $deplibs_check_method in
5360 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5361 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5362 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5363 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5371 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5374 ac_save_MAGIC_CMD="$MAGIC_CMD"
5375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5376 ac_dummy="/usr/bin:$PATH"
5377 for ac_dir in $ac_dummy; do
5378 test -z "$ac_dir" && ac_dir=.
5379 if test -f $ac_dir/${ac_tool_prefix}file; then
5380 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5381 if test -n "$file_magic_test_file"; then
5382 case $deplibs_check_method in
5384 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5386 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5387 egrep "$file_magic_regex" > /dev/null; then
5392 *** Warning: the command libtool uses to detect shared libraries,
5393 *** $file_magic_cmd, produces output that libtool cannot recognize.
5394 *** The result is that libtool may fail to recognize shared libraries
5395 *** as such. This will affect the creation of libtool libraries that
5396 *** depend on shared libraries, but programs linked with such libtool
5397 *** libraries will work regardless of this problem. Nevertheless, you
5398 *** may want to report the problem to your system manager and/or to
5399 *** bug-libtool@gnu.org
5409 MAGIC_CMD="$ac_save_MAGIC_CMD"
5414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5415 if test -n "$MAGIC_CMD"; then
5416 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5417 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5419 { echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6; }
5423 if test -z "$lt_cv_path_MAGIC_CMD"; then
5424 if test -n "$ac_tool_prefix"; then
5425 { echo "$as_me:$LINENO: checking for file" >&5
5426 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
5427 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5435 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5438 ac_save_MAGIC_CMD="$MAGIC_CMD"
5439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5440 ac_dummy="/usr/bin:$PATH"
5441 for ac_dir in $ac_dummy; do
5442 test -z "$ac_dir" && ac_dir=.
5443 if test -f $ac_dir/file; then
5444 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5445 if test -n "$file_magic_test_file"; then
5446 case $deplibs_check_method in
5448 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5451 egrep "$file_magic_regex" > /dev/null; then
5456 *** Warning: the command libtool uses to detect shared libraries,
5457 *** $file_magic_cmd, produces output that libtool cannot recognize.
5458 *** The result is that libtool may fail to recognize shared libraries
5459 *** as such. This will affect the creation of libtool libraries that
5460 *** depend on shared libraries, but programs linked with such libtool
5461 *** libraries will work regardless of this problem. Nevertheless, you
5462 *** may want to report the problem to your system manager and/or to
5463 *** bug-libtool@gnu.org
5473 MAGIC_CMD="$ac_save_MAGIC_CMD"
5478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5479 if test -n "$MAGIC_CMD"; then
5480 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5481 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5483 { echo "$as_me:$LINENO: result: no" >&5
5484 echo "${ECHO_T}no" >&6; }
5496 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5501 if test "${ac_cv_prog_RANLIB+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 if test -n "$RANLIB"; then
5505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 RANLIB=$ac_cv_prog_RANLIB
5525 if test -n "$RANLIB"; then
5526 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5527 echo "${ECHO_T}$RANLIB" >&6; }
5529 { echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6; }
5535 if test -z "$ac_cv_prog_RANLIB"; then
5536 ac_ct_RANLIB=$RANLIB
5537 # Extract the first word of "ranlib", so it can be a program name with args.
5538 set dummy ranlib; ac_word=$2
5539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5541 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 if test -n "$ac_ct_RANLIB"; then
5545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_prog_ac_ct_RANLIB="ranlib"
5555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5565 if test -n "$ac_ct_RANLIB"; then
5566 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5567 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5569 { echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6; }
5573 if test "x$ac_ct_RANLIB" = x; then
5576 case $cross_compiling:$ac_tool_warned in
5578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5579 whose name does not start with the host triplet. If you think this
5580 configuration is useful to you, please write to autoconf@gnu.org." >&5
5581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5582 whose name does not start with the host triplet. If you think this
5583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5584 ac_tool_warned=yes ;;
5586 RANLIB=$ac_ct_RANLIB
5589 RANLIB="$ac_cv_prog_RANLIB"
5592 if test -n "$ac_tool_prefix"; then
5593 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5594 set dummy ${ac_tool_prefix}strip; ac_word=$2
5595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5597 if test "${ac_cv_prog_STRIP+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 if test -n "$STRIP"; then
5601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 STRIP=$ac_cv_prog_STRIP
5621 if test -n "$STRIP"; then
5622 { echo "$as_me:$LINENO: result: $STRIP" >&5
5623 echo "${ECHO_T}$STRIP" >&6; }
5625 { echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6; }
5631 if test -z "$ac_cv_prog_STRIP"; then
5633 # Extract the first word of "strip", so it can be a program name with args.
5634 set dummy strip; ac_word=$2
5635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5637 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 if test -n "$ac_ct_STRIP"; then
5641 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_ac_ct_STRIP="strip"
5651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5661 if test -n "$ac_ct_STRIP"; then
5662 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5663 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5665 { echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6; }
5669 if test "x$ac_ct_STRIP" = x; then
5672 case $cross_compiling:$ac_tool_warned in
5674 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5675 whose name does not start with the host triplet. If you think this
5676 configuration is useful to you, please write to autoconf@gnu.org." >&5
5677 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5678 whose name does not start with the host triplet. If you think this
5679 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5680 ac_tool_warned=yes ;;
5685 STRIP="$ac_cv_prog_STRIP"
5692 # Check whether --enable-libtool-lock was given.
5693 if test "${enable_libtool_lock+set}" = set; then
5694 enableval=$enable_libtool_lock;
5697 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5699 # Some flags need to be propagated to the compiler or linker for good
5703 # Find out which ABI we are using.
5704 echo '#line 5704 "configure"' > conftest.$ac_ext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; then
5710 case `/usr/bin/file conftest.$ac_objext` in
5726 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5727 SAVE_CFLAGS="$CFLAGS"
5728 CFLAGS="$CFLAGS -belf"
5729 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5730 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5731 if test "${lt_cv_cc_needs_belf+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 ac_cpp='$CPP $CPPFLAGS'
5737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5741 cat >conftest.$ac_ext <<_ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (ac_try="$ac_link"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_link") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest$ac_exeext &&
5773 $as_test_x conftest$ac_exeext; then
5774 lt_cv_cc_needs_belf=yes
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 lt_cv_cc_needs_belf=no
5782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5783 conftest$ac_exeext conftest.$ac_ext
5785 ac_cpp='$CPP $CPPFLAGS'
5786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5791 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5792 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5793 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5794 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5795 CFLAGS="$SAVE_CFLAGS"
5802 # Sed substitution that helps us do robust quoting. It backslashifies
5803 # metacharacters that are still active within double-quoted strings.
5804 Xsed='sed -e s/^X//'
5805 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5807 # Same as above, but do not quote variable references.
5808 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5810 # Sed substitution to delay expansion of an escaped shell variable in a
5811 # double_quote_subst'ed string.
5812 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5818 default_ofile=libtool
5819 can_build_shared=yes
5821 # All known linkers require a `.a' archive for static linking (except M$VC,
5822 # which needs '.lib').
5824 ltmain="$ac_aux_dir/ltmain.sh"
5825 ofile="$default_ofile"
5826 with_gnu_ld="$lt_cv_prog_gnu_ld"
5827 need_locks="$enable_libtool_lock"
5830 old_CFLAGS="$CFLAGS"
5832 # Set sane defaults for various variables
5833 test -z "$AR" && AR=ar
5834 test -z "$AR_FLAGS" && AR_FLAGS=cru
5835 test -z "$AS" && AS=as
5836 test -z "$CC" && CC=cc
5837 test -z "$DLLTOOL" && DLLTOOL=dlltool
5838 test -z "$LD" && LD=ld
5839 test -z "$LN_S" && LN_S="ln -s"
5840 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5841 test -z "$NM" && NM=nm
5842 test -z "$OBJDUMP" && OBJDUMP=objdump
5843 test -z "$RANLIB" && RANLIB=:
5844 test -z "$STRIP" && STRIP=:
5845 test -z "$ac_objext" && ac_objext=o
5847 if test x"$host" != x"$build"; then
5848 ac_tool_prefix=${host_alias}-
5853 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5856 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5861 # AIX sometimes has problems with the GCC collect2 program. For some
5862 # reason, if we set the COLLECT_NAMES environment variable, the problems
5863 # vanish in a puff of smoke.
5864 if test "X${COLLECT_NAMES+set}" != Xset; then
5866 export COLLECT_NAMES
5871 # Determine commands to create old-style static archives.
5872 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5873 old_postinstall_cmds='chmod 644 $oldlib'
5874 old_postuninstall_cmds=
5876 if test -n "$RANLIB"; then
5879 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5882 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5885 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5888 # Allow CC to be a program name with arguments.
5892 ## FIXME: this should be a separate macro
5894 { echo "$as_me:$LINENO: checking for objdir" >&5
5895 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5896 rm -f .libs 2>/dev/null
5897 mkdir .libs 2>/dev/null
5898 if test -d .libs; then
5901 # MS-DOS does not allow filenames that begin with a dot.
5904 rmdir .libs 2>/dev/null
5905 { echo "$as_me:$LINENO: result: $objdir" >&5
5906 echo "${ECHO_T}$objdir" >&6; }
5911 ## FIXME: this should be a separate macro
5914 # Check whether --with-pic was given.
5915 if test "${with_pic+set}" = set; then
5916 withval=$with_pic; pic_mode="$withval"
5921 test -z "$pic_mode" && pic_mode=default
5923 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5924 # in isolation, and that seeing it set (from the cache) indicates that
5925 # the associated values are set (in the cache) correctly too.
5926 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
5928 if test "${lt_cv_prog_cc_pic+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 lt_cv_prog_cc_shlib=
5934 lt_cv_prog_cc_static=
5935 lt_cv_prog_cc_no_builtin=
5936 lt_cv_prog_cc_can_build_shared=$can_build_shared
5938 if test "$GCC" = yes; then
5939 lt_cv_prog_cc_wl='-Wl,'
5940 lt_cv_prog_cc_static='-static'
5944 # Below there is a dirty hack to force normal static linking with -ldl
5945 # The problem is because libdl dynamically linked with both libc and
5946 # libC (AIX C++ library), which obviously doesn't included in libraries
5947 # list by gcc. This cause undefined symbols with -static flags.
5948 # This hack allows C programs to be linked with "-static -ldl", but
5949 # not sure about C++ programs.
5950 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5953 # FIXME: we need at least 68020 code to build shared libraries, but
5954 # adding the `-m68020' flag to GCC prevents building anything better,
5956 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5958 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5959 # PIC is the default for these OSes.
5961 darwin* | rhapsody*)
5962 # PIC is the default on this platform
5963 # Common symbols not allowed in MH_DYLIB files
5964 lt_cv_prog_cc_pic='-fno-common'
5966 cygwin* | mingw* | pw32* | os2*)
5967 # This hack is so that the source file can tell whether it is being
5968 # built for inclusion in a dll (and should export symbols for example).
5969 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5972 if test -d /usr/nec; then
5973 lt_cv_prog_cc_pic=-Kconform_pic
5977 lt_cv_prog_cc_pic='-fPIC'
5981 # PORTME Check for PIC flags for the system compiler.
5983 aix3* | aix4* | aix5*)
5984 lt_cv_prog_cc_wl='-Wl,'
5985 # All AIX code is PIC.
5986 if test "$host_cpu" = ia64; then
5987 # AIX 5 now supports IA64 processor
5988 lt_cv_prog_cc_static='-Bstatic'
5990 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5994 hpux9* | hpux10* | hpux11*)
5995 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5996 lt_cv_prog_cc_wl='-Wl,'
5997 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5998 lt_cv_prog_cc_pic='+Z'
6001 irix5* | irix6* | nonstopux*)
6002 lt_cv_prog_cc_wl='-Wl,'
6003 lt_cv_prog_cc_static='-non_shared'
6004 # PIC (with -KPIC) is the default.
6007 cygwin* | mingw* | pw32* | os2*)
6008 # This hack is so that the source file can tell whether it is being
6009 # built for inclusion in a dll (and should export symbols for example).
6010 lt_cv_prog_cc_pic='-DDLL_EXPORT'
6014 lt_cv_prog_cc_pic='-KPIC'
6015 lt_cv_prog_cc_static='-Bstatic'
6018 osf3* | osf4* | osf5*)
6019 # All OSF/1 code is PIC.
6020 lt_cv_prog_cc_wl='-Wl,'
6021 lt_cv_prog_cc_static='-non_shared'
6025 lt_cv_prog_cc_pic='-Kpic'
6026 lt_cv_prog_cc_static='-dn'
6027 lt_cv_prog_cc_shlib='-belf'
6031 lt_cv_prog_cc_pic='-KPIC'
6032 lt_cv_prog_cc_static='-Bstatic'
6033 lt_cv_prog_cc_wl='-Wl,'
6037 lt_cv_prog_cc_pic='-PIC'
6038 lt_cv_prog_cc_static='-Bstatic'
6039 lt_cv_prog_cc_wl='-Qoption ld '
6042 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6043 lt_cv_prog_cc_pic='-KPIC'
6044 lt_cv_prog_cc_static='-Bstatic'
6045 if test "x$host_vendor" = xsni; then
6046 lt_cv_prog_cc_wl='-LD'
6048 lt_cv_prog_cc_wl='-Wl,'
6053 lt_cv_prog_cc_pic='-pic'
6054 lt_cv_prog_cc_static='-Bstatic'
6058 if test -d /usr/nec ;then
6059 lt_cv_prog_cc_pic='-Kconform_pic'
6060 lt_cv_prog_cc_static='-Bstatic'
6065 lt_cv_prog_cc_can_build_shared=no
6072 if test -z "$lt_cv_prog_cc_pic"; then
6073 { echo "$as_me:$LINENO: result: none" >&5
6074 echo "${ECHO_T}none" >&6; }
6076 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6077 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6; }
6079 # Check to make sure the pic_flag actually works.
6080 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6081 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6; }
6082 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 save_CFLAGS="$CFLAGS"
6086 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6087 cat >conftest.$ac_ext <<_ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_compile") 2>conftest.er1
6111 grep -v '^ *+' conftest.er1 >conftest.err
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } && {
6116 test -z "$ac_c_werror_flag" ||
6117 test ! -s conftest.err
6118 } && test -s conftest.$ac_objext; then
6120 hpux9* | hpux10* | hpux11*)
6121 # On HP-UX, both CC and GCC only warn that PIC is supported... then
6122 # they create non-PIC objects. So, if there were any warnings, we
6123 # assume that PIC is not supported.
6124 if test -s conftest.err; then
6125 lt_cv_prog_cc_pic_works=no
6127 lt_cv_prog_cc_pic_works=yes
6131 lt_cv_prog_cc_pic_works=yes
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 lt_cv_prog_cc_pic_works=no
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 CFLAGS="$save_CFLAGS"
6149 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6151 lt_cv_prog_cc_can_build_shared=no
6153 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6156 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6157 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6; }
6162 # Check for any special shared library compilation flags.
6163 if test -n "$lt_cv_prog_cc_shlib"; then
6164 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6165 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6166 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
6168 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6169 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6170 lt_cv_prog_cc_can_build_shared=no
6174 ## FIXME: this should be a separate macro
6176 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6177 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6; }
6178 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 lt_cv_prog_cc_static_works=no
6182 save_LDFLAGS="$LDFLAGS"
6183 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6199 rm -f conftest.$ac_objext conftest$ac_exeext
6200 if { (ac_try="$ac_link"
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_link") 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest$ac_exeext &&
6216 $as_test_x conftest$ac_exeext; then
6217 lt_cv_prog_cc_static_works=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6226 conftest$ac_exeext conftest.$ac_ext
6227 LDFLAGS="$save_LDFLAGS"
6232 # Belt *and* braces to stop my trousers falling down:
6233 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6234 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6235 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6; }
6237 pic_flag="$lt_cv_prog_cc_pic"
6238 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6239 wl="$lt_cv_prog_cc_wl"
6240 link_static_flag="$lt_cv_prog_cc_static"
6241 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6242 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6247 ## FIXME: this should be a separate macro
6249 # Check to see if options -o and -c are simultaneously supported by compiler
6250 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6251 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6252 if test "${lt_cv_compiler_c_o+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 $rm -r conftest 2>/dev/null
6259 echo "int some_variable = 0;" > conftest.$ac_ext
6261 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6262 # that will create temporary files in the current directory regardless of
6263 # the output directory. Thus, making CWD read-only will cause this test
6264 # to fail, enabling locking or at least warning the user not to do parallel
6267 save_CFLAGS="$CFLAGS"
6268 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6270 if { (eval echo configure:6270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6271 # The compiler can only warn and ignore the option if not recognized
6272 # So say no if there are warnings
6273 if test -s out/conftest.err; then
6274 lt_cv_compiler_c_o=no
6276 lt_cv_compiler_c_o=yes
6279 # Append any errors to the config.log.
6280 cat out/conftest.err 1>&5
6281 lt_cv_compiler_c_o=no
6283 CFLAGS="$save_CFLAGS"
6289 $rm -r conftest 2>/dev/null
6293 compiler_c_o=$lt_cv_compiler_c_o
6294 { echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6295 echo "${ECHO_T}$compiler_c_o" >&6; }
6297 if test x"$compiler_c_o" = x"yes"; then
6298 # Check to see if we can write to a .lo
6299 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6300 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6; }
6301 if test "${lt_cv_compiler_o_lo+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 lt_cv_compiler_o_lo=no
6306 save_CFLAGS="$CFLAGS"
6307 CFLAGS="$CFLAGS -c -o conftest.lo"
6308 save_objext="$ac_objext"
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6320 int some_variable = 0;
6325 rm -f conftest.$ac_objext
6326 if { (ac_try="$ac_compile"
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compile") 2>conftest.er1
6334 grep -v '^ *+' conftest.er1 >conftest.err
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && {
6339 test -z "$ac_c_werror_flag" ||
6340 test ! -s conftest.err
6341 } && test -s conftest.$ac_objext; then
6342 # The compiler can only warn and ignore the option if not recognized
6343 # So say no if there are warnings
6344 if test -s conftest.err; then
6345 lt_cv_compiler_o_lo=no
6347 lt_cv_compiler_o_lo=yes
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 ac_objext="$save_objext"
6359 CFLAGS="$save_CFLAGS"
6363 compiler_o_lo=$lt_cv_compiler_o_lo
6364 { echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6365 echo "${ECHO_T}$compiler_o_lo" >&6; }
6372 ## FIXME: this should be a separate macro
6374 # Check to see if we can do hard links to lock some files if needed
6375 hard_links="nottested"
6376 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6377 # do not overwrite the value of need_locks provided by the user
6378 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6379 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6384 ln conftest.a conftest.b 2>&5 || hard_links=no
6385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6386 { echo "$as_me:$LINENO: result: $hard_links" >&5
6387 echo "${ECHO_T}$hard_links" >&6; }
6388 if test "$hard_links" = no; then
6389 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6390 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6399 ## FIXME: this should be a separate macro
6401 if test "$GCC" = yes; then
6402 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6403 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6404 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6405 echo "int some_variable = 0;" > conftest.$ac_ext
6406 save_CFLAGS="$CFLAGS"
6407 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6408 compiler_rtti_exceptions=no
6409 cat >conftest.$ac_ext <<_ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6419 int some_variable = 0;
6424 rm -f conftest.$ac_objext
6425 if { (ac_try="$ac_compile"
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6431 (eval "$ac_compile") 2>conftest.er1
6433 grep -v '^ *+' conftest.er1 >conftest.err
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } && {
6438 test -z "$ac_c_werror_flag" ||
6439 test ! -s conftest.err
6440 } && test -s conftest.$ac_objext; then
6441 # The compiler can only warn and ignore the option if not recognized
6442 # So say no if there are warnings
6443 if test -s conftest.err; then
6444 compiler_rtti_exceptions=no
6446 compiler_rtti_exceptions=yes
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 CFLAGS="$save_CFLAGS"
6458 { echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6459 echo "${ECHO_T}$compiler_rtti_exceptions" >&6; }
6461 if test "$compiler_rtti_exceptions" = "yes"; then
6462 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6464 no_builtin_flag=' -fno-builtin'
6470 ## FIXME: this should be a separate macro
6472 # See if the linker supports building shared libraries.
6473 { echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6474 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6476 allow_undefined_flag=
6478 need_lib_prefix=unknown
6479 need_version=unknown
6480 # when you set need_version to no, make sure it does not cause -set_version
6481 # flags to be left without arguments
6483 archive_expsym_cmds=
6484 old_archive_from_new_cmds=
6485 old_archive_from_expsyms_cmds=
6486 export_dynamic_flag_spec=
6487 whole_archive_flag_spec=
6488 thread_safe_flag_spec=
6489 hardcode_into_libs=no
6490 hardcode_libdir_flag_spec=
6491 hardcode_libdir_separator=
6494 hardcode_shlibpath_var=unsupported
6496 link_all_deplibs=unknown
6497 always_export_symbols=no
6498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6499 # include_expsyms should be a list of space-separated symbols to be *always*
6500 # included in the symbol list
6502 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6503 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6504 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6505 # as well as any symbol that contains `d'.
6506 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6507 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6508 # platforms (ab)use it in PIC code, but their linkers get confused if
6509 # the symbol is explicitly referenced. Since portable code cannot
6510 # rely on this symbol name, it's probably fine to never include it in
6511 # preloaded symbol tables.
6512 extract_expsyms_cmds=
6515 cygwin* | mingw* | pw32*)
6516 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6517 # When not using gcc, we currently assume that we are using
6518 # Microsoft Visual C++.
6519 if test "$GCC" != yes; then
6529 if test "$with_gnu_ld" = yes; then
6530 # If archive_cmds runs LD, not CC, wlarc should be empty
6533 # See if GNU ld supports shared libraries.
6535 aix3* | aix4* | aix5*)
6536 # On AIX, the GNU linker is very broken
6537 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6541 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6542 *** to be unable to reliably create shared libraries on AIX.
6543 *** Therefore, libtool is disabling shared libraries support. If you
6544 *** really care for shared libraries, you may want to modify your PATH
6545 *** so that a non-GNU linker is found, and then restart.
6551 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6552 hardcode_libdir_flag_spec='-L$libdir'
6553 hardcode_minus_L=yes
6555 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6556 # that the semantics of dynamic libraries on AmigaOS, at least up
6557 # to version 4, is to share data among multiple programs linked
6558 # with the same dynamic library. Since this doesn't match the
6559 # behavior of shared libraries on other platforms, we can use
6565 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6566 allow_undefined_flag=unsupported
6567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6568 # support --undefined. This deserves some investigation. FIXME
6569 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6575 cygwin* | mingw* | pw32*)
6576 # hardcode_libdir_flag_spec is actually meaningless, as there is
6577 # no search path for DLLs.
6578 hardcode_libdir_flag_spec='-L$libdir'
6579 allow_undefined_flag=unsupported
6580 always_export_symbols=yes
6582 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6583 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6584 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6585 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6586 else $CC -o impgen impgen.c ; fi)~
6587 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6589 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6591 # cygwin and mingw dlls have different entry points and sets of symbols
6593 # FIXME: what about values for MSVC?
6594 dll_entry=__cygwin_dll_entry@12
6595 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6599 dll_entry=_DllMainCRTStartup@12
6600 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6604 # mingw and cygwin differ, and it's simplest to just exclude the union
6605 # of the two symbol sets.
6606 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6608 # recent cygwin and mingw systems supply a stub DllMain which the user
6609 # can override, but on older systems we have to supply one (in ltdll.c)
6610 if test "x$lt_cv_need_dllmain" = "xyes"; then
6611 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6612 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6613 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6619 # Extract the symbol export list from an `--export-all' def file,
6620 # then regenerate the def file from the symbol export list, so that
6621 # the compiled dll only exports the symbol export list.
6622 # Be careful not to strip the DATA tag left be newer dlltools.
6623 export_symbols_cmds="$ltdll_cmds"'
6624 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6625 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6627 # If the export-symbols file already is a .def file (1st line
6628 # is EXPORTS), use it as is.
6629 # If DATA tags from a recent dlltool are present, honour them!
6630 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6631 cp $export_symbols $output_objdir/$soname-def;
6633 echo EXPORTS > $output_objdir/$soname-def;
6635 cat $export_symbols | while read symbol; do
6638 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6639 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6641 _lt_hint=`expr 1 + \$_lt_hint`;
6645 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6646 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6647 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6648 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6649 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6654 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6657 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6658 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6663 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6667 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6668 *** create shared libraries on Solaris systems. Therefore, libtool
6669 *** is disabling shared libraries support. We urge you to upgrade GNU
6670 *** binutils to release 2.9.1 or newer. Another option is to modify
6671 *** your PATH or compiler configuration so that the native linker is
6672 *** used, and then restart.
6675 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6677 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6684 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6687 hardcode_shlibpath_var=no
6691 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6700 if test "$ld_shlibs" = yes; then
6701 runpath_var=LD_RUN_PATH
6702 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6703 export_dynamic_flag_spec='${wl}--export-dynamic'
6705 cygwin* | mingw* | pw32*)
6706 # dlltool doesn't understand --whole-archive et. al.
6707 whole_archive_flag_spec=
6710 # ancient GNU ld didn't support --whole-archive et. al.
6711 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6712 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6714 whole_archive_flag_spec=
6720 # PORTME fill in a description of your system's linker (not GNU ld)
6723 allow_undefined_flag=unsupported
6724 always_export_symbols=yes
6725 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6726 # Note: this linker hardcodes the directories in LIBPATH if there
6727 # are no directories specified by -L.
6728 hardcode_minus_L=yes
6729 if test "$GCC" = yes && test -z "$link_static_flag"; then
6730 # Neither direct hardcoding nor static linking is supported with a
6732 hardcode_direct=unsupported
6737 if test "$host_cpu" = ia64; then
6738 # On IA64, the linker does run time linking by default, so we don't
6739 # have to do anything special.
6740 aix_use_runtimelinking=no
6741 exp_sym_flag='-Bexport'
6744 aix_use_runtimelinking=no
6746 # Test if we are trying to use run time linking or normal
6747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6748 # need to do runtime linking.
6749 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6750 for ld_flag in $LDFLAGS; do
6751 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6752 aix_use_runtimelinking=yes
6758 exp_sym_flag='-bexport'
6759 no_entry_flag='-bnoentry'
6762 # When large executables or shared objects are built, AIX ld can
6763 # have problems creating the table of contents. If linking a library
6764 # or program results in "error TOC overflow" add -mminimal-toc to
6765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6770 hardcode_libdir_separator=':'
6771 if test "$GCC" = yes; then
6772 case $host_os in aix4.[012]|aix4.[012].*)
6773 collect2name=`${CC} -print-prog-name=collect2`
6774 if test -f "$collect2name" && \
6775 strings "$collect2name" | grep resolve_lib_name >/dev/null
6777 # We have reworked collect2
6780 # We have old collect2
6781 hardcode_direct=unsupported
6782 # It fails to find uninstalled libraries when the uninstalled
6783 # path is not listed in the libpath. Setting hardcode_minus_L
6784 # to unsupported forces relinking
6785 hardcode_minus_L=yes
6786 hardcode_libdir_flag_spec='-L$libdir'
6787 hardcode_libdir_separator=
6791 shared_flag='-shared'
6794 if test "$host_cpu" = ia64; then
6795 shared_flag='${wl}-G'
6797 if test "$aix_use_runtimelinking" = yes; then
6798 shared_flag='${wl}-G'
6800 shared_flag='${wl}-bM:SRE'
6805 # It seems that -bexpall can do strange things, so it is better to
6806 # generate a list of symbols to export.
6807 always_export_symbols=yes
6808 if test "$aix_use_runtimelinking" = yes; then
6809 # Warning - without using the other runtime loading flags (-brtl),
6810 # -berok will link without error, but may produce a broken library.
6811 allow_undefined_flag='-berok'
6812 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6813 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6815 if test "$host_cpu" = ia64; then
6816 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6817 allow_undefined_flag="-z nodefs"
6818 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6820 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6821 # Warning - without using the other run time loading flags,
6822 # -berok will link without error, but may produce a broken library.
6823 allow_undefined_flag='${wl}-berok'
6824 # This is a bit strange, but is similar to how AIX traditionally builds
6825 # it's shared libraries.
6826 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6832 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6833 hardcode_libdir_flag_spec='-L$libdir'
6834 hardcode_minus_L=yes
6835 # see comment about different semantics on the GNU ld section
6839 cygwin* | mingw* | pw32*)
6840 # When not using gcc, we currently assume that we are using
6841 # Microsoft Visual C++.
6842 # hardcode_libdir_flag_spec is actually meaningless, as there is
6843 # no search path for DLLs.
6844 hardcode_libdir_flag_spec=' '
6845 allow_undefined_flag=unsupported
6846 # Tell ltmain to make .lib files, not .a files.
6848 # FIXME: Setting linknames here is a bad hack.
6849 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6850 # The linker will automatically build a .lib file if we build a DLL.
6851 old_archive_from_new_cmds='true'
6852 # FIXME: Should let the user specify the lib program.
6853 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6854 fix_srcfile_path='`cygpath -w "$srcfile"`'
6857 darwin* | rhapsody*)
6859 rhapsody* | darwin1.[012])
6860 allow_undefined_flag='-undefined suppress'
6863 allow_undefined_flag='-flat_namespace -undefined suppress'
6866 # FIXME: Relying on posixy $() will cause problems for
6867 # cross-compilation, but unfortunately the echo tests do not
6868 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6869 # `"' quotes if we put them in here... so don't!
6870 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6871 # We need to add '_' to the symbols in $export_symbols first
6872 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6874 hardcode_shlibpath_var=no
6875 whole_archive_flag_spec='-all_load $convenience'
6882 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6883 # support. Future versions do this automatically, but an explicit c++rt0.o
6884 # does not break anything, and helps significantly (at the cost of a little
6887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6888 hardcode_libdir_flag_spec='-R$libdir'
6890 hardcode_shlibpath_var=no
6893 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6897 hardcode_minus_L=yes
6898 hardcode_shlibpath_var=no
6901 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6903 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6904 hardcode_libdir_flag_spec='-R$libdir'
6906 hardcode_shlibpath_var=no
6909 hpux9* | hpux10* | hpux11*)
6911 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6912 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6914 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6915 hardcode_libdir_separator=:
6917 hardcode_minus_L=yes # Not in the search PATH, but as the default
6918 # location of the library.
6919 export_dynamic_flag_spec='${wl}-E'
6922 irix5* | irix6* | nonstopux*)
6923 if test "$GCC" = yes; then
6924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6926 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6929 hardcode_libdir_separator=:
6930 link_all_deplibs=yes
6934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6937 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6939 hardcode_libdir_flag_spec='-R$libdir'
6941 hardcode_shlibpath_var=no
6945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6948 hardcode_libdir_separator=:
6949 hardcode_shlibpath_var=no
6954 hardcode_shlibpath_var=no
6955 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6958 export_dynamic_flag_spec='${wl}-E'
6961 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6963 hardcode_libdir_flag_spec='-R$libdir'
6966 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6967 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6974 hardcode_libdir_flag_spec='-L$libdir'
6975 hardcode_minus_L=yes
6976 allow_undefined_flag=unsupported
6977 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6978 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6982 if test "$GCC" = yes; then
6983 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6984 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6986 allow_undefined_flag=' -expect_unresolved \*'
6987 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6990 hardcode_libdir_separator=:
6993 osf4* | osf5*) # as osf3* with the addition of -msym flag
6994 if test "$GCC" = yes; then
6995 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6996 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6999 allow_undefined_flag=' -expect_unresolved \*'
7000 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7001 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7002 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7004 #Both c and cxx compiler support -rpath directly
7005 hardcode_libdir_flag_spec='-rpath $libdir'
7007 hardcode_libdir_separator=:
7011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7012 hardcode_shlibpath_var=no
7013 runpath_var=LD_RUN_PATH
7014 hardcode_runpath_var=yes
7015 export_dynamic_flag_spec='${wl}-Bexport'
7019 # gcc --version < 3.0 without binutils cannot create self contained
7020 # shared libraries reliably, requiring libgcc.a to resolve some of
7021 # the object symbols generated in some cases. Libraries that use
7022 # assert need libgcc.a to resolve __eprintf, for example. Linking
7023 # a copy of libgcc.a into every shared library to guarantee resolving
7024 # such symbols causes other problems: According to Tim Van Holder
7025 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7026 # (to the application) exception stack for one thing.
7027 no_undefined_flag=' -z defs'
7028 if test "$GCC" = yes; then
7029 case `$CC --version 2>/dev/null` in
7033 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7034 *** create self contained shared libraries on Solaris systems, without
7035 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
7036 *** -no-undefined support, which will at least allow you to build shared
7037 *** libraries. However, you may find that when you link such libraries
7038 *** into an application without using GCC, you have to manually add
7039 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
7040 *** upgrade to a newer version of GCC. Another option is to rebuild your
7041 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7048 # $CC -shared without GNU ld will not create a library from C++
7049 # object files and a static libstdc++, better avoid it by now
7050 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7051 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7052 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7053 hardcode_libdir_flag_spec='-R$libdir'
7054 hardcode_shlibpath_var=no
7056 solaris2.[0-5] | solaris2.[0-5].*) ;;
7057 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7058 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7060 link_all_deplibs=yes
7064 if test "x$host_vendor" = xsequent; then
7065 # Use $CC to link under sequent, because it throws in some extra .o
7066 # files that make .init and .fini sections work.
7067 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7069 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7071 hardcode_libdir_flag_spec='-L$libdir'
7073 hardcode_minus_L=yes
7074 hardcode_shlibpath_var=no
7078 if test "x$host_vendor" = xsno; then
7079 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
7080 hardcode_direct=yes # is this really true???
7082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7083 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7085 runpath_var='LD_RUN_PATH'
7086 hardcode_shlibpath_var=no
7090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7091 hardcode_shlibpath_var=no
7092 export_dynamic_flag_spec='-Bexport'
7096 no_undefined_flag=' -z text'
7097 # $CC -shared without GNU ld will not create a library from C++
7098 # object files and a static libstdc++, better avoid it by now
7099 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7100 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7101 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7102 hardcode_libdir_flag_spec=
7103 hardcode_shlibpath_var=no
7104 runpath_var='LD_RUN_PATH'
7108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7109 hardcode_libdir_flag_spec='-L$libdir'
7110 hardcode_shlibpath_var=no
7114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7115 hardcode_libdir_flag_spec='-L$libdir'
7116 hardcode_shlibpath_var=no
7120 if test -d /usr/nec; then
7121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7122 hardcode_shlibpath_var=no
7123 runpath_var=LD_RUN_PATH
7124 hardcode_runpath_var=yes
7130 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7133 hardcode_shlibpath_var=no
7134 hardcode_runpath_var=yes
7135 runpath_var=LD_RUN_PATH
7138 sysv5uw7* | unixware7*)
7139 no_undefined_flag='${wl}-z ${wl}text'
7140 if test "$GCC" = yes; then
7141 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7143 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7145 runpath_var='LD_RUN_PATH'
7146 hardcode_shlibpath_var=no
7154 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7155 echo "${ECHO_T}$ld_shlibs" >&6; }
7156 test "$ld_shlibs" = no && can_build_shared=no
7160 ## FIXME: this should be a separate macro
7162 # Check hardcoding attributes.
7163 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7164 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
7166 if test -n "$hardcode_libdir_flag_spec" || \
7167 test -n "$runpath_var"; then
7169 # We can hardcode non-existant directories.
7170 if test "$hardcode_direct" != no &&
7171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7172 # have to relink, otherwise we might link with an installed library
7173 # when we should be linking with a yet-to-be-installed one
7174 ## test "$hardcode_shlibpath_var" != no &&
7175 test "$hardcode_minus_L" != no; then
7176 # Linking always hardcodes the temporary library directory.
7177 hardcode_action=relink
7179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7180 hardcode_action=immediate
7183 # We cannot hardcode anything, or else we can only hardcode existing
7185 hardcode_action=unsupported
7187 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
7188 echo "${ECHO_T}$hardcode_action" >&6; }
7192 ## FIXME: this should be a separate macro
7196 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7197 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
7198 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7199 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7200 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7201 { echo "$as_me:$LINENO: result: yes" >&5
7202 echo "${ECHO_T}yes" >&6; }
7204 { echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6; }
7210 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7211 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7213 ## FIXME: this should be a separate macro
7215 # PORTME Fill in your ld.so characteristics
7216 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7217 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7219 libname_spec='lib$name'
7226 shlibpath_overrides_runpath=unknown
7228 dynamic_linker="$host_os ld.so"
7229 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7230 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7235 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7236 shlibpath_var=LIBPATH
7238 # AIX has no versioning support, so we append a major version to the name.
7239 soname_spec='${libname}${release}.so$major'
7244 if test "$host_cpu" = ia64; then
7245 # AIX 5 supports IA64
7246 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7247 shlibpath_var=LD_LIBRARY_PATH
7249 # With GCC up to 2.95.x, collect2 would create an import file
7250 # for dependence libraries. The import file would start with
7251 # the line `#! .'. This would cause the generated library to
7252 # depend on `.', always an invalid library. This was fixed in
7253 # development snapshots of GCC prior to 3.0.
7255 aix4 | aix4.[01] | aix4.[01].*)
7256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7258 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7265 # AIX (on Power*) has no versioning support, so currently we can
7266 # not hardcode correct soname into executable. Probably we can
7267 # add versioning support to collect2, so additional links can
7268 # be useful in future.
7269 if test "$aix_use_runtimelinking" = yes; then
7270 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7271 # instead of lib<name>.a to let people know that these are not
7272 # typical AIX shared libraries.
7273 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7275 # We preserve .a as extension for shared libraries through AIX4.2
7276 # and later when we are not doing run time linking.
7277 library_names_spec='${libname}${release}.a $libname.a'
7278 soname_spec='${libname}${release}.so$major'
7280 shlibpath_var=LIBPATH
7285 library_names_spec='$libname.ixlibrary $libname.a'
7286 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7287 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
7291 library_names_spec='${libname}.so'
7292 dynamic_linker="$host_os ld.so"
7293 shlibpath_var=LIBRARY_PATH
7299 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7300 soname_spec='${libname}${release}.so$major'
7301 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7302 shlibpath_var=LD_LIBRARY_PATH
7303 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7304 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7305 export_dynamic_flag_spec=-rdynamic
7306 # the default ld.so.conf also contains /usr/contrib/lib and
7307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7308 # libtool to hard-code these into programs
7311 cygwin* | mingw* | pw32*)
7312 version_type=windows
7315 case $GCC,$host_os in
7317 library_names_spec='$libname.dll.a'
7318 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7319 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7320 dldir=$destdir/`dirname \$dlpath`~
7321 test -d \$dldir || mkdir -p \$dldir~
7322 $install_prog .libs/$dlname \$dldir/$dlname'
7323 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7324 dlpath=$dir/\$dldll~
7328 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7329 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
7332 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7335 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7338 dynamic_linker='Win32 ld.exe'
7339 # FIXME: first we should search . and the directory the executable is in
7343 darwin* | rhapsody*)
7344 dynamic_linker="$host_os dyld"
7348 # FIXME: Relying on posixy $() will cause problems for
7349 # cross-compilation, but unfortunately the echo tests do not
7350 # yet detect zsh echo's removal of \ escapes.
7351 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7352 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7353 shlibpath_overrides_runpath=yes
7354 shlibpath_var=DYLD_LIBRARY_PATH
7362 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7363 version_type=freebsd-$objformat
7364 case $version_type in
7366 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7371 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7375 shlibpath_var=LD_LIBRARY_PATH
7378 shlibpath_overrides_runpath=yes
7381 shlibpath_overrides_runpath=no
7382 hardcode_into_libs=yes
7391 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7392 soname_spec='${libname}${release}.so$major'
7393 shlibpath_var=LD_LIBRARY_PATH
7394 hardcode_into_libs=yes
7397 hpux9* | hpux10* | hpux11*)
7398 # Give a soname corresponding to the major version so that dld.sl refuses to
7399 # link against other versions.
7400 dynamic_linker="$host_os dld.sl"
7404 shlibpath_var=SHLIB_PATH
7405 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7406 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7407 soname_spec='${libname}${release}.sl$major'
7408 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7409 postinstall_cmds='chmod 555 $lib'
7412 irix5* | irix6* | nonstopux*)
7414 nonstopux*) version_type=nonstopux ;;
7415 *) version_type=irix ;;
7419 soname_spec='${libname}${release}.so$major'
7420 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7422 irix5* | nonstopux*)
7426 case $LD in # libtool.m4 will add one of these switches to LD
7427 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7428 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7429 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7430 *) libsuff= shlibsuff= libmagic=never-match;;
7434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7435 shlibpath_overrides_runpath=no
7436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7440 # No shared lib support for Linux oldld, aout, or coff.
7441 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7445 # This must be Linux ELF.
7450 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7451 soname_spec='${libname}${release}.so$major'
7452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7453 shlibpath_var=LD_LIBRARY_PATH
7454 shlibpath_overrides_runpath=no
7455 # This implies no fast_install, which is unacceptable.
7456 # Some rework will be needed to allow for fast_install
7457 # before this can be enabled.
7458 hardcode_into_libs=yes
7460 # We used to test for /lib/ld.so.1 and disable shared libraries on
7461 # powerpc, because MkLinux only supported shared libraries with the
7462 # GNU dynamic linker. Since this was broken with cross compilers,
7463 # most powerpc-linux boxes support dynamic linking these days and
7464 # people can always --disable-shared, the test was removed, and we
7465 # assume the GNU/Linux dynamic linker is in use.
7466 dynamic_linker='GNU/Linux ld.so'
7473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7474 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7476 dynamic_linker='NetBSD (a.out) ld.so'
7478 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7479 soname_spec='${libname}${release}.so$major'
7480 dynamic_linker='NetBSD ld.elf_so'
7482 shlibpath_var=LD_LIBRARY_PATH
7483 shlibpath_overrides_runpath=yes
7484 hardcode_into_libs=yes
7489 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7490 shlibpath_var=LD_LIBRARY_PATH
7491 shlibpath_overrides_runpath=yes
7498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7500 openbsd2.[89] | openbsd2.[89].*)
7501 shlibpath_overrides_runpath=no
7504 shlibpath_overrides_runpath=yes
7508 shlibpath_overrides_runpath=yes
7510 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7512 shlibpath_var=LD_LIBRARY_PATH
7516 libname_spec='$name'
7518 library_names_spec='$libname.dll $libname.a'
7519 dynamic_linker='OS/2 ld.exe'
7520 shlibpath_var=LIBPATH
7523 osf3* | osf4* | osf5*)
7526 soname_spec='${libname}${release}.so'
7527 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7528 shlibpath_var=LD_LIBRARY_PATH
7529 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7530 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7535 soname_spec='${libname}${release}.so$major'
7536 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7537 shlibpath_var=LD_LIBRARY_PATH
7544 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7545 soname_spec='${libname}${release}.so$major'
7546 shlibpath_var=LD_LIBRARY_PATH
7547 shlibpath_overrides_runpath=yes
7548 hardcode_into_libs=yes
7549 # ldd complains unless libraries are executable
7550 postinstall_cmds='chmod +x $lib'
7555 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7557 shlibpath_var=LD_LIBRARY_PATH
7558 shlibpath_overrides_runpath=yes
7559 if test "$with_gnu_ld" = yes; then
7565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7567 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7568 soname_spec='${libname}${release}.so$major'
7569 shlibpath_var=LD_LIBRARY_PATH
7570 case $host_vendor in
7572 shlibpath_overrides_runpath=no
7577 shlibpath_overrides_runpath=no
7578 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7585 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7586 soname_spec='${libname}${release}.so$major'
7587 shlibpath_var=LD_LIBRARY_PATH
7594 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7595 soname_spec='${libname}${release}.so$major'
7596 shlibpath_var=LD_LIBRARY_PATH
7600 if test -d /usr/nec ;then
7602 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7603 soname_spec='$libname.so.$major'
7604 shlibpath_var=LD_LIBRARY_PATH
7612 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7613 echo "${ECHO_T}$dynamic_linker" >&6; }
7614 test "$dynamic_linker" = no && can_build_shared=no
7618 ## FIXME: this should be a separate macro
7620 # Report the final consequences.
7621 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7622 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
7623 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
7624 echo "${ECHO_T}$can_build_shared" >&6; }
7628 ## FIXME: this should be a separate macro
7630 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7631 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
7632 test "$can_build_shared" = "no" && enable_shared=no
7634 # On AIX, shared libraries and static libraries use the same namespace, and
7635 # are all built from PIC.
7638 test "$enable_shared" = yes && enable_static=no
7639 if test -n "$RANLIB"; then
7640 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7641 postinstall_cmds='$RANLIB $lib'
7646 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7647 test "$enable_shared" = yes && enable_static=no
7651 { echo "$as_me:$LINENO: result: $enable_shared" >&5
7652 echo "${ECHO_T}$enable_shared" >&6; }
7656 ## FIXME: this should be a separate macro
7658 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7659 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
7660 # Make sure either enable_shared or enable_static is yes.
7661 test "$enable_shared" = yes || enable_static=yes
7662 { echo "$as_me:$LINENO: result: $enable_static" >&5
7663 echo "${ECHO_T}$enable_static" >&6; }
7667 if test "$hardcode_action" = relink; then
7668 # Fast installation is not supported
7669 enable_fast_install=no
7670 elif test "$shlibpath_overrides_runpath" = yes ||
7671 test "$enable_shared" = no; then
7672 # Fast installation is not necessary
7673 enable_fast_install=needless
7676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7677 if test "$GCC" = yes; then
7678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7681 if test "x$enable_dlopen" != xyes; then
7682 enable_dlopen=unknown
7683 enable_dlopen_self=unknown
7684 enable_dlopen_self_static=unknown
7691 lt_cv_dlopen="load_add_on"
7693 lt_cv_dlopen_self=yes
7696 cygwin* | mingw* | pw32*)
7697 lt_cv_dlopen="LoadLibrary"
7702 { echo "$as_me:$LINENO: checking for shl_load" >&5
7703 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
7704 if test "${ac_cv_func_shl_load+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 cat >conftest.$ac_ext <<_ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7715 #define shl_load innocuous_shl_load
7717 /* System header to define __stub macros and hopefully few prototypes,
7718 which can conflict with char shl_load (); below.
7719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7720 <limits.h> exists even on freestanding compilers. */
7723 # include <limits.h>
7725 # include <assert.h>
7730 /* Override any GCC internal prototype to avoid an error.
7731 Use char because int might match the return type of a GCC
7732 builtin and then its argument prototype would still apply. */
7737 /* The GNU C library defines this for functions which it implements
7738 to always fail with ENOSYS. Some functions are actually named
7739 something starting with __ and the normal name is an alias. */
7740 #if defined __stub_shl_load || defined __stub___shl_load
7752 rm -f conftest.$ac_objext conftest$ac_exeext
7753 if { (ac_try="$ac_link"
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_link") 2>conftest.er1
7761 grep -v '^ *+' conftest.er1 >conftest.err
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } && {
7766 test -z "$ac_c_werror_flag" ||
7767 test ! -s conftest.err
7768 } && test -s conftest$ac_exeext &&
7769 $as_test_x conftest$ac_exeext; then
7770 ac_cv_func_shl_load=yes
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 ac_cv_func_shl_load=no
7778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7779 conftest$ac_exeext conftest.$ac_ext
7781 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7782 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
7783 if test $ac_cv_func_shl_load = yes; then
7784 lt_cv_dlopen="shl_load"
7786 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
7788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 ac_check_lib_save_LIBS=$LIBS
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7800 /* Override any GCC internal prototype to avoid an error.
7801 Use char because int might match the return type of a GCC
7802 builtin and then its argument prototype would still apply. */
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (ac_try="$ac_link"
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_link") 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && {
7829 test -z "$ac_c_werror_flag" ||
7830 test ! -s conftest.err
7831 } && test -s conftest$ac_exeext &&
7832 $as_test_x conftest$ac_exeext; then
7833 ac_cv_lib_dld_shl_load=yes
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_cv_lib_dld_shl_load=no
7841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7842 conftest$ac_exeext conftest.$ac_ext
7843 LIBS=$ac_check_lib_save_LIBS
7845 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7846 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
7847 if test $ac_cv_lib_dld_shl_load = yes; then
7848 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7850 { echo "$as_me:$LINENO: checking for dlopen" >&5
7851 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
7852 if test "${ac_cv_func_dlopen+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7863 #define dlopen innocuous_dlopen
7865 /* System header to define __stub macros and hopefully few prototypes,
7866 which can conflict with char dlopen (); below.
7867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7868 <limits.h> exists even on freestanding compilers. */
7871 # include <limits.h>
7873 # include <assert.h>
7878 /* Override any GCC internal prototype to avoid an error.
7879 Use char because int might match the return type of a GCC
7880 builtin and then its argument prototype would still apply. */
7885 /* The GNU C library defines this for functions which it implements
7886 to always fail with ENOSYS. Some functions are actually named
7887 something starting with __ and the normal name is an alias. */
7888 #if defined __stub_dlopen || defined __stub___dlopen
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (ac_try="$ac_link"
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_link") 2>conftest.er1
7909 grep -v '^ *+' conftest.er1 >conftest.err
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && {
7914 test -z "$ac_c_werror_flag" ||
7915 test ! -s conftest.err
7916 } && test -s conftest$ac_exeext &&
7917 $as_test_x conftest$ac_exeext; then
7918 ac_cv_func_dlopen=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 ac_cv_func_dlopen=no
7926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7927 conftest$ac_exeext conftest.$ac_ext
7929 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7930 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
7931 if test $ac_cv_func_dlopen = yes; then
7932 lt_cv_dlopen="dlopen"
7934 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7935 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
7936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 ac_check_lib_save_LIBS=$LIBS
7941 cat >conftest.$ac_ext <<_ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7948 /* Override any GCC internal prototype to avoid an error.
7949 Use char because int might match the return type of a GCC
7950 builtin and then its argument prototype would still apply. */
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (ac_try="$ac_link"
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970 (eval "$ac_link") 2>conftest.er1
7972 grep -v '^ *+' conftest.er1 >conftest.err
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } && {
7977 test -z "$ac_c_werror_flag" ||
7978 test ! -s conftest.err
7979 } && test -s conftest$ac_exeext &&
7980 $as_test_x conftest$ac_exeext; then
7981 ac_cv_lib_dl_dlopen=yes
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7986 ac_cv_lib_dl_dlopen=no
7989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7990 conftest$ac_exeext conftest.$ac_ext
7991 LIBS=$ac_check_lib_save_LIBS
7993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7994 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
7995 if test $ac_cv_lib_dl_dlopen = yes; then
7996 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7998 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7999 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8000 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 ac_check_lib_save_LIBS=$LIBS
8005 cat >conftest.$ac_ext <<_ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8012 /* Override any GCC internal prototype to avoid an error.
8013 Use char because int might match the return type of a GCC
8014 builtin and then its argument prototype would still apply. */
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (ac_try="$ac_link"
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_link") 2>conftest.er1
8036 grep -v '^ *+' conftest.er1 >conftest.err
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } && {
8041 test -z "$ac_c_werror_flag" ||
8042 test ! -s conftest.err
8043 } && test -s conftest$ac_exeext &&
8044 $as_test_x conftest$ac_exeext; then
8045 ac_cv_lib_svld_dlopen=yes
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 ac_cv_lib_svld_dlopen=no
8053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8054 conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8057 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8058 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8059 if test $ac_cv_lib_svld_dlopen = yes; then
8060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8062 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8063 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 ac_check_lib_save_LIBS=$LIBS
8069 cat >conftest.$ac_ext <<_ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8076 /* Override any GCC internal prototype to avoid an error.
8077 Use char because int might match the return type of a GCC
8078 builtin and then its argument prototype would still apply. */
8091 rm -f conftest.$ac_objext conftest$ac_exeext
8092 if { (ac_try="$ac_link"
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_link") 2>conftest.er1
8100 grep -v '^ *+' conftest.er1 >conftest.err
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest$ac_exeext &&
8108 $as_test_x conftest$ac_exeext; then
8109 ac_cv_lib_dld_dld_link=yes
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 ac_cv_lib_dld_dld_link=no
8117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8118 conftest$ac_exeext conftest.$ac_ext
8119 LIBS=$ac_check_lib_save_LIBS
8121 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8122 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8123 if test $ac_cv_lib_dld_dld_link = yes; then
8124 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8145 if test "x$lt_cv_dlopen" != xno; then
8151 case $lt_cv_dlopen in
8153 save_CPPFLAGS="$CPPFLAGS"
8154 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8156 save_LDFLAGS="$LDFLAGS"
8157 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8160 LIBS="$lt_cv_dlopen_libs $LIBS"
8162 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8163 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8164 if test "${lt_cv_dlopen_self+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 if test "$cross_compiling" = yes; then :
8168 lt_cv_dlopen_self=cross
8170 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8171 lt_status=$lt_dlunknown
8172 cat > conftest.$ac_ext <<EOF
8173 #line 8173 "configure"
8174 #include "confdefs.h"
8183 # define LT_DLGLOBAL RTLD_GLOBAL
8186 # define LT_DLGLOBAL DL_GLOBAL
8188 # define LT_DLGLOBAL 0
8192 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8193 find out it does not work in some platform. */
8194 #ifndef LT_DLLAZY_OR_NOW
8196 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8199 # define LT_DLLAZY_OR_NOW DL_LAZY
8202 # define LT_DLLAZY_OR_NOW RTLD_NOW
8205 # define LT_DLLAZY_OR_NOW DL_NOW
8207 # define LT_DLLAZY_OR_NOW 0
8215 extern "C" void exit (int);
8218 void fnord() { int i=42;}
8221 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8222 int status = $lt_dlunknown;
8226 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8227 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8228 /* dlclose (self); */
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8239 (./conftest; exit; ) 2>/dev/null
8242 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8243 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8244 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8247 # compilation failed
8248 lt_cv_dlopen_self=no
8255 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8256 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8258 if test "x$lt_cv_dlopen_self" = xyes; then
8259 LDFLAGS="$LDFLAGS $link_static_flag"
8260 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8261 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8262 if test "${lt_cv_dlopen_self_static+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 if test "$cross_compiling" = yes; then :
8266 lt_cv_dlopen_self_static=cross
8268 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8269 lt_status=$lt_dlunknown
8270 cat > conftest.$ac_ext <<EOF
8271 #line 8271 "configure"
8272 #include "confdefs.h"
8281 # define LT_DLGLOBAL RTLD_GLOBAL
8284 # define LT_DLGLOBAL DL_GLOBAL
8286 # define LT_DLGLOBAL 0
8290 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8291 find out it does not work in some platform. */
8292 #ifndef LT_DLLAZY_OR_NOW
8294 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8297 # define LT_DLLAZY_OR_NOW DL_LAZY
8300 # define LT_DLLAZY_OR_NOW RTLD_NOW
8303 # define LT_DLLAZY_OR_NOW DL_NOW
8305 # define LT_DLLAZY_OR_NOW 0
8313 extern "C" void exit (int);
8316 void fnord() { int i=42;}
8319 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8320 int status = $lt_dlunknown;
8324 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8325 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8326 /* dlclose (self); */
8332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333 (eval $ac_link) 2>&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8337 (./conftest; exit; ) 2>/dev/null
8340 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8341 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8342 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8345 # compilation failed
8346 lt_cv_dlopen_self_static=no
8353 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8354 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8357 CPPFLAGS="$save_CPPFLAGS"
8358 LDFLAGS="$save_LDFLAGS"
8363 case $lt_cv_dlopen_self in
8364 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8365 *) enable_dlopen_self=unknown ;;
8368 case $lt_cv_dlopen_self_static in
8369 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8370 *) enable_dlopen_self_static=unknown ;;
8375 ## FIXME: this should be a separate macro
8377 if test "$enable_shared" = yes && test "$GCC" = yes; then
8378 case $archive_cmds in
8380 # FIXME: we may have to deal with multi-command sequences.
8383 # Test whether the compiler implicitly links with -lc since on some
8384 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8385 # to ld, don't add -lc before -lgcc.
8386 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8387 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8388 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 echo 'static int dummy;' > conftest.$ac_ext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395 (eval $ac_compile) 2>&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; then
8401 libobjs=conftest.$ac_objext
8403 wl=$lt_cv_prog_cc_wl
8409 save_allow_undefined_flag=$allow_undefined_flag
8410 allow_undefined_flag=
8411 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8412 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }
8417 lt_cv_archive_cmds_need_lc=no
8419 lt_cv_archive_cmds_need_lc=yes
8421 allow_undefined_flag=$save_allow_undefined_flag
8423 cat conftest.err 1>&5
8427 { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8428 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
8432 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8436 ## FIXME: this should be a separate macro
8438 # The second clause should only fire when bootstrapping the
8439 # libtool distribution, otherwise you forgot to ship ltmain.sh
8440 # with your package, and you will get complaints that there are
8441 # no rules to generate ltmain.sh.
8442 if test -f "$ltmain"; then
8445 # If there is no Makefile yet, we rely on a make rule to execute
8446 # `config.status --recheck' to rerun these tests and create the
8447 # libtool script then.
8448 test -f Makefile && make "$ltmain"
8451 if test -f "$ltmain"; then
8452 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8455 echo creating $ofile
8457 # Now quote all the things that may contain metacharacters while being
8458 # careful not to overquote the AC_SUBSTed values. We take copies of the
8459 # variables and quote the copies for generation of the libtool script.
8460 for var in echo old_CC old_CFLAGS \
8461 AR AR_FLAGS CC LD LN_S NM SHELL \
8462 reload_flag reload_cmds wl \
8463 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8464 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8465 library_names_spec soname_spec \
8466 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8467 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8468 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8469 old_striplib striplib file_magic_cmd export_symbols_cmds \
8470 deplibs_check_method allow_undefined_flag no_undefined_flag \
8471 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8472 global_symbol_to_c_name_address \
8473 hardcode_libdir_flag_spec hardcode_libdir_separator \
8474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8475 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8478 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8479 old_postinstall_cmds | old_postuninstall_cmds | \
8480 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8481 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8482 postinstall_cmds | postuninstall_cmds | \
8483 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8484 # Double-quote double-evaled strings.
8485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8488 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8493 cat <<__EOF__ > "${ofile}T"
8496 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8497 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8498 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8500 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8501 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8503 # This program is free software; you can redistribute it and/or modify
8504 # it under the terms of the GNU General Public License as published by
8505 # the Free Software Foundation; either version 2 of the License, or
8506 # (at your option) any later version.
8508 # This program is distributed in the hope that it will be useful, but
8509 # WITHOUT ANY WARRANTY; without even the implied warranty of
8510 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8511 # General Public License for more details.
8513 # You should have received a copy of the GNU General Public License
8514 # along with this program; if not, write to the Free Software
8515 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8517 # As a special exception to the GNU General Public License, if you
8518 # distribute this file as part of a program that contains a
8519 # configuration script generated by Autoconf, you may include it under
8520 # the same distribution terms that you use for the rest of that program.
8522 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8523 Xsed="sed -e s/^X//"
8525 # The HP-UX ksh and POSIX shell print the target directory to stdout
8527 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8529 # ### BEGIN LIBTOOL CONFIG
8531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8533 # Shell to use when invoking shell scripts.
8536 # Whether or not to build shared libraries.
8537 build_libtool_libs=$enable_shared
8539 # Whether or not to build static libraries.
8540 build_old_libs=$enable_static
8542 # Whether or not to add -lc for building shared libraries.
8543 build_libtool_need_lc=$need_lc
8545 # Whether or not to optimize for fast installation.
8546 fast_install=$enable_fast_install
8549 host_alias=$host_alias
8552 # An echo program that does not interpret backslashes.
8557 AR_FLAGS=$lt_AR_FLAGS
8559 # The default C compiler.
8562 # Is the compiler the GNU C compiler?
8565 # The linker used to build libraries.
8568 # Whether we need hard or soft links.
8571 # A BSD-compatible nm program.
8574 # A symbol stripping program
8577 # Used to examine libraries when file_magic_cmd begins "file"
8578 MAGIC_CMD=$MAGIC_CMD
8580 # Used on cygwin: DLL creation program.
8583 # Used on cygwin: object dumper.
8586 # Used on cygwin: assembler.
8589 # The name of the directory that contains temporary libtool files.
8592 # How to create reloadable object files.
8593 reload_flag=$lt_reload_flag
8594 reload_cmds=$lt_reload_cmds
8596 # How to pass a linker flag through the compiler.
8599 # Object file suffix (normally "o").
8602 # Old archive suffix (normally "a").
8605 # Executable file suffix (normally "").
8608 # Additional compiler flags for building library objects.
8609 pic_flag=$lt_pic_flag
8612 # Does compiler simultaneously support -c and -o options?
8613 compiler_c_o=$lt_compiler_c_o
8615 # Can we write directly to a .lo ?
8616 compiler_o_lo=$lt_compiler_o_lo
8618 # Must we lock files when doing compilation ?
8619 need_locks=$lt_need_locks
8621 # Do we need the lib prefix for modules?
8622 need_lib_prefix=$need_lib_prefix
8624 # Do we need a version for libraries?
8625 need_version=$need_version
8627 # Whether dlopen is supported.
8628 dlopen_support=$enable_dlopen
8630 # Whether dlopen of programs is supported.
8631 dlopen_self=$enable_dlopen_self
8633 # Whether dlopen of statically linked programs is supported.
8634 dlopen_self_static=$enable_dlopen_self_static
8636 # Compiler flag to prevent dynamic linking.
8637 link_static_flag=$lt_link_static_flag
8639 # Compiler flag to turn off builtin functions.
8640 no_builtin_flag=$lt_no_builtin_flag
8642 # Compiler flag to allow reflexive dlopens.
8643 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8645 # Compiler flag to generate shared objects directly from archives.
8646 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8648 # Compiler flag to generate thread-safe objects.
8649 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8651 # Library versioning type.
8652 version_type=$version_type
8654 # Format of library name prefix.
8655 libname_spec=$lt_libname_spec
8657 # List of archive names. First name is the real one, the rest are links.
8658 # The last name is the one that the linker finds with -lNAME.
8659 library_names_spec=$lt_library_names_spec
8661 # The coded name of the library, if different from the real name.
8662 soname_spec=$lt_soname_spec
8664 # Commands used to build and install an old-style archive.
8666 old_archive_cmds=$lt_old_archive_cmds
8667 old_postinstall_cmds=$lt_old_postinstall_cmds
8668 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8670 # Create an old-style archive from a shared archive.
8671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8673 # Create a temporary old-style archive to link instead of a shared archive.
8674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8676 # Commands used to build and install a shared archive.
8677 archive_cmds=$lt_archive_cmds
8678 archive_expsym_cmds=$lt_archive_expsym_cmds
8679 postinstall_cmds=$lt_postinstall_cmds
8680 postuninstall_cmds=$lt_postuninstall_cmds
8682 # Commands to strip libraries.
8683 old_striplib=$lt_old_striplib
8684 striplib=$lt_striplib
8686 # Method to check whether dependent libraries are shared objects.
8687 deplibs_check_method=$lt_deplibs_check_method
8689 # Command to use when deplibs_check_method == file_magic.
8690 file_magic_cmd=$lt_file_magic_cmd
8692 # Flag that allows shared libraries with undefined symbols to be built.
8693 allow_undefined_flag=$lt_allow_undefined_flag
8695 # Flag that forces no undefined symbols.
8696 no_undefined_flag=$lt_no_undefined_flag
8698 # Commands used to finish a libtool library installation in a directory.
8699 finish_cmds=$lt_finish_cmds
8701 # Same as above, but a single script fragment to be evaled but not shown.
8702 finish_eval=$lt_finish_eval
8704 # Take the output of nm and produce a listing of raw symbols and C names.
8705 global_symbol_pipe=$lt_global_symbol_pipe
8707 # Transform the output of nm in a proper C declaration
8708 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8710 # Transform the output of nm in a C name address pair
8711 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8713 # This is the shared library runtime path variable.
8714 runpath_var=$runpath_var
8716 # This is the shared library path variable.
8717 shlibpath_var=$shlibpath_var
8719 # Is shlibpath searched before the hard-coded library search path?
8720 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8722 # How to hardcode a shared library path into an executable.
8723 hardcode_action=$hardcode_action
8725 # Whether we should hardcode library paths into libraries.
8726 hardcode_into_libs=$hardcode_into_libs
8728 # Flag to hardcode \$libdir into a binary during linking.
8729 # This must work even if \$libdir does not exist.
8730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8732 # Whether we need a single -rpath flag with a separated argument.
8733 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8735 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8737 hardcode_direct=$hardcode_direct
8739 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8741 hardcode_minus_L=$hardcode_minus_L
8743 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8744 # the resulting binary.
8745 hardcode_shlibpath_var=$hardcode_shlibpath_var
8747 # Variables whose values should be saved in libtool wrapper scripts and
8748 # restored at relink time.
8749 variables_saved_for_relink="$variables_saved_for_relink"
8751 # Whether libtool must link a program against all its dependency libraries.
8752 link_all_deplibs=$link_all_deplibs
8754 # Compile-time system search path for libraries
8755 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8757 # Run-time system search path for libraries
8758 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8760 # Fix the shell variable \$srcfile for the compiler.
8761 fix_srcfile_path="$fix_srcfile_path"
8763 # Set to yes if exported symbols are required.
8764 always_export_symbols=$always_export_symbols
8766 # The commands to list exported symbols.
8767 export_symbols_cmds=$lt_export_symbols_cmds
8769 # The commands to extract the exported symbol list from a shared archive.
8770 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8772 # Symbols that should not be listed in the preloaded symbols.
8773 exclude_expsyms=$lt_exclude_expsyms
8775 # Symbols that must always be exported.
8776 include_expsyms=$lt_include_expsyms
8778 # ### END LIBTOOL CONFIG
8784 cat <<\EOF >> "${ofile}T"
8786 # AIX sometimes has problems with the GCC collect2 program. For some
8787 # reason, if we set the COLLECT_NAMES environment variable, the problems
8788 # vanish in a puff of smoke.
8789 if test "X${COLLECT_NAMES+set}" != Xset; then
8791 export COLLECT_NAMES
8798 cygwin* | mingw* | pw32* | os2*)
8799 cat <<'EOF' >> "${ofile}T"
8800 # This is a source program that is used to create dlls on Windows
8801 # Don't remove nor modify the starting and closing comments
8802 # /* ltdll.c starts here */
8803 # #define WIN32_LEAN_AND_MEAN
8804 # #include <windows.h>
8805 # #undef WIN32_LEAN_AND_MEAN
8806 # #include <stdio.h>
8808 # #ifndef __CYGWIN__
8809 # # ifdef __CYGWIN32__
8810 # # define __CYGWIN__ __CYGWIN32__
8814 # #ifdef __cplusplus
8817 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8818 # #ifdef __cplusplus
8823 # #include <cygwin/cygwin_dll.h>
8824 # DECLARE_CYGWIN_DLL( DllMain );
8826 # HINSTANCE __hDllInstance_base;
8829 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8831 # __hDllInstance_base = hInst;
8834 # /* ltdll.c ends here */
8835 # This is a source program that is used to create import libraries
8836 # on Windows for dlls which lack them. Don't remove nor modify the
8837 # starting and closing comments
8838 # /* impgen.c starts here */
8839 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8841 # This file is part of GNU libtool.
8843 # This program is free software; you can redistribute it and/or modify
8844 # it under the terms of the GNU General Public License as published by
8845 # the Free Software Foundation; either version 2 of the License, or
8846 # (at your option) any later version.
8848 # This program is distributed in the hope that it will be useful,
8849 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8850 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8851 # GNU General Public License for more details.
8853 # You should have received a copy of the GNU General Public License
8854 # along with this program; if not, write to the Free Software
8855 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8858 # #include <stdio.h> /* for printf() */
8859 # #include <unistd.h> /* for open(), lseek(), read() */
8860 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8861 # #include <string.h> /* for strdup() */
8863 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8865 # #define O_BINARY 0
8868 # static unsigned int
8869 # pe_get16 (fd, offset)
8873 # unsigned char b[2];
8874 # lseek (fd, offset, SEEK_SET);
8876 # return b[0] + (b[1]<<8);
8879 # static unsigned int
8880 # pe_get32 (fd, offset)
8884 # unsigned char b[4];
8885 # lseek (fd, offset, SEEK_SET);
8887 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8890 # static unsigned int
8894 # unsigned char *b = ptr;
8895 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8904 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8905 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8906 # unsigned long name_rvas, nexp;
8907 # unsigned char *expdata, *erva;
8908 # char *filename, *dll_name;
8910 # filename = argv[1];
8912 # dll = open(filename, O_RDONLY|O_BINARY);
8916 # dll_name = filename;
8918 # for (i=0; filename[i]; i++)
8919 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8920 # dll_name = filename + i +1;
8922 # pe_header_offset = pe_get32 (dll, 0x3c);
8923 # opthdr_ofs = pe_header_offset + 4 + 20;
8924 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8926 # if (num_entries < 1) /* no exports */
8929 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8930 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8931 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8932 # secptr = (pe_header_offset + 4 + 20 +
8933 # pe_get16 (dll, pe_header_offset + 4 + 16));
8936 # for (i = 0; i < nsections; i++)
8939 # unsigned long secptr1 = secptr + 40 * i;
8940 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8941 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8942 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8943 # lseek(dll, secptr1, SEEK_SET);
8944 # read(dll, sname, 8);
8945 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8947 # expptr = fptr + (export_rva - vaddr);
8948 # if (export_rva + export_size > vaddr + vsize)
8949 # export_size = vsize - (export_rva - vaddr);
8954 # expdata = (unsigned char*)malloc(export_size);
8955 # lseek (dll, expptr, SEEK_SET);
8956 # read (dll, expdata, export_size);
8957 # erva = expdata - export_rva;
8959 # nexp = pe_as32 (expdata+24);
8960 # name_rvas = pe_as32 (expdata+32);
8962 # printf ("EXPORTS\n");
8963 # for (i = 0; i<nexp; i++)
8965 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8966 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8971 # /* impgen.c ends here */
8977 # We use sed instead of cat because bash on DJGPP gets confused if
8978 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8979 # text mode, it properly converts lines to CR/LF. This bash problem
8980 # is reportedly fixed, but why not run on old versions too?
8981 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8983 mv -f "${ofile}T" "$ofile" || \
8984 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8994 # This can be used to rebuild libtool when needed
8995 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8997 # Always use our own libtool.
8998 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9000 # Prevent multiple expansion
9005 for ac_prog in flex lex
9007 # Extract the first word of "$ac_prog", so it can be a program name with args.
9008 set dummy $ac_prog; ac_word=$2
9009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9011 if test "${ac_cv_prog_LEX+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 if test -n "$LEX"; then
9015 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024 ac_cv_prog_LEX="$ac_prog"
9025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9035 if test -n "$LEX"; then
9036 { echo "$as_me:$LINENO: result: $LEX" >&5
9037 echo "${ECHO_T}$LEX" >&6; }
9039 { echo "$as_me:$LINENO: result: no" >&5
9040 echo "${ECHO_T}no" >&6; }
9044 test -n "$LEX" && break
9046 test -n "$LEX" || LEX=":"
9048 if test "x$LEX" != "x:"; then
9049 cat >conftest.l <<_ACEOF
9055 e { yyless (input () != 0); }
9056 f { unput (yytext[0]); }
9057 . { BEGIN INITIAL; }
9059 #ifdef YYTEXT_POINTER
9060 extern char *yytext;
9065 return ! yylex () + ! yywrap ();
9068 { (ac_try="$LEX conftest.l"
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$LEX conftest.l") 2>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }
9078 { echo "$as_me:$LINENO: checking lex output file root" >&5
9079 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
9080 if test "${ac_cv_prog_lex_root+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 if test -f lex.yy.c; then
9085 ac_cv_prog_lex_root=lex.yy
9086 elif test -f lexyy.c; then
9087 ac_cv_prog_lex_root=lexyy
9089 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9090 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9091 { (exit 1); exit 1; }; }
9094 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9095 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
9096 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9098 if test -z "${LEXLIB+set}"; then
9099 { echo "$as_me:$LINENO: checking lex library" >&5
9100 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
9101 if test "${ac_cv_lib_lex+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 ac_cv_lib_lex='none needed'
9107 for ac_lib in '' -lfl -ll; do
9108 LIBS="$ac_lib $ac_save_LIBS"
9109 cat >conftest.$ac_ext <<_ACEOF
9110 `cat $LEX_OUTPUT_ROOT.c`
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (ac_try="$ac_link"
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_link") 2>conftest.er1
9121 grep -v '^ *+' conftest.er1 >conftest.err
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } && {
9126 test -z "$ac_c_werror_flag" ||
9127 test ! -s conftest.err
9128 } && test -s conftest$ac_exeext &&
9129 $as_test_x conftest$ac_exeext; then
9130 ac_cv_lib_lex=$ac_lib
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9139 conftest$ac_exeext conftest.$ac_ext
9140 test "$ac_cv_lib_lex" != 'none needed' && break
9145 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
9146 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
9147 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
9151 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9152 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
9153 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 # POSIX says lex can declare yytext either as a pointer or an array; the
9157 # default is implementation-dependent. Figure out which it is, since
9158 # not all implementations provide the %pointer and %array declarations.
9159 ac_cv_prog_lex_yytext_pointer=no
9161 LIBS="$LEXLIB $ac_save_LIBS"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 #define YYTEXT_POINTER 1
9164 `cat $LEX_OUTPUT_ROOT.c`
9166 rm -f conftest.$ac_objext conftest$ac_exeext
9167 if { (ac_try="$ac_link"
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_link") 2>conftest.er1
9175 grep -v '^ *+' conftest.er1 >conftest.err
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } && {
9180 test -z "$ac_c_werror_flag" ||
9181 test ! -s conftest.err
9182 } && test -s conftest$ac_exeext &&
9183 $as_test_x conftest$ac_exeext; then
9184 ac_cv_prog_lex_yytext_pointer=yes
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9193 conftest$ac_exeext conftest.$ac_ext
9197 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9198 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
9199 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9201 cat >>confdefs.h <<\_ACEOF
9202 #define YYTEXT_POINTER 1
9206 rm -f conftest.l $LEX_OUTPUT_ROOT.c
9209 if test ${LEX} = "flex"; then
9210 cat >>confdefs.h <<\_ACEOF
9215 for ac_prog in 'bison -y' byacc
9217 # Extract the first word of "$ac_prog", so it can be a program name with args.
9218 set dummy $ac_prog; ac_word=$2
9219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9221 if test "${ac_cv_prog_YACC+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 if test -n "$YACC"; then
9225 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 test -z "$as_dir" && as_dir=.
9232 for ac_exec_ext in '' $ac_executable_extensions; do
9233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9234 ac_cv_prog_YACC="$ac_prog"
9235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9244 YACC=$ac_cv_prog_YACC
9245 if test -n "$YACC"; then
9246 { echo "$as_me:$LINENO: result: $YACC" >&5
9247 echo "${ECHO_T}$YACC" >&6; }
9249 { echo "$as_me:$LINENO: result: no" >&5
9250 echo "${ECHO_T}no" >&6; }
9254 test -n "$YACC" && break
9256 test -n "$YACC" || YACC="yacc"
9258 # Extract the first word of "bison++", so it can be a program name with args.
9259 set dummy bison++; ac_word=$2
9260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9262 if test "${ac_cv_prog_BISON_PLUS_PLUS+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 if test -n "$BISON_PLUS_PLUS"; then
9266 ac_cv_prog_BISON_PLUS_PLUS="$BISON_PLUS_PLUS" # Let the user override the test.
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 test -z "$as_dir" && as_dir=.
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9275 ac_cv_prog_BISON_PLUS_PLUS="bison++"
9276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9283 test -z "$ac_cv_prog_BISON_PLUS_PLUS" && ac_cv_prog_BISON_PLUS_PLUS=":"
9286 BISON_PLUS_PLUS=$ac_cv_prog_BISON_PLUS_PLUS
9287 if test -n "$BISON_PLUS_PLUS"; then
9288 { echo "$as_me:$LINENO: result: $BISON_PLUS_PLUS" >&5
9289 echo "${ECHO_T}$BISON_PLUS_PLUS" >&6; }
9291 { echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6; }
9299 ac_cpp='$CXXCPP $CPPFLAGS'
9300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9305 # Checking for header files.
9306 # ===========================================================================
9308 if test -d /stuff/include; then
9309 CPPFLAGS="$CPPFLAGS -I/stuff/include"
9314 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9316 if test "${ac_cv_header_stdc+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9338 rm -f conftest.$ac_objext
9339 if { (ac_try="$ac_compile"
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_compile") 2>conftest.er1
9347 grep -v '^ *+' conftest.er1 >conftest.err
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } && {
9352 test -z "$ac_cxx_werror_flag" ||
9353 test ! -s conftest.err
9354 } && test -s conftest.$ac_objext; then
9355 ac_cv_header_stdc=yes
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9360 ac_cv_header_stdc=no
9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9365 if test $ac_cv_header_stdc = yes; then
9366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9367 cat >conftest.$ac_ext <<_ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9377 $EGREP "memchr" >/dev/null 2>&1; then
9380 ac_cv_header_stdc=no
9386 if test $ac_cv_header_stdc = yes; then
9387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9388 cat >conftest.$ac_ext <<_ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9398 $EGREP "free" >/dev/null 2>&1; then
9401 ac_cv_header_stdc=no
9407 if test $ac_cv_header_stdc = yes; then
9408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9409 if test "$cross_compiling" = yes; then
9412 cat >conftest.$ac_ext <<_ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9420 #if ((' ' & 0x0FF) == 0x020)
9421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9424 # define ISLOWER(c) \
9425 (('a' <= (c) && (c) <= 'i') \
9426 || ('j' <= (c) && (c) <= 'r') \
9427 || ('s' <= (c) && (c) <= 'z'))
9428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9436 for (i = 0; i < 256; i++)
9437 if (XOR (islower (i), ISLOWER (i))
9438 || toupper (i) != TOUPPER (i))
9443 rm -f conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_link") 2>&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9454 { (case "(($ac_try" in
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_try") 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9465 echo "$as_me: program exited with status $ac_status" >&5
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9470 ac_cv_header_stdc=no
9472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9478 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9479 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9480 if test $ac_cv_header_stdc = yes; then
9482 cat >>confdefs.h <<\_ACEOF
9483 #define STDC_HEADERS 1
9491 for ac_header in getopt.h unistd.h termios.h
9493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 ac_res=`eval echo '${'$as_ac_Header'}'`
9501 { echo "$as_me:$LINENO: result: $ac_res" >&5
9502 echo "${ECHO_T}$ac_res" >&6; }
9504 # Is the header compilable?
9505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9507 cat >conftest.$ac_ext <<_ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9513 $ac_includes_default
9514 #include <$ac_header>
9516 rm -f conftest.$ac_objext
9517 if { (ac_try="$ac_compile"
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_compile") 2>conftest.er1
9525 grep -v '^ *+' conftest.er1 >conftest.err
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } && {
9530 test -z "$ac_cxx_werror_flag" ||
9531 test ! -s conftest.err
9532 } && test -s conftest.$ac_objext; then
9533 ac_header_compiler=yes
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_header_compiler=no
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9543 echo "${ECHO_T}$ac_header_compiler" >&6; }
9545 # Is the header present?
9546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 #include <$ac_header>
9556 if { (ac_try="$ac_cpp conftest.$ac_ext"
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9564 grep -v '^ *+' conftest.er1 >conftest.err
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } >/dev/null && {
9569 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9570 test ! -s conftest.err
9572 ac_header_preproc=yes
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_header_preproc=no
9580 rm -f conftest.err conftest.$ac_ext
9581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9582 echo "${ECHO_T}$ac_header_preproc" >&6; }
9584 # So? What about this header?
9585 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9591 ac_header_preproc=yes
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 eval "$as_ac_Header=\$ac_header_preproc"
9616 ac_res=`eval echo '${'$as_ac_Header'}'`
9617 { echo "$as_me:$LINENO: result: $ac_res" >&5
9618 echo "${ECHO_T}$ac_res" >&6; }
9621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9622 cat >>confdefs.h <<_ACEOF
9623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9631 if test "${ac_cv_header_curses_h+set}" = set; then
9632 { echo "$as_me:$LINENO: checking for curses.h" >&5
9633 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
9634 if test "${ac_cv_header_curses_h+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
9638 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
9640 # Is the header compilable?
9641 { echo "$as_me:$LINENO: checking curses.h usability" >&5
9642 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
9643 cat >conftest.$ac_ext <<_ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 $ac_includes_default
9652 rm -f conftest.$ac_objext
9653 if { (ac_try="$ac_compile"
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_compile") 2>conftest.er1
9661 grep -v '^ *+' conftest.er1 >conftest.err
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && {
9666 test -z "$ac_cxx_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest.$ac_objext; then
9669 ac_header_compiler=yes
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_header_compiler=no
9677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9679 echo "${ECHO_T}$ac_header_compiler" >&6; }
9681 # Is the header present?
9682 { echo "$as_me:$LINENO: checking curses.h presence" >&5
9683 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
9684 cat >conftest.$ac_ext <<_ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9692 if { (ac_try="$ac_cpp conftest.$ac_ext"
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9700 grep -v '^ *+' conftest.er1 >conftest.err
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } >/dev/null && {
9705 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9706 test ! -s conftest.err
9708 ac_header_preproc=yes
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 ac_header_preproc=no
9716 rm -f conftest.err conftest.$ac_ext
9717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9718 echo "${ECHO_T}$ac_header_preproc" >&6; }
9720 # So? What about this header?
9721 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9723 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
9724 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9725 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
9726 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
9727 ac_header_preproc=yes
9730 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
9731 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
9733 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
9734 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
9735 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
9736 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
9737 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
9739 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
9740 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
9741 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
9745 { echo "$as_me:$LINENO: checking for curses.h" >&5
9746 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
9747 if test "${ac_cv_header_curses_h+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 ac_cv_header_curses_h=$ac_header_preproc
9752 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
9753 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
9756 if test $ac_cv_header_curses_h = yes; then
9757 cat >>confdefs.h <<\_ACEOF
9758 #define HAVE_CURSES_H 1
9769 ucsim_cv_socket="unknown"
9770 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9771 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
9772 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
9773 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
9777 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
9779 # Is the header compilable?
9780 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
9781 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
9782 cat >conftest.$ac_ext <<_ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 $ac_includes_default
9789 #include <sys/socket.h>
9791 rm -f conftest.$ac_objext
9792 if { (ac_try="$ac_compile"
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_compile") 2>conftest.er1
9800 grep -v '^ *+' conftest.er1 >conftest.err
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_cxx_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest.$ac_objext; then
9808 ac_header_compiler=yes
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9813 ac_header_compiler=no
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9818 echo "${ECHO_T}$ac_header_compiler" >&6; }
9820 # Is the header present?
9821 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
9822 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 #include <sys/socket.h>
9831 if { (ac_try="$ac_cpp conftest.$ac_ext"
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } >/dev/null && {
9844 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9845 test ! -s conftest.err
9847 ac_header_preproc=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_header_preproc=no
9855 rm -f conftest.err conftest.$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857 echo "${ECHO_T}$ac_header_preproc" >&6; }
9859 # So? What about this header?
9860 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9862 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
9863 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
9865 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
9866 ac_header_preproc=yes
9869 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
9870 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
9872 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
9874 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
9876 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
9878 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
9880 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
9884 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
9885 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
9886 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 ac_cv_header_sys_socket_h=$ac_header_preproc
9891 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
9892 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
9895 if test $ac_cv_header_sys_socket_h = yes; then
9896 cat >>confdefs.h <<\_ACEOF
9897 #define HAVE_SYS_SOCKET_H 1
9900 cat >>confdefs.h <<\_ACEOF
9901 #define SOCKET_AVAIL 1
9904 cat >>confdefs.h <<_ACEOF
9905 #define UCSOCKET_T int
9908 ucsim_cv_socket="<sys/socket.h>"
9915 if test $ucsim_cv_socket = unknown; then
9916 if test "${ac_cv_header_winsock2_h+set}" = set; then
9917 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
9918 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
9919 if test "${ac_cv_header_winsock2_h+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9923 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
9925 # Is the header compilable?
9926 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5
9927 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
9928 cat >conftest.$ac_ext <<_ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9934 $ac_includes_default
9935 #include <winsock2.h>
9937 rm -f conftest.$ac_objext
9938 if { (ac_try="$ac_compile"
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_compile") 2>conftest.er1
9946 grep -v '^ *+' conftest.er1 >conftest.err
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_cxx_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest.$ac_objext; then
9954 ac_header_compiler=yes
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 ac_header_compiler=no
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9964 echo "${ECHO_T}$ac_header_compiler" >&6; }
9966 # Is the header present?
9967 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5
9968 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 #include <winsock2.h>
9977 if { (ac_try="$ac_cpp conftest.$ac_ext"
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9985 grep -v '^ *+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } >/dev/null && {
9990 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9991 test ! -s conftest.err
9993 ac_header_preproc=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_header_preproc=no
10001 rm -f conftest.err conftest.$ac_ext
10002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10003 echo "${ECHO_T}$ac_header_preproc" >&6; }
10005 # So? What about this header?
10006 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10008 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
10009 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10010 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
10011 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
10012 ac_header_preproc=yes
10015 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
10016 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
10017 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
10018 echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
10019 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
10020 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
10022 echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
10023 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
10024 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
10025 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
10026 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
10030 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
10031 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
10032 if test "${ac_cv_header_winsock2_h+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 ac_cv_header_winsock2_h=$ac_header_preproc
10037 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
10038 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
10041 if test $ac_cv_header_winsock2_h = yes; then
10042 cat >>confdefs.h <<\_ACEOF
10043 #define HAVE_WINSOCK2_H 1
10046 cat >>confdefs.h <<\_ACEOF
10047 #define SOCKET_AVAIL 1
10050 cat >>confdefs.h <<_ACEOF
10051 #define UCSOCKET_T SOCKET
10054 ucsim_cv_socket="<winsock2.h>"
10063 if test $ucsim_cv_socket != unknown; then
10064 cat >conftest.$ac_ext <<_ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 #include <$ucsim_cv_socket>
10073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10074 $EGREP "socklen_t" >/dev/null 2>&1; then
10075 cat >>confdefs.h <<_ACEOF
10076 #define SOCKLEN_T socklen_t
10080 cat >>confdefs.h <<_ACEOF
10081 #define SOCKLEN_T uint
10088 cat >>confdefs.h <<_ACEOF
10089 #define HEADER_SOCKET ${ucsim_cv_socket}
10093 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10094 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10095 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10096 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10100 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10102 # Is the header compilable?
10103 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
10104 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
10105 cat >conftest.$ac_ext <<_ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111 $ac_includes_default
10114 rm -f conftest.$ac_objext
10115 if { (ac_try="$ac_compile"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_compile") 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && {
10128 test -z "$ac_cxx_werror_flag" ||
10129 test ! -s conftest.err
10130 } && test -s conftest.$ac_objext; then
10131 ac_header_compiler=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_header_compiler=no
10139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10141 echo "${ECHO_T}$ac_header_compiler" >&6; }
10143 # Is the header present?
10144 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
10145 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
10146 cat >conftest.$ac_ext <<_ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10154 if { (ac_try="$ac_cpp conftest.$ac_ext"
10155 case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10162 grep -v '^ *+' conftest.er1 >conftest.err
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } >/dev/null && {
10167 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10168 test ! -s conftest.err
10170 ac_header_preproc=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ac_header_preproc=no
10178 rm -f conftest.err conftest.$ac_ext
10179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10180 echo "${ECHO_T}$ac_header_preproc" >&6; }
10182 # So? What about this header?
10183 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10185 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
10186 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10187 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
10188 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
10189 ac_header_preproc=yes
10192 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
10193 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
10194 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
10195 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
10196 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
10197 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
10198 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
10199 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
10201 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
10203 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
10207 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10208 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10209 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 ac_cv_header_dlfcn_h=$ac_header_preproc
10214 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10215 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10225 ac_header_dirent=no
10226 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10227 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10228 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10229 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 cat >conftest.$ac_ext <<_ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 #include <sys/types.h>
10251 rm -f conftest.$ac_objext
10252 if { (ac_try="$ac_compile"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_compile") 2>conftest.er1
10260 grep -v '^ *+' conftest.er1 >conftest.err
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } && {
10265 test -z "$ac_cxx_werror_flag" ||
10266 test ! -s conftest.err
10267 } && test -s conftest.$ac_objext; then
10268 eval "$as_ac_Header=yes"
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10273 eval "$as_ac_Header=no"
10276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10278 ac_res=`eval echo '${'$as_ac_Header'}'`
10279 { echo "$as_me:$LINENO: result: $ac_res" >&5
10280 echo "${ECHO_T}$ac_res" >&6; }
10281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10282 cat >>confdefs.h <<_ACEOF
10283 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10286 ac_header_dirent=$ac_hdr; break
10290 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10291 if test $ac_header_dirent = dirent.h; then
10292 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10293 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10294 if test "${ac_cv_search_opendir+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 ac_func_search_save_LIBS=$LIBS
10298 cat >conftest.$ac_ext <<_ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10305 /* Override any GCC internal prototype to avoid an error.
10306 Use char because int might match the return type of a GCC
10307 builtin and then its argument prototype would still apply. */
10320 for ac_lib in '' dir; do
10321 if test -z "$ac_lib"; then
10322 ac_res="none required"
10325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (ac_try="$ac_link"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_link") 2>conftest.er1
10336 grep -v '^ *+' conftest.er1 >conftest.err
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_cxx_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest$ac_exeext &&
10344 $as_test_x conftest$ac_exeext; then
10345 ac_cv_search_opendir=$ac_res
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10355 if test "${ac_cv_search_opendir+set}" = set; then
10359 if test "${ac_cv_search_opendir+set}" = set; then
10362 ac_cv_search_opendir=no
10364 rm conftest.$ac_ext
10365 LIBS=$ac_func_search_save_LIBS
10367 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10368 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10369 ac_res=$ac_cv_search_opendir
10370 if test "$ac_res" != no; then
10371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10376 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10377 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10378 if test "${ac_cv_search_opendir+set}" = set; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 ac_func_search_save_LIBS=$LIBS
10382 cat >conftest.$ac_ext <<_ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10404 for ac_lib in '' x; do
10405 if test -z "$ac_lib"; then
10406 ac_res="none required"
10409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && {
10425 test -z "$ac_cxx_werror_flag" ||
10426 test ! -s conftest.err
10427 } && test -s conftest$ac_exeext &&
10428 $as_test_x conftest$ac_exeext; then
10429 ac_cv_search_opendir=$ac_res
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10439 if test "${ac_cv_search_opendir+set}" = set; then
10443 if test "${ac_cv_search_opendir+set}" = set; then
10446 ac_cv_search_opendir=no
10448 rm conftest.$ac_ext
10449 LIBS=$ac_func_search_save_LIBS
10451 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10452 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10453 ac_res=$ac_cv_search_opendir
10454 if test "$ac_res" != no; then
10455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10462 # This must be after CXXCPP
10464 { echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
10465 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6; }
10466 if test "${ucsim_cv_fd+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 ucsim_cv_fd="unknown"
10470 cat >conftest.$ac_ext <<_ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10477 #include <winsock2.h>
10482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10483 $EGREP "yes" >/dev/null 2>&1; then
10484 ucsim_cv_fd="<winsock2.h>"
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10495 #include <sys/time.h>
10500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10501 $EGREP "yes" >/dev/null 2>&1; then
10502 ucsim_cv_fd="<sys/time.h>"
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10513 #include <sys/types.h>
10518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10519 $EGREP "yes" >/dev/null 2>&1; then
10520 ucsim_cv_fd="<sys/types.h>"
10524 cat >conftest.$ac_ext <<_ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10531 #include <sys/select.h>
10536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10537 $EGREP "yes" >/dev/null 2>&1; then
10538 ucsim_cv_fd="<sys/select.h>"
10543 { echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
10544 echo "${ECHO_T}$ucsim_cv_fd" >&6; }
10546 ucsim_cv_header_ok=0
10547 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
10548 cat >>confdefs.h <<\_ACEOF
10549 #define FD_NEED_TIME_H 1
10552 ucsim_cv_header_ok=1
10554 cat >>confdefs.h <<\_ACEOF
10555 #define FD_NEED_TIME_H 0
10559 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
10560 cat >>confdefs.h <<\_ACEOF
10561 #define FD_NEED_TYPES_H 1
10564 ucsim_cv_header_ok=1
10566 cat >>confdefs.h <<\_ACEOF
10567 #define FD_NEED_TYPES_H 0
10571 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
10572 cat >>confdefs.h <<\_ACEOF
10573 #define FD_NEED_SELECT_H 1
10576 ucsim_cv_header_ok=1
10578 cat >>confdefs.h <<\_ACEOF
10579 #define FD_NEED_SELECT_H 0
10583 if echo $ucsim_cv_fd|grep winsock2 >/dev/null 2>&1; then
10584 cat >>confdefs.h <<\_ACEOF
10585 #define FD_NEED_WINSOCK2_H 1
10588 ucsim_cv_header_ok=1
10590 cat >>confdefs.h <<\_ACEOF
10591 #define FD_NEED_WINSOCK2_H 0
10596 cat >>confdefs.h <<_ACEOF
10597 #define FD_HEADER_OK ${ucsim_cv_header_ok}
10600 cat >>confdefs.h <<_ACEOF
10601 #define HEADER_FD ${ucsim_cv_fd}
10606 # Checking for functions/libs
10607 # ===========================================================================
10608 if echo $ucsim_cv_socket|grep winsock2 >/dev/null 2>&1; then
10609 LIBS="-lws2_32 $LIBS"
10612 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10613 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
10614 if test "${ac_cv_lib_socket_socket+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 ac_check_lib_save_LIBS=$LIBS
10618 LIBS="-lsocket $LIBS"
10619 cat >conftest.$ac_ext <<_ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10641 rm -f conftest.$ac_objext conftest$ac_exeext
10642 if { (ac_try="$ac_link"
10643 case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_link") 2>conftest.er1
10650 grep -v '^ *+' conftest.er1 >conftest.err
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && {
10655 test -z "$ac_cxx_werror_flag" ||
10656 test ! -s conftest.err
10657 } && test -s conftest$ac_exeext &&
10658 $as_test_x conftest$ac_exeext; then
10659 ac_cv_lib_socket_socket=yes
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_cv_lib_socket_socket=no
10667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10668 conftest$ac_exeext conftest.$ac_ext
10669 LIBS=$ac_check_lib_save_LIBS
10671 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10672 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
10673 if test $ac_cv_lib_socket_socket = yes; then
10674 cat >>confdefs.h <<_ACEOF
10675 #define HAVE_LIBSOCKET 1
10678 LIBS="-lsocket $LIBS"
10683 { echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
10684 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6; }
10685 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 ac_check_lib_save_LIBS=$LIBS
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10707 return xdr_short ();
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_cxx_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest$ac_exeext &&
10729 $as_test_x conftest$ac_exeext; then
10730 ac_cv_lib_nsl_xdr_short=yes
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ac_cv_lib_nsl_xdr_short=no
10738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LIBS=$ac_check_lib_save_LIBS
10742 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
10743 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6; }
10744 if test $ac_cv_lib_nsl_xdr_short = yes; then
10745 cat >>confdefs.h <<_ACEOF
10746 #define HAVE_LIBNSL 1
10755 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10756 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 ac_check_lib_save_LIBS=$LIBS
10762 cat >conftest.$ac_ext <<_ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10769 /* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10784 rm -f conftest.$ac_objext conftest$ac_exeext
10785 if { (ac_try="$ac_link"
10786 case "(($ac_try" in
10787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788 *) ac_try_echo=$ac_try;;
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791 (eval "$ac_link") 2>conftest.er1
10793 grep -v '^ *+' conftest.er1 >conftest.err
10795 cat conftest.err >&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } && {
10798 test -z "$ac_cxx_werror_flag" ||
10799 test ! -s conftest.err
10800 } && test -s conftest$ac_exeext &&
10801 $as_test_x conftest$ac_exeext; then
10802 ac_cv_lib_dl_dlopen=yes
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10807 ac_cv_lib_dl_dlopen=no
10810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10811 conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10816 if test $ac_cv_lib_dl_dlopen = yes; then
10827 #AC_CHECK_LIB(panel,panel_above,
10830 #CURSES_LIBS="-lpanel -lcurses"
10833 #AC_CHECK_LIB(curses,nl,
10835 #CURSES_LIBS="-lcurses"
10841 if test $curses_h_ok != yes; then
10845 { echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
10846 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6; }
10847 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-lpanel $LIBS"
10852 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10865 char panel_above ();
10869 return panel_above ();
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (ac_try="$ac_link"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_link") 2>conftest.er1
10883 grep -v '^ *+' conftest.er1 >conftest.err
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } && {
10888 test -z "$ac_cxx_werror_flag" ||
10889 test ! -s conftest.err
10890 } && test -s conftest$ac_exeext &&
10891 $as_test_x conftest$ac_exeext; then
10892 ac_cv_lib_panel_panel_above=yes
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 ac_cv_lib_panel_panel_above=no
10900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901 conftest$ac_exeext conftest.$ac_ext
10902 LIBS=$ac_check_lib_save_LIBS
10904 { echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
10905 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6; }
10906 if test $ac_cv_lib_panel_panel_above = yes; then
10909 CURSES_LIBS="-lpanel"
10917 if test $curses_ok != yes; then
10918 { echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
10919 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6; }
10920 if test "${ac_cv_lib_curses_nl+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 ac_check_lib_save_LIBS=$LIBS
10924 LIBS="-lcurses $LIBS"
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10947 rm -f conftest.$ac_objext conftest$ac_exeext
10948 if { (ac_try="$ac_link"
10949 case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_link") 2>conftest.er1
10956 grep -v '^ *+' conftest.er1 >conftest.err
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } && {
10961 test -z "$ac_cxx_werror_flag" ||
10962 test ! -s conftest.err
10963 } && test -s conftest$ac_exeext &&
10964 $as_test_x conftest$ac_exeext; then
10965 ac_cv_lib_curses_nl=yes
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_cv_lib_curses_nl=no
10973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10977 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
10978 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6; }
10979 if test $ac_cv_lib_curses_nl = yes; then
10981 CURSES_LIBS="-lcurses"
10988 if test $curses_ok != yes; then
10989 { echo "$as_me:$LINENO: checking for nl in -lncurses" >&5
10990 echo $ECHO_N "checking for nl in -lncurses... $ECHO_C" >&6; }
10991 if test "${ac_cv_lib_ncurses_nl+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lncurses $LIBS"
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11018 rm -f conftest.$ac_objext conftest$ac_exeext
11019 if { (ac_try="$ac_link"
11020 case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_link") 2>conftest.er1
11027 grep -v '^ *+' conftest.er1 >conftest.err
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } && {
11032 test -z "$ac_cxx_werror_flag" ||
11033 test ! -s conftest.err
11034 } && test -s conftest$ac_exeext &&
11035 $as_test_x conftest$ac_exeext; then
11036 ac_cv_lib_ncurses_nl=yes
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_cv_lib_ncurses_nl=no
11044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11045 conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11048 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_nl" >&5
11049 echo "${ECHO_T}$ac_cv_lib_ncurses_nl" >&6; }
11050 if test $ac_cv_lib_ncurses_nl = yes; then
11052 CURSES_LIBS="-lncurses"
11065 for ac_func in vprintf
11067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 cat >conftest.$ac_ext <<_ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11081 #define $ac_func innocuous_$ac_func
11083 /* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char $ac_func (); below.
11085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11086 <limits.h> exists even on freestanding compilers. */
11089 # include <limits.h>
11091 # include <assert.h>
11096 /* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11103 /* The GNU C library defines this for functions which it implements
11104 to always fail with ENOSYS. Some functions are actually named
11105 something starting with __ and the normal name is an alias. */
11106 #if defined __stub_$ac_func || defined __stub___$ac_func
11113 return $ac_func ();
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_link") 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } && {
11132 test -z "$ac_cxx_werror_flag" ||
11133 test ! -s conftest.err
11134 } && test -s conftest$ac_exeext &&
11135 $as_test_x conftest$ac_exeext; then
11136 eval "$as_ac_var=yes"
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11141 eval "$as_ac_var=no"
11144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145 conftest$ac_exeext conftest.$ac_ext
11147 ac_res=`eval echo '${'$as_ac_var'}'`
11148 { echo "$as_me:$LINENO: result: $ac_res" >&5
11149 echo "${ECHO_T}$ac_res" >&6; }
11150 if test `eval echo '${'$as_ac_var'}'` = yes; then
11151 cat >>confdefs.h <<_ACEOF
11152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11155 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11156 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11157 if test "${ac_cv_func__doprnt+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 cat >conftest.$ac_ext <<_ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11168 #define _doprnt innocuous__doprnt
11170 /* System header to define __stub macros and hopefully few prototypes,
11171 which can conflict with char _doprnt (); below.
11172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11173 <limits.h> exists even on freestanding compilers. */
11176 # include <limits.h>
11178 # include <assert.h>
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11190 /* The GNU C library defines this for functions which it implements
11191 to always fail with ENOSYS. Some functions are actually named
11192 something starting with __ and the normal name is an alias. */
11193 #if defined __stub__doprnt || defined __stub____doprnt
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11214 grep -v '^ *+' conftest.er1 >conftest.err
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && {
11219 test -z "$ac_cxx_werror_flag" ||
11220 test ! -s conftest.err
11221 } && test -s conftest$ac_exeext &&
11222 $as_test_x conftest$ac_exeext; then
11223 ac_cv_func__doprnt=yes
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11228 ac_cv_func__doprnt=no
11231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11232 conftest$ac_exeext conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11235 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11236 if test $ac_cv_func__doprnt = yes; then
11238 cat >>confdefs.h <<\_ACEOF
11239 #define HAVE_DOPRNT 1
11249 for ac_func in vsnprintf
11251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 cat >conftest.$ac_ext <<_ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11265 #define $ac_func innocuous_$ac_func
11267 /* System header to define __stub macros and hopefully few prototypes,
11268 which can conflict with char $ac_func (); below.
11269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11270 <limits.h> exists even on freestanding compilers. */
11273 # include <limits.h>
11275 # include <assert.h>
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11287 /* The GNU C library defines this for functions which it implements
11288 to always fail with ENOSYS. Some functions are actually named
11289 something starting with __ and the normal name is an alias. */
11290 #if defined __stub_$ac_func || defined __stub___$ac_func
11297 return $ac_func ();
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (ac_try="$ac_link"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_link") 2>conftest.er1
11311 grep -v '^ *+' conftest.er1 >conftest.err
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && {
11316 test -z "$ac_cxx_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest$ac_exeext &&
11319 $as_test_x conftest$ac_exeext; then
11320 eval "$as_ac_var=yes"
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 eval "$as_ac_var=no"
11328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11329 conftest$ac_exeext conftest.$ac_ext
11331 ac_res=`eval echo '${'$as_ac_var'}'`
11332 { echo "$as_me:$LINENO: result: $ac_res" >&5
11333 echo "${ECHO_T}$ac_res" >&6; }
11334 if test `eval echo '${'$as_ac_var'}'` = yes; then
11335 cat >>confdefs.h <<_ACEOF
11336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11343 for ac_func in _vsnprintf
11345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 cat >conftest.$ac_ext <<_ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11359 #define $ac_func innocuous_$ac_func
11361 /* System header to define __stub macros and hopefully few prototypes,
11362 which can conflict with char $ac_func (); below.
11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364 <limits.h> exists even on freestanding compilers. */
11367 # include <limits.h>
11369 # include <assert.h>
11374 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined __stub_$ac_func || defined __stub___$ac_func
11391 return $ac_func ();
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_link") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_cxx_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest$ac_exeext &&
11413 $as_test_x conftest$ac_exeext; then
11414 eval "$as_ac_var=yes"
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11419 eval "$as_ac_var=no"
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423 conftest$ac_exeext conftest.$ac_ext
11425 ac_res=`eval echo '${'$as_ac_var'}'`
11426 { echo "$as_me:$LINENO: result: $ac_res" >&5
11427 echo "${ECHO_T}$ac_res" >&6; }
11428 if test `eval echo '${'$as_ac_var'}'` = yes; then
11429 cat >>confdefs.h <<_ACEOF
11430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11437 for ac_func in vasprintf
11439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 cat >conftest.$ac_ext <<_ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11453 #define $ac_func innocuous_$ac_func
11455 /* System header to define __stub macros and hopefully few prototypes,
11456 which can conflict with char $ac_func (); below.
11457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458 <limits.h> exists even on freestanding compilers. */
11461 # include <limits.h>
11463 # include <assert.h>
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11475 /* The GNU C library defines this for functions which it implements
11476 to always fail with ENOSYS. Some functions are actually named
11477 something starting with __ and the normal name is an alias. */
11478 #if defined __stub_$ac_func || defined __stub___$ac_func
11485 return $ac_func ();
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (ac_try="$ac_link"
11492 case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_link") 2>conftest.er1
11499 grep -v '^ *+' conftest.er1 >conftest.err
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } && {
11504 test -z "$ac_cxx_werror_flag" ||
11505 test ! -s conftest.err
11506 } && test -s conftest$ac_exeext &&
11507 $as_test_x conftest$ac_exeext; then
11508 eval "$as_ac_var=yes"
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 eval "$as_ac_var=no"
11516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11517 conftest$ac_exeext conftest.$ac_ext
11519 ac_res=`eval echo '${'$as_ac_var'}'`
11520 { echo "$as_me:$LINENO: result: $ac_res" >&5
11521 echo "${ECHO_T}$ac_res" >&6; }
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11523 cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11538 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
11540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 cat >conftest.$ac_ext <<_ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11554 #define $ac_func innocuous_$ac_func
11556 /* System header to define __stub macros and hopefully few prototypes,
11557 which can conflict with char $ac_func (); below.
11558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11559 <limits.h> exists even on freestanding compilers. */
11562 # include <limits.h>
11564 # include <assert.h>
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11576 /* The GNU C library defines this for functions which it implements
11577 to always fail with ENOSYS. Some functions are actually named
11578 something starting with __ and the normal name is an alias. */
11579 #if defined __stub_$ac_func || defined __stub___$ac_func
11586 return $ac_func ();
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (ac_try="$ac_link"
11593 case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_link") 2>conftest.er1
11600 grep -v '^ *+' conftest.er1 >conftest.err
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } && {
11605 test -z "$ac_cxx_werror_flag" ||
11606 test ! -s conftest.err
11607 } && test -s conftest$ac_exeext &&
11608 $as_test_x conftest$ac_exeext; then
11609 eval "$as_ac_var=yes"
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11614 eval "$as_ac_var=no"
11617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11618 conftest$ac_exeext conftest.$ac_ext
11620 ac_res=`eval echo '${'$as_ac_var'}'`
11621 { echo "$as_me:$LINENO: result: $ac_res" >&5
11622 echo "${ECHO_T}$ac_res" >&6; }
11623 if test `eval echo '${'$as_ac_var'}'` = yes; then
11624 cat >>confdefs.h <<_ACEOF
11625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11633 for ac_func in strchr memcpy
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649 #define $ac_func innocuous_$ac_func
11651 /* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char $ac_func (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11657 # include <limits.h>
11659 # include <assert.h>
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11671 /* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11681 return $ac_func ();
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_cxx_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest$ac_exeext &&
11703 $as_test_x conftest$ac_exeext; then
11704 eval "$as_ac_var=yes"
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 eval "$as_ac_var=no"
11712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11713 conftest$ac_exeext conftest.$ac_ext
11715 ac_res=`eval echo '${'$as_ac_var'}'`
11716 { echo "$as_me:$LINENO: result: $ac_res" >&5
11717 echo "${ECHO_T}$ac_res" >&6; }
11718 if test `eval echo '${'$as_ac_var'}'` = yes; then
11719 cat >>confdefs.h <<_ACEOF
11720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11727 for ac_func in fgets
11729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11743 #define $ac_func innocuous_$ac_func
11745 /* System header to define __stub macros and hopefully few prototypes,
11746 which can conflict with char $ac_func (); below.
11747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11748 <limits.h> exists even on freestanding compilers. */
11751 # include <limits.h>
11753 # include <assert.h>
11758 /* Override any GCC internal prototype to avoid an error.
11759 Use char because int might match the return type of a GCC
11760 builtin and then its argument prototype would still apply. */
11765 /* The GNU C library defines this for functions which it implements
11766 to always fail with ENOSYS. Some functions are actually named
11767 something starting with __ and the normal name is an alias. */
11768 #if defined __stub_$ac_func || defined __stub___$ac_func
11775 return $ac_func ();
11780 rm -f conftest.$ac_objext conftest$ac_exeext
11781 if { (ac_try="$ac_link"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_link") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_cxx_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest$ac_exeext &&
11797 $as_test_x conftest$ac_exeext; then
11798 eval "$as_ac_var=yes"
11800 echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11803 eval "$as_ac_var=no"
11806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11807 conftest$ac_exeext conftest.$ac_ext
11809 ac_res=`eval echo '${'$as_ac_var'}'`
11810 { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11812 if test `eval echo '${'$as_ac_var'}'` = yes; then
11813 cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11821 for ac_func in yylex
11823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11837 #define $ac_func innocuous_$ac_func
11839 /* System header to define __stub macros and hopefully few prototypes,
11840 which can conflict with char $ac_func (); below.
11841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842 <limits.h> exists even on freestanding compilers. */
11845 # include <limits.h>
11847 # include <assert.h>
11852 /* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
11859 /* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
11862 #if defined __stub_$ac_func || defined __stub___$ac_func
11869 return $ac_func ();
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_link") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } && {
11888 test -z "$ac_cxx_werror_flag" ||
11889 test ! -s conftest.err
11890 } && test -s conftest$ac_exeext &&
11891 $as_test_x conftest$ac_exeext; then
11892 eval "$as_ac_var=yes"
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 eval "$as_ac_var=no"
11900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11901 conftest$ac_exeext conftest.$ac_ext
11903 ac_res=`eval echo '${'$as_ac_var'}'`
11904 { echo "$as_me:$LINENO: result: $ac_res" >&5
11905 echo "${ECHO_T}$ac_res" >&6; }
11906 if test `eval echo '${'$as_ac_var'}'` = yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11915 { echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
11916 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6; }
11917 if test "${ucsim_cv_scanf_a+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 echo "a b" >conftest.data
11921 if test "$cross_compiling" = yes; then
11922 ucsim_cv_scanf_a="unknown"
11924 cat >conftest.$ac_ext <<_ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11937 if ((f= fopen("conftest.data", "r")) == NULL)
11939 i= fscanf(f, " %a[a-z] ", &a);
11948 rm -f conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_link") 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11959 { (case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_try") 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 ucsim_cv_scanf_a="yes"
11970 echo "$as_me: program exited with status $ac_status" >&5
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 ( exit $ac_status )
11975 ucsim_cv_scanf_a="no"
11977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11983 { echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
11984 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6; }
11985 if test "$ucsim_cv_scanf_a" = "yes"; then
11986 cat >>confdefs.h <<\_ACEOF
11992 { echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
11993 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6; }
11994 if test "${ucsim_cv_getcwd+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 if test "$cross_compiling" = yes; then
11998 ucsim_cv_getcwd="unknown"
12000 cat >conftest.$ac_ext <<_ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12007 #include <unistd.h>
12010 if ((getcwd(NULL, 0)) == NULL)
12015 rm -f conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ucsim_cv_getcwd="yes"
12037 echo "$as_me: program exited with status $ac_status" >&5
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ( exit $ac_status )
12042 ucsim_cv_getcwd="no"
12044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12050 { echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
12051 echo "${ECHO_T}$ucsim_cv_getcwd" >&6; }
12052 if test "$ucsim_cv_getcwd" = "yes"; then
12053 cat >>confdefs.h <<\_ACEOF
12054 #define GNU_GETCWD 1
12062 { echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
12063 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6; }
12064 if test "${ucsim_cv_accept_length_type+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 ac_save_CPPFLAGS="$CPPFLAGS"
12068 ucsim_cv_accept_length_type=no
12069 for ac_val in int size_t socklen_t; do
12070 CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
12071 cat >conftest.$ac_ext <<_ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12077 #include <sys/types.h>
12078 #include ${ucsim_cv_socket}
12082 struct sockaddr a; $ac_val len; accept (0, &a, &len);
12087 rm -f conftest.$ac_objext
12088 if { (ac_try="$ac_compile"
12089 case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_compile") 2>conftest.er1
12096 grep -v '^ *+' conftest.er1 >conftest.err
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } && {
12101 test -z "$ac_cxx_werror_flag" ||
12102 test ! -s conftest.err
12103 } && test -s conftest.$ac_objext; then
12104 ucsim_cv_accept_length_type=$ac_val; break
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114 CPPFLAGS="$ac_save_CPPFLAGS"
12116 { echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
12117 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6; }
12118 if test "$ucsim_cv_accept_length_type" != no; then
12120 cat >>confdefs.h <<_ACEOF
12121 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
12128 # Macro definitions
12129 ###################
12131 # DD_COPT macro checks if the compiler specified as the 1st parameter
12132 # supports option specified as the 2nd parameter
12133 # For example: DD_COPT(CXX, fPIC)
12137 # DD_COPT_NO_IGNORE macro checks if the compiler specified as the
12138 # 1st parameter supports and doesn't ignore option specified as the
12140 # For example: DD_COPT_NO_IGNORE(CXX, fPIC)
12145 # Checking characteristics of compilers and other programs
12146 # --------------------------------------------------------
12148 # Cross compiling overrides
12150 if test "$CC" = "i586-mingw32msvc-gcc"; then
12151 ac_cv_c_bigendian=no
12152 ac_cv_sizeof_char=1
12153 ac_cv_sizeof_short=2
12155 ac_cv_sizeof_long=4
12156 ac_cv_sizeof_long_long=4
12159 # SDCC_BUILD_BIGENDIAN ([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
12160 # -------------------------------------------------------------------------
12161 # SDCC_BUILD_BIGENDIAN
12163 { echo "$as_me:$LINENO: checking whether host machine byte ordering is bigendian" >&5
12164 echo $ECHO_N "checking whether host machine byte ordering is bigendian... $ECHO_C" >&6; }
12165 if test "${sdcc_cv_build_bigendian+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 # See if sys/param.h defines the BYTE_ORDER macro.
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <sys/types.h>
12176 #include <sys/param.h>
12181 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12182 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12183 bogus endian macros
12190 rm -f conftest.$ac_objext
12191 if { (ac_try="$ac_compile"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_cxx_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest.$ac_objext; then
12207 # It does; now see whether it defined to BIG_ENDIAN or not.
12208 cat >conftest.$ac_ext <<_ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12214 #include <sys/types.h>
12215 #include <sys/param.h>
12220 #if BYTE_ORDER != BIG_ENDIAN
12228 rm -f conftest.$ac_objext
12229 if { (ac_try="$ac_compile"
12230 case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_compile") 2>conftest.er1
12237 grep -v '^ *+' conftest.er1 >conftest.err
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } && {
12242 test -z "$ac_cxx_werror_flag" ||
12243 test ! -s conftest.err
12244 } && test -s conftest.$ac_objext; then
12245 sdcc_cv_build_bigendian=yes
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 sdcc_cv_build_bigendian=no
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 # It does not; compile a test program.
12259 if test "$cross_compiling" = yes; then
12260 # try to guess the endianness by grepping values into an object file
12261 sdcc_cv_build_bigendian=unknown
12262 cat >conftest.$ac_ext <<_ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12268 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12269 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12270 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12271 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12272 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12273 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12277 _ascii (); _ebcdic ();
12282 rm -f conftest.$ac_objext
12283 if { (ac_try="$ac_compile"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_compile") 2>conftest.er1
12291 grep -v '^ *+' conftest.er1 >conftest.err
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } && {
12296 test -z "$ac_cxx_werror_flag" ||
12297 test ! -s conftest.err
12298 } && test -s conftest.$ac_objext; then
12299 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12300 sdcc_cv_build_bigendian=yes
12302 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12303 if test "$sdcc_cv_build_bigendian" = unknown; then
12304 sdcc_cv_build_bigendian=no
12306 # finding both strings is unlikely to happen, but who knows?
12307 sdcc_cv_build_bigendian=unknown
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 cat >conftest.$ac_ext <<_ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12325 $ac_includes_default
12330 /* Are we little or big endian? From Harbison&Steele. */
12334 char c[sizeof (long int)];
12337 return u.c[sizeof (long int) - 1] == 1;
12343 rm -f conftest$ac_exeext
12344 if { (ac_try="$ac_link"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_link") 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12354 { (case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_try") 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 sdcc_cv_build_bigendian=no
12365 echo "$as_me: program exited with status $ac_status" >&5
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ( exit $ac_status )
12370 sdcc_cv_build_bigendian=yes
12372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380 { echo "$as_me:$LINENO: result: $sdcc_cv_build_bigendian" >&5
12381 echo "${ECHO_T}$sdcc_cv_build_bigendian" >&6; }
12382 case $sdcc_cv_build_bigendian in
12385 cat >>confdefs.h <<\_ACEOF
12386 #define BUILD_WORDS_BIGENDIAN 1
12392 { { echo "$as_me:$LINENO: error: unknown endianness
12393 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&5
12394 echo "$as_me: error: unknown endianness
12395 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&2;}
12396 { (exit 1); exit 1; }; } ;;
12400 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
12401 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
12402 if test "${ucsim_cv_MM+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 echo "#include <stdio.h>" >_test_.c
12407 $CXXCPP -v -MM _test_.c 1>&5 2>&5
12408 if test "$?" = "0"; then
12415 { echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
12416 echo "${ECHO_T}$ucsim_cv_MM" >&6; }
12417 M_OR_MM=$ucsim_cv_MM
12420 # This is the first time when CFLAGS are set/modified!!
12423 { echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
12424 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6; }
12425 if test "${ucsim_cv_CXXggdb+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 cat >_test_.c <<EOF
12429 int main(void) {return(0);}
12431 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
12432 if test "$?" = "0"; then
12433 ucsim_cv_CXXggdb="yes"
12435 ucsim_cv_CXXggdb="no"
12437 rm -f _test_.* a.out
12439 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
12440 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6; }
12443 { echo "$as_me:$LINENO: checking whether $CXX accepts -gstabs" >&5
12444 echo $ECHO_N "checking whether $CXX accepts -gstabs... $ECHO_C" >&6; }
12445 if test "${ucsim_cv_CXXgstabs+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 cat >_test_.c <<EOF
12449 int main(void) {return(0);}
12451 $CXX -v -gstabs -c _test_.c 1>&5 2>&5
12452 if test "$?" = "0"; then
12453 ucsim_cv_CXXgstabs="yes"
12455 ucsim_cv_CXXgstabs="no"
12457 rm -f _test_.* a.out
12459 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXgstabs" >&5
12460 echo "${ECHO_T}$ucsim_cv_CXXgstabs" >&6; }
12462 if test "$ucsim_cv_CXXgstabs" = "yes"; then
12463 gopt="-gstabs+ -g3"
12464 elif test "$ucsim_cv_CXXggdb" = "yes"; then
12469 if test "$CXXFLAGS"x = x ;then
12472 CXXFLAGS="$CXXFLAGS $gopt"
12476 { echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
12477 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6; }
12478 if test "${ucsim_cv_CXXpipe+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 cat >_test_.c <<EOF
12482 int main(void) {return(0);}
12484 $CXX -v -pipe -c _test_.c 1>&5 2>&5
12485 if test "$?" = "0"; then
12486 ucsim_cv_CXXpipe="yes"
12488 ucsim_cv_CXXpipe="no"
12490 rm -f _test_.* a.out
12492 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
12493 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6; }
12495 if test "$ucsim_cv_CXXpipe" = "yes"; then
12496 CXXFLAGS="$CXXFLAGS -pipe"
12502 { echo "$as_me:$LINENO: checking whether $CXX accepts and doesn't ignore -fPIC" >&5
12503 echo $ECHO_N "checking whether $CXX accepts and doesn't ignore -fPIC... $ECHO_C" >&6; }
12504 if test "${ucsim_cv_CXXfPIC+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 cat >_test_.c <<EOF
12508 int main(void) {return(0);}
12510 ucsim_cv_CXXfPIC=$($CXX -v -fPIC -c _test_.c 2>&1 1>&5)
12511 if test "$?" = "0"; then
12512 expr "$ucsim_cv_CXXfPIC" : '.*'-fPIC'.*ignored' 1>&5 2>&5
12513 if test "$?" = "0"; then
12514 ucsim_cv_CXXfPIC="no"
12516 ucsim_cv_CXXfPIC="yes"
12519 ucsim_cv_CXXfPIC="no"
12521 rm -f _test_.* a.out
12523 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
12524 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6; }
12526 if test "$ucsim_cv_CXXfPIC" = "yes"; then
12530 { echo "$as_me:$LINENO: checking whether $CXX accepts and doesn't ignore -fpic" >&5
12531 echo $ECHO_N "checking whether $CXX accepts and doesn't ignore -fpic... $ECHO_C" >&6; }
12532 if test "${ucsim_cv_CXXfpic+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 cat >_test_.c <<EOF
12536 int main(void) {return(0);}
12538 ucsim_cv_CXXfpic=$($CXX -v -fpic -c _test_.c 2>&1 1>&5)
12539 if test "$?" = "0"; then
12540 expr "$ucsim_cv_CXXfpic" : '.*'-fpic'.*ignored' 1>&5 2>&5
12541 if test "$?" = "0"; then
12542 ucsim_cv_CXXfpic="no"
12544 ucsim_cv_CXXfpic="yes"
12547 ucsim_cv_CXXfpic="no"
12549 rm -f _test_.* a.out
12551 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
12552 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6; }
12554 if test "$ucsim_cv_CXXfpic" = "yes"; then
12558 if test "$PICOPT"x != "x"; then
12565 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
12570 # Checks for typedefs, structures, and compiler characteristics.
12571 # ===========================================================================
12573 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12574 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12575 if test "${ac_cv_type_signal+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 cat >conftest.$ac_ext <<_ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 #include <sys/types.h>
12585 #include <signal.h>
12590 return *(signal (0, 0)) (0) == 1;
12595 rm -f conftest.$ac_objext
12596 if { (ac_try="$ac_compile"
12597 case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_compile") 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && {
12609 test -z "$ac_cxx_werror_flag" ||
12610 test ! -s conftest.err
12611 } && test -s conftest.$ac_objext; then
12612 ac_cv_type_signal=int
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_cv_type_signal=void
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12623 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12625 cat >>confdefs.h <<_ACEOF
12626 #define RETSIGTYPE $ac_cv_type_signal
12630 if test "$cross_compiling" = "no"; then
12631 { echo "$as_me:$LINENO: checking for char" >&5
12632 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
12633 if test "${ac_cv_type_char+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 cat >conftest.$ac_ext <<_ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 $ac_includes_default
12643 typedef char ac__type_new_;
12647 if ((ac__type_new_ *) 0)
12649 if (sizeof (ac__type_new_))
12655 rm -f conftest.$ac_objext
12656 if { (ac_try="$ac_compile"
12657 case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_compile") 2>conftest.er1
12664 grep -v '^ *+' conftest.er1 >conftest.err
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } && {
12669 test -z "$ac_cxx_werror_flag" ||
12670 test ! -s conftest.err
12671 } && test -s conftest.$ac_objext; then
12672 ac_cv_type_char=yes
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12683 echo "${ECHO_T}$ac_cv_type_char" >&6; }
12685 # The cast to long int works around a bug in the HP C Compiler
12686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12688 # This bug is HP SR number 8606223364.
12689 { echo "$as_me:$LINENO: checking size of char" >&5
12690 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
12691 if test "${ac_cv_sizeof_char+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 if test "$cross_compiling" = yes; then
12695 # Depending upon the size, compute the lo and hi bounds.
12696 cat >conftest.$ac_ext <<_ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702 $ac_includes_default
12703 typedef char ac__type_sizeof_;
12707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12714 rm -f conftest.$ac_objext
12715 if { (ac_try="$ac_compile"
12716 case "(($ac_try" in
12717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718 *) ac_try_echo=$ac_try;;
12720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721 (eval "$ac_compile") 2>conftest.er1
12723 grep -v '^ *+' conftest.er1 >conftest.err
12725 cat conftest.err >&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } && {
12728 test -z "$ac_cxx_werror_flag" ||
12729 test ! -s conftest.err
12730 } && test -s conftest.$ac_objext; then
12733 cat >conftest.$ac_ext <<_ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739 $ac_includes_default
12740 typedef char ac__type_sizeof_;
12744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12751 rm -f conftest.$ac_objext
12752 if { (ac_try="$ac_compile"
12753 case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_compile") 2>conftest.er1
12760 grep -v '^ *+' conftest.er1 >conftest.err
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } && {
12765 test -z "$ac_cxx_werror_flag" ||
12766 test ! -s conftest.err
12767 } && test -s conftest.$ac_objext; then
12768 ac_hi=$ac_mid; break
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12773 ac_lo=`expr $ac_mid + 1`
12774 if test $ac_lo -le $ac_mid; then
12778 ac_mid=`expr 2 '*' $ac_mid + 1`
12781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 $ac_includes_default
12794 typedef char ac__type_sizeof_;
12798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12805 rm -f conftest.$ac_objext
12806 if { (ac_try="$ac_compile"
12807 case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812 (eval "$ac_compile") 2>conftest.er1
12814 grep -v '^ *+' conftest.er1 >conftest.err
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } && {
12819 test -z "$ac_cxx_werror_flag" ||
12820 test ! -s conftest.err
12821 } && test -s conftest.$ac_objext; then
12824 cat >conftest.$ac_ext <<_ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 $ac_includes_default
12831 typedef char ac__type_sizeof_;
12835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12842 rm -f conftest.$ac_objext
12843 if { (ac_try="$ac_compile"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_compile") 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_cxx_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest.$ac_objext; then
12859 ac_lo=$ac_mid; break
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_hi=`expr '(' $ac_mid ')' - 1`
12865 if test $ac_mid -le $ac_hi; then
12869 ac_mid=`expr 2 '*' $ac_mid`
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885 # Binary search between lo and hi bounds.
12886 while test "x$ac_lo" != "x$ac_hi"; do
12887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12888 cat >conftest.$ac_ext <<_ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12894 $ac_includes_default
12895 typedef char ac__type_sizeof_;
12899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12906 rm -f conftest.$ac_objext
12907 if { (ac_try="$ac_compile"
12908 case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_compile") 2>conftest.er1
12915 grep -v '^ *+' conftest.er1 >conftest.err
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } && {
12920 test -z "$ac_cxx_werror_flag" ||
12921 test ! -s conftest.err
12922 } && test -s conftest.$ac_objext; then
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12928 ac_lo=`expr '(' $ac_mid ')' + 1`
12931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934 ?*) ac_cv_sizeof_char=$ac_lo;;
12935 '') if test "$ac_cv_type_char" = yes; then
12936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
12937 See \`config.log' for more details." >&5
12938 echo "$as_me: error: cannot compute sizeof (char)
12939 See \`config.log' for more details." >&2;}
12940 { (exit 77); exit 77; }; }
12942 ac_cv_sizeof_char=0
12946 cat >conftest.$ac_ext <<_ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 $ac_includes_default
12953 typedef char ac__type_sizeof_;
12954 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12955 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12957 #include <stdlib.h>
12962 FILE *f = fopen ("conftest.val", "w");
12965 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12967 long int i = longval ();
12968 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12970 fprintf (f, "%ld\n", i);
12974 unsigned long int i = ulongval ();
12975 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12977 fprintf (f, "%lu\n", i);
12979 return ferror (f) || fclose (f) != 0;
12985 rm -f conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_link") 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12996 { (case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_try") 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 ac_cv_sizeof_char=`cat conftest.val`
13007 echo "$as_me: program exited with status $ac_status" >&5
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 ( exit $ac_status )
13012 if test "$ac_cv_type_char" = yes; then
13013 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
13014 See \`config.log' for more details." >&5
13015 echo "$as_me: error: cannot compute sizeof (char)
13016 See \`config.log' for more details." >&2;}
13017 { (exit 77); exit 77; }; }
13019 ac_cv_sizeof_char=0
13022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13027 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
13031 cat >>confdefs.h <<_ACEOF
13032 #define SIZEOF_CHAR $ac_cv_sizeof_char
13036 { echo "$as_me:$LINENO: checking for short" >&5
13037 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
13038 if test "${ac_cv_type_short+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13041 cat >conftest.$ac_ext <<_ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 $ac_includes_default
13048 typedef short ac__type_new_;
13052 if ((ac__type_new_ *) 0)
13054 if (sizeof (ac__type_new_))
13060 rm -f conftest.$ac_objext
13061 if { (ac_try="$ac_compile"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_compile") 2>conftest.er1
13069 grep -v '^ *+' conftest.er1 >conftest.err
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } && {
13074 test -z "$ac_cxx_werror_flag" ||
13075 test ! -s conftest.err
13076 } && test -s conftest.$ac_objext; then
13077 ac_cv_type_short=yes
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 ac_cv_type_short=no
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13088 echo "${ECHO_T}$ac_cv_type_short" >&6; }
13090 # The cast to long int works around a bug in the HP C Compiler
13091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13093 # This bug is HP SR number 8606223364.
13094 { echo "$as_me:$LINENO: checking size of short" >&5
13095 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
13096 if test "${ac_cv_sizeof_short+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 if test "$cross_compiling" = yes; then
13100 # Depending upon the size, compute the lo and hi bounds.
13101 cat >conftest.$ac_ext <<_ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 $ac_includes_default
13108 typedef short ac__type_sizeof_;
13112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13119 rm -f conftest.$ac_objext
13120 if { (ac_try="$ac_compile"
13121 case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_compile") 2>conftest.er1
13128 grep -v '^ *+' conftest.er1 >conftest.err
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } && {
13133 test -z "$ac_cxx_werror_flag" ||
13134 test ! -s conftest.err
13135 } && test -s conftest.$ac_objext; then
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 $ac_includes_default
13145 typedef short ac__type_sizeof_;
13149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13156 rm -f conftest.$ac_objext
13157 if { (ac_try="$ac_compile"
13158 case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_compile") 2>conftest.er1
13165 grep -v '^ *+' conftest.er1 >conftest.err
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && {
13170 test -z "$ac_cxx_werror_flag" ||
13171 test ! -s conftest.err
13172 } && test -s conftest.$ac_objext; then
13173 ac_hi=$ac_mid; break
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 ac_lo=`expr $ac_mid + 1`
13179 if test $ac_lo -le $ac_mid; then
13183 ac_mid=`expr 2 '*' $ac_mid + 1`
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 cat >conftest.$ac_ext <<_ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 $ac_includes_default
13199 typedef short ac__type_sizeof_;
13203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13210 rm -f conftest.$ac_objext
13211 if { (ac_try="$ac_compile"
13212 case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_compile") 2>conftest.er1
13219 grep -v '^ *+' conftest.er1 >conftest.err
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } && {
13224 test -z "$ac_cxx_werror_flag" ||
13225 test ! -s conftest.err
13226 } && test -s conftest.$ac_objext; then
13229 cat >conftest.$ac_ext <<_ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13235 $ac_includes_default
13236 typedef short ac__type_sizeof_;
13240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13247 rm -f conftest.$ac_objext
13248 if { (ac_try="$ac_compile"
13249 case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_compile") 2>conftest.er1
13256 grep -v '^ *+' conftest.er1 >conftest.err
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } && {
13261 test -z "$ac_cxx_werror_flag" ||
13262 test ! -s conftest.err
13263 } && test -s conftest.$ac_objext; then
13264 ac_lo=$ac_mid; break
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 ac_hi=`expr '(' $ac_mid ')' - 1`
13270 if test $ac_mid -le $ac_hi; then
13274 ac_mid=`expr 2 '*' $ac_mid`
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290 # Binary search between lo and hi bounds.
13291 while test "x$ac_lo" != "x$ac_hi"; do
13292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13293 cat >conftest.$ac_ext <<_ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13299 $ac_includes_default
13300 typedef short ac__type_sizeof_;
13304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13311 rm -f conftest.$ac_objext
13312 if { (ac_try="$ac_compile"
13313 case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_compile") 2>conftest.er1
13320 grep -v '^ *+' conftest.er1 >conftest.err
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } && {
13325 test -z "$ac_cxx_werror_flag" ||
13326 test ! -s conftest.err
13327 } && test -s conftest.$ac_objext; then
13330 echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13333 ac_lo=`expr '(' $ac_mid ')' + 1`
13336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339 ?*) ac_cv_sizeof_short=$ac_lo;;
13340 '') if test "$ac_cv_type_short" = yes; then
13341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13342 See \`config.log' for more details." >&5
13343 echo "$as_me: error: cannot compute sizeof (short)
13344 See \`config.log' for more details." >&2;}
13345 { (exit 77); exit 77; }; }
13347 ac_cv_sizeof_short=0
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 $ac_includes_default
13358 typedef short ac__type_sizeof_;
13359 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13360 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13362 #include <stdlib.h>
13367 FILE *f = fopen ("conftest.val", "w");
13370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13372 long int i = longval ();
13373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13375 fprintf (f, "%ld\n", i);
13379 unsigned long int i = ulongval ();
13380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13382 fprintf (f, "%lu\n", i);
13384 return ferror (f) || fclose (f) != 0;
13390 rm -f conftest$ac_exeext
13391 if { (ac_try="$ac_link"
13392 case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_link") 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13401 { (case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_try") 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
13410 ac_cv_sizeof_short=`cat conftest.val`
13412 echo "$as_me: program exited with status $ac_status" >&5
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13416 ( exit $ac_status )
13417 if test "$ac_cv_type_short" = yes; then
13418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13419 See \`config.log' for more details." >&5
13420 echo "$as_me: error: cannot compute sizeof (short)
13421 See \`config.log' for more details." >&2;}
13422 { (exit 77); exit 77; }; }
13424 ac_cv_sizeof_short=0
13427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13431 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13432 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
13436 cat >>confdefs.h <<_ACEOF
13437 #define SIZEOF_SHORT $ac_cv_sizeof_short
13441 { echo "$as_me:$LINENO: checking for int" >&5
13442 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13443 if test "${ac_cv_type_int+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 cat >conftest.$ac_ext <<_ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 $ac_includes_default
13453 typedef int ac__type_new_;
13457 if ((ac__type_new_ *) 0)
13459 if (sizeof (ac__type_new_))
13465 rm -f conftest.$ac_objext
13466 if { (ac_try="$ac_compile"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_compile") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && {
13479 test -z "$ac_cxx_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest.$ac_objext; then
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13493 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13495 # The cast to long int works around a bug in the HP C Compiler
13496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13498 # This bug is HP SR number 8606223364.
13499 { echo "$as_me:$LINENO: checking size of int" >&5
13500 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13501 if test "${ac_cv_sizeof_int+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 if test "$cross_compiling" = yes; then
13505 # Depending upon the size, compute the lo and hi bounds.
13506 cat >conftest.$ac_ext <<_ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13512 $ac_includes_default
13513 typedef int ac__type_sizeof_;
13517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13524 rm -f conftest.$ac_objext
13525 if { (ac_try="$ac_compile"
13526 case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_compile") 2>conftest.er1
13533 grep -v '^ *+' conftest.er1 >conftest.err
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } && {
13538 test -z "$ac_cxx_werror_flag" ||
13539 test ! -s conftest.err
13540 } && test -s conftest.$ac_objext; then
13543 cat >conftest.$ac_ext <<_ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549 $ac_includes_default
13550 typedef int ac__type_sizeof_;
13554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13561 rm -f conftest.$ac_objext
13562 if { (ac_try="$ac_compile"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_compile") 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } && {
13575 test -z "$ac_cxx_werror_flag" ||
13576 test ! -s conftest.err
13577 } && test -s conftest.$ac_objext; then
13578 ac_hi=$ac_mid; break
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_lo=`expr $ac_mid + 1`
13584 if test $ac_lo -le $ac_mid; then
13588 ac_mid=`expr 2 '*' $ac_mid + 1`
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 $ac_includes_default
13604 typedef int ac__type_sizeof_;
13608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13615 rm -f conftest.$ac_objext
13616 if { (ac_try="$ac_compile"
13617 case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_compile") 2>conftest.er1
13624 grep -v '^ *+' conftest.er1 >conftest.err
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } && {
13629 test -z "$ac_cxx_werror_flag" ||
13630 test ! -s conftest.err
13631 } && test -s conftest.$ac_objext; then
13634 cat >conftest.$ac_ext <<_ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13640 $ac_includes_default
13641 typedef int ac__type_sizeof_;
13645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13652 rm -f conftest.$ac_objext
13653 if { (ac_try="$ac_compile"
13654 case "(($ac_try" in
13655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656 *) ac_try_echo=$ac_try;;
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659 (eval "$ac_compile") 2>conftest.er1
13661 grep -v '^ *+' conftest.er1 >conftest.err
13663 cat conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } && {
13666 test -z "$ac_cxx_werror_flag" ||
13667 test ! -s conftest.err
13668 } && test -s conftest.$ac_objext; then
13669 ac_lo=$ac_mid; break
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13674 ac_hi=`expr '(' $ac_mid ')' - 1`
13675 if test $ac_mid -le $ac_hi; then
13679 ac_mid=`expr 2 '*' $ac_mid`
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13695 # Binary search between lo and hi bounds.
13696 while test "x$ac_lo" != "x$ac_hi"; do
13697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13698 cat >conftest.$ac_ext <<_ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 $ac_includes_default
13705 typedef int ac__type_sizeof_;
13709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13716 rm -f conftest.$ac_objext
13717 if { (ac_try="$ac_compile"
13718 case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_compile") 2>conftest.er1
13725 grep -v '^ *+' conftest.er1 >conftest.err
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } && {
13730 test -z "$ac_cxx_werror_flag" ||
13731 test ! -s conftest.err
13732 } && test -s conftest.$ac_objext; then
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ac_lo=`expr '(' $ac_mid ')' + 1`
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 ?*) ac_cv_sizeof_int=$ac_lo;;
13745 '') if test "$ac_cv_type_int" = yes; then
13746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13747 See \`config.log' for more details." >&5
13748 echo "$as_me: error: cannot compute sizeof (int)
13749 See \`config.log' for more details." >&2;}
13750 { (exit 77); exit 77; }; }
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13762 $ac_includes_default
13763 typedef int ac__type_sizeof_;
13764 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13765 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13767 #include <stdlib.h>
13772 FILE *f = fopen ("conftest.val", "w");
13775 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13777 long int i = longval ();
13778 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13780 fprintf (f, "%ld\n", i);
13784 unsigned long int i = ulongval ();
13785 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13787 fprintf (f, "%lu\n", i);
13789 return ferror (f) || fclose (f) != 0;
13795 rm -f conftest$ac_exeext
13796 if { (ac_try="$ac_link"
13797 case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_link") 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13806 { (case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_try") 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_cv_sizeof_int=`cat conftest.val`
13817 echo "$as_me: program exited with status $ac_status" >&5
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ( exit $ac_status )
13822 if test "$ac_cv_type_int" = yes; then
13823 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13824 See \`config.log' for more details." >&5
13825 echo "$as_me: error: cannot compute sizeof (int)
13826 See \`config.log' for more details." >&2;}
13827 { (exit 77); exit 77; }; }
13832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13836 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13837 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13841 cat >>confdefs.h <<_ACEOF
13842 #define SIZEOF_INT $ac_cv_sizeof_int
13846 { echo "$as_me:$LINENO: checking for long" >&5
13847 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13848 if test "${ac_cv_type_long+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 cat >conftest.$ac_ext <<_ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857 $ac_includes_default
13858 typedef long ac__type_new_;
13862 if ((ac__type_new_ *) 0)
13864 if (sizeof (ac__type_new_))
13870 rm -f conftest.$ac_objext
13871 if { (ac_try="$ac_compile"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_compile") 2>conftest.er1
13879 grep -v '^ *+' conftest.er1 >conftest.err
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } && {
13884 test -z "$ac_cxx_werror_flag" ||
13885 test ! -s conftest.err
13886 } && test -s conftest.$ac_objext; then
13887 ac_cv_type_long=yes
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13897 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13898 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13900 # The cast to long int works around a bug in the HP C Compiler
13901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13903 # This bug is HP SR number 8606223364.
13904 { echo "$as_me:$LINENO: checking size of long" >&5
13905 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13906 if test "${ac_cv_sizeof_long+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 if test "$cross_compiling" = yes; then
13910 # Depending upon the size, compute the lo and hi bounds.
13911 cat >conftest.$ac_ext <<_ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917 $ac_includes_default
13918 typedef long ac__type_sizeof_;
13922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13929 rm -f conftest.$ac_objext
13930 if { (ac_try="$ac_compile"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_compile") 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } && {
13943 test -z "$ac_cxx_werror_flag" ||
13944 test ! -s conftest.err
13945 } && test -s conftest.$ac_objext; then
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 typedef long ac__type_sizeof_;
13959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && {
13980 test -z "$ac_cxx_werror_flag" ||
13981 test ! -s conftest.err
13982 } && test -s conftest.$ac_objext; then
13983 ac_hi=$ac_mid; break
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13988 ac_lo=`expr $ac_mid + 1`
13989 if test $ac_lo -le $ac_mid; then
13993 ac_mid=`expr 2 '*' $ac_mid + 1`
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14002 cat >conftest.$ac_ext <<_ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 $ac_includes_default
14009 typedef long ac__type_sizeof_;
14013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14020 rm -f conftest.$ac_objext
14021 if { (ac_try="$ac_compile"
14022 case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_compile") 2>conftest.er1
14029 grep -v '^ *+' conftest.er1 >conftest.err
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } && {
14034 test -z "$ac_cxx_werror_flag" ||
14035 test ! -s conftest.err
14036 } && test -s conftest.$ac_objext; then
14039 cat >conftest.$ac_ext <<_ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 $ac_includes_default
14046 typedef long ac__type_sizeof_;
14050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14057 rm -f conftest.$ac_objext
14058 if { (ac_try="$ac_compile"
14059 case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_compile") 2>conftest.er1
14066 grep -v '^ *+' conftest.er1 >conftest.err
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } && {
14071 test -z "$ac_cxx_werror_flag" ||
14072 test ! -s conftest.err
14073 } && test -s conftest.$ac_objext; then
14074 ac_lo=$ac_mid; break
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14079 ac_hi=`expr '(' $ac_mid ')' - 1`
14080 if test $ac_mid -le $ac_hi; then
14084 ac_mid=`expr 2 '*' $ac_mid`
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14100 # Binary search between lo and hi bounds.
14101 while test "x$ac_lo" != "x$ac_hi"; do
14102 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14103 cat >conftest.$ac_ext <<_ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h. */
14109 $ac_includes_default
14110 typedef long ac__type_sizeof_;
14114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14121 rm -f conftest.$ac_objext
14122 if { (ac_try="$ac_compile"
14123 case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_compile") 2>conftest.er1
14130 grep -v '^ *+' conftest.er1 >conftest.err
14132 cat conftest.err >&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } && {
14135 test -z "$ac_cxx_werror_flag" ||
14136 test ! -s conftest.err
14137 } && test -s conftest.$ac_objext; then
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 ac_lo=`expr '(' $ac_mid ')' + 1`
14146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14149 ?*) ac_cv_sizeof_long=$ac_lo;;
14150 '') if test "$ac_cv_type_long" = yes; then
14151 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14152 See \`config.log' for more details." >&5
14153 echo "$as_me: error: cannot compute sizeof (long)
14154 See \`config.log' for more details." >&2;}
14155 { (exit 77); exit 77; }; }
14157 ac_cv_sizeof_long=0
14161 cat >conftest.$ac_ext <<_ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 $ac_includes_default
14168 typedef long ac__type_sizeof_;
14169 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14170 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14172 #include <stdlib.h>
14177 FILE *f = fopen ("conftest.val", "w");
14180 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14182 long int i = longval ();
14183 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14185 fprintf (f, "%ld\n", i);
14189 unsigned long int i = ulongval ();
14190 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14192 fprintf (f, "%lu\n", i);
14194 return ferror (f) || fclose (f) != 0;
14200 rm -f conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_link") 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14211 { (case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_try") 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; }; then
14220 ac_cv_sizeof_long=`cat conftest.val`
14222 echo "$as_me: program exited with status $ac_status" >&5
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14226 ( exit $ac_status )
14227 if test "$ac_cv_type_long" = yes; then
14228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14229 See \`config.log' for more details." >&5
14230 echo "$as_me: error: cannot compute sizeof (long)
14231 See \`config.log' for more details." >&2;}
14232 { (exit 77); exit 77; }; }
14234 ac_cv_sizeof_long=0
14237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14241 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14242 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
14246 cat >>confdefs.h <<_ACEOF
14247 #define SIZEOF_LONG $ac_cv_sizeof_long
14251 { echo "$as_me:$LINENO: checking for long long" >&5
14252 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14253 if test "${ac_cv_type_long_long+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 cat >conftest.$ac_ext <<_ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 $ac_includes_default
14263 typedef long long ac__type_new_;
14267 if ((ac__type_new_ *) 0)
14269 if (sizeof (ac__type_new_))
14275 rm -f conftest.$ac_objext
14276 if { (ac_try="$ac_compile"
14277 case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_compile") 2>conftest.er1
14284 grep -v '^ *+' conftest.er1 >conftest.err
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } && {
14289 test -z "$ac_cxx_werror_flag" ||
14290 test ! -s conftest.err
14291 } && test -s conftest.$ac_objext; then
14292 ac_cv_type_long_long=yes
14294 echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14297 ac_cv_type_long_long=no
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14303 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14305 # The cast to long int works around a bug in the HP C Compiler
14306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14308 # This bug is HP SR number 8606223364.
14309 { echo "$as_me:$LINENO: checking size of long long" >&5
14310 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
14311 if test "${ac_cv_sizeof_long_long+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 if test "$cross_compiling" = yes; then
14315 # Depending upon the size, compute the lo and hi bounds.
14316 cat >conftest.$ac_ext <<_ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 $ac_includes_default
14323 typedef long long ac__type_sizeof_;
14327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_compile") 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } && {
14348 test -z "$ac_cxx_werror_flag" ||
14349 test ! -s conftest.err
14350 } && test -s conftest.$ac_objext; then
14353 cat >conftest.$ac_ext <<_ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14359 $ac_includes_default
14360 typedef long long ac__type_sizeof_;
14364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14371 rm -f conftest.$ac_objext
14372 if { (ac_try="$ac_compile"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_cxx_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest.$ac_objext; then
14388 ac_hi=$ac_mid; break
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_lo=`expr $ac_mid + 1`
14394 if test $ac_lo -le $ac_mid; then
14398 ac_mid=`expr 2 '*' $ac_mid + 1`
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 $ac_includes_default
14414 typedef long long ac__type_sizeof_;
14418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_compile") 2>conftest.er1
14434 grep -v '^ *+' conftest.er1 >conftest.err
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } && {
14439 test -z "$ac_cxx_werror_flag" ||
14440 test ! -s conftest.err
14441 } && test -s conftest.$ac_objext; then
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 $ac_includes_default
14451 typedef long long ac__type_sizeof_;
14455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14462 rm -f conftest.$ac_objext
14463 if { (ac_try="$ac_compile"
14464 case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_compile") 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } && {
14476 test -z "$ac_cxx_werror_flag" ||
14477 test ! -s conftest.err
14478 } && test -s conftest.$ac_objext; then
14479 ac_lo=$ac_mid; break
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 ac_hi=`expr '(' $ac_mid ')' - 1`
14485 if test $ac_mid -le $ac_hi; then
14489 ac_mid=`expr 2 '*' $ac_mid`
14492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505 # Binary search between lo and hi bounds.
14506 while test "x$ac_lo" != "x$ac_hi"; do
14507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 $ac_includes_default
14515 typedef long long ac__type_sizeof_;
14519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14526 rm -f conftest.$ac_objext
14527 if { (ac_try="$ac_compile"
14528 case "(($ac_try" in
14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533 (eval "$ac_compile") 2>conftest.er1
14535 grep -v '^ *+' conftest.er1 >conftest.err
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } && {
14540 test -z "$ac_cxx_werror_flag" ||
14541 test ! -s conftest.err
14542 } && test -s conftest.$ac_objext; then
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 ac_lo=`expr '(' $ac_mid ')' + 1`
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14555 '') if test "$ac_cv_type_long_long" = yes; then
14556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14557 See \`config.log' for more details." >&5
14558 echo "$as_me: error: cannot compute sizeof (long long)
14559 See \`config.log' for more details." >&2;}
14560 { (exit 77); exit 77; }; }
14562 ac_cv_sizeof_long_long=0
14566 cat >conftest.$ac_ext <<_ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14572 $ac_includes_default
14573 typedef long long ac__type_sizeof_;
14574 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14575 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14577 #include <stdlib.h>
14582 FILE *f = fopen ("conftest.val", "w");
14585 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14587 long int i = longval ();
14588 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14590 fprintf (f, "%ld\n", i);
14594 unsigned long int i = ulongval ();
14595 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14597 fprintf (f, "%lu\n", i);
14599 return ferror (f) || fclose (f) != 0;
14605 rm -f conftest$ac_exeext
14606 if { (ac_try="$ac_link"
14607 case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_link") 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14616 { (case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_try") 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 ac_cv_sizeof_long_long=`cat conftest.val`
14627 echo "$as_me: program exited with status $ac_status" >&5
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 ( exit $ac_status )
14632 if test "$ac_cv_type_long_long" = yes; then
14633 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14634 See \`config.log' for more details." >&5
14635 echo "$as_me: error: cannot compute sizeof (long long)
14636 See \`config.log' for more details." >&2;}
14637 { (exit 77); exit 77; }; }
14639 ac_cv_sizeof_long_long=0
14642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14646 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14647 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14651 cat >>confdefs.h <<_ACEOF
14652 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14657 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
14658 ac_cv_sizeof_char=1
14659 ac_cv_sizeof_short=2
14661 ac_cv_sizeof_long=4
14662 ac_cv_sizeof_long_long=4
14671 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
14675 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
14679 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
14683 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
14687 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
14694 { echo "$as_me:$LINENO: checking type name for byte" >&5
14695 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6; }
14696 TYPE_BYTE=`type_name 1`
14697 { echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
14698 echo "${ECHO_T}$TYPE_BYTE" >&6; }
14699 { echo "$as_me:$LINENO: checking type name for word" >&5
14700 echo $ECHO_N "checking type name for word... $ECHO_C" >&6; }
14701 TYPE_WORD=`type_name 2`
14702 { echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
14703 echo "${ECHO_T}$TYPE_WORD" >&6; }
14704 { echo "$as_me:$LINENO: checking type name for dword" >&5
14705 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6; }
14706 TYPE_DWORD=`type_name 4`
14707 { echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
14708 echo "${ECHO_T}$TYPE_DWORD" >&6; }
14709 cat >>confdefs.h <<_ACEOF
14710 #define TYPE_BYTE $TYPE_BYTE
14713 cat >>confdefs.h <<_ACEOF
14714 #define TYPE_WORD $TYPE_WORD
14717 cat >>confdefs.h <<_ACEOF
14718 #define TYPE_DWORD $TYPE_DWORD
14722 if echo $TYPE_DWORD|grep short >/dev/null; then
14724 elif echo $TYPE_DWORD|grep long >/dev/null; then
14730 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
14731 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
14735 cat >>confdefs.h <<_ACEOF
14739 cat >>confdefs.h <<_ACEOF
14744 # Generating output files
14745 # ===========================================================================
14747 ac_config_files="$ac_config_files Makefile main.mk:main_in.mk packages.mk:packages_in.mk sim.src/Makefile cmd.src/Makefile s51.src/Makefile avr.src/Makefile z80.src/Makefile hc08.src/Makefile xa.src/Makefile gui.src/Makefile gui.src/serio.src/Makefile doc/Makefile"
14749 cat >confcache <<\_ACEOF
14750 # This file is a shell script that caches the results of configure
14751 # tests run on this system so they can be shared between configure
14752 # scripts and configure runs, see configure's option --config-cache.
14753 # It is not useful on other systems. If it contains results you don't
14754 # want to keep, you may remove or edit it.
14756 # config.status only pays attention to the cache file if you give it
14757 # the --recheck option to rerun configure.
14759 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14760 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14761 # following values.
14765 # The following way of writing the cache mishandles newlines in values,
14766 # but we know of no workaround that is simple, portable, and efficient.
14767 # So, we kill variables containing newlines.
14768 # Ultrix sh set writes to stderr and can't be redirected directly,
14769 # and sets the high bit in the cache file unless we assign to the vars.
14771 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14772 eval ac_val=\$$ac_var
14776 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14777 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14780 _ | IFS | as_nl) ;; #(
14781 *) $as_unset $ac_var ;;
14787 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14788 *${as_nl}ac_space=\ *)
14789 # `set' does not quote correctly, so add quotes (double-quote
14790 # substitution turns \\\\ into \\, and sed turns \\ into \).
14793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14796 # `set' quotes correctly as required by POSIX, so do not add quotes.
14797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14806 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14808 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14810 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14811 if test -w "$cache_file"; then
14812 test "x$cache_file" != "x/dev/null" &&
14813 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14814 echo "$as_me: updating cache $cache_file" >&6;}
14815 cat confcache >$cache_file
14817 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14818 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14824 # Let make expand exec_prefix.
14825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14827 DEFS=-DHAVE_CONFIG_H
14831 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14832 # 1. Remove the extension, and $U if already installed.
14833 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14834 ac_i=`echo "$ac_i" | sed "$ac_script"`
14835 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14836 # will be set to the directory where LIBOBJS objects are built.
14837 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14838 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14840 LIBOBJS=$ac_libobjs
14842 LTLIBOBJS=$ac_ltlibobjs
14846 : ${CONFIG_STATUS=./config.status}
14847 ac_clean_files_save=$ac_clean_files
14848 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14849 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14850 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14851 cat >$CONFIG_STATUS <<_ACEOF
14853 # Generated by $as_me.
14854 # Run this file to recreate the current configuration.
14855 # Compiler output produced by configure, useful for debugging
14856 # configure, is in config.log if it exists.
14859 ac_cs_recheck=false
14861 SHELL=\${CONFIG_SHELL-$SHELL}
14864 cat >>$CONFIG_STATUS <<\_ACEOF
14865 ## --------------------- ##
14866 ## M4sh Initialization. ##
14867 ## --------------------- ##
14869 # Be more Bourne compatible
14870 DUALCASE=1; export DUALCASE # for MKS sh
14871 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14874 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14875 # is contrary to our usage. Disable this feature.
14876 alias -g '${1+"$@"}'='"$@"'
14877 setopt NO_GLOB_SUBST
14879 case `(set -o) 2>/dev/null` in
14880 *posix*) set -o posix ;;
14889 # Avoid depending upon Character Ranges.
14890 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14891 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14892 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14893 as_cr_digits='0123456789'
14894 as_cr_alnum=$as_cr_Letters$as_cr_digits
14896 # The user is always right.
14897 if test "${PATH_SEPARATOR+set}" != set; then
14898 echo "#! /bin/sh" >conf$$.sh
14899 echo "exit 0" >>conf$$.sh
14901 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14909 # Support unset when possible.
14910 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14918 # We need space, tab and new line, in precisely that order. Quoting is
14919 # there to prevent editors from complaining about space-tab.
14920 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14921 # splitting by setting IFS to empty value.)
14926 # Find who we are. Look in the path if we contain no directory separator.
14928 *[\\/]* ) as_myself=$0 ;;
14929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14930 for as_dir in $PATH
14933 test -z "$as_dir" && as_dir=.
14934 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14940 # We did not find ourselves, most probably we were run as `sh COMMAND'
14941 # in which case we are not to be found in the path.
14942 if test "x$as_myself" = x; then
14945 if test ! -f "$as_myself"; then
14946 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14947 { (exit 1); exit 1; }
14950 # Work around bugs in pre-3.0 UWIN ksh.
14951 for as_var in ENV MAIL MAILPATH
14952 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14960 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14961 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14962 LC_TELEPHONE LC_TIME
14964 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14965 eval $as_var=C; export $as_var
14967 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14971 # Required to use basename.
14972 if expr a : '\(a\)' >/dev/null 2>&1 &&
14973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14979 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14980 as_basename=basename
14986 # Name of the executable.
14987 as_me=`$as_basename -- "$0" ||
14988 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14989 X"$0" : 'X\(//\)$' \| \
14990 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14992 sed '/^.*\/\([^/][^/]*\)\/*$/{
15011 as_lineno_1=$LINENO
15012 as_lineno_2=$LINENO
15013 test "x$as_lineno_1" != "x$as_lineno_2" &&
15014 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15016 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15017 # uniformly replaced by the line number. The first 'sed' inserts a
15018 # line-number line after each line using $LINENO; the second 'sed'
15019 # does the real work. The second script uses 'N' to pair each
15020 # line-number line with the line containing $LINENO, and appends
15021 # trailing '-' during substitution so that $LINENO is not a special
15022 # case at line end.
15023 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15024 # scripts with optimization help from Paolo Bonzini. Blame Lee
15025 # E. McMahon (1931-1989) for sed's syntax. :-)
15037 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15040 ' >$as_me.lineno &&
15041 chmod +x "$as_me.lineno" ||
15042 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15043 { (exit 1); exit 1; }; }
15045 # Don't try to exec as it changes $[0], causing all sort of problems
15046 # (the dirname of $[0] is not the place where we might find the
15047 # original and so on. Autoconf is especially sensitive to this).
15048 . "./$as_me.lineno"
15049 # Exit status is that of the last command.
15054 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15060 ECHO_C= ECHO_N= ECHO_T=
15061 case `echo -n x` in
15063 case `echo 'x\c'` in
15064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15071 if expr a : '\(a\)' >/dev/null 2>&1 &&
15072 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15078 rm -f conf$$ conf$$.exe conf$$.file
15079 if test -d conf$$.dir; then
15080 rm -f conf$$.dir/conf$$.file
15086 if ln -s conf$$.file conf$$ 2>/dev/null; then
15088 # ... but there are two gotchas:
15089 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15090 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15091 # In both cases, we have to default to `cp -p'.
15092 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15094 elif ln conf$$.file conf$$ 2>/dev/null; then
15099 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15100 rmdir conf$$.dir 2>/dev/null
15102 if mkdir -p . 2>/dev/null; then
15105 test -d ./-p && rmdir ./-p
15109 if test -x / >/dev/null 2>&1; then
15110 as_test_x='test -x'
15112 if ls -dL / >/dev/null 2>&1; then
15119 if test -d "$1"; then
15125 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15126 ???[sx]*):;;*)false;;esac;fi
15130 as_executable_p=$as_test_x
15132 # Sed expression to map a string onto a valid CPP name.
15133 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15135 # Sed expression to map a string onto a valid variable name.
15136 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15141 # Save the log message, to keep $[0] and so on meaningful, and to
15142 # report actual input values of CONFIG_FILES etc. instead of their
15143 # values after options handling.
15145 This file was extended by $as_me, which was
15146 generated by GNU Autoconf 2.61. Invocation command line was
15148 CONFIG_FILES = $CONFIG_FILES
15149 CONFIG_HEADERS = $CONFIG_HEADERS
15150 CONFIG_LINKS = $CONFIG_LINKS
15151 CONFIG_COMMANDS = $CONFIG_COMMANDS
15154 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15159 cat >>$CONFIG_STATUS <<_ACEOF
15160 # Files that config.status was made for.
15161 config_files="$ac_config_files"
15162 config_headers="$ac_config_headers"
15166 cat >>$CONFIG_STATUS <<\_ACEOF
15168 \`$as_me' instantiates files from templates according to the
15169 current configuration.
15171 Usage: $0 [OPTIONS] [FILE]...
15173 -h, --help print this help, then exit
15174 -V, --version print version number and configuration settings, then exit
15175 -q, --quiet do not print progress messages
15176 -d, --debug don't remove temporary files
15177 --recheck update $as_me by reconfiguring in the same conditions
15178 --file=FILE[:TEMPLATE]
15179 instantiate the configuration file FILE
15180 --header=FILE[:TEMPLATE]
15181 instantiate the configuration header FILE
15183 Configuration files:
15186 Configuration headers:
15189 Report bugs to <bug-autoconf@gnu.org>."
15192 cat >>$CONFIG_STATUS <<_ACEOF
15195 configured by $0, generated by GNU Autoconf 2.61,
15196 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15198 Copyright (C) 2006 Free Software Foundation, Inc.
15199 This config.status script is free software; the Free Software Foundation
15200 gives unlimited permission to copy, distribute and modify it."
15207 cat >>$CONFIG_STATUS <<\_ACEOF
15208 # If no file are specified by the user, then we need to provide default
15209 # value. By we need to know if files were specified by the user.
15215 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15216 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15227 # Handling of the options.
15228 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15230 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15231 echo "$ac_cs_version"; exit ;;
15232 --debug | --debu | --deb | --de | --d | -d )
15234 --file | --fil | --fi | --f )
15236 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15237 ac_need_defaults=false;;
15238 --header | --heade | --head | --hea )
15240 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15241 ac_need_defaults=false;;
15243 # Conflict between --help and --header
15244 { echo "$as_me: error: ambiguous option: $1
15245 Try \`$0 --help' for more information." >&2
15246 { (exit 1); exit 1; }; };;
15247 --help | --hel | -h )
15248 echo "$ac_cs_usage"; exit ;;
15249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15250 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15253 # This is an error.
15254 -*) { echo "$as_me: error: unrecognized option: $1
15255 Try \`$0 --help' for more information." >&2
15256 { (exit 1); exit 1; }; } ;;
15258 *) ac_config_targets="$ac_config_targets $1"
15259 ac_need_defaults=false ;;
15265 ac_configure_extra_args=
15267 if $ac_cs_silent; then
15269 ac_configure_extra_args="$ac_configure_extra_args --silent"
15273 cat >>$CONFIG_STATUS <<_ACEOF
15274 if \$ac_cs_recheck; then
15275 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15276 CONFIG_SHELL=$SHELL
15277 export CONFIG_SHELL
15278 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15282 cat >>$CONFIG_STATUS <<\_ACEOF
15286 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15287 ## Running $as_me. ##
15293 cat >>$CONFIG_STATUS <<_ACEOF
15296 cat >>$CONFIG_STATUS <<\_ACEOF
15298 # Handling of arguments.
15299 for ac_config_target in $ac_config_targets
15301 case $ac_config_target in
15302 "ddconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
15303 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15304 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
15305 "packages.mk") CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
15306 "sim.src/Makefile") CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
15307 "cmd.src/Makefile") CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
15308 "s51.src/Makefile") CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
15309 "avr.src/Makefile") CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
15310 "z80.src/Makefile") CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
15311 "hc08.src/Makefile") CONFIG_FILES="$CONFIG_FILES hc08.src/Makefile" ;;
15312 "xa.src/Makefile") CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
15313 "gui.src/Makefile") CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
15314 "gui.src/serio.src/Makefile") CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
15315 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15317 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15318 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15319 { (exit 1); exit 1; }; };;
15324 # If the user did not use the arguments to specify the items to instantiate,
15325 # then the envvar interface is used. Set only those that are not.
15326 # We use the long form for the default assignment because of an extremely
15327 # bizarre bug on SunOS 4.1.3.
15328 if $ac_need_defaults; then
15329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15333 # Have a temporary directory for convenience. Make it in the build tree
15334 # simply because there is no reason against having it here, and in addition,
15335 # creating and moving files from /tmp can sometimes cause problems.
15336 # Hook for its removal unless debugging.
15337 # Note that there is a small window in which the directory will not be cleaned:
15338 # after its creation but before its name has been assigned to `$tmp'.
15342 trap 'exit_status=$?
15343 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15345 trap '{ (exit 1); exit 1; }' 1 2 13 15
15347 # Create a (secure) tmp directory for tmp files.
15350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15351 test -n "$tmp" && test -d "$tmp"
15354 tmp=./conf$$-$RANDOM
15355 (umask 077 && mkdir "$tmp")
15358 echo "$me: cannot create a temporary directory in ." >&2
15359 { (exit 1); exit 1; }
15363 # Set up the sed scripts for CONFIG_FILES section.
15366 # No need to generate the scripts if there are no CONFIG_FILES.
15367 # This happens for instance when ./config.status config.h
15368 if test -n "$CONFIG_FILES"; then
15375 for ac_last_try in false false false false false :; do
15376 cat >conf$$subs.sed <<_ACEOF
15377 SHELL!$SHELL$ac_delim
15378 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15379 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15380 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15381 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15382 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15383 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15384 exec_prefix!$exec_prefix$ac_delim
15385 prefix!$prefix$ac_delim
15386 program_transform_name!$program_transform_name$ac_delim
15387 bindir!$bindir$ac_delim
15388 sbindir!$sbindir$ac_delim
15389 libexecdir!$libexecdir$ac_delim
15390 datarootdir!$datarootdir$ac_delim
15391 datadir!$datadir$ac_delim
15392 sysconfdir!$sysconfdir$ac_delim
15393 sharedstatedir!$sharedstatedir$ac_delim
15394 localstatedir!$localstatedir$ac_delim
15395 includedir!$includedir$ac_delim
15396 oldincludedir!$oldincludedir$ac_delim
15397 docdir!$docdir$ac_delim
15398 infodir!$infodir$ac_delim
15399 htmldir!$htmldir$ac_delim
15400 dvidir!$dvidir$ac_delim
15401 pdfdir!$pdfdir$ac_delim
15402 psdir!$psdir$ac_delim
15403 libdir!$libdir$ac_delim
15404 localedir!$localedir$ac_delim
15405 mandir!$mandir$ac_delim
15406 DEFS!$DEFS$ac_delim
15407 ECHO_C!$ECHO_C$ac_delim
15408 ECHO_N!$ECHO_N$ac_delim
15409 ECHO_T!$ECHO_T$ac_delim
15410 LIBS!$LIBS$ac_delim
15411 build_alias!$build_alias$ac_delim
15412 host_alias!$host_alias$ac_delim
15413 target_alias!$target_alias$ac_delim
15415 VERSION!$VERSION$ac_delim
15416 VERSIONHI!$VERSIONHI$ac_delim
15417 VERSIONLO!$VERSIONLO$ac_delim
15418 VERSIONP!$VERSIONP$ac_delim
15419 enable_ucsim!$enable_ucsim$ac_delim
15420 enable_dlso!$enable_dlso$ac_delim
15421 enable_51!$enable_51$ac_delim
15422 enable_avr!$enable_avr$ac_delim
15423 enable_z80!$enable_z80$ac_delim
15424 enable_hc08!$enable_hc08$ac_delim
15425 enable_xa!$enable_xa$ac_delim
15426 enable_serio!$enable_serio$ac_delim
15428 CXXFLAGS!$CXXFLAGS$ac_delim
15429 LDFLAGS!$LDFLAGS$ac_delim
15430 CPPFLAGS!$CPPFLAGS$ac_delim
15431 ac_ct_CXX!$ac_ct_CXX$ac_delim
15432 EXEEXT!$EXEEXT$ac_delim
15433 OBJEXT!$OBJEXT$ac_delim
15434 CXXCPP!$CXXCPP$ac_delim
15435 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15436 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15437 INSTALL_DATA!$INSTALL_DATA$ac_delim
15438 RANLIB!$RANLIB$ac_delim
15439 STRIP!$STRIP$ac_delim
15440 build!$build$ac_delim
15441 build_cpu!$build_cpu$ac_delim
15442 build_vendor!$build_vendor$ac_delim
15443 build_os!$build_os$ac_delim
15444 host!$host$ac_delim
15445 host_cpu!$host_cpu$ac_delim
15446 host_vendor!$host_vendor$ac_delim
15447 host_os!$host_os$ac_delim
15449 CFLAGS!$CFLAGS$ac_delim
15450 ac_ct_CC!$ac_ct_CC$ac_delim
15451 LN_S!$LN_S$ac_delim
15452 ECHO!$ECHO$ac_delim
15454 GREP!$GREP$ac_delim
15455 EGREP!$EGREP$ac_delim
15456 LIBTOOL!$LIBTOOL$ac_delim
15457 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
15459 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
15460 LEXLIB!$LEXLIB$ac_delim
15461 YACC!$YACC$ac_delim
15462 YFLAGS!$YFLAGS$ac_delim
15463 BISON_PLUS_PLUS!$BISON_PLUS_PLUS$ac_delim
15464 WINSOCK_AVAIL!$WINSOCK_AVAIL$ac_delim
15465 dl_ok!$dl_ok$ac_delim
15467 panel_ok!$panel_ok$ac_delim
15468 curses_ok!$curses_ok$ac_delim
15469 CURSES_LIBS!$CURSES_LIBS$ac_delim
15470 M_OR_MM!$M_OR_MM$ac_delim
15471 SHAREDLIB!$SHAREDLIB$ac_delim
15472 PICOPT!$PICOPT$ac_delim
15473 dlso_ok!$dlso_ok$ac_delim
15476 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15478 elif $ac_last_try; then
15479 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15480 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15481 { (exit 1); exit 1; }; }
15483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15487 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15488 if test -n "$ac_eof"; then
15489 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15490 ac_eof=`expr $ac_eof + 1`
15493 cat >>$CONFIG_STATUS <<_ACEOF
15494 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15498 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15499 s/^/s,@/; s/!/@,|#_!!_#|/
15502 s/'"$ac_delim"'$/,g/; t
15504 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15505 ' >>$CONFIG_STATUS <conf$$subs.sed
15506 rm -f conf$$subs.sed
15507 cat >>$CONFIG_STATUS <<_ACEOF
15513 for ac_last_try in false false false false false :; do
15514 cat >conf$$subs.sed <<_ACEOF
15515 LIBOBJS!$LIBOBJS$ac_delim
15516 LTLIBOBJS!$LTLIBOBJS$ac_delim
15519 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
15521 elif $ac_last_try; then
15522 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15523 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15524 { (exit 1); exit 1; }; }
15526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15530 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15531 if test -n "$ac_eof"; then
15532 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15533 ac_eof=`expr $ac_eof + 1`
15536 cat >>$CONFIG_STATUS <<_ACEOF
15537 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15541 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15542 s/^/s,@/; s/!/@,|#_!!_#|/
15545 s/'"$ac_delim"'$/,g/; t
15547 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15548 ' >>$CONFIG_STATUS <conf$$subs.sed
15549 rm -f conf$$subs.sed
15550 cat >>$CONFIG_STATUS <<_ACEOF
15557 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15559 # trailing colons and then remove the whole line if VPATH becomes empty
15560 # (actually we leave an empty line to preserve line numbers).
15561 if test "x$srcdir" = x.; then
15562 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15563 s/:*\$(srcdir):*/:/
15564 s/:*\${srcdir}:*/:/
15566 s/^\([^=]*=[ ]*\):*/\1/
15572 cat >>$CONFIG_STATUS <<\_ACEOF
15573 fi # test -n "$CONFIG_FILES"
15576 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
15579 :[FHLC]) ac_mode=$ac_tag; continue;;
15581 case $ac_mode$ac_tag in
15583 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15584 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15585 { (exit 1); exit 1; }; };;
15586 :[FH]-) ac_tag=-:-;;
15587 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15604 -) ac_f="$tmp/stdin";;
15605 *) # Look for the file first in the build tree, then in the source tree
15606 # (if the path is not absolute). The absolute path cannot be DOS-style,
15607 # because $ac_f cannot contain `:'.
15611 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15613 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15614 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15615 { (exit 1); exit 1; }; };;
15617 ac_file_inputs="$ac_file_inputs $ac_f"
15620 # Let's still pretend it is `configure' which instantiates (i.e., don't
15621 # use $as_me), people would be surprised to read:
15622 # /* config.h. Generated by config.status. */
15623 configure_input="Generated from "`IFS=:
15624 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15625 if test x"$ac_file" != x-; then
15626 configure_input="$ac_file. $configure_input"
15627 { echo "$as_me:$LINENO: creating $ac_file" >&5
15628 echo "$as_me: creating $ac_file" >&6;}
15632 *:-:* | *:-) cat >"$tmp/stdin";;
15637 ac_dir=`$as_dirname -- "$ac_file" ||
15638 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15639 X"$ac_file" : 'X\(//\)[^/]' \| \
15640 X"$ac_file" : 'X\(//\)$' \| \
15641 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15647 /^X\(\/\/\)[^/].*/{
15662 -*) as_dir=./$as_dir;;
15664 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15668 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15669 *) as_qdir=$as_dir;;
15671 as_dirs="'$as_qdir' $as_dirs"
15672 as_dir=`$as_dirname -- "$as_dir" ||
15673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15674 X"$as_dir" : 'X\(//\)[^/]' \| \
15675 X"$as_dir" : 'X\(//\)$' \| \
15676 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15682 /^X\(\/\/\)[^/].*/{
15695 test -d "$as_dir" && break
15697 test -z "$as_dirs" || eval "mkdir $as_dirs"
15698 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15699 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15700 { (exit 1); exit 1; }; }; }
15704 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15706 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15707 # A ".." for each directory in $ac_dir_suffix.
15708 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15709 case $ac_top_builddir_sub in
15710 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15711 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15714 ac_abs_top_builddir=$ac_pwd
15715 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15716 # for backward compatibility:
15717 ac_top_builddir=$ac_top_build_prefix
15720 .) # We are building in place.
15722 ac_top_srcdir=$ac_top_builddir_sub
15723 ac_abs_top_srcdir=$ac_pwd ;;
15724 [\\/]* | ?:[\\/]* ) # Absolute name.
15725 ac_srcdir=$srcdir$ac_dir_suffix;
15726 ac_top_srcdir=$srcdir
15727 ac_abs_top_srcdir=$srcdir ;;
15728 *) # Relative name.
15729 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15730 ac_top_srcdir=$ac_top_build_prefix$srcdir
15731 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15733 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15744 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15748 cat >>$CONFIG_STATUS <<\_ACEOF
15749 # If the template does not know about datarootdir, expand it.
15750 # FIXME: This hack should be removed a few years after 2.60.
15751 ac_datarootdir_hack=; ac_datarootdir_seen=
15753 case `sed -n '/datarootdir/ {
15762 ' $ac_file_inputs` in
15763 *datarootdir*) ac_datarootdir_seen=yes;;
15764 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15765 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15766 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15768 cat >>$CONFIG_STATUS <<_ACEOF
15769 ac_datarootdir_hack='
15770 s&@datadir@&$datadir&g
15771 s&@docdir@&$docdir&g
15772 s&@infodir@&$infodir&g
15773 s&@localedir@&$localedir&g
15774 s&@mandir@&$mandir&g
15775 s&\\\${datarootdir}&$datarootdir&g' ;;
15779 # Neutralize VPATH when `$srcdir' = `.'.
15780 # Shell code in configure.ac might set extrasub.
15781 # FIXME: do we really want to maintain this feature?
15782 cat >>$CONFIG_STATUS <<_ACEOF
15786 cat >>$CONFIG_STATUS <<\_ACEOF
15788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15789 s&@configure_input@&$configure_input&;t t
15790 s&@top_builddir@&$ac_top_builddir_sub&;t t
15791 s&@srcdir@&$ac_srcdir&;t t
15792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15793 s&@top_srcdir@&$ac_top_srcdir&;t t
15794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15795 s&@builddir@&$ac_builddir&;t t
15796 s&@abs_builddir@&$ac_abs_builddir&;t t
15797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15798 s&@INSTALL@&$ac_INSTALL&;t t
15799 $ac_datarootdir_hack
15800 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15803 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15804 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15805 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15806 which seems to be undefined. Please make sure it is defined." >&5
15807 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15808 which seems to be undefined. Please make sure it is defined." >&2;}
15812 -) cat "$tmp/out"; rm -f "$tmp/out";;
15813 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15822 # Transform confdefs.h into a sed script `conftest.defines', that
15823 # substitutes the proper values into config.h.in to produce config.h.
15824 rm -f conftest.defines conftest.tail
15825 # First, append a space to every undef/define line, to ease matching.
15826 echo 's/$/ /' >conftest.defines
15827 # Then, protect against being on the right side of a sed subst, or in
15828 # an unquoted here document, in config.status. If some macros were
15829 # called several times there might be several #defines for the same
15830 # symbol, which is useless. But do not sort them, since the last
15831 # AC_DEFINE must be honored.
15832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15833 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15834 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15835 # PARAMS is the parameter list in the macro definition--in most cases, it's
15836 # just an empty string.
15837 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15838 ac_dB='\\)[ (].*,\\1define\\2'
15846 s/^[ ]*#[ ]*define[ ][ ]*//
15851 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15852 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15853 ' >>conftest.defines
15855 # Remove the space that was appended to ease matching.
15856 # Then replace #undef with comments. This is necessary, for
15857 # example, in the case of _POSIX_SOURCE, which is predefined and required
15858 # on some systems where configure will not decide to define it.
15859 # (The regexp can be short, since the line contains either #define or #undef.)
15861 s,^[ #]*u.*,/* & */,' >>conftest.defines
15863 # Break up conftest.defines:
15864 ac_max_sed_lines=50
15866 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15867 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15868 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15870 ac_in='$ac_file_inputs'
15871 ac_out='"$tmp/out1"'
15872 ac_nxt='"$tmp/out2"'
15876 # Write a here document:
15877 cat >>$CONFIG_STATUS <<_ACEOF
15878 # First, check the format of the line:
15879 cat >"\$tmp/defines.sed" <<\\CEOF
15880 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15881 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15885 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15887 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15888 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15889 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15890 grep . conftest.tail >/dev/null || break
15891 rm -f conftest.defines
15892 mv conftest.tail conftest.defines
15894 rm -f conftest.defines conftest.tail
15896 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15897 cat >>$CONFIG_STATUS <<\_ACEOF
15898 if test x"$ac_file" != x-; then
15899 echo "/* $configure_input */" >"$tmp/config.h"
15900 cat "$ac_result" >>"$tmp/config.h"
15901 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15902 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15903 echo "$as_me: $ac_file is unchanged" >&6;}
15906 mv "$tmp/config.h" $ac_file
15909 echo "/* $configure_input */"
15921 { (exit 0); exit 0; }
15923 chmod +x $CONFIG_STATUS
15924 ac_clean_files=$ac_clean_files_save
15927 # configure is writing to config.log, and then calls config.status.
15928 # config.status does its own redirection, appending to config.log.
15929 # Unfortunately, on DOS this fails, as config.log is still kept open
15930 # by configure, so config.status won't be able to write to it; its
15931 # output is simply discarded. So we exec the FD to /dev/null,
15932 # effectively closing config.log, so it can be properly (re)opened and
15933 # appended to by config.status. When coming back to configure, we
15934 # need to make the FD available again.
15935 if test "$no_create" != yes; then
15937 ac_config_status_args=
15938 test "$silent" = yes &&
15939 ac_config_status_args="$ac_config_status_args --quiet"
15941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15943 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15944 # would make configure fail if this is the last instruction.
15945 $ac_cs_success || { (exit 1); exit 1; }
15949 #gui.src/portmon.src/Makefile
15952 # End of configure/configure.in