2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
317 # So, first we look for a working echo in the user's PATH.
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
369 # maybe with a smaller string...
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 # Oops. We lost completely, so just stick with echo.
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
419 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
426 # Identity of this package.
433 ac_unique_file=".version"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS AWK VERSION VERSIONHI VERSIONLO VERSIONP docdir enable_ucsim enable_dlso enable_51 enable_avr enable_z80 enable_hc08 enable_xa enable_serio CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB STRIP build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC LN_S ECHO ac_ct_STRIP CPP EGREP LIBTOOL LIBTOOL_DEPS LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON_PLUS_PLUS dl_ok DL panel_ok curses_ok CURSES_LIBS M_OR_MM SHAREDLIB PICOPT dlso_ok LIBOBJS LTLIBOBJS'
474 # Initialize some variables set by options.
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
486 program_transform_name=s,x,x,
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524 # Accept the important Cygnus configure options, so we can diagnose typos.
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
546 cache_file=config.cache ;;
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 datadir=$ac_optarg ;;
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574 eval "enable_$ac_feature='$ac_optarg'" ;;
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
589 -help | --help | --hel | --he | -h)
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
613 -libdir | --libdir | --libdi | --libd)
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640 # Obsolete; use --without-fp.
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 sbindir=$ac_optarg ;;
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 sharedstatedir=$ac_optarg ;;
717 -site | --site | --sit)
719 -site=* | --site=* | --sit=*)
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
742 -version | --version | --versio | --versi | --vers | -V)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756 eval "with_$ac_package='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
820 eval ac_val=$`echo $ac_var`
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
832 eval ac_val=$`echo $ac_var`
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861 test "$silent" = yes && exec 6>/dev/null
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
881 if test ! -r $srcdir/$ac_unique_file; then
885 ac_srcdir_defaulted=no
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_docdir_set=${docdir+set}
913 ac_env_docdir_value=$docdir
914 ac_cv_env_docdir_set=${docdir+set}
915 ac_cv_env_docdir_value=$docdir
916 ac_env_CXX_set=${CXX+set}
917 ac_env_CXX_value=$CXX
918 ac_cv_env_CXX_set=${CXX+set}
919 ac_cv_env_CXX_value=$CXX
920 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
921 ac_env_CXXFLAGS_value=$CXXFLAGS
922 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
923 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
924 ac_env_LDFLAGS_set=${LDFLAGS+set}
925 ac_env_LDFLAGS_value=$LDFLAGS
926 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
927 ac_cv_env_LDFLAGS_value=$LDFLAGS
928 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
929 ac_env_CPPFLAGS_value=$CPPFLAGS
930 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
931 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
932 ac_env_CXXCPP_set=${CXXCPP+set}
933 ac_env_CXXCPP_value=$CXXCPP
934 ac_cv_env_CXXCPP_set=${CXXCPP+set}
935 ac_cv_env_CXXCPP_value=$CXXCPP
936 ac_env_CC_set=${CC+set}
938 ac_cv_env_CC_set=${CC+set}
939 ac_cv_env_CC_value=$CC
940 ac_env_CFLAGS_set=${CFLAGS+set}
941 ac_env_CFLAGS_value=$CFLAGS
942 ac_cv_env_CFLAGS_set=${CFLAGS+set}
943 ac_cv_env_CFLAGS_value=$CFLAGS
944 ac_env_CPP_set=${CPP+set}
945 ac_env_CPP_value=$CPP
946 ac_cv_env_CPP_set=${CPP+set}
947 ac_cv_env_CPP_value=$CPP
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 if test -n "$ac_init_help"; then
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --enable-ucsim compile ucsim frontend
1023 --enable-dlso compile dynamically loadable shared libraries
1024 --disable-51 do not compile simulator for MCS51
1025 --disable-avr do not compile simulator for AVR
1026 --disable-z80 do not compile simulator for Z80
1027 --disable-hc08 do not compile simulator for hc08
1028 --enable-xa compile simulator for XA
1029 --enable-serio compile serio GUI tool (needs curses)
1030 --enable-statistic compile statistical features (slower simulation)
1031 --enable-shared=PKGS build shared libraries default=yes
1032 --enable-static=PKGS build static libraries default=yes
1033 --enable-fast-install=PKGS optimize for fast installation default=yes
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld default=no
1040 --with-pic try to use only PIC/non-PIC objects default=use both
1042 Some influential environment variables:
1043 docdir documentation installation directory
1044 CXX C++ compiler command
1045 CXXFLAGS C++ compiler flags
1046 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1047 nonstandard directory <lib dir>
1048 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1049 headers in a nonstandard directory <include dir>
1050 CXXCPP C++ preprocessor
1051 CC C compiler command
1052 CFLAGS C compiler flags
1055 Use these variables to override the choices made by `configure' or to help
1056 it to find libraries and programs with nonstandard names/locations.
1061 if test "$ac_init_help" = "recursive"; then
1062 # If there are subdirs, report their specific --help.
1064 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1065 test -d $ac_dir || continue
1068 if test "$ac_dir" != .; then
1069 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1070 # A "../" for each directory in $ac_dir_suffix.
1071 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1073 ac_dir_suffix= ac_top_builddir=
1077 .) # No --srcdir option. We are building in place.
1079 if test -z "$ac_top_builddir"; then
1082 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1084 [\\/]* | ?:[\\/]* ) # Absolute path.
1085 ac_srcdir=$srcdir$ac_dir_suffix;
1086 ac_top_srcdir=$srcdir ;;
1088 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1089 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1092 # Do not use `cd foo && pwd` to compute absolute paths, because
1093 # the directories may not exist.
1095 .) ac_abs_builddir="$ac_dir";;
1098 .) ac_abs_builddir=`pwd`;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1100 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1106 case ${ac_top_builddir}. in
1107 .) ac_abs_top_builddir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1109 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1112 case $ac_abs_builddir in
1113 .) ac_abs_srcdir=$ac_srcdir;;
1116 .) ac_abs_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1118 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1124 case $ac_top_srcdir in
1125 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1127 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132 # Check for guested configure; otherwise get Cygnus style configure.
1133 if test -f $ac_srcdir/configure.gnu; then
1135 $SHELL $ac_srcdir/configure.gnu --help=recursive
1136 elif test -f $ac_srcdir/configure; then
1138 $SHELL $ac_srcdir/configure --help=recursive
1139 elif test -f $ac_srcdir/configure.ac ||
1140 test -f $ac_srcdir/configure.in; then
1142 $ac_configure --help
1144 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150 test -n "$ac_init_help" && exit 0
1151 if $ac_init_version; then
1154 Copyright (C) 2003 Free Software Foundation, Inc.
1155 This configure script is free software; the Free Software Foundation
1156 gives unlimited permission to copy, distribute and modify it.
1162 This file contains any messages produced by compilers while
1163 running configure, to aid debugging if configure makes a mistake.
1165 It was created by $as_me, which was
1166 generated by GNU Autoconf 2.59. Invocation command line was
1177 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1178 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1179 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1180 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1181 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1183 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1184 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1186 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1187 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1188 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1189 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1190 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1191 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1192 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1200 test -z "$as_dir" && as_dir=.
1201 echo "PATH: $as_dir"
1216 # Keep a trace of the command line.
1217 # Strip out --no-create and --no-recursion so they do not pile up.
1218 # Strip out --silent because we don't want to record it for future runs.
1219 # Also quote any args containing shell meta-characters.
1220 # Make two passes to allow for proper duplicate-argument suppression.
1225 ac_must_keep_next=false
1231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1239 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1241 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1242 if test $ac_must_keep_next = true; then
1243 ac_must_keep_next=false # Got value, back to normal.
1246 *=* | --config-cache | -C | -disable-* | --disable-* \
1247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1249 | -with-* | --with-* | -without-* | --without-* | --x)
1250 case "$ac_configure_args0 " in
1251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1254 -* ) ac_must_keep_next=true ;;
1257 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1258 # Get rid of the leading space.
1264 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1265 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1267 # When interrupted or exit'd, cleanup temporary files, and complete
1268 # config.log. We remove comments because anyway the quotes in there
1269 # would cause problems or look ugly.
1270 # WARNING: Be sure not to use single quotes in there, as some shells,
1271 # such as our DU 5.0 friend, will then `close' the trap.
1272 trap 'exit_status=$?
1273 # Save into config.log some information that might help in debugging.
1278 ## ---------------- ##
1279 ## Cache variables. ##
1280 ## ---------------- ##
1283 # The following way of writing the cache mishandles newlines in values,
1286 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1289 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1294 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1301 ## ----------------- ##
1302 ## Output variables. ##
1303 ## ----------------- ##
1306 for ac_var in $ac_subst_vars
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1313 if test -n "$ac_subst_files"; then
1320 for ac_var in $ac_subst_files
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1328 if test -s confdefs.h; then
1335 sed "/^$/d" confdefs.h | sort
1338 test "$ac_signal" != 0 &&
1339 echo "$as_me: caught signal $ac_signal"
1340 echo "$as_me: exit $exit_status"
1342 rm -f core *.core &&
1343 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1346 for ac_signal in 1 2 13 15; do
1347 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1351 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1352 rm -rf conftest* confdefs.h
1353 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1356 # Predefined preprocessor variables.
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_NAME "$PACKAGE_NAME"
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_STRING "$PACKAGE_STRING"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1383 # Let the site file select an alternate cache file if it wants to.
1384 # Prefer explicitly selected file to automatically selected ones.
1385 if test -z "$CONFIG_SITE"; then
1386 if test "x$prefix" != xNONE; then
1387 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1389 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1392 for ac_site_file in $CONFIG_SITE; do
1393 if test -r "$ac_site_file"; then
1394 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1395 echo "$as_me: loading site script $ac_site_file" >&6;}
1396 sed 's/^/| /' "$ac_site_file" >&5
1401 if test -r "$cache_file"; then
1402 # Some versions of bash will fail to source /dev/null (special
1403 # files actually), so we avoid doing that.
1404 if test -f "$cache_file"; then
1405 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1406 echo "$as_me: loading cache $cache_file" >&6;}
1408 [\\/]* | ?:[\\/]* ) . $cache_file;;
1409 *) . ./$cache_file;;
1413 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1414 echo "$as_me: creating cache $cache_file" >&6;}
1418 # Check that the precious variables saved in the cache have kept the same
1420 ac_cache_corrupted=false
1421 for ac_var in `(set) 2>&1 |
1422 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1424 eval ac_new_set=\$ac_env_${ac_var}_set
1425 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1426 eval ac_new_val="\$ac_env_${ac_var}_value"
1427 case $ac_old_set,$ac_new_set in
1429 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1430 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1431 ac_cache_corrupted=: ;;
1433 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1434 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1435 ac_cache_corrupted=: ;;
1438 if test "x$ac_old_val" != "x$ac_new_val"; then
1439 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1440 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1441 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1442 echo "$as_me: former value: $ac_old_val" >&2;}
1443 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1444 echo "$as_me: current value: $ac_new_val" >&2;}
1445 ac_cache_corrupted=:
1448 # Pass precious variables to config.status.
1449 if test "$ac_new_set" = set; then
1451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1452 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1453 *) ac_arg=$ac_var=$ac_new_val ;;
1455 case " $ac_configure_args " in
1456 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1457 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461 if $ac_cache_corrupted; then
1462 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1463 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1464 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1465 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1466 { (exit 1); exit 1; }; }
1470 ac_cpp='$CPP $CPPFLAGS'
1471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493 ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
1496 for ac_prog in gawk mawk nawk awk
1498 # Extract the first word of "$ac_prog", so it can be a program name with args.
1499 set dummy $ac_prog; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_AWK+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 if test -n "$AWK"; then
1506 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_AWK="$ac_prog"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 if test -n "$AWK"; then
1526 echo "$as_me:$LINENO: result: $AWK" >&5
1527 echo "${ECHO_T}$AWK" >&6
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1533 test -n "$AWK" && break
1537 echo "$as_me:$LINENO: checking version of the package" >&5
1538 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1539 if test -f ${srcdir}/.version; then
1540 VERSION=`cat ${srcdir}/.version`
1541 echo "$as_me:$LINENO: result: $VERSION" >&5
1542 echo "${ECHO_T}$VERSION" >&6
1545 echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1546 echo "${ECHO_T}unknown using 0.0.0" >&6
1548 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1549 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1550 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1555 cat >>confdefs.h <<_ACEOF
1556 #define VERSIONSTR "${VERSION}"
1559 cat >>confdefs.h <<_ACEOF
1560 #define VERSIONHI $VERSIONHI
1563 cat >>confdefs.h <<_ACEOF
1564 #define VERSIONLO $VERSIONLO
1567 cat >>confdefs.h <<_ACEOF
1568 #define VERSIONP $VERSIONP
1574 # *nix default: "${datadir}/sdcc/doc"
1576 if test "${docdir}" = ""; then
1577 docdir="\${datadir}"/sdcc/doc
1581 # Check whether --enable-ucsim or --disable-ucsim was given.
1582 if test "${enable_ucsim+set}" = set; then
1583 enableval="$enable_ucsim"
1584 if test $enable_ucsim != "no"; then
1591 # Check whether --enable-dlso or --disable-dlso was given.
1592 if test "${enable_dlso+set}" = set; then
1593 enableval="$enable_dlso"
1594 if test $enable_dlso != "no"; then
1600 # Check whether --enable-51 or --disable-51 was given.
1601 if test "${enable_51+set}" = set; then
1602 enableval="$enable_51"
1603 if test $enable_51 != "no"; then
1609 # Check whether --enable-avr or --disable-avr was given.
1610 if test "${enable_avr+set}" = set; then
1611 enableval="$enable_avr"
1612 if test $enable_avr != "no"; then
1618 # Check whether --enable-z80 or --disable-z80 was given.
1619 if test "${enable_z80+set}" = set; then
1620 enableval="$enable_z80"
1621 if test $enable_z80 != "no"; then
1627 # Check whether --enable-hc08 or --disable-hc08 was given.
1628 if test "${enable_hc08+set}" = set; then
1629 enableval="$enable_hc08"
1630 if test $enable_hc08 != "no"; then
1636 # Check whether --enable-xa or --disable-xa was given.
1637 if test "${enable_xa+set}" = set; then
1638 enableval="$enable_xa"
1639 if test $enable_xa != "no"; then
1645 # Check whether --enable-portmon or --disable-portmon was given.
1646 if test "${enable_portmon+set}" = set; then
1647 enableval="$enable_portmon"
1648 if test $enable_serio != "no"; then
1663 # Check whether --enable-statistic or --disable-statistic was given.
1664 if test "${enable_statistic+set}" = set; then
1665 enableval="$enable_statistic"
1666 if test $enable_statistic != "no"; then
1667 enable_statistic="yes"
1670 enable_statistic="no"
1672 cat >>confdefs.h <<_ACEOF
1673 #define STATISTIC $enable_statistic
1679 #-------------------
1681 ac_cpp='$CXXCPP $CPPFLAGS'
1682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1685 if test -n "$ac_tool_prefix"; then
1686 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CXX+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$CXX"; then
1696 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test -n "$CXX"; then
1716 echo "$as_me:$LINENO: result: $CXX" >&5
1717 echo "${ECHO_T}$CXX" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 test -n "$CXX" && break
1726 if test -z "$CXX"; then
1728 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$ac_ct_CXX"; then
1738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_ac_ct_CXX="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1757 if test -n "$ac_ct_CXX"; then
1758 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1759 echo "${ECHO_T}$ac_ct_CXX" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$ac_ct_CXX" && break
1767 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1773 # Provide some information about the compiler.
1774 echo "$as_me:$LINENO:" \
1775 "checking for C++ compiler version" >&5
1776 ac_compiler=`set X $ac_compile; echo $2`
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev/null >&5) 2>&5
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev/null >&5) 2>&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev/null >&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1793 cat >conftest.$ac_ext <<_ACEOF
1796 cat confdefs.h >>conftest.$ac_ext
1797 cat >>conftest.$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1808 ac_clean_files_save=$ac_clean_files
1809 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1813 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1814 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1815 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1828 # b.out is created by i960 compilers.
1829 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1831 test -f "$ac_file" || continue
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1836 # This is the source file.
1839 # We found the default executable, but exeext='' is most
1843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C++ compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
1864 ac_exeext=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1871 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875 if { ac_try='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1883 if test "$cross_compiling" = maybe; then
1886 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C++ compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1899 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1900 ac_clean_files=$ac_clean_files_save
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1919 for ac_file in conftest.exe conftest conftest.*; do
1920 test -f "$ac_file" || continue
1922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1937 rm -f conftest$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1941 rm -f conftest.$ac_ext
1942 EXEEXT=$ac_cv_exeext
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.$ac_ext <<_ACEOF
1952 cat confdefs.h >>conftest.$ac_ext
1953 cat >>conftest.$ac_ext <<_ACEOF
1954 /* end confdefs.h. */
1964 rm -f conftest.o conftest.obj
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1978 echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1990 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991 echo "${ECHO_T}$ac_cv_objext" >&6
1992 OBJEXT=$ac_cv_objext
1994 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1995 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1996 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 cat >conftest.$ac_ext <<_ACEOF
2002 cat confdefs.h >>conftest.$ac_ext
2003 cat >>conftest.$ac_ext <<_ACEOF
2004 /* end confdefs.h. */
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>conftest.er1
2021 grep -v '^ *+' conftest.er1 >conftest.err
2023 cat conftest.err >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -z "$ac_cxx_werror_flag"
2027 || test ! -s conftest.err'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; } &&
2033 { ac_try='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2050 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2052 GXX=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CXXFLAGS=${CXXFLAGS+set}
2054 ac_save_CXXFLAGS=$CXXFLAGS
2056 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2057 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cxx_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.$ac_ext <<_ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
2080 grep -v '^ *+' conftest.er1 >conftest.err
2082 cat conftest.err >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -z "$ac_cxx_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 ac_cv_prog_cxx_g=yes
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2107 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2108 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2109 if test "$ac_test_CXXFLAGS" = set; then
2110 CXXFLAGS=$ac_save_CXXFLAGS
2111 elif test $ac_cv_prog_cxx_g = yes; then
2112 if test "$GXX" = yes; then
2118 if test "$GXX" = yes; then
2124 for ac_declaration in \
2126 'extern "C" void std::exit (int) throw (); using std::exit;' \
2127 'extern "C" void std::exit (int); using std::exit;' \
2128 'extern "C" void exit (int) throw ();' \
2129 'extern "C" void exit (int);' \
2132 cat >conftest.$ac_ext <<_ACEOF
2135 cat confdefs.h >>conftest.$ac_ext
2136 cat >>conftest.$ac_ext <<_ACEOF
2137 /* end confdefs.h. */
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>conftest.er1
2152 grep -v '^ *+' conftest.er1 >conftest.err
2154 cat conftest.err >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -z "$ac_cxx_werror_flag"
2158 || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 cat >conftest.$ac_ext <<_ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2197 grep -v '^ *+' conftest.er1 >conftest.err
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_cxx_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2224 if test -n "$ac_declaration"; then
2225 echo '#ifdef __cplusplus' >>confdefs.h
2226 echo $ac_declaration >>confdefs.h
2227 echo '#endif' >>confdefs.h
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237 ac_cpp='$CXXCPP $CPPFLAGS'
2238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2241 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2242 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2243 if test -z "$CXXCPP"; then
2244 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 # Double quotes because CXXCPP needs to be expanded
2248 for CXXCPP in "$CXX -E" "/lib/cpp"
2251 for ac_cxx_preproc_warn_flag in '' yes
2253 # Use a header file that comes with gcc, so configuring glibc
2254 # with a fresh cross-compiler works.
2255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2256 # <limits.h> exists even on freestanding compilers.
2257 # On the NeXT, cc -E runs the code through the compiler's parser,
2258 # not just through cpp. "Syntax error" is here to catch this case.
2259 cat >conftest.$ac_ext <<_ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
2266 # include <limits.h>
2268 # include <assert.h>
2272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2275 grep -v '^ *+' conftest.er1 >conftest.err
2277 cat conftest.err >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } >/dev/null; then
2280 if test -s conftest.err; then
2281 ac_cpp_err=$ac_cxx_preproc_warn_flag
2282 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2289 if test -z "$ac_cpp_err"; then
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2295 # Broken: fails on valid input.
2298 rm -f conftest.err conftest.$ac_ext
2300 # OK, works on sane cases. Now check whether non-existent headers
2301 # can be detected and how.
2302 cat >conftest.$ac_ext <<_ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2308 #include <ac_nonexistent.h>
2310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1 >conftest.err
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } >/dev/null; then
2318 if test -s conftest.err; then
2319 ac_cpp_err=$ac_cxx_preproc_warn_flag
2320 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2327 if test -z "$ac_cpp_err"; then
2328 # Broken: success on invalid input.
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2334 # Passes both tests.
2338 rm -f conftest.err conftest.$ac_ext
2341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2342 rm -f conftest.err conftest.$ac_ext
2343 if $ac_preproc_ok; then
2348 ac_cv_prog_CXXCPP=$CXXCPP
2351 CXXCPP=$ac_cv_prog_CXXCPP
2353 ac_cv_prog_CXXCPP=$CXXCPP
2355 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2356 echo "${ECHO_T}$CXXCPP" >&6
2358 for ac_cxx_preproc_warn_flag in '' yes
2360 # Use a header file that comes with gcc, so configuring glibc
2361 # with a fresh cross-compiler works.
2362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2363 # <limits.h> exists even on freestanding compilers.
2364 # On the NeXT, cc -E runs the code through the compiler's parser,
2365 # not just through cpp. "Syntax error" is here to catch this case.
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2373 # include <limits.h>
2375 # include <assert.h>
2379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2382 grep -v '^ *+' conftest.er1 >conftest.err
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } >/dev/null; then
2387 if test -s conftest.err; then
2388 ac_cpp_err=$ac_cxx_preproc_warn_flag
2389 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2396 if test -z "$ac_cpp_err"; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 # Broken: fails on valid input.
2405 rm -f conftest.err conftest.$ac_ext
2407 # OK, works on sane cases. Now check whether non-existent headers
2408 # can be detected and how.
2409 cat >conftest.$ac_ext <<_ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2415 #include <ac_nonexistent.h>
2417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2420 grep -v '^ *+' conftest.er1 >conftest.err
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } >/dev/null; then
2425 if test -s conftest.err; then
2426 ac_cpp_err=$ac_cxx_preproc_warn_flag
2427 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2434 if test -z "$ac_cpp_err"; then
2435 # Broken: success on invalid input.
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 # Passes both tests.
2445 rm -f conftest.err conftest.$ac_ext
2448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2449 rm -f conftest.err conftest.$ac_ext
2450 if $ac_preproc_ok; then
2453 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2456 See \`config.log' for more details." >&2;}
2457 { (exit 1); exit 1; }; }
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2468 if test -f $ac_dir/install-sh; then
2470 ac_install_sh="$ac_aux_dir/install-sh -c"
2472 elif test -f $ac_dir/install.sh; then
2474 ac_install_sh="$ac_aux_dir/install.sh -c"
2476 elif test -f $ac_dir/shtool; then
2478 ac_install_sh="$ac_aux_dir/shtool install -c"
2482 if test -z "$ac_aux_dir"; then
2483 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2484 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2485 { (exit 1); exit 1; }; }
2487 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2488 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2489 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2491 # Find a good install program. We prefer a C program (faster),
2492 # so one script is as good as another. But avoid the broken or
2493 # incompatible versions:
2494 # SysV /etc/install, /usr/sbin/install
2495 # SunOS /usr/etc/install
2496 # IRIX /sbin/install
2498 # AmigaOS /C/install, which installs bootblocks on floppy discs
2499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2502 # OS/2's system install, which has a completely different semantic
2503 # ./install, which can be erroneously created by make from ./install.sh.
2504 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2505 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2506 if test -z "$INSTALL"; then
2507 if test "${ac_cv_path_install+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 # Account for people who put trailing slashes in PATH elements.
2517 ./ | .// | /cC/* | \
2518 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2519 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2522 # OSF1 and SCO ODT 3.0 have their own names for install.
2523 # Don't use installbsd from OSF since it installs stuff as root
2525 for ac_prog in ginstall scoinst install; do
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2528 if test $ac_prog = install &&
2529 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # AIX install. It has an incompatible calling convention.
2532 elif test $ac_prog = install &&
2533 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # program-specific install script used by HP pwplus--don't use.
2537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2549 if test "${ac_cv_path_install+set}" = set; then
2550 INSTALL=$ac_cv_path_install
2552 # As a last resort, use the slow shell script. We don't cache a
2553 # path for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the path is relative.
2556 INSTALL=$ac_install_sh
2559 echo "$as_me:$LINENO: result: $INSTALL" >&5
2560 echo "${ECHO_T}$INSTALL" >&6
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2573 echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2575 if test "${ac_cv_prog_RANLIB+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 if test -n "$RANLIB"; then
2579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 RANLIB=$ac_cv_prog_RANLIB
2598 if test -n "$RANLIB"; then
2599 echo "$as_me:$LINENO: result: $RANLIB" >&5
2600 echo "${ECHO_T}$RANLIB" >&6
2602 echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2607 if test -z "$ac_cv_prog_RANLIB"; then
2608 ac_ct_RANLIB=$RANLIB
2609 # Extract the first word of "ranlib", so it can be a program name with args.
2610 set dummy ranlib; ac_word=$2
2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$ac_ct_RANLIB"; then
2617 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_RANLIB="ranlib"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2637 if test -n "$ac_ct_RANLIB"; then
2638 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2639 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2641 echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2645 RANLIB=$ac_ct_RANLIB
2647 RANLIB="$ac_cv_prog_RANLIB"
2651 # Extract the first word of "strip", so it can be a program name with args.
2652 set dummy strip; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${ac_cv_prog_STRIP+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if test -n "$STRIP"; then
2659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_STRIP="strip"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2678 STRIP=$ac_cv_prog_STRIP
2679 if test -n "$STRIP"; then
2680 echo "$as_me:$LINENO: result: $STRIP" >&5
2681 echo "${ECHO_T}$STRIP" >&6
2683 echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6
2689 # Check whether --enable-shared or --disable-shared was given.
2690 if test "${enable_shared+set}" = set; then
2691 enableval="$enable_shared"
2692 p=${PACKAGE-default}
2694 yes) enable_shared=yes ;;
2695 no) enable_shared=no ;;
2698 # Look at the argument we got. We use all the common list separators.
2699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2700 for pkg in $enableval; do
2701 if test "X$pkg" = "X$p"; then
2711 # Check whether --enable-static or --disable-static was given.
2712 if test "${enable_static+set}" = set; then
2713 enableval="$enable_static"
2714 p=${PACKAGE-default}
2716 yes) enable_static=yes ;;
2717 no) enable_static=no ;;
2720 # Look at the argument we got. We use all the common list separators.
2721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2722 for pkg in $enableval; do
2723 if test "X$pkg" = "X$p"; then
2733 # Check whether --enable-fast-install or --disable-fast-install was given.
2734 if test "${enable_fast_install+set}" = set; then
2735 enableval="$enable_fast_install"
2736 p=${PACKAGE-default}
2738 yes) enable_fast_install=yes ;;
2739 no) enable_fast_install=no ;;
2741 enable_fast_install=no
2742 # Look at the argument we got. We use all the common list separators.
2743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2744 for pkg in $enableval; do
2745 if test "X$pkg" = "X$p"; then
2746 enable_fast_install=yes
2753 enable_fast_install=yes
2755 # Make sure we can run config.sub.
2756 $ac_config_sub sun4 >/dev/null 2>&1 ||
2757 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2758 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2759 { (exit 1); exit 1; }; }
2761 echo "$as_me:$LINENO: checking build system type" >&5
2762 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2763 if test "${ac_cv_build+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 ac_cv_build_alias=$build_alias
2767 test -z "$ac_cv_build_alias" &&
2768 ac_cv_build_alias=`$ac_config_guess`
2769 test -z "$ac_cv_build_alias" &&
2770 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2771 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2772 { (exit 1); exit 1; }; }
2773 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2774 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2775 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2776 { (exit 1); exit 1; }; }
2779 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2780 echo "${ECHO_T}$ac_cv_build" >&6
2782 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2783 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2784 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2787 echo "$as_me:$LINENO: checking host system type" >&5
2788 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2789 if test "${ac_cv_host+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 ac_cv_host_alias=$host_alias
2793 test -z "$ac_cv_host_alias" &&
2794 ac_cv_host_alias=$ac_cv_build_alias
2795 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2796 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2797 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2798 { (exit 1); exit 1; }; }
2801 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2802 echo "${ECHO_T}$ac_cv_host" >&6
2804 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2805 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2806 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 if test -n "$CC"; then
2843 echo "$as_me:$LINENO: result: $CC" >&5
2844 echo "${ECHO_T}$CC" >&6
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2851 if test -z "$ac_cv_prog_CC"; then
2853 # Extract the first word of "gcc", so it can be a program name with args.
2854 set dummy gcc; ac_word=$2
2855 echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870 ac_cv_prog_ac_ct_CC="gcc"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2882 echo "${ECHO_T}$ac_ct_CC" >&6
2884 echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2893 if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}cc; ac_word=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CC="${ac_tool_prefix}cc"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 if test -n "$CC"; then
2923 echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2931 if test -z "$ac_cv_prog_CC"; then
2933 # Extract the first word of "cc", so it can be a program name with args.
2934 set dummy cc; ac_word=$2
2935 echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_ac_ct_CC="cc"
2951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6
2964 echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2974 if test -z "$CC"; then
2975 # Extract the first word of "cc", so it can be a program name with args.
2976 set dummy cc; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_CC+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2994 ac_prog_rejected=yes
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test $ac_prog_rejected = yes; then
3005 # We found a bogon in the path, so make sure we never use it.
3006 set dummy $ac_cv_prog_CC
3008 if test $# != 0; then
3009 # We chose a different compiler from the bogus one.
3010 # However, it has the same basename, so the bogon will be chosen
3011 # first if we set CC to just the basename; use the full file name.
3013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3019 if test -n "$CC"; then
3020 echo "$as_me:$LINENO: result: $CC" >&5
3021 echo "${ECHO_T}$CC" >&6
3023 echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_prog_CC+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 echo "$as_me:$LINENO: result: $CC" >&5
3061 echo "${ECHO_T}$CC" >&6
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3067 test -n "$CC" && break
3070 if test -z "$CC"; then
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CC="$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3103 echo "${ECHO_T}$ac_ct_CC" >&6
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3109 test -n "$ac_ct_CC" && break
3118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3119 See \`config.log' for more details." >&5
3120 echo "$as_me: error: no acceptable C compiler found in \$PATH
3121 See \`config.log' for more details." >&2;}
3122 { (exit 1); exit 1; }; }
3124 # Provide some information about the compiler.
3125 echo "$as_me:$LINENO:" \
3126 "checking for C compiler version" >&5
3127 ac_compiler=`set X $ac_compile; echo $2`
3128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3129 (eval $ac_compiler --version </dev/null >&5) 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3134 (eval $ac_compiler -v </dev/null >&5) 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3139 (eval $ac_compiler -V </dev/null >&5) 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3144 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3167 rm -f conftest.$ac_objext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -z "$ac_c_werror_flag"
3177 || test ! -s conftest.err'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; } &&
3183 { ac_try='test -s conftest.$ac_objext'
3184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3200 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3201 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3202 GCC=`test $ac_compiler_gnu = yes && echo yes`
3203 ac_test_CFLAGS=${CFLAGS+set}
3204 ac_save_CFLAGS=$CFLAGS
3206 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3207 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3208 if test "${ac_cv_prog_cc_g+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228 (eval $ac_compile) 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag"
3236 || test ! -s conftest.err'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3259 if test "$ac_test_CFLAGS" = set; then
3260 CFLAGS=$ac_save_CFLAGS
3261 elif test $ac_cv_prog_cc_g = yes; then
3262 if test "$GCC" = yes; then
3268 if test "$GCC" = yes; then
3274 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3275 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3276 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 ac_cv_prog_cc_stdc=no
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3289 #include <sys/types.h>
3290 #include <sys/stat.h>
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3305 s = g (p, va_arg (v,int));
3310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3311 function prototypes and stuff, but not '\xHH' hex character constants.
3312 These don't provoke an error unfortunately, instead are silently treated
3313 as 'x'. The following induces an error, until -std1 is added to get
3314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3315 array size at least. It's necessary to write '\x00'==0 to get something
3316 that's true only with -std1. */
3317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319 int test (int i, double x);
3320 struct s1 {int (*f) (int a);};
3321 struct s2 {int (*f) (double a);};
3322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3333 # Don't try gcc -ansi; that turns off useful extensions and
3334 # breaks some systems' header files.
3335 # AIX -qlanglvl=ansi
3336 # Ultrix and OSF/1 -std1
3337 # HP-UX 10.20 and later -Ae
3338 # HP-UX older versions -Aa -D_HPUX_SOURCE
3339 # SVR4 -Xc -D__EXTENSIONS__
3340 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3342 CC="$ac_save_CC $ac_arg"
3343 rm -f conftest.$ac_objext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3345 (eval $ac_compile) 2>conftest.er1
3347 grep -v '^ *+' conftest.er1 >conftest.err
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -z "$ac_c_werror_flag"
3353 || test ! -s conftest.err'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 ac_cv_prog_cc_stdc=$ac_arg
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f conftest.err conftest.$ac_objext
3374 rm -f conftest.$ac_ext conftest.$ac_objext
3379 case "x$ac_cv_prog_cc_stdc" in
3381 echo "$as_me:$LINENO: result: none needed" >&5
3382 echo "${ECHO_T}none needed" >&6 ;;
3384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3386 CC="$CC $ac_cv_prog_cc_stdc" ;;
3389 # Some people use a C++ compiler to compile C. Since we use `exit',
3390 # in C++ we need to declare it. In case someone uses the same compiler
3391 # for both compiling C and C++ we need to have the C++ compiler decide
3392 # the declaration of exit, since it's the most demanding environment.
3393 cat >conftest.$ac_ext <<_ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 for ac_declaration in \
3422 'extern "C" void std::exit (int) throw (); using std::exit;' \
3423 'extern "C" void std::exit (int); using std::exit;' \
3424 'extern "C" void exit (int) throw ();' \
3425 'extern "C" void exit (int);' \
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3444 rm -f conftest.$ac_objext
3445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446 (eval $ac_compile) 2>conftest.er1
3448 grep -v '^ *+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 { ac_try='test -z "$ac_c_werror_flag"
3454 || test ! -s conftest.err'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; } &&
3460 { ac_try='test -s conftest.$ac_objext'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>conftest.er1
3493 grep -v '^ *+' conftest.er1 >conftest.err
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try='test -z "$ac_c_werror_flag"
3499 || test ! -s conftest.err'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; } &&
3505 { ac_try='test -s conftest.$ac_objext'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520 if test -n "$ac_declaration"; then
3521 echo '#ifdef __cplusplus' >>confdefs.h
3522 echo $ac_declaration >>confdefs.h
3523 echo '#endif' >>confdefs.h
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 # Find the correct PATH separator. Usually this is `:', but
3539 # DJGPP uses `;' like DOS.
3540 if test "X${PATH_SEPARATOR+set}" != Xset; then
3541 UNAME=${UNAME-`uname 2>/dev/null`}
3543 *-DOS) lt_cv_sys_path_separator=';' ;;
3544 *) lt_cv_sys_path_separator=':' ;;
3546 PATH_SEPARATOR=$lt_cv_sys_path_separator
3550 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3551 if test "${with_gnu_ld+set}" = set; then
3552 withval="$with_gnu_ld"
3553 test "$withval" = no || with_gnu_ld=yes
3558 if test "$GCC" = yes; then
3559 # Check if gcc -print-prog-name=ld gives a path.
3560 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3561 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3564 # gcc leaves a trailing carriage return which upsets mingw
3565 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3567 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3570 # Accept absolute paths.
3571 [\\/]* | [A-Za-z]:[\\/]*)
3572 re_direlt='/[^/][^/]*/\.\./'
3573 # Canonicalize the path of ld
3574 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3575 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3576 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3578 test -z "$LD" && LD="$ac_prog"
3581 # If it fails, then pretend we aren't using GCC.
3585 # If it is relative, then search for the first ld in PATH.
3589 elif test "$with_gnu_ld" = yes; then
3590 echo "$as_me:$LINENO: checking for GNU ld" >&5
3591 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3593 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3594 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3596 if test "${lt_cv_path_LD+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 if test -z "$LD"; then
3600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3601 for ac_dir in $PATH; do
3602 test -z "$ac_dir" && ac_dir=.
3603 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3604 lt_cv_path_LD="$ac_dir/$ac_prog"
3605 # Check to see if the program is GNU ld. I'd rather use --version,
3606 # but apparently some GNU ld's only accept -v.
3607 # Break only if it was the GNU/non-GNU ld that we prefer.
3608 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3609 test "$with_gnu_ld" != no && break
3611 test "$with_gnu_ld" != yes && break
3617 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3622 if test -n "$LD"; then
3623 echo "$as_me:$LINENO: result: $LD" >&5
3624 echo "${ECHO_T}$LD" >&6
3626 echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3629 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3630 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3631 { (exit 1); exit 1; }; }
3632 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3633 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3634 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3638 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3639 lt_cv_prog_gnu_ld=yes
3641 lt_cv_prog_gnu_ld=no
3644 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3645 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3646 with_gnu_ld=$lt_cv_prog_gnu_ld
3649 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3650 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3651 if test "${lt_cv_ld_reload_flag+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 lt_cv_ld_reload_flag='-r'
3656 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3657 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3658 reload_flag=$lt_cv_ld_reload_flag
3659 test -n "$reload_flag" && reload_flag=" $reload_flag"
3661 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3662 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3663 if test "${lt_cv_path_NM+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 if test -n "$NM"; then
3667 # Let the user override the test.
3670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3671 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3672 test -z "$ac_dir" && ac_dir=.
3673 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3674 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3675 # Check to see if the nm accepts a BSD-compat flag.
3676 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3677 # nm: unknown option "B" ignored
3678 # Tru64's nm complains that /dev/null is an invalid object file
3679 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3680 lt_cv_path_NM="$tmp_nm -B"
3682 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3683 lt_cv_path_NM="$tmp_nm -p"
3686 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3687 continue # so that we can try to find one that supports BSD flags
3692 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3697 echo "$as_me:$LINENO: result: $NM" >&5
3698 echo "${ECHO_T}$NM" >&6
3700 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3701 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3703 if test "$LN_S" = "ln -s"; then
3704 echo "$as_me:$LINENO: result: yes" >&5
3705 echo "${ECHO_T}yes" >&6
3707 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3708 echo "${ECHO_T}no, using $LN_S" >&6
3711 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3712 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3713 if test "${lt_cv_deplibs_check_method+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 lt_cv_file_magic_cmd='$MAGIC_CMD'
3717 lt_cv_file_magic_test_file=
3718 lt_cv_deplibs_check_method='unknown'
3719 # Need to set the preceding variable on all platforms that support
3720 # interlibrary dependencies.
3721 # 'none' -- dependencies not supported.
3722 # `unknown' -- same as none, but documents that we really don't know.
3723 # 'pass_all' -- all dependencies passed with no checks.
3724 # 'test_compile' -- check by making test program.
3725 # 'file_magic [[regex]]' -- check by looking for files in library path
3726 # which responds to the $file_magic_cmd with a given egrep regex.
3727 # If you have `file' or equivalent on your system and you're not sure
3728 # whether `pass_all' will *always* work, you probably want this one.
3732 lt_cv_deplibs_check_method=pass_all
3736 lt_cv_deplibs_check_method=pass_all
3740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3741 lt_cv_file_magic_cmd='/usr/bin/file -L'
3742 lt_cv_file_magic_test_file=/shlib/libc.so
3745 cygwin* | mingw* | pw32*)
3746 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3747 lt_cv_file_magic_cmd='$OBJDUMP -f'
3750 darwin* | rhapsody*)
3751 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3752 lt_cv_file_magic_cmd='/usr/bin/file -L'
3754 rhapsody* | darwin1.[012])
3755 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3758 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3764 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3767 # Not sure whether the presence of OpenBSD here was a mistake.
3768 # Let's accept both of them until this is cleared up.
3769 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3770 lt_cv_file_magic_cmd=/usr/bin/file
3771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3775 lt_cv_deplibs_check_method=pass_all
3780 lt_cv_deplibs_check_method=pass_all
3784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3785 lt_cv_file_magic_cmd=/usr/bin/file
3786 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3789 irix5* | irix6* | nonstopux*)
3791 irix5* | nonstopux*)
3792 # this will be overridden with pass_all, but let us keep it just in case
3793 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3797 *-32|*"-32 ") libmagic=32-bit;;
3798 *-n32|*"-n32 ") libmagic=N32;;
3799 *-64|*"-64 ") libmagic=64-bit;;
3800 *) libmagic=never-match;;
3802 # this will be overridden with pass_all, but let us keep it just in case
3803 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3806 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3807 lt_cv_deplibs_check_method=pass_all
3810 # This must be Linux ELF.
3813 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3814 lt_cv_deplibs_check_method=pass_all ;;
3816 # glibc up to 2.1.1 does not perform some relocations on ARM
3817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3819 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3823 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3824 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3826 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3832 lt_cv_file_magic_cmd=/usr/bin/file
3833 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3837 lt_cv_file_magic_cmd=/usr/bin/file
3838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3842 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3846 osf3* | osf4* | osf5*)
3847 # this will be overridden with pass_all, but let us keep it just in case
3848 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3849 lt_cv_file_magic_test_file=/shlib/libc.so
3850 lt_cv_deplibs_check_method=pass_all
3854 lt_cv_deplibs_check_method=pass_all
3858 lt_cv_deplibs_check_method=pass_all
3859 lt_cv_file_magic_test_file=/lib/libc.so
3862 sysv5uw[78]* | sysv4*uw2*)
3863 lt_cv_deplibs_check_method=pass_all
3866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3867 case $host_vendor in
3869 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]'
3870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3873 lt_cv_deplibs_check_method=pass_all
3876 lt_cv_file_magic_cmd='/bin/file'
3877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3880 lt_cv_file_magic_cmd='/bin/file'
3881 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3882 lt_cv_file_magic_test_file=/lib/libc.so
3889 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3890 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3891 file_magic_cmd=$lt_cv_file_magic_cmd
3892 deplibs_check_method=$lt_cv_deplibs_check_method
3901 # Check for command to grab the raw symbol name followed by C symbol from nm.
3902 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3903 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3904 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 # These are sane defaults that work on at least a few old systems.
3909 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3911 # Character class describing NM global symbol codes.
3912 symcode='[BCDEGRST]'
3914 # Regexp to match symbols that can be accessed directly from C.
3915 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3917 # Transform the above into a raw symbol and a C symbol.
3918 symxfrm='\1 \2\3 \3'
3920 # Transform an extracted symbol line into a proper C declaration
3921 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3923 # Transform an extracted symbol line into symbol name and symbol address
3924 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'"
3926 # Define system-specific variables.
3931 cygwin* | mingw* | pw32*)
3932 symcode='[ABCDGISTW]'
3934 hpux*) # Its linker distinguishes data from code symbols
3935 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3936 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'"
3939 symcode='[BCDEGRST]'
3949 # Handle CRLF in mingw tool chain
3953 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3957 # If we're using GNU nm, then use its standard symbol codes.
3958 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3959 symcode='[ABCDGISTW]'
3962 # Try without a prefix undercore, then with it.
3963 for ac_symprfx in "" "_"; do
3965 # Write the raw and C identifiers.
3966 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3968 # Check to see that the pipe works correctly.
3971 cat > conftest.$ac_ext <<EOF
3976 void nm_test_func(){}
3980 int main(){nm_test_var='a';nm_test_func();return(0);}
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; then
3988 # Now try to grab the symbols.
3990 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3991 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && test -s "$nlist"; then
3995 # Try sorting and uniquifying the output.
3996 if sort "$nlist" | uniq > "$nlist"T; then
3997 mv -f "$nlist"T "$nlist"
4002 # Make sure that we snagged all the symbols we need.
4003 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4004 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4005 cat <<EOF > conftest.$ac_ext
4011 # Now generate the symbol file.
4012 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4014 cat <<EOF >> conftest.$ac_ext
4015 #if defined (__STDC__) && __STDC__
4016 # define lt_ptr void *
4018 # define lt_ptr char *
4022 /* The mapping between symbol names and symbols. */
4027 lt_preloaded_symbols[] =
4030 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4031 cat <<\EOF >> conftest.$ac_ext
4039 # Now try linking the two files.
4040 mv conftest.$ac_objext conftstm.$ac_objext
4042 save_CFLAGS="$CFLAGS"
4043 LIBS="conftstm.$ac_objext"
4044 CFLAGS="$CFLAGS$no_builtin_flag"
4045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4046 (eval $ac_link) 2>&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } && test -s conftest; then
4053 CFLAGS="$save_CFLAGS"
4055 echo "cannot find nm_test_func in $nlist" >&5
4058 echo "cannot find nm_test_var in $nlist" >&5
4061 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4064 echo "$progname: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4067 rm -f conftest* conftst*
4069 # Do not use the global_symbol_pipe unless it works.
4070 if test "$pipe_works" = yes; then
4073 lt_cv_sys_global_symbol_pipe=
4079 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4080 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4081 global_symbol_to_cdecl=
4082 global_symbol_to_c_name_address=
4084 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4085 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4087 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4089 echo "$as_me:$LINENO: result: failed" >&5
4090 echo "${ECHO_T}failed" >&6
4092 echo "$as_me:$LINENO: result: ok" >&5
4093 echo "${ECHO_T}ok" >&6
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4102 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4103 # On Suns, sometimes $CPP names a directory.
4104 if test -n "$CPP" && test -d "$CPP"; then
4107 if test -z "$CPP"; then
4108 if test "${ac_cv_prog_CPP+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 # Double quotes because CPP needs to be expanded
4112 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4115 for ac_c_preproc_warn_flag in '' yes
4117 # Use a header file that comes with gcc, so configuring glibc
4118 # with a fresh cross-compiler works.
4119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4120 # <limits.h> exists even on freestanding compilers.
4121 # On the NeXT, cc -E runs the code through the compiler's parser,
4122 # not just through cpp. "Syntax error" is here to catch this case.
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4130 # include <limits.h>
4132 # include <assert.h>
4136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } >/dev/null; then
4144 if test -s conftest.err; then
4145 ac_cpp_err=$ac_c_preproc_warn_flag
4146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4153 if test -z "$ac_cpp_err"; then
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 # Broken: fails on valid input.
4162 rm -f conftest.err conftest.$ac_ext
4164 # OK, works on sane cases. Now check whether non-existent headers
4165 # can be detected and how.
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 #include <ac_nonexistent.h>
4174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev/null; then
4182 if test -s conftest.err; then
4183 ac_cpp_err=$ac_c_preproc_warn_flag
4184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4191 if test -z "$ac_cpp_err"; then
4192 # Broken: success on invalid input.
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 # Passes both tests.
4202 rm -f conftest.err conftest.$ac_ext
4205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4206 rm -f conftest.err conftest.$ac_ext
4207 if $ac_preproc_ok; then
4219 echo "$as_me:$LINENO: result: $CPP" >&5
4220 echo "${ECHO_T}$CPP" >&6
4222 for ac_c_preproc_warn_flag in '' yes
4224 # Use a header file that comes with gcc, so configuring glibc
4225 # with a fresh cross-compiler works.
4226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227 # <limits.h> exists even on freestanding compilers.
4228 # On the NeXT, cc -E runs the code through the compiler's parser,
4229 # not just through cpp. "Syntax error" is here to catch this case.
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4237 # include <limits.h>
4239 # include <assert.h>
4243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null; then
4251 if test -s conftest.err; then
4252 ac_cpp_err=$ac_c_preproc_warn_flag
4253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4260 if test -z "$ac_cpp_err"; then
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 # Broken: fails on valid input.
4269 rm -f conftest.err conftest.$ac_ext
4271 # OK, works on sane cases. Now check whether non-existent headers
4272 # can be detected and how.
4273 cat >conftest.$ac_ext <<_ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 #include <ac_nonexistent.h>
4281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } >/dev/null; then
4289 if test -s conftest.err; then
4290 ac_cpp_err=$ac_c_preproc_warn_flag
4291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4298 if test -z "$ac_cpp_err"; then
4299 # Broken: success on invalid input.
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 # Passes both tests.
4309 rm -f conftest.err conftest.$ac_ext
4312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313 rm -f conftest.err conftest.$ac_ext
4314 if $ac_preproc_ok; then
4317 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4318 See \`config.log' for more details." >&5
4319 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4320 See \`config.log' for more details." >&2;}
4321 { (exit 1); exit 1; }; }
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 echo "$as_me:$LINENO: checking for egrep" >&5
4332 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4333 if test "${ac_cv_prog_egrep+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4337 then ac_cv_prog_egrep='grep -E'
4338 else ac_cv_prog_egrep='egrep'
4341 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4342 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4343 EGREP=$ac_cv_prog_egrep
4346 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4348 if test "${ac_cv_header_stdc+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 cat >conftest.$ac_ext <<_ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>conftest.er1
4374 grep -v '^ *+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try='test -z "$ac_c_werror_flag"
4380 || test ! -s conftest.err'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; } &&
4386 { ac_try='test -s conftest.$ac_objext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_header_stdc=yes
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 ac_cv_header_stdc=no
4399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 if test $ac_cv_header_stdc = yes; then
4402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "memchr" >/dev/null 2>&1; then
4416 ac_cv_header_stdc=no
4422 if test $ac_cv_header_stdc = yes; then
4423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424 cat >conftest.$ac_ext <<_ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4434 $EGREP "free" >/dev/null 2>&1; then
4437 ac_cv_header_stdc=no
4443 if test $ac_cv_header_stdc = yes; then
4444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4445 if test "$cross_compiling" = yes; then
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4455 #if ((' ' & 0x0FF) == 0x020)
4456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4459 # define ISLOWER(c) \
4460 (('a' <= (c) && (c) <= 'i') \
4461 || ('j' <= (c) && (c) <= 'r') \
4462 || ('s' <= (c) && (c) <= 'z'))
4463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4471 for (i = 0; i < 256; i++)
4472 if (XOR (islower (i), ISLOWER (i))
4473 || toupper (i) != TOUPPER (i))
4478 rm -f conftest$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4491 echo "$as_me: program exited with status $ac_status" >&5
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4496 ac_cv_header_stdc=no
4498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4503 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4504 if test $ac_cv_header_stdc = yes; then
4506 cat >>confdefs.h <<\_ACEOF
4507 #define STDC_HEADERS 1
4512 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4522 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4523 inttypes.h stdint.h unistd.h
4525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 cat >conftest.$ac_ext <<_ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4539 #include <$ac_header>
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>conftest.er1
4545 grep -v '^ *+' conftest.er1 >conftest.err
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -z "$ac_c_werror_flag"
4551 || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 eval "$as_ac_Header=yes"
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 eval "$as_ac_Header=no"
4570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4575 cat >>confdefs.h <<_ACEOF
4576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585 for ac_header in dlfcn.h
4587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4589 echo "$as_me:$LINENO: checking for $ac_header" >&5
4590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4597 # Is the header compilable?
4598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4600 cat >conftest.$ac_ext <<_ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 $ac_includes_default
4607 #include <$ac_header>
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_header_compiler=yes
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_header_compiler=no
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4640 echo "${ECHO_T}$ac_header_compiler" >&6
4642 # Is the header present?
4643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 #include <$ac_header>
4653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4656 grep -v '^ *+' conftest.er1 >conftest.err
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } >/dev/null; then
4661 if test -s conftest.err; then
4662 ac_cpp_err=$ac_c_preproc_warn_flag
4663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4670 if test -z "$ac_cpp_err"; then
4671 ac_header_preproc=yes
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ac_header_preproc=no
4678 rm -f conftest.err conftest.$ac_ext
4679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4680 echo "${ECHO_T}$ac_header_preproc" >&6
4682 # So? What about this header?
4683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4689 ac_header_preproc=yes
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4706 ## ------------------------------------------ ##
4707 ## Report this to the AC_PACKAGE_NAME lists. ##
4708 ## ------------------------------------------ ##
4711 sed "s/^/$as_me: WARNING: /" >&2
4714 echo "$as_me:$LINENO: checking for $ac_header" >&5
4715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 eval "$as_ac_Header=\$ac_header_preproc"
4721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4726 cat >>confdefs.h <<_ACEOF
4727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4738 # Only perform the check for file, if the check method requires it
4739 case $deplibs_check_method in
4741 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4742 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4743 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4744 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4755 ac_save_MAGIC_CMD="$MAGIC_CMD"
4756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4757 ac_dummy="/usr/bin:$PATH"
4758 for ac_dir in $ac_dummy; do
4759 test -z "$ac_dir" && ac_dir=.
4760 if test -f $ac_dir/${ac_tool_prefix}file; then
4761 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4762 if test -n "$file_magic_test_file"; then
4763 case $deplibs_check_method in
4765 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4768 egrep "$file_magic_regex" > /dev/null; then
4773 *** Warning: the command libtool uses to detect shared libraries,
4774 *** $file_magic_cmd, produces output that libtool cannot recognize.
4775 *** The result is that libtool may fail to recognize shared libraries
4776 *** as such. This will affect the creation of libtool libraries that
4777 *** depend on shared libraries, but programs linked with such libtool
4778 *** libraries will work regardless of this problem. Nevertheless, you
4779 *** may want to report the problem to your system manager and/or to
4780 *** bug-libtool@gnu.org
4790 MAGIC_CMD="$ac_save_MAGIC_CMD"
4795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4796 if test -n "$MAGIC_CMD"; then
4797 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4798 echo "${ECHO_T}$MAGIC_CMD" >&6
4800 echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6
4804 if test -z "$lt_cv_path_MAGIC_CMD"; then
4805 if test -n "$ac_tool_prefix"; then
4806 echo "$as_me:$LINENO: checking for file" >&5
4807 echo $ECHO_N "checking for file... $ECHO_C" >&6
4808 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4816 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4819 ac_save_MAGIC_CMD="$MAGIC_CMD"
4820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4821 ac_dummy="/usr/bin:$PATH"
4822 for ac_dir in $ac_dummy; do
4823 test -z "$ac_dir" && ac_dir=.
4824 if test -f $ac_dir/file; then
4825 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4826 if test -n "$file_magic_test_file"; then
4827 case $deplibs_check_method in
4829 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4832 egrep "$file_magic_regex" > /dev/null; then
4837 *** Warning: the command libtool uses to detect shared libraries,
4838 *** $file_magic_cmd, produces output that libtool cannot recognize.
4839 *** The result is that libtool may fail to recognize shared libraries
4840 *** as such. This will affect the creation of libtool libraries that
4841 *** depend on shared libraries, but programs linked with such libtool
4842 *** libraries will work regardless of this problem. Nevertheless, you
4843 *** may want to report the problem to your system manager and/or to
4844 *** bug-libtool@gnu.org
4854 MAGIC_CMD="$ac_save_MAGIC_CMD"
4859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4860 if test -n "$MAGIC_CMD"; then
4861 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4862 echo "${ECHO_T}$MAGIC_CMD" >&6
4864 echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4880 echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4882 if test "${ac_cv_prog_RANLIB+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 if test -n "$RANLIB"; then
4886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 RANLIB=$ac_cv_prog_RANLIB
4905 if test -n "$RANLIB"; then
4906 echo "$as_me:$LINENO: result: $RANLIB" >&5
4907 echo "${ECHO_T}$RANLIB" >&6
4909 echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4914 if test -z "$ac_cv_prog_RANLIB"; then
4915 ac_ct_RANLIB=$RANLIB
4916 # Extract the first word of "ranlib", so it can be a program name with args.
4917 set dummy ranlib; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 if test -n "$ac_ct_RANLIB"; then
4924 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_ac_ct_RANLIB="ranlib"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4943 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4944 if test -n "$ac_ct_RANLIB"; then
4945 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4946 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4948 echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6
4952 RANLIB=$ac_ct_RANLIB
4954 RANLIB="$ac_cv_prog_RANLIB"
4957 if test -n "$ac_tool_prefix"; then
4958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4959 set dummy ${ac_tool_prefix}strip; ac_word=$2
4960 echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4962 if test "${ac_cv_prog_STRIP+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 if test -n "$STRIP"; then
4966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4975 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 STRIP=$ac_cv_prog_STRIP
4985 if test -n "$STRIP"; then
4986 echo "$as_me:$LINENO: result: $STRIP" >&5
4987 echo "${ECHO_T}$STRIP" >&6
4989 echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6
4994 if test -z "$ac_cv_prog_STRIP"; then
4996 # Extract the first word of "strip", so it can be a program name with args.
4997 set dummy strip; ac_word=$2
4998 echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test -n "$ac_ct_STRIP"; then
5004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_ac_ct_STRIP="strip"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5024 if test -n "$ac_ct_STRIP"; then
5025 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5026 echo "${ECHO_T}$ac_ct_STRIP" >&6
5028 echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5034 STRIP="$ac_cv_prog_STRIP"
5041 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5042 if test "${enable_libtool_lock+set}" = set; then
5043 enableval="$enable_libtool_lock"
5046 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5048 # Some flags need to be propagated to the compiler or linker for good
5052 # Find out which ABI we are using.
5053 echo '#line 5053 "configure"' > conftest.$ac_ext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; then
5059 case `/usr/bin/file conftest.$ac_objext` in
5075 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5076 SAVE_CFLAGS="$CFLAGS"
5077 CFLAGS="$CFLAGS -belf"
5078 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5079 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5080 if test "${lt_cv_cc_needs_belf+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 cat >conftest.$ac_ext <<_ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5106 rm -f conftest.$ac_objext conftest$ac_exeext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5108 (eval $ac_link) 2>conftest.er1
5110 grep -v '^ *+' conftest.er1 >conftest.err
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -z "$ac_c_werror_flag"
5116 || test ! -s conftest.err'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; } &&
5122 { ac_try='test -s conftest$ac_exeext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 lt_cv_cc_needs_belf=yes
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 lt_cv_cc_needs_belf=no
5135 rm -f conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5145 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5146 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5147 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5148 CFLAGS="$SAVE_CFLAGS"
5155 # Sed substitution that helps us do robust quoting. It backslashifies
5156 # metacharacters that are still active within double-quoted strings.
5157 Xsed='sed -e s/^X//'
5158 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5160 # Same as above, but do not quote variable references.
5161 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5163 # Sed substitution to delay expansion of an escaped shell variable in a
5164 # double_quote_subst'ed string.
5165 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5171 default_ofile=libtool
5172 can_build_shared=yes
5174 # All known linkers require a `.a' archive for static linking (except M$VC,
5175 # which needs '.lib').
5177 ltmain="$ac_aux_dir/ltmain.sh"
5178 ofile="$default_ofile"
5179 with_gnu_ld="$lt_cv_prog_gnu_ld"
5180 need_locks="$enable_libtool_lock"
5183 old_CFLAGS="$CFLAGS"
5185 # Set sane defaults for various variables
5186 test -z "$AR" && AR=ar
5187 test -z "$AR_FLAGS" && AR_FLAGS=cru
5188 test -z "$AS" && AS=as
5189 test -z "$CC" && CC=cc
5190 test -z "$DLLTOOL" && DLLTOOL=dlltool
5191 test -z "$LD" && LD=ld
5192 test -z "$LN_S" && LN_S="ln -s"
5193 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5194 test -z "$NM" && NM=nm
5195 test -z "$OBJDUMP" && OBJDUMP=objdump
5196 test -z "$RANLIB" && RANLIB=:
5197 test -z "$STRIP" && STRIP=:
5198 test -z "$ac_objext" && ac_objext=o
5200 if test x"$host" != x"$build"; then
5201 ac_tool_prefix=${host_alias}-
5206 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5209 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5214 # AIX sometimes has problems with the GCC collect2 program. For some
5215 # reason, if we set the COLLECT_NAMES environment variable, the problems
5216 # vanish in a puff of smoke.
5217 if test "X${COLLECT_NAMES+set}" != Xset; then
5219 export COLLECT_NAMES
5224 # Determine commands to create old-style static archives.
5225 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5226 old_postinstall_cmds='chmod 644 $oldlib'
5227 old_postuninstall_cmds=
5229 if test -n "$RANLIB"; then
5232 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5235 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5238 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5241 # Allow CC to be a program name with arguments.
5245 ## FIXME: this should be a separate macro
5247 echo "$as_me:$LINENO: checking for objdir" >&5
5248 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5249 rm -f .libs 2>/dev/null
5250 mkdir .libs 2>/dev/null
5251 if test -d .libs; then
5254 # MS-DOS does not allow filenames that begin with a dot.
5257 rmdir .libs 2>/dev/null
5258 echo "$as_me:$LINENO: result: $objdir" >&5
5259 echo "${ECHO_T}$objdir" >&6
5264 ## FIXME: this should be a separate macro
5267 # Check whether --with-pic or --without-pic was given.
5268 if test "${with_pic+set}" = set; then
5274 test -z "$pic_mode" && pic_mode=default
5276 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5277 # in isolation, and that seeing it set (from the cache) indicates that
5278 # the associated values are set (in the cache) correctly too.
5279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5281 if test "${lt_cv_prog_cc_pic+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 lt_cv_prog_cc_shlib=
5287 lt_cv_prog_cc_static=
5288 lt_cv_prog_cc_no_builtin=
5289 lt_cv_prog_cc_can_build_shared=$can_build_shared
5291 if test "$GCC" = yes; then
5292 lt_cv_prog_cc_wl='-Wl,'
5293 lt_cv_prog_cc_static='-static'
5297 # Below there is a dirty hack to force normal static linking with -ldl
5298 # The problem is because libdl dynamically linked with both libc and
5299 # libC (AIX C++ library), which obviously doesn't included in libraries
5300 # list by gcc. This cause undefined symbols with -static flags.
5301 # This hack allows C programs to be linked with "-static -ldl", but
5302 # not sure about C++ programs.
5303 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5306 # FIXME: we need at least 68020 code to build shared libraries, but
5307 # adding the `-m68020' flag to GCC prevents building anything better,
5309 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5311 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5312 # PIC is the default for these OSes.
5314 darwin* | rhapsody*)
5315 # PIC is the default on this platform
5316 # Common symbols not allowed in MH_DYLIB files
5317 lt_cv_prog_cc_pic='-fno-common'
5319 cygwin* | mingw* | pw32* | os2*)
5320 # This hack is so that the source file can tell whether it is being
5321 # built for inclusion in a dll (and should export symbols for example).
5322 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5325 if test -d /usr/nec; then
5326 lt_cv_prog_cc_pic=-Kconform_pic
5330 lt_cv_prog_cc_pic='-fPIC'
5334 # PORTME Check for PIC flags for the system compiler.
5336 aix3* | aix4* | aix5*)
5337 lt_cv_prog_cc_wl='-Wl,'
5338 # All AIX code is PIC.
5339 if test "$host_cpu" = ia64; then
5340 # AIX 5 now supports IA64 processor
5341 lt_cv_prog_cc_static='-Bstatic'
5343 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5347 hpux9* | hpux10* | hpux11*)
5348 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5349 lt_cv_prog_cc_wl='-Wl,'
5350 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5351 lt_cv_prog_cc_pic='+Z'
5354 irix5* | irix6* | nonstopux*)
5355 lt_cv_prog_cc_wl='-Wl,'
5356 lt_cv_prog_cc_static='-non_shared'
5357 # PIC (with -KPIC) is the default.
5360 cygwin* | mingw* | pw32* | os2*)
5361 # This hack is so that the source file can tell whether it is being
5362 # built for inclusion in a dll (and should export symbols for example).
5363 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5367 lt_cv_prog_cc_pic='-KPIC'
5368 lt_cv_prog_cc_static='-Bstatic'
5371 osf3* | osf4* | osf5*)
5372 # All OSF/1 code is PIC.
5373 lt_cv_prog_cc_wl='-Wl,'
5374 lt_cv_prog_cc_static='-non_shared'
5378 lt_cv_prog_cc_pic='-Kpic'
5379 lt_cv_prog_cc_static='-dn'
5380 lt_cv_prog_cc_shlib='-belf'
5384 lt_cv_prog_cc_pic='-KPIC'
5385 lt_cv_prog_cc_static='-Bstatic'
5386 lt_cv_prog_cc_wl='-Wl,'
5390 lt_cv_prog_cc_pic='-PIC'
5391 lt_cv_prog_cc_static='-Bstatic'
5392 lt_cv_prog_cc_wl='-Qoption ld '
5395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5396 lt_cv_prog_cc_pic='-KPIC'
5397 lt_cv_prog_cc_static='-Bstatic'
5398 if test "x$host_vendor" = xsni; then
5399 lt_cv_prog_cc_wl='-LD'
5401 lt_cv_prog_cc_wl='-Wl,'
5406 lt_cv_prog_cc_pic='-pic'
5407 lt_cv_prog_cc_static='-Bstatic'
5411 if test -d /usr/nec ;then
5412 lt_cv_prog_cc_pic='-Kconform_pic'
5413 lt_cv_prog_cc_static='-Bstatic'
5418 lt_cv_prog_cc_can_build_shared=no
5425 if test -z "$lt_cv_prog_cc_pic"; then
5426 echo "$as_me:$LINENO: result: none" >&5
5427 echo "${ECHO_T}none" >&6
5429 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5430 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5432 # Check to make sure the pic_flag actually works.
5433 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5434 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5435 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 save_CFLAGS="$CFLAGS"
5439 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5440 cat >conftest.$ac_ext <<_ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5455 rm -f conftest.$ac_objext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457 (eval $ac_compile) 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_c_werror_flag"
5465 || test ! -s conftest.err'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5478 hpux9* | hpux10* | hpux11*)
5479 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5480 # they create non-PIC objects. So, if there were any warnings, we
5481 # assume that PIC is not supported.
5482 if test -s conftest.err; then
5483 lt_cv_prog_cc_pic_works=no
5485 lt_cv_prog_cc_pic_works=yes
5489 lt_cv_prog_cc_pic_works=yes
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 lt_cv_prog_cc_pic_works=no
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 CFLAGS="$save_CFLAGS"
5506 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5508 lt_cv_prog_cc_can_build_shared=no
5510 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5513 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5514 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5519 # Check for any special shared library compilation flags.
5520 if test -n "$lt_cv_prog_cc_shlib"; then
5521 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5522 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5523 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5525 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5526 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5527 lt_cv_prog_cc_can_build_shared=no
5531 ## FIXME: this should be a separate macro
5533 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5534 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5535 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 lt_cv_prog_cc_static_works=no
5539 save_LDFLAGS="$LDFLAGS"
5540 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5541 cat >conftest.$ac_ext <<_ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558 (eval $ac_link) 2>conftest.er1
5560 grep -v '^ *+' conftest.er1 >conftest.err
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest$ac_exeext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 lt_cv_prog_cc_static_works=yes
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5584 rm -f conftest.err conftest.$ac_objext \
5585 conftest$ac_exeext conftest.$ac_ext
5586 LDFLAGS="$save_LDFLAGS"
5591 # Belt *and* braces to stop my trousers falling down:
5592 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5593 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5594 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5596 pic_flag="$lt_cv_prog_cc_pic"
5597 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5598 wl="$lt_cv_prog_cc_wl"
5599 link_static_flag="$lt_cv_prog_cc_static"
5600 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5601 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5606 ## FIXME: this should be a separate macro
5608 # Check to see if options -o and -c are simultaneously supported by compiler
5609 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5610 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5611 if test "${lt_cv_compiler_c_o+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 $rm -r conftest 2>/dev/null
5618 echo "int some_variable = 0;" > conftest.$ac_ext
5620 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5621 # that will create temporary files in the current directory regardless of
5622 # the output directory. Thus, making CWD read-only will cause this test
5623 # to fail, enabling locking or at least warning the user not to do parallel
5626 save_CFLAGS="$CFLAGS"
5627 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5629 if { (eval echo configure:5629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5630 # The compiler can only warn and ignore the option if not recognized
5631 # So say no if there are warnings
5632 if test -s out/conftest.err; then
5633 lt_cv_compiler_c_o=no
5635 lt_cv_compiler_c_o=yes
5638 # Append any errors to the config.log.
5639 cat out/conftest.err 1>&5
5640 lt_cv_compiler_c_o=no
5642 CFLAGS="$save_CFLAGS"
5648 $rm -r conftest 2>/dev/null
5652 compiler_c_o=$lt_cv_compiler_c_o
5653 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5654 echo "${ECHO_T}$compiler_c_o" >&6
5656 if test x"$compiler_c_o" = x"yes"; then
5657 # Check to see if we can write to a .lo
5658 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5659 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5660 if test "${lt_cv_compiler_o_lo+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 lt_cv_compiler_o_lo=no
5665 save_CFLAGS="$CFLAGS"
5666 CFLAGS="$CFLAGS -c -o conftest.lo"
5667 save_objext="$ac_objext"
5669 cat >conftest.$ac_ext <<_ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5679 int some_variable = 0;
5684 rm -f conftest.$ac_objext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>conftest.er1
5688 grep -v '^ *+' conftest.er1 >conftest.err
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag"
5694 || test ! -s conftest.err'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 # The compiler can only warn and ignore the option if not recognized
5707 # So say no if there are warnings
5708 if test -s conftest.err; then
5709 lt_cv_compiler_o_lo=no
5711 lt_cv_compiler_o_lo=yes
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5720 ac_objext="$save_objext"
5721 CFLAGS="$save_CFLAGS"
5725 compiler_o_lo=$lt_cv_compiler_o_lo
5726 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5727 echo "${ECHO_T}$compiler_o_lo" >&6
5734 ## FIXME: this should be a separate macro
5736 # Check to see if we can do hard links to lock some files if needed
5737 hard_links="nottested"
5738 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5739 # do not overwrite the value of need_locks provided by the user
5740 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5741 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5744 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5746 ln conftest.a conftest.b 2>&5 || hard_links=no
5747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5748 echo "$as_me:$LINENO: result: $hard_links" >&5
5749 echo "${ECHO_T}$hard_links" >&6
5750 if test "$hard_links" = no; then
5751 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5752 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5761 ## FIXME: this should be a separate macro
5763 if test "$GCC" = yes; then
5764 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5765 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5766 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5767 echo "int some_variable = 0;" > conftest.$ac_ext
5768 save_CFLAGS="$CFLAGS"
5769 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5770 compiler_rtti_exceptions=no
5771 cat >conftest.$ac_ext <<_ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5781 int some_variable = 0;
5786 rm -f conftest.$ac_objext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1 >conftest.err
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 # The compiler can only warn and ignore the option if not recognized
5809 # So say no if there are warnings
5810 if test -s conftest.err; then
5811 compiler_rtti_exceptions=no
5813 compiler_rtti_exceptions=yes
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822 CFLAGS="$save_CFLAGS"
5823 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5824 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5826 if test "$compiler_rtti_exceptions" = "yes"; then
5827 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5829 no_builtin_flag=' -fno-builtin'
5835 ## FIXME: this should be a separate macro
5837 # See if the linker supports building shared libraries.
5838 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5839 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5841 allow_undefined_flag=
5843 need_lib_prefix=unknown
5844 need_version=unknown
5845 # when you set need_version to no, make sure it does not cause -set_version
5846 # flags to be left without arguments
5848 archive_expsym_cmds=
5849 old_archive_from_new_cmds=
5850 old_archive_from_expsyms_cmds=
5851 export_dynamic_flag_spec=
5852 whole_archive_flag_spec=
5853 thread_safe_flag_spec=
5854 hardcode_into_libs=no
5855 hardcode_libdir_flag_spec=
5856 hardcode_libdir_separator=
5859 hardcode_shlibpath_var=unsupported
5861 link_all_deplibs=unknown
5862 always_export_symbols=no
5863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5864 # include_expsyms should be a list of space-separated symbols to be *always*
5865 # included in the symbol list
5867 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5868 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5869 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5870 # as well as any symbol that contains `d'.
5871 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5872 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5873 # platforms (ab)use it in PIC code, but their linkers get confused if
5874 # the symbol is explicitly referenced. Since portable code cannot
5875 # rely on this symbol name, it's probably fine to never include it in
5876 # preloaded symbol tables.
5877 extract_expsyms_cmds=
5880 cygwin* | mingw* | pw32*)
5881 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5882 # When not using gcc, we currently assume that we are using
5883 # Microsoft Visual C++.
5884 if test "$GCC" != yes; then
5894 if test "$with_gnu_ld" = yes; then
5895 # If archive_cmds runs LD, not CC, wlarc should be empty
5898 # See if GNU ld supports shared libraries.
5900 aix3* | aix4* | aix5*)
5901 # On AIX, the GNU linker is very broken
5902 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5906 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5907 *** to be unable to reliably create shared libraries on AIX.
5908 *** Therefore, libtool is disabling shared libraries support. If you
5909 *** really care for shared libraries, you may want to modify your PATH
5910 *** so that a non-GNU linker is found, and then restart.
5916 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)'
5917 hardcode_libdir_flag_spec='-L$libdir'
5918 hardcode_minus_L=yes
5920 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5921 # that the semantics of dynamic libraries on AmigaOS, at least up
5922 # to version 4, is to share data among multiple programs linked
5923 # with the same dynamic library. Since this doesn't match the
5924 # behavior of shared libraries on other platforms, we can use
5930 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5931 allow_undefined_flag=unsupported
5932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5933 # support --undefined. This deserves some investigation. FIXME
5934 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5940 cygwin* | mingw* | pw32*)
5941 # hardcode_libdir_flag_spec is actually meaningless, as there is
5942 # no search path for DLLs.
5943 hardcode_libdir_flag_spec='-L$libdir'
5944 allow_undefined_flag=unsupported
5945 always_export_symbols=yes
5947 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5948 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5949 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5950 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5951 else $CC -o impgen impgen.c ; fi)~
5952 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5954 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5956 # cygwin and mingw dlls have different entry points and sets of symbols
5958 # FIXME: what about values for MSVC?
5959 dll_entry=__cygwin_dll_entry@12
5960 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5964 dll_entry=_DllMainCRTStartup@12
5965 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5969 # mingw and cygwin differ, and it's simplest to just exclude the union
5970 # of the two symbol sets.
5971 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5973 # recent cygwin and mingw systems supply a stub DllMain which the user
5974 # can override, but on older systems we have to supply one (in ltdll.c)
5975 if test "x$lt_cv_need_dllmain" = "xyes"; then
5976 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5977 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~
5978 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5984 # Extract the symbol export list from an `--export-all' def file,
5985 # then regenerate the def file from the symbol export list, so that
5986 # the compiled dll only exports the symbol export list.
5987 # Be careful not to strip the DATA tag left be newer dlltools.
5988 export_symbols_cmds="$ltdll_cmds"'
5989 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5990 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5992 # If the export-symbols file already is a .def file (1st line
5993 # is EXPORTS), use it as is.
5994 # If DATA tags from a recent dlltool are present, honour them!
5995 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5996 cp $export_symbols $output_objdir/$soname-def;
5998 echo EXPORTS > $output_objdir/$soname-def;
6000 cat $export_symbols | while read symbol; do
6003 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6004 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6006 _lt_hint=`expr 1 + \$_lt_hint`;
6010 $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~
6011 $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~
6012 $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~
6013 $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~
6014 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6019 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6022 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6023 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6028 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6032 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6033 *** create shared libraries on Solaris systems. Therefore, libtool
6034 *** is disabling shared libraries support. We urge you to upgrade GNU
6035 *** binutils to release 2.9.1 or newer. Another option is to modify
6036 *** your PATH or compiler configuration so that the native linker is
6037 *** used, and then restart.
6040 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6049 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6052 hardcode_shlibpath_var=no
6056 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6065 if test "$ld_shlibs" = yes; then
6066 runpath_var=LD_RUN_PATH
6067 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6068 export_dynamic_flag_spec='${wl}--export-dynamic'
6070 cygwin* | mingw* | pw32*)
6071 # dlltool doesn't understand --whole-archive et. al.
6072 whole_archive_flag_spec=
6075 # ancient GNU ld didn't support --whole-archive et. al.
6076 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6077 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6079 whole_archive_flag_spec=
6085 # PORTME fill in a description of your system's linker (not GNU ld)
6088 allow_undefined_flag=unsupported
6089 always_export_symbols=yes
6090 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'
6091 # Note: this linker hardcodes the directories in LIBPATH if there
6092 # are no directories specified by -L.
6093 hardcode_minus_L=yes
6094 if test "$GCC" = yes && test -z "$link_static_flag"; then
6095 # Neither direct hardcoding nor static linking is supported with a
6097 hardcode_direct=unsupported
6102 if test "$host_cpu" = ia64; then
6103 # On IA64, the linker does run time linking by default, so we don't
6104 # have to do anything special.
6105 aix_use_runtimelinking=no
6106 exp_sym_flag='-Bexport'
6109 aix_use_runtimelinking=no
6111 # Test if we are trying to use run time linking or normal
6112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6113 # need to do runtime linking.
6114 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6115 for ld_flag in $LDFLAGS; do
6116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6117 aix_use_runtimelinking=yes
6123 exp_sym_flag='-bexport'
6124 no_entry_flag='-bnoentry'
6127 # When large executables or shared objects are built, AIX ld can
6128 # have problems creating the table of contents. If linking a library
6129 # or program results in "error TOC overflow" add -mminimal-toc to
6130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6135 hardcode_libdir_separator=':'
6136 if test "$GCC" = yes; then
6137 case $host_os in aix4.[012]|aix4.[012].*)
6138 collect2name=`${CC} -print-prog-name=collect2`
6139 if test -f "$collect2name" && \
6140 strings "$collect2name" | grep resolve_lib_name >/dev/null
6142 # We have reworked collect2
6145 # We have old collect2
6146 hardcode_direct=unsupported
6147 # It fails to find uninstalled libraries when the uninstalled
6148 # path is not listed in the libpath. Setting hardcode_minus_L
6149 # to unsupported forces relinking
6150 hardcode_minus_L=yes
6151 hardcode_libdir_flag_spec='-L$libdir'
6152 hardcode_libdir_separator=
6156 shared_flag='-shared'
6159 if test "$host_cpu" = ia64; then
6160 shared_flag='${wl}-G'
6162 if test "$aix_use_runtimelinking" = yes; then
6163 shared_flag='${wl}-G'
6165 shared_flag='${wl}-bM:SRE'
6170 # It seems that -bexpall can do strange things, so it is better to
6171 # generate a list of symbols to export.
6172 always_export_symbols=yes
6173 if test "$aix_use_runtimelinking" = yes; then
6174 # Warning - without using the other runtime loading flags (-brtl),
6175 # -berok will link without error, but may produce a broken library.
6176 allow_undefined_flag='-berok'
6177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6178 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"
6180 if test "$host_cpu" = ia64; then
6181 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6182 allow_undefined_flag="-z nodefs"
6183 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"
6185 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6186 # Warning - without using the other run time loading flags,
6187 # -berok will link without error, but may produce a broken library.
6188 allow_undefined_flag='${wl}-berok'
6189 # This is a bit strange, but is similar to how AIX traditionally builds
6190 # it's shared libraries.
6191 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'
6197 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)'
6198 hardcode_libdir_flag_spec='-L$libdir'
6199 hardcode_minus_L=yes
6200 # see comment about different semantics on the GNU ld section
6204 cygwin* | mingw* | pw32*)
6205 # When not using gcc, we currently assume that we are using
6206 # Microsoft Visual C++.
6207 # hardcode_libdir_flag_spec is actually meaningless, as there is
6208 # no search path for DLLs.
6209 hardcode_libdir_flag_spec=' '
6210 allow_undefined_flag=unsupported
6211 # Tell ltmain to make .lib files, not .a files.
6213 # FIXME: Setting linknames here is a bad hack.
6214 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6215 # The linker will automatically build a .lib file if we build a DLL.
6216 old_archive_from_new_cmds='true'
6217 # FIXME: Should let the user specify the lib program.
6218 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6219 fix_srcfile_path='`cygpath -w "$srcfile"`'
6222 darwin* | rhapsody*)
6224 rhapsody* | darwin1.[012])
6225 allow_undefined_flag='-undefined suppress'
6228 allow_undefined_flag='-flat_namespace -undefined suppress'
6231 # FIXME: Relying on posixy $() will cause problems for
6232 # cross-compilation, but unfortunately the echo tests do not
6233 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6234 # `"' quotes if we put them in here... so don't!
6235 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6236 # We need to add '_' to the symbols in $export_symbols first
6237 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6239 hardcode_shlibpath_var=no
6240 whole_archive_flag_spec='-all_load $convenience'
6247 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6248 # support. Future versions do this automatically, but an explicit c++rt0.o
6249 # does not break anything, and helps significantly (at the cost of a little
6252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6253 hardcode_libdir_flag_spec='-R$libdir'
6255 hardcode_shlibpath_var=no
6258 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6262 hardcode_minus_L=yes
6263 hardcode_shlibpath_var=no
6266 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6268 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6269 hardcode_libdir_flag_spec='-R$libdir'
6271 hardcode_shlibpath_var=no
6274 hpux9* | hpux10* | hpux11*)
6276 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' ;;
6277 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6279 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6280 hardcode_libdir_separator=:
6282 hardcode_minus_L=yes # Not in the search PATH, but as the default
6283 # location of the library.
6284 export_dynamic_flag_spec='${wl}-E'
6287 irix5* | irix6* | nonstopux*)
6288 if test "$GCC" = yes; then
6289 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'
6291 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'
6293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6294 hardcode_libdir_separator=:
6295 link_all_deplibs=yes
6299 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6304 hardcode_libdir_flag_spec='-R$libdir'
6306 hardcode_shlibpath_var=no
6310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6313 hardcode_libdir_separator=:
6314 hardcode_shlibpath_var=no
6319 hardcode_shlibpath_var=no
6320 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6321 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6322 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6323 export_dynamic_flag_spec='${wl}-E'
6326 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6328 hardcode_libdir_flag_spec='-R$libdir'
6331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6339 hardcode_libdir_flag_spec='-L$libdir'
6340 hardcode_minus_L=yes
6341 allow_undefined_flag=unsupported
6342 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'
6343 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6347 if test "$GCC" = yes; then
6348 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6349 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'
6351 allow_undefined_flag=' -expect_unresolved \*'
6352 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'
6354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6355 hardcode_libdir_separator=:
6358 osf4* | osf5*) # as osf3* with the addition of -msym flag
6359 if test "$GCC" = yes; then
6360 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6361 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'
6362 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6364 allow_undefined_flag=' -expect_unresolved \*'
6365 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'
6366 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6367 $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'
6369 #Both c and cxx compiler support -rpath directly
6370 hardcode_libdir_flag_spec='-rpath $libdir'
6372 hardcode_libdir_separator=:
6376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6377 hardcode_shlibpath_var=no
6378 runpath_var=LD_RUN_PATH
6379 hardcode_runpath_var=yes
6380 export_dynamic_flag_spec='${wl}-Bexport'
6384 # gcc --version < 3.0 without binutils cannot create self contained
6385 # shared libraries reliably, requiring libgcc.a to resolve some of
6386 # the object symbols generated in some cases. Libraries that use
6387 # assert need libgcc.a to resolve __eprintf, for example. Linking
6388 # a copy of libgcc.a into every shared library to guarantee resolving
6389 # such symbols causes other problems: According to Tim Van Holder
6390 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6391 # (to the application) exception stack for one thing.
6392 no_undefined_flag=' -z defs'
6393 if test "$GCC" = yes; then
6394 case `$CC --version 2>/dev/null` in
6398 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6399 *** create self contained shared libraries on Solaris systems, without
6400 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6401 *** -no-undefined support, which will at least allow you to build shared
6402 *** libraries. However, you may find that when you link such libraries
6403 *** into an application without using GCC, you have to manually add
6404 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6405 *** upgrade to a newer version of GCC. Another option is to rebuild your
6406 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6413 # $CC -shared without GNU ld will not create a library from C++
6414 # object files and a static libstdc++, better avoid it by now
6415 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6416 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6417 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6418 hardcode_libdir_flag_spec='-R$libdir'
6419 hardcode_shlibpath_var=no
6421 solaris2.[0-5] | solaris2.[0-5].*) ;;
6422 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6423 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6425 link_all_deplibs=yes
6429 if test "x$host_vendor" = xsequent; then
6430 # Use $CC to link under sequent, because it throws in some extra .o
6431 # files that make .init and .fini sections work.
6432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6436 hardcode_libdir_flag_spec='-L$libdir'
6438 hardcode_minus_L=yes
6439 hardcode_shlibpath_var=no
6443 if test "x$host_vendor" = xsno; then
6444 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6445 hardcode_direct=yes # is this really true???
6447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6448 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6450 runpath_var='LD_RUN_PATH'
6451 hardcode_shlibpath_var=no
6455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6456 hardcode_shlibpath_var=no
6457 export_dynamic_flag_spec='-Bexport'
6461 no_undefined_flag=' -z text'
6462 # $CC -shared without GNU ld will not create a library from C++
6463 # object files and a static libstdc++, better avoid it by now
6464 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6465 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6466 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6467 hardcode_libdir_flag_spec=
6468 hardcode_shlibpath_var=no
6469 runpath_var='LD_RUN_PATH'
6473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6474 hardcode_libdir_flag_spec='-L$libdir'
6475 hardcode_shlibpath_var=no
6479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6480 hardcode_libdir_flag_spec='-L$libdir'
6481 hardcode_shlibpath_var=no
6485 if test -d /usr/nec; then
6486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6487 hardcode_shlibpath_var=no
6488 runpath_var=LD_RUN_PATH
6489 hardcode_runpath_var=yes
6495 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6498 hardcode_shlibpath_var=no
6499 hardcode_runpath_var=yes
6500 runpath_var=LD_RUN_PATH
6503 sysv5uw7* | unixware7*)
6504 no_undefined_flag='${wl}-z ${wl}text'
6505 if test "$GCC" = yes; then
6506 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6508 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6510 runpath_var='LD_RUN_PATH'
6511 hardcode_shlibpath_var=no
6519 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6520 echo "${ECHO_T}$ld_shlibs" >&6
6521 test "$ld_shlibs" = no && can_build_shared=no
6525 ## FIXME: this should be a separate macro
6527 # Check hardcoding attributes.
6528 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6529 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6531 if test -n "$hardcode_libdir_flag_spec" || \
6532 test -n "$runpath_var"; then
6534 # We can hardcode non-existant directories.
6535 if test "$hardcode_direct" != no &&
6536 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6537 # have to relink, otherwise we might link with an installed library
6538 # when we should be linking with a yet-to-be-installed one
6539 ## test "$hardcode_shlibpath_var" != no &&
6540 test "$hardcode_minus_L" != no; then
6541 # Linking always hardcodes the temporary library directory.
6542 hardcode_action=relink
6544 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6545 hardcode_action=immediate
6548 # We cannot hardcode anything, or else we can only hardcode existing
6550 hardcode_action=unsupported
6552 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6553 echo "${ECHO_T}$hardcode_action" >&6
6557 ## FIXME: this should be a separate macro
6561 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6562 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6563 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6564 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6565 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6566 echo "$as_me:$LINENO: result: yes" >&5
6567 echo "${ECHO_T}yes" >&6
6569 echo "$as_me:$LINENO: result: no" >&5
6570 echo "${ECHO_T}no" >&6
6575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6576 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6578 ## FIXME: this should be a separate macro
6580 # PORTME Fill in your ld.so characteristics
6581 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6582 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6584 libname_spec='lib$name'
6591 shlibpath_overrides_runpath=unknown
6593 dynamic_linker="$host_os ld.so"
6594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6595 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6600 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6601 shlibpath_var=LIBPATH
6603 # AIX has no versioning support, so we append a major version to the name.
6604 soname_spec='${libname}${release}.so$major'
6609 if test "$host_cpu" = ia64; then
6610 # AIX 5 supports IA64
6611 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6612 shlibpath_var=LD_LIBRARY_PATH
6614 # With GCC up to 2.95.x, collect2 would create an import file
6615 # for dependence libraries. The import file would start with
6616 # the line `#! .'. This would cause the generated library to
6617 # depend on `.', always an invalid library. This was fixed in
6618 # development snapshots of GCC prior to 3.0.
6620 aix4 | aix4.[01] | aix4.[01].*)
6621 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6623 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6630 # AIX (on Power*) has no versioning support, so currently we can
6631 # not hardcode correct soname into executable. Probably we can
6632 # add versioning support to collect2, so additional links can
6633 # be useful in future.
6634 if test "$aix_use_runtimelinking" = yes; then
6635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6636 # instead of lib<name>.a to let people know that these are not
6637 # typical AIX shared libraries.
6638 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6640 # We preserve .a as extension for shared libraries through AIX4.2
6641 # and later when we are not doing run time linking.
6642 library_names_spec='${libname}${release}.a $libname.a'
6643 soname_spec='${libname}${release}.so$major'
6645 shlibpath_var=LIBPATH
6650 library_names_spec='$libname.ixlibrary $libname.a'
6651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6652 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'
6656 library_names_spec='${libname}.so'
6657 dynamic_linker="$host_os ld.so"
6658 shlibpath_var=LIBRARY_PATH
6664 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6665 soname_spec='${libname}${release}.so$major'
6666 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6667 shlibpath_var=LD_LIBRARY_PATH
6668 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6669 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6670 export_dynamic_flag_spec=-rdynamic
6671 # the default ld.so.conf also contains /usr/contrib/lib and
6672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6673 # libtool to hard-code these into programs
6676 cygwin* | mingw* | pw32*)
6677 version_type=windows
6680 case $GCC,$host_os in
6682 library_names_spec='$libname.dll.a'
6683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6684 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6685 dldir=$destdir/`dirname \$dlpath`~
6686 test -d \$dldir || mkdir -p \$dldir~
6687 $install_prog .libs/$dlname \$dldir/$dlname'
6688 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6689 dlpath=$dir/\$dldll~
6693 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6697 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6700 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6703 dynamic_linker='Win32 ld.exe'
6704 # FIXME: first we should search . and the directory the executable is in
6708 darwin* | rhapsody*)
6709 dynamic_linker="$host_os dyld"
6713 # FIXME: Relying on posixy $() will cause problems for
6714 # cross-compilation, but unfortunately the echo tests do not
6715 # yet detect zsh echo's removal of \ escapes.
6716 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)'
6717 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6718 shlibpath_overrides_runpath=yes
6719 shlibpath_var=DYLD_LIBRARY_PATH
6727 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6728 version_type=freebsd-$objformat
6729 case $version_type in
6731 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6736 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6740 shlibpath_var=LD_LIBRARY_PATH
6743 shlibpath_overrides_runpath=yes
6746 shlibpath_overrides_runpath=no
6747 hardcode_into_libs=yes
6756 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6757 soname_spec='${libname}${release}.so$major'
6758 shlibpath_var=LD_LIBRARY_PATH
6759 hardcode_into_libs=yes
6762 hpux9* | hpux10* | hpux11*)
6763 # Give a soname corresponding to the major version so that dld.sl refuses to
6764 # link against other versions.
6765 dynamic_linker="$host_os dld.sl"
6769 shlibpath_var=SHLIB_PATH
6770 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6771 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6772 soname_spec='${libname}${release}.sl$major'
6773 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6774 postinstall_cmds='chmod 555 $lib'
6777 irix5* | irix6* | nonstopux*)
6779 nonstopux*) version_type=nonstopux ;;
6780 *) version_type=irix ;;
6784 soname_spec='${libname}${release}.so$major'
6785 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6787 irix5* | nonstopux*)
6791 case $LD in # libtool.m4 will add one of these switches to LD
6792 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6793 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6794 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6795 *) libsuff= shlibsuff= libmagic=never-match;;
6799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6800 shlibpath_overrides_runpath=no
6801 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6802 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6805 # No shared lib support for Linux oldld, aout, or coff.
6806 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6810 # This must be Linux ELF.
6815 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6816 soname_spec='${libname}${release}.so$major'
6817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6818 shlibpath_var=LD_LIBRARY_PATH
6819 shlibpath_overrides_runpath=no
6820 # This implies no fast_install, which is unacceptable.
6821 # Some rework will be needed to allow for fast_install
6822 # before this can be enabled.
6823 hardcode_into_libs=yes
6825 # We used to test for /lib/ld.so.1 and disable shared libraries on
6826 # powerpc, because MkLinux only supported shared libraries with the
6827 # GNU dynamic linker. Since this was broken with cross compilers,
6828 # most powerpc-linux boxes support dynamic linking these days and
6829 # people can always --disable-shared, the test was removed, and we
6830 # assume the GNU/Linux dynamic linker is in use.
6831 dynamic_linker='GNU/Linux ld.so'
6838 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6839 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6841 dynamic_linker='NetBSD (a.out) ld.so'
6843 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6844 soname_spec='${libname}${release}.so$major'
6845 dynamic_linker='NetBSD ld.elf_so'
6847 shlibpath_var=LD_LIBRARY_PATH
6848 shlibpath_overrides_runpath=yes
6849 hardcode_into_libs=yes
6854 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6855 shlibpath_var=LD_LIBRARY_PATH
6856 shlibpath_overrides_runpath=yes
6863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6865 openbsd2.[89] | openbsd2.[89].*)
6866 shlibpath_overrides_runpath=no
6869 shlibpath_overrides_runpath=yes
6873 shlibpath_overrides_runpath=yes
6875 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6877 shlibpath_var=LD_LIBRARY_PATH
6881 libname_spec='$name'
6883 library_names_spec='$libname.dll $libname.a'
6884 dynamic_linker='OS/2 ld.exe'
6885 shlibpath_var=LIBPATH
6888 osf3* | osf4* | osf5*)
6891 soname_spec='${libname}${release}.so'
6892 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6893 shlibpath_var=LD_LIBRARY_PATH
6894 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6895 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6900 soname_spec='${libname}${release}.so$major'
6901 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6902 shlibpath_var=LD_LIBRARY_PATH
6909 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6910 soname_spec='${libname}${release}.so$major'
6911 shlibpath_var=LD_LIBRARY_PATH
6912 shlibpath_overrides_runpath=yes
6913 hardcode_into_libs=yes
6914 # ldd complains unless libraries are executable
6915 postinstall_cmds='chmod +x $lib'
6920 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6922 shlibpath_var=LD_LIBRARY_PATH
6923 shlibpath_overrides_runpath=yes
6924 if test "$with_gnu_ld" = yes; then
6930 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6932 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6933 soname_spec='${libname}${release}.so$major'
6934 shlibpath_var=LD_LIBRARY_PATH
6935 case $host_vendor in
6937 shlibpath_overrides_runpath=no
6942 shlibpath_overrides_runpath=no
6943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6950 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6951 soname_spec='${libname}${release}.so$major'
6952 shlibpath_var=LD_LIBRARY_PATH
6959 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6960 soname_spec='${libname}${release}.so$major'
6961 shlibpath_var=LD_LIBRARY_PATH
6965 if test -d /usr/nec ;then
6967 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6968 soname_spec='$libname.so.$major'
6969 shlibpath_var=LD_LIBRARY_PATH
6977 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6978 echo "${ECHO_T}$dynamic_linker" >&6
6979 test "$dynamic_linker" = no && can_build_shared=no
6983 ## FIXME: this should be a separate macro
6985 # Report the final consequences.
6986 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6987 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6988 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6989 echo "${ECHO_T}$can_build_shared" >&6
6993 ## FIXME: this should be a separate macro
6995 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6996 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6997 test "$can_build_shared" = "no" && enable_shared=no
6999 # On AIX, shared libraries and static libraries use the same namespace, and
7000 # are all built from PIC.
7003 test "$enable_shared" = yes && enable_static=no
7004 if test -n "$RANLIB"; then
7005 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7006 postinstall_cmds='$RANLIB $lib'
7011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7012 test "$enable_shared" = yes && enable_static=no
7016 echo "$as_me:$LINENO: result: $enable_shared" >&5
7017 echo "${ECHO_T}$enable_shared" >&6
7021 ## FIXME: this should be a separate macro
7023 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7024 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7025 # Make sure either enable_shared or enable_static is yes.
7026 test "$enable_shared" = yes || enable_static=yes
7027 echo "$as_me:$LINENO: result: $enable_static" >&5
7028 echo "${ECHO_T}$enable_static" >&6
7032 if test "$hardcode_action" = relink; then
7033 # Fast installation is not supported
7034 enable_fast_install=no
7035 elif test "$shlibpath_overrides_runpath" = yes ||
7036 test "$enable_shared" = no; then
7037 # Fast installation is not necessary
7038 enable_fast_install=needless
7041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7042 if test "$GCC" = yes; then
7043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7046 if test "x$enable_dlopen" != xyes; then
7047 enable_dlopen=unknown
7048 enable_dlopen_self=unknown
7049 enable_dlopen_self_static=unknown
7056 lt_cv_dlopen="load_add_on"
7058 lt_cv_dlopen_self=yes
7061 cygwin* | mingw* | pw32*)
7062 lt_cv_dlopen="LoadLibrary"
7067 echo "$as_me:$LINENO: checking for shl_load" >&5
7068 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7069 if test "${ac_cv_func_shl_load+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 cat >conftest.$ac_ext <<_ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7080 #define shl_load innocuous_shl_load
7082 /* System header to define __stub macros and hopefully few prototypes,
7083 which can conflict with char shl_load (); below.
7084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7085 <limits.h> exists even on freestanding compilers. */
7088 # include <limits.h>
7090 # include <assert.h>
7095 /* Override any gcc2 internal prototype to avoid an error. */
7100 /* We use char because int might match the return type of a gcc2
7101 builtin and then its argument prototype would still apply. */
7103 /* The GNU C library defines this for functions which it implements
7104 to always fail with ENOSYS. Some functions are actually named
7105 something starting with __ and the normal name is an alias. */
7106 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7109 char (*f) () = shl_load;
7118 return f != shl_load;
7123 rm -f conftest.$ac_objext conftest$ac_exeext
7124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7125 (eval $ac_link) 2>conftest.er1
7127 grep -v '^ *+' conftest.er1 >conftest.err
7129 cat conftest.err >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try='test -z "$ac_c_werror_flag"
7133 || test ! -s conftest.err'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; } &&
7139 { ac_try='test -s conftest$ac_exeext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_cv_func_shl_load=yes
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 ac_cv_func_shl_load=no
7152 rm -f conftest.err conftest.$ac_objext \
7153 conftest$ac_exeext conftest.$ac_ext
7155 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7156 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7157 if test $ac_cv_func_shl_load = yes; then
7158 lt_cv_dlopen="shl_load"
7160 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7161 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7162 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 ac_check_lib_save_LIBS=$LIBS
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7174 /* Override any gcc2 internal prototype to avoid an error. */
7178 /* We use char because int might match the return type of a gcc2
7179 builtin and then its argument prototype would still apply. */
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>conftest.er1
7193 grep -v '^ *+' conftest.er1 >conftest.err
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -z "$ac_c_werror_flag"
7199 || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest$ac_exeext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_lib_dld_shl_load=yes
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 ac_cv_lib_dld_shl_load=no
7218 rm -f conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 LIBS=$ac_check_lib_save_LIBS
7222 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7223 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7224 if test $ac_cv_lib_dld_shl_load = yes; then
7225 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7227 echo "$as_me:$LINENO: checking for dlopen" >&5
7228 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7229 if test "${ac_cv_func_dlopen+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7240 #define dlopen innocuous_dlopen
7242 /* System header to define __stub macros and hopefully few prototypes,
7243 which can conflict with char dlopen (); below.
7244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7245 <limits.h> exists even on freestanding compilers. */
7248 # include <limits.h>
7250 # include <assert.h>
7255 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7269 char (*f) () = dlopen;
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>conftest.er1
7287 grep -v '^ *+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest$ac_exeext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_cv_func_dlopen=yes
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 ac_cv_func_dlopen=no
7312 rm -f conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7315 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7316 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7317 if test $ac_cv_func_dlopen = yes; then
7318 lt_cv_dlopen="dlopen"
7320 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7321 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7322 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 ac_check_lib_save_LIBS=$LIBS
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7334 /* Override any gcc2 internal prototype to avoid an error. */
7338 /* We use char because int might match the return type of a gcc2
7339 builtin and then its argument prototype would still apply. */
7349 rm -f conftest.$ac_objext conftest$ac_exeext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351 (eval $ac_link) 2>conftest.er1
7353 grep -v '^ *+' conftest.er1 >conftest.err
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_cv_lib_dl_dlopen=yes
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_cv_lib_dl_dlopen=no
7378 rm -f conftest.err conftest.$ac_objext \
7379 conftest$ac_exeext conftest.$ac_ext
7380 LIBS=$ac_check_lib_save_LIBS
7382 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7383 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7384 if test $ac_cv_lib_dl_dlopen = yes; then
7385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7387 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7388 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7389 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 ac_check_lib_save_LIBS=$LIBS
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7401 /* Override any gcc2 internal prototype to avoid an error. */
7405 /* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418 (eval $ac_link) 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest$ac_exeext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 ac_cv_lib_svld_dlopen=yes
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 ac_cv_lib_svld_dlopen=no
7445 rm -f conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 LIBS=$ac_check_lib_save_LIBS
7449 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7450 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7451 if test $ac_cv_lib_svld_dlopen = yes; then
7452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7454 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7455 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7456 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_check_lib_save_LIBS=$LIBS
7461 cat >conftest.$ac_ext <<_ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7468 /* Override any gcc2 internal prototype to avoid an error. */
7472 /* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */
7483 rm -f conftest.$ac_objext conftest$ac_exeext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7485 (eval $ac_link) 2>conftest.er1
7487 grep -v '^ *+' conftest.er1 >conftest.err
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try='test -s conftest$ac_exeext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_lib_dld_dld_link=yes
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_lib_dld_dld_link=no
7512 rm -f conftest.err conftest.$ac_objext \
7513 conftest$ac_exeext conftest.$ac_ext
7514 LIBS=$ac_check_lib_save_LIBS
7516 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7517 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7518 if test $ac_cv_lib_dld_dld_link = yes; then
7519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7540 if test "x$lt_cv_dlopen" != xno; then
7546 case $lt_cv_dlopen in
7548 save_CPPFLAGS="$CPPFLAGS"
7549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7551 save_LDFLAGS="$LDFLAGS"
7552 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7555 LIBS="$lt_cv_dlopen_libs $LIBS"
7557 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7558 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7559 if test "${lt_cv_dlopen_self+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 if test "$cross_compiling" = yes; then :
7563 lt_cv_dlopen_self=cross
7565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7566 lt_status=$lt_dlunknown
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7568 "configure"
7569 #include "confdefs.h"
7578 # define LT_DLGLOBAL RTLD_GLOBAL
7581 # define LT_DLGLOBAL DL_GLOBAL
7583 # define LT_DLGLOBAL 0
7587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7588 find out it does not work in some platform. */
7589 #ifndef LT_DLLAZY_OR_NOW
7591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7594 # define LT_DLLAZY_OR_NOW DL_LAZY
7597 # define LT_DLLAZY_OR_NOW RTLD_NOW
7600 # define LT_DLLAZY_OR_NOW DL_NOW
7602 # define LT_DLLAZY_OR_NOW 0
7610 extern "C" void exit (int);
7613 void fnord() { int i=42;}
7616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7617 int status = $lt_dlunknown;
7621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7623 /* dlclose (self); */
7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630 (eval $ac_link) 2>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7634 (./conftest; exit; ) 2>/dev/null
7637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7639 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7642 # compilation failed
7643 lt_cv_dlopen_self=no
7650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7651 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7653 if test "x$lt_cv_dlopen_self" = xyes; then
7654 LDFLAGS="$LDFLAGS $link_static_flag"
7655 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7656 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7657 if test "${lt_cv_dlopen_self_static+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 if test "$cross_compiling" = yes; then :
7661 lt_cv_dlopen_self_static=cross
7663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7664 lt_status=$lt_dlunknown
7665 cat > conftest.$ac_ext <<EOF
7666 #line 7666 "configure"
7667 #include "confdefs.h"
7676 # define LT_DLGLOBAL RTLD_GLOBAL
7679 # define LT_DLGLOBAL DL_GLOBAL
7681 # define LT_DLGLOBAL 0
7685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7686 find out it does not work in some platform. */
7687 #ifndef LT_DLLAZY_OR_NOW
7689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7692 # define LT_DLLAZY_OR_NOW DL_LAZY
7695 # define LT_DLLAZY_OR_NOW RTLD_NOW
7698 # define LT_DLLAZY_OR_NOW DL_NOW
7700 # define LT_DLLAZY_OR_NOW 0
7708 extern "C" void exit (int);
7711 void fnord() { int i=42;}
7714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7715 int status = $lt_dlunknown;
7719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7721 /* dlclose (self); */
7727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7728 (eval $ac_link) 2>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7732 (./conftest; exit; ) 2>/dev/null
7735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7737 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7740 # compilation failed
7741 lt_cv_dlopen_self_static=no
7748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7749 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7752 CPPFLAGS="$save_CPPFLAGS"
7753 LDFLAGS="$save_LDFLAGS"
7758 case $lt_cv_dlopen_self in
7759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7760 *) enable_dlopen_self=unknown ;;
7763 case $lt_cv_dlopen_self_static in
7764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7765 *) enable_dlopen_self_static=unknown ;;
7770 ## FIXME: this should be a separate macro
7772 if test "$enable_shared" = yes && test "$GCC" = yes; then
7773 case $archive_cmds in
7775 # FIXME: we may have to deal with multi-command sequences.
7778 # Test whether the compiler implicitly links with -lc since on some
7779 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7780 # to ld, don't add -lc before -lgcc.
7781 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7782 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7783 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 echo 'static int dummy;' > conftest.$ac_ext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; then
7796 libobjs=conftest.$ac_objext
7798 wl=$lt_cv_prog_cc_wl
7804 save_allow_undefined_flag=$allow_undefined_flag
7805 allow_undefined_flag=
7806 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7807 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }
7812 lt_cv_archive_cmds_need_lc=no
7814 lt_cv_archive_cmds_need_lc=yes
7816 allow_undefined_flag=$save_allow_undefined_flag
7818 cat conftest.err 1>&5
7822 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7823 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7827 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7831 ## FIXME: this should be a separate macro
7833 # The second clause should only fire when bootstrapping the
7834 # libtool distribution, otherwise you forgot to ship ltmain.sh
7835 # with your package, and you will get complaints that there are
7836 # no rules to generate ltmain.sh.
7837 if test -f "$ltmain"; then
7840 # If there is no Makefile yet, we rely on a make rule to execute
7841 # `config.status --recheck' to rerun these tests and create the
7842 # libtool script then.
7843 test -f Makefile && make "$ltmain"
7846 if test -f "$ltmain"; then
7847 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7850 echo creating $ofile
7852 # Now quote all the things that may contain metacharacters while being
7853 # careful not to overquote the AC_SUBSTed values. We take copies of the
7854 # variables and quote the copies for generation of the libtool script.
7855 for var in echo old_CC old_CFLAGS \
7856 AR AR_FLAGS CC LD LN_S NM SHELL \
7857 reload_flag reload_cmds wl \
7858 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7859 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7860 library_names_spec soname_spec \
7861 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7862 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7863 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7864 old_striplib striplib file_magic_cmd export_symbols_cmds \
7865 deplibs_check_method allow_undefined_flag no_undefined_flag \
7866 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7867 global_symbol_to_c_name_address \
7868 hardcode_libdir_flag_spec hardcode_libdir_separator \
7869 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7870 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7873 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7874 old_postinstall_cmds | old_postuninstall_cmds | \
7875 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7876 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7877 postinstall_cmds | postuninstall_cmds | \
7878 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7879 # Double-quote double-evaled strings.
7880 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7883 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7888 cat <<__EOF__ > "${ofile}T"
7891 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7892 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7893 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7895 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7896 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7898 # This program is free software; you can redistribute it and/or modify
7899 # it under the terms of the GNU General Public License as published by
7900 # the Free Software Foundation; either version 2 of the License, or
7901 # (at your option) any later version.
7903 # This program is distributed in the hope that it will be useful, but
7904 # WITHOUT ANY WARRANTY; without even the implied warranty of
7905 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7906 # General Public License for more details.
7908 # You should have received a copy of the GNU General Public License
7909 # along with this program; if not, write to the Free Software
7910 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7912 # As a special exception to the GNU General Public License, if you
7913 # distribute this file as part of a program that contains a
7914 # configuration script generated by Autoconf, you may include it under
7915 # the same distribution terms that you use for the rest of that program.
7917 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7918 Xsed="sed -e s/^X//"
7920 # The HP-UX ksh and POSIX shell print the target directory to stdout
7922 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7924 # ### BEGIN LIBTOOL CONFIG
7926 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7928 # Shell to use when invoking shell scripts.
7931 # Whether or not to build shared libraries.
7932 build_libtool_libs=$enable_shared
7934 # Whether or not to build static libraries.
7935 build_old_libs=$enable_static
7937 # Whether or not to add -lc for building shared libraries.
7938 build_libtool_need_lc=$need_lc
7940 # Whether or not to optimize for fast installation.
7941 fast_install=$enable_fast_install
7944 host_alias=$host_alias
7947 # An echo program that does not interpret backslashes.
7952 AR_FLAGS=$lt_AR_FLAGS
7954 # The default C compiler.
7957 # Is the compiler the GNU C compiler?
7960 # The linker used to build libraries.
7963 # Whether we need hard or soft links.
7966 # A BSD-compatible nm program.
7969 # A symbol stripping program
7972 # Used to examine libraries when file_magic_cmd begins "file"
7973 MAGIC_CMD=$MAGIC_CMD
7975 # Used on cygwin: DLL creation program.
7978 # Used on cygwin: object dumper.
7981 # Used on cygwin: assembler.
7984 # The name of the directory that contains temporary libtool files.
7987 # How to create reloadable object files.
7988 reload_flag=$lt_reload_flag
7989 reload_cmds=$lt_reload_cmds
7991 # How to pass a linker flag through the compiler.
7994 # Object file suffix (normally "o").
7997 # Old archive suffix (normally "a").
8000 # Executable file suffix (normally "").
8003 # Additional compiler flags for building library objects.
8004 pic_flag=$lt_pic_flag
8007 # Does compiler simultaneously support -c and -o options?
8008 compiler_c_o=$lt_compiler_c_o
8010 # Can we write directly to a .lo ?
8011 compiler_o_lo=$lt_compiler_o_lo
8013 # Must we lock files when doing compilation ?
8014 need_locks=$lt_need_locks
8016 # Do we need the lib prefix for modules?
8017 need_lib_prefix=$need_lib_prefix
8019 # Do we need a version for libraries?
8020 need_version=$need_version
8022 # Whether dlopen is supported.
8023 dlopen_support=$enable_dlopen
8025 # Whether dlopen of programs is supported.
8026 dlopen_self=$enable_dlopen_self
8028 # Whether dlopen of statically linked programs is supported.
8029 dlopen_self_static=$enable_dlopen_self_static
8031 # Compiler flag to prevent dynamic linking.
8032 link_static_flag=$lt_link_static_flag
8034 # Compiler flag to turn off builtin functions.
8035 no_builtin_flag=$lt_no_builtin_flag
8037 # Compiler flag to allow reflexive dlopens.
8038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8040 # Compiler flag to generate shared objects directly from archives.
8041 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8043 # Compiler flag to generate thread-safe objects.
8044 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8046 # Library versioning type.
8047 version_type=$version_type
8049 # Format of library name prefix.
8050 libname_spec=$lt_libname_spec
8052 # List of archive names. First name is the real one, the rest are links.
8053 # The last name is the one that the linker finds with -lNAME.
8054 library_names_spec=$lt_library_names_spec
8056 # The coded name of the library, if different from the real name.
8057 soname_spec=$lt_soname_spec
8059 # Commands used to build and install an old-style archive.
8061 old_archive_cmds=$lt_old_archive_cmds
8062 old_postinstall_cmds=$lt_old_postinstall_cmds
8063 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8065 # Create an old-style archive from a shared archive.
8066 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8068 # Create a temporary old-style archive to link instead of a shared archive.
8069 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8071 # Commands used to build and install a shared archive.
8072 archive_cmds=$lt_archive_cmds
8073 archive_expsym_cmds=$lt_archive_expsym_cmds
8074 postinstall_cmds=$lt_postinstall_cmds
8075 postuninstall_cmds=$lt_postuninstall_cmds
8077 # Commands to strip libraries.
8078 old_striplib=$lt_old_striplib
8079 striplib=$lt_striplib
8081 # Method to check whether dependent libraries are shared objects.
8082 deplibs_check_method=$lt_deplibs_check_method
8084 # Command to use when deplibs_check_method == file_magic.
8085 file_magic_cmd=$lt_file_magic_cmd
8087 # Flag that allows shared libraries with undefined symbols to be built.
8088 allow_undefined_flag=$lt_allow_undefined_flag
8090 # Flag that forces no undefined symbols.
8091 no_undefined_flag=$lt_no_undefined_flag
8093 # Commands used to finish a libtool library installation in a directory.
8094 finish_cmds=$lt_finish_cmds
8096 # Same as above, but a single script fragment to be evaled but not shown.
8097 finish_eval=$lt_finish_eval
8099 # Take the output of nm and produce a listing of raw symbols and C names.
8100 global_symbol_pipe=$lt_global_symbol_pipe
8102 # Transform the output of nm in a proper C declaration
8103 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8105 # Transform the output of nm in a C name address pair
8106 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8108 # This is the shared library runtime path variable.
8109 runpath_var=$runpath_var
8111 # This is the shared library path variable.
8112 shlibpath_var=$shlibpath_var
8114 # Is shlibpath searched before the hard-coded library search path?
8115 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8117 # How to hardcode a shared library path into an executable.
8118 hardcode_action=$hardcode_action
8120 # Whether we should hardcode library paths into libraries.
8121 hardcode_into_libs=$hardcode_into_libs
8123 # Flag to hardcode \$libdir into a binary during linking.
8124 # This must work even if \$libdir does not exist.
8125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8127 # Whether we need a single -rpath flag with a separated argument.
8128 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8130 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8132 hardcode_direct=$hardcode_direct
8134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8136 hardcode_minus_L=$hardcode_minus_L
8138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8139 # the resulting binary.
8140 hardcode_shlibpath_var=$hardcode_shlibpath_var
8142 # Variables whose values should be saved in libtool wrapper scripts and
8143 # restored at relink time.
8144 variables_saved_for_relink="$variables_saved_for_relink"
8146 # Whether libtool must link a program against all its dependency libraries.
8147 link_all_deplibs=$link_all_deplibs
8149 # Compile-time system search path for libraries
8150 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8152 # Run-time system search path for libraries
8153 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8155 # Fix the shell variable \$srcfile for the compiler.
8156 fix_srcfile_path="$fix_srcfile_path"
8158 # Set to yes if exported symbols are required.
8159 always_export_symbols=$always_export_symbols
8161 # The commands to list exported symbols.
8162 export_symbols_cmds=$lt_export_symbols_cmds
8164 # The commands to extract the exported symbol list from a shared archive.
8165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8167 # Symbols that should not be listed in the preloaded symbols.
8168 exclude_expsyms=$lt_exclude_expsyms
8170 # Symbols that must always be exported.
8171 include_expsyms=$lt_include_expsyms
8173 # ### END LIBTOOL CONFIG
8179 cat <<\EOF >> "${ofile}T"
8181 # AIX sometimes has problems with the GCC collect2 program. For some
8182 # reason, if we set the COLLECT_NAMES environment variable, the problems
8183 # vanish in a puff of smoke.
8184 if test "X${COLLECT_NAMES+set}" != Xset; then
8186 export COLLECT_NAMES
8193 cygwin* | mingw* | pw32* | os2*)
8194 cat <<'EOF' >> "${ofile}T"
8195 # This is a source program that is used to create dlls on Windows
8196 # Don't remove nor modify the starting and closing comments
8197 # /* ltdll.c starts here */
8198 # #define WIN32_LEAN_AND_MEAN
8199 # #include <windows.h>
8200 # #undef WIN32_LEAN_AND_MEAN
8201 # #include <stdio.h>
8203 # #ifndef __CYGWIN__
8204 # # ifdef __CYGWIN32__
8205 # # define __CYGWIN__ __CYGWIN32__
8209 # #ifdef __cplusplus
8212 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8213 # #ifdef __cplusplus
8218 # #include <cygwin/cygwin_dll.h>
8219 # DECLARE_CYGWIN_DLL( DllMain );
8221 # HINSTANCE __hDllInstance_base;
8224 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8226 # __hDllInstance_base = hInst;
8229 # /* ltdll.c ends here */
8230 # This is a source program that is used to create import libraries
8231 # on Windows for dlls which lack them. Don't remove nor modify the
8232 # starting and closing comments
8233 # /* impgen.c starts here */
8234 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8236 # This file is part of GNU libtool.
8238 # This program is free software; you can redistribute it and/or modify
8239 # it under the terms of the GNU General Public License as published by
8240 # the Free Software Foundation; either version 2 of the License, or
8241 # (at your option) any later version.
8243 # This program is distributed in the hope that it will be useful,
8244 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8245 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8246 # GNU General Public License for more details.
8248 # You should have received a copy of the GNU General Public License
8249 # along with this program; if not, write to the Free Software
8250 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8253 # #include <stdio.h> /* for printf() */
8254 # #include <unistd.h> /* for open(), lseek(), read() */
8255 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8256 # #include <string.h> /* for strdup() */
8258 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8260 # #define O_BINARY 0
8263 # static unsigned int
8264 # pe_get16 (fd, offset)
8268 # unsigned char b[2];
8269 # lseek (fd, offset, SEEK_SET);
8271 # return b[0] + (b[1]<<8);
8274 # static unsigned int
8275 # pe_get32 (fd, offset)
8279 # unsigned char b[4];
8280 # lseek (fd, offset, SEEK_SET);
8282 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8285 # static unsigned int
8289 # unsigned char *b = ptr;
8290 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8299 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8300 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8301 # unsigned long name_rvas, nexp;
8302 # unsigned char *expdata, *erva;
8303 # char *filename, *dll_name;
8305 # filename = argv[1];
8307 # dll = open(filename, O_RDONLY|O_BINARY);
8311 # dll_name = filename;
8313 # for (i=0; filename[i]; i++)
8314 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8315 # dll_name = filename + i +1;
8317 # pe_header_offset = pe_get32 (dll, 0x3c);
8318 # opthdr_ofs = pe_header_offset + 4 + 20;
8319 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8321 # if (num_entries < 1) /* no exports */
8324 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8325 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8326 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8327 # secptr = (pe_header_offset + 4 + 20 +
8328 # pe_get16 (dll, pe_header_offset + 4 + 16));
8331 # for (i = 0; i < nsections; i++)
8334 # unsigned long secptr1 = secptr + 40 * i;
8335 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8336 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8337 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8338 # lseek(dll, secptr1, SEEK_SET);
8339 # read(dll, sname, 8);
8340 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8342 # expptr = fptr + (export_rva - vaddr);
8343 # if (export_rva + export_size > vaddr + vsize)
8344 # export_size = vsize - (export_rva - vaddr);
8349 # expdata = (unsigned char*)malloc(export_size);
8350 # lseek (dll, expptr, SEEK_SET);
8351 # read (dll, expdata, export_size);
8352 # erva = expdata - export_rva;
8354 # nexp = pe_as32 (expdata+24);
8355 # name_rvas = pe_as32 (expdata+32);
8357 # printf ("EXPORTS\n");
8358 # for (i = 0; i<nexp; i++)
8360 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8361 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8366 # /* impgen.c ends here */
8372 # We use sed instead of cat because bash on DJGPP gets confused if
8373 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8374 # text mode, it properly converts lines to CR/LF. This bash problem
8375 # is reportedly fixed, but why not run on old versions too?
8376 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8378 mv -f "${ofile}T" "$ofile" || \
8379 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8389 # This can be used to rebuild libtool when needed
8390 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8392 # Always use our own libtool.
8393 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8395 # Prevent multiple expansion
8400 for ac_prog in flex lex
8402 # Extract the first word of "$ac_prog", so it can be a program name with args.
8403 set dummy $ac_prog; ac_word=$2
8404 echo "$as_me:$LINENO: checking for $ac_word" >&5
8405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8406 if test "${ac_cv_prog_LEX+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 if test -n "$LEX"; then
8410 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8419 ac_cv_prog_LEX="$ac_prog"
8420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 if test -n "$LEX"; then
8430 echo "$as_me:$LINENO: result: $LEX" >&5
8431 echo "${ECHO_T}$LEX" >&6
8433 echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6
8437 test -n "$LEX" && break
8439 test -n "$LEX" || LEX=":"
8441 if test -z "$LEXLIB"
8443 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8444 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8445 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_check_lib_save_LIBS=$LIBS
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8457 /* Override any gcc2 internal prototype to avoid an error. */
8461 /* We use char because int might match the return type of a gcc2
8462 builtin and then its argument prototype would still apply. */
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8474 (eval $ac_link) 2>conftest.er1
8476 grep -v '^ *+' conftest.er1 >conftest.err
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -z "$ac_c_werror_flag"
8482 || test ! -s conftest.err'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; } &&
8488 { ac_try='test -s conftest$ac_exeext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_lib_fl_yywrap=yes
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_cv_lib_fl_yywrap=no
8501 rm -f conftest.err conftest.$ac_objext \
8502 conftest$ac_exeext conftest.$ac_ext
8503 LIBS=$ac_check_lib_save_LIBS
8505 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8506 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8507 if test $ac_cv_lib_fl_yywrap = yes; then
8510 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8511 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8512 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 ac_check_lib_save_LIBS=$LIBS
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8524 /* Override any gcc2 internal prototype to avoid an error. */
8528 /* We use char because int might match the return type of a gcc2
8529 builtin and then its argument prototype would still apply. */
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541 (eval $ac_link) 2>conftest.er1
8543 grep -v '^ *+' conftest.er1 >conftest.err
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try='test -z "$ac_c_werror_flag"
8549 || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_lib_l_yywrap=yes
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 ac_cv_lib_l_yywrap=no
8568 rm -f conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8572 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8573 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8574 if test $ac_cv_lib_l_yywrap = yes; then
8582 if test "x$LEX" != "x:"; then
8583 echo "$as_me:$LINENO: checking lex output file root" >&5
8584 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8585 if test "${ac_cv_prog_lex_root+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 # The minimal lex program is just a single line: %%. But some broken lexes
8589 # (Solaris, I think it was) want two %% lines, so accommodate them.
8590 cat >conftest.l <<_ACEOF
8594 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8595 (eval $LEX conftest.l) 2>&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }
8599 if test -f lex.yy.c; then
8600 ac_cv_prog_lex_root=lex.yy
8601 elif test -f lexyy.c; then
8602 ac_cv_prog_lex_root=lexyy
8604 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8605 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8606 { (exit 1); exit 1; }; }
8609 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8610 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8612 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8614 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8615 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8616 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 # POSIX says lex can declare yytext either as a pointer or an array; the
8620 # default is implementation-dependent. Figure out which it is, since
8621 # not all implementations provide the %pointer and %array declarations.
8622 ac_cv_prog_lex_yytext_pointer=no
8623 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8625 LIBS="$LIBS $LEXLIB"
8626 cat >conftest.$ac_ext <<_ACEOF
8627 `cat $LEX_OUTPUT_ROOT.c`
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631 (eval $ac_link) 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } &&
8638 { ac_try='test -z "$ac_c_werror_flag"
8639 || test ! -s conftest.err'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try='test -s conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_prog_lex_yytext_pointer=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8657 rm -f conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
8660 rm -f "${LEX_OUTPUT_ROOT}.c"
8663 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8664 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8665 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8667 cat >>confdefs.h <<\_ACEOF
8668 #define YYTEXT_POINTER 1
8674 if test ${LEX} = "flex"; then
8675 cat >>confdefs.h <<\_ACEOF
8680 for ac_prog in 'bison -y' byacc
8682 # Extract the first word of "$ac_prog", so it can be a program name with args.
8683 set dummy $ac_prog; ac_word=$2
8684 echo "$as_me:$LINENO: checking for $ac_word" >&5
8685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8686 if test "${ac_cv_prog_YACC+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 if test -n "$YACC"; then
8690 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699 ac_cv_prog_YACC="$ac_prog"
8700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 YACC=$ac_cv_prog_YACC
8709 if test -n "$YACC"; then
8710 echo "$as_me:$LINENO: result: $YACC" >&5
8711 echo "${ECHO_T}$YACC" >&6
8713 echo "$as_me:$LINENO: result: no" >&5
8714 echo "${ECHO_T}no" >&6
8717 test -n "$YACC" && break
8719 test -n "$YACC" || YACC="yacc"
8721 # Extract the first word of "bison++", so it can be a program name with args.
8722 set dummy bison++; ac_word=$2
8723 echo "$as_me:$LINENO: checking for $ac_word" >&5
8724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8725 if test "${ac_cv_prog_BISON_PLUS_PLUS+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 if test -n "$BISON_PLUS_PLUS"; then
8729 ac_cv_prog_BISON_PLUS_PLUS="$BISON_PLUS_PLUS" # Let the user override the test.
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738 ac_cv_prog_BISON_PLUS_PLUS="bison++"
8739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 test -z "$ac_cv_prog_BISON_PLUS_PLUS" && ac_cv_prog_BISON_PLUS_PLUS=":"
8748 BISON_PLUS_PLUS=$ac_cv_prog_BISON_PLUS_PLUS
8749 if test -n "$BISON_PLUS_PLUS"; then
8750 echo "$as_me:$LINENO: result: $BISON_PLUS_PLUS" >&5
8751 echo "${ECHO_T}$BISON_PLUS_PLUS" >&6
8753 echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6
8760 ac_cpp='$CXXCPP $CPPFLAGS'
8761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8766 # Checking for header files.
8767 # ===========================================================================
8769 if test -d /stuff/include; then
8770 CPPFLAGS="$CPPFLAGS -I/stuff/include"
8775 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8776 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8777 if test "${ac_cv_header_stdc+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8799 rm -f conftest.$ac_objext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8801 (eval $ac_compile) 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -z "$ac_cxx_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest.$ac_objext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_header_stdc=yes
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 ac_cv_header_stdc=no
8828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8830 if test $ac_cv_header_stdc = yes; then
8831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8832 cat >conftest.$ac_ext <<_ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8842 $EGREP "memchr" >/dev/null 2>&1; then
8845 ac_cv_header_stdc=no
8851 if test $ac_cv_header_stdc = yes; then
8852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8863 $EGREP "free" >/dev/null 2>&1; then
8866 ac_cv_header_stdc=no
8872 if test $ac_cv_header_stdc = yes; then
8873 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8874 if test "$cross_compiling" = yes; then
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 #if ((' ' & 0x0FF) == 0x020)
8885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8888 # define ISLOWER(c) \
8889 (('a' <= (c) && (c) <= 'i') \
8890 || ('j' <= (c) && (c) <= 'r') \
8891 || ('s' <= (c) && (c) <= 'z'))
8892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8900 for (i = 0; i < 256; i++)
8901 if (XOR (islower (i), ISLOWER (i))
8902 || toupper (i) != TOUPPER (i))
8907 rm -f conftest$ac_exeext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909 (eval $ac_link) 2>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8920 echo "$as_me: program exited with status $ac_status" >&5
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8925 ac_cv_header_stdc=no
8927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8931 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8932 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8933 if test $ac_cv_header_stdc = yes; then
8935 cat >>confdefs.h <<\_ACEOF
8936 #define STDC_HEADERS 1
8942 for ac_header in getopt.h
8944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8946 echo "$as_me:$LINENO: checking for $ac_header" >&5
8947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8954 # Is the header compilable?
8955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8963 $ac_includes_default
8964 #include <$ac_header>
8966 rm -f conftest.$ac_objext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8968 (eval $ac_compile) 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_cxx_werror_flag"
8976 || test ! -s conftest.err'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest.$ac_objext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_header_compiler=yes
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8993 ac_header_compiler=no
8995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8997 echo "${ECHO_T}$ac_header_compiler" >&6
8999 # Is the header present?
9000 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9002 cat >conftest.$ac_ext <<_ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 #include <$ac_header>
9010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9013 grep -v '^ *+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } >/dev/null; then
9018 if test -s conftest.err; then
9019 ac_cpp_err=$ac_cxx_preproc_warn_flag
9020 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9027 if test -z "$ac_cpp_err"; then
9028 ac_header_preproc=yes
9030 echo "$as_me: failed program was:" >&5
9031 sed 's/^/| /' conftest.$ac_ext >&5
9033 ac_header_preproc=no
9035 rm -f conftest.err conftest.$ac_ext
9036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9037 echo "${ECHO_T}$ac_header_preproc" >&6
9039 # So? What about this header?
9040 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9046 ac_header_preproc=yes
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9063 ## ------------------------------------------ ##
9064 ## Report this to the AC_PACKAGE_NAME lists. ##
9065 ## ------------------------------------------ ##
9068 sed "s/^/$as_me: WARNING: /" >&2
9071 echo "$as_me:$LINENO: checking for $ac_header" >&5
9072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 eval "$as_ac_Header=\$ac_header_preproc"
9078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9083 cat >>confdefs.h <<_ACEOF
9084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9092 for ac_header in unistd.h
9094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9096 echo "$as_me:$LINENO: checking for $ac_header" >&5
9097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9104 # Is the header compilable?
9105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 $ac_includes_default
9114 #include <$ac_header>
9116 rm -f conftest.$ac_objext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9118 (eval $ac_compile) 2>conftest.er1
9120 grep -v '^ *+' conftest.er1 >conftest.err
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_cxx_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest.$ac_objext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_header_compiler=yes
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_header_compiler=no
9145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9147 echo "${ECHO_T}$ac_header_compiler" >&6
9149 # Is the header present?
9150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9152 cat >conftest.$ac_ext <<_ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 #include <$ac_header>
9160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9163 grep -v '^ *+' conftest.er1 >conftest.err
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } >/dev/null; then
9168 if test -s conftest.err; then
9169 ac_cpp_err=$ac_cxx_preproc_warn_flag
9170 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9177 if test -z "$ac_cpp_err"; then
9178 ac_header_preproc=yes
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_header_preproc=no
9185 rm -f conftest.err conftest.$ac_ext
9186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9187 echo "${ECHO_T}$ac_header_preproc" >&6
9189 # So? What about this header?
9190 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9196 ac_header_preproc=yes
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9213 ## ------------------------------------------ ##
9214 ## Report this to the AC_PACKAGE_NAME lists. ##
9215 ## ------------------------------------------ ##
9218 sed "s/^/$as_me: WARNING: /" >&2
9221 echo "$as_me:$LINENO: checking for $ac_header" >&5
9222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 eval "$as_ac_Header=\$ac_header_preproc"
9228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9233 cat >>confdefs.h <<_ACEOF
9234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9241 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9242 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
9243 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
9244 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
9248 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
9250 # Is the header compilable?
9251 echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
9252 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 $ac_includes_default
9260 #include <sys/socket.h>
9262 rm -f conftest.$ac_objext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9264 (eval $ac_compile) 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_cxx_werror_flag"
9272 || test ! -s conftest.err'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; } &&
9278 { ac_try='test -s conftest.$ac_objext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 ac_header_compiler=yes
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 ac_header_compiler=no
9291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9293 echo "${ECHO_T}$ac_header_compiler" >&6
9295 # Is the header present?
9296 echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
9297 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 #include <sys/socket.h>
9306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9309 grep -v '^ *+' conftest.er1 >conftest.err
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } >/dev/null; then
9314 if test -s conftest.err; then
9315 ac_cpp_err=$ac_cxx_preproc_warn_flag
9316 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9323 if test -z "$ac_cpp_err"; then
9324 ac_header_preproc=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_header_preproc=no
9331 rm -f conftest.err conftest.$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9333 echo "${ECHO_T}$ac_header_preproc" >&6
9335 # So? What about this header?
9336 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9338 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
9339 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
9341 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
9342 ac_header_preproc=yes
9345 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
9346 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
9347 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
9348 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
9349 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
9350 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
9351 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
9352 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
9354 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
9356 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
9359 ## ------------------------------------------ ##
9360 ## Report this to the AC_PACKAGE_NAME lists. ##
9361 ## ------------------------------------------ ##
9364 sed "s/^/$as_me: WARNING: /" >&2
9367 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
9368 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
9369 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 ac_cv_header_sys_socket_h=$ac_header_preproc
9374 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
9375 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
9378 if test $ac_cv_header_sys_socket_h = yes; then
9379 cat >>confdefs.h <<\_ACEOF
9380 #define SOCKET_AVAIL 1
9383 cat >>confdefs.h <<\_ACEOF
9384 #define HAVE_SYS_SOCKET_H 1
9387 cat >conftest.$ac_ext <<_ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9393 #include <sys/socket.h>
9396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9397 $EGREP "socklen_t" >/dev/null 2>&1; then
9398 cat >>confdefs.h <<_ACEOF
9399 #define SOCKLEN_T socklen_t
9403 cat >>confdefs.h <<_ACEOF
9404 #define SOCKLEN_T uint
9414 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9415 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9416 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
9417 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9421 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
9423 # Is the header compilable?
9424 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9425 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9435 rm -f conftest.$ac_objext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437 (eval $ac_compile) 2>conftest.er1
9439 grep -v '^ *+' conftest.er1 >conftest.err
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
9444 { ac_try='test -z "$ac_cxx_werror_flag"
9445 || test ! -s conftest.err'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; } &&
9451 { ac_try='test -s conftest.$ac_objext'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9457 ac_header_compiler=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_header_compiler=no
9464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9466 echo "${ECHO_T}$ac_header_compiler" >&6
9468 # Is the header present?
9469 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9470 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
9471 cat >conftest.$ac_ext <<_ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } >/dev/null; then
9487 if test -s conftest.err; then
9488 ac_cpp_err=$ac_cxx_preproc_warn_flag
9489 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9496 if test -z "$ac_cpp_err"; then
9497 ac_header_preproc=yes
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 ac_header_preproc=no
9504 rm -f conftest.err conftest.$ac_ext
9505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9506 echo "${ECHO_T}$ac_header_preproc" >&6
9508 # So? What about this header?
9509 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9511 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9512 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9513 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9514 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9515 ac_header_preproc=yes
9518 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9519 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9521 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9523 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9525 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9527 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9528 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9529 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9532 ## ------------------------------------------ ##
9533 ## Report this to the AC_PACKAGE_NAME lists. ##
9534 ## ------------------------------------------ ##
9537 sed "s/^/$as_me: WARNING: /" >&2
9540 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9541 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
9542 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 ac_cv_header_dlfcn_h=$ac_header_preproc
9547 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9548 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
9559 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9560 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9561 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9562 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 cat >conftest.$ac_ext <<_ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 #include <sys/types.h>
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_cxx_werror_flag"
9594 || test ! -s conftest.err'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9606 eval "$as_ac_Header=yes"
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 eval "$as_ac_Header=no"
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9618 cat >>confdefs.h <<_ACEOF
9619 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9622 ac_header_dirent=$ac_hdr; break
9626 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9627 if test $ac_header_dirent = dirent.h; then
9628 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9629 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9630 if test "${ac_cv_search_opendir+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 ac_func_search_save_LIBS=$LIBS
9634 ac_cv_search_opendir=no
9635 cat >conftest.$ac_ext <<_ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9642 /* Override any gcc2 internal prototype to avoid an error. */
9646 /* We use char because int might match the return type of a gcc2
9647 builtin and then its argument prototype would still apply. */
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659 (eval $ac_link) 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 { ac_try='test -z "$ac_cxx_werror_flag"
9667 || test ! -s conftest.err'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; } &&
9673 { ac_try='test -s conftest$ac_exeext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_search_opendir="none required"
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9685 rm -f conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 if test "$ac_cv_search_opendir" = no; then
9688 for ac_lib in dir; do
9689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9690 cat >conftest.$ac_ext <<_ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9697 /* Override any gcc2 internal prototype to avoid an error. */
9701 /* We use char because int might match the return type of a gcc2
9702 builtin and then its argument prototype would still apply. */
9712 rm -f conftest.$ac_objext conftest$ac_exeext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714 (eval $ac_link) 2>conftest.er1
9716 grep -v '^ *+' conftest.er1 >conftest.err
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -z "$ac_cxx_werror_flag"
9722 || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest$ac_exeext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_cv_search_opendir="-l$ac_lib"
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9741 rm -f conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_func_search_save_LIBS
9747 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9748 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9749 if test "$ac_cv_search_opendir" != no; then
9750 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9755 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9757 if test "${ac_cv_search_opendir+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 ac_func_search_save_LIBS=$LIBS
9761 ac_cv_search_opendir=no
9762 cat >conftest.$ac_ext <<_ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9769 /* Override any gcc2 internal prototype to avoid an error. */
9773 /* We use char because int might match the return type of a gcc2
9774 builtin and then its argument prototype would still apply. */
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786 (eval $ac_link) 2>conftest.er1
9788 grep -v '^ *+' conftest.er1 >conftest.err
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -z "$ac_cxx_werror_flag"
9794 || test ! -s conftest.err'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_search_opendir="none required"
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9812 rm -f conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 if test "$ac_cv_search_opendir" = no; then
9816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9817 cat >conftest.$ac_ext <<_ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9824 /* Override any gcc2 internal prototype to avoid an error. */
9828 /* We use char because int might match the return type of a gcc2
9829 builtin and then its argument prototype would still apply. */
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_cxx_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_search_opendir="-l$ac_lib"
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9868 rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9872 LIBS=$ac_func_search_save_LIBS
9874 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9875 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9876 if test "$ac_cv_search_opendir" != no; then
9877 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9884 # This must be after CXXCPP
9886 echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
9887 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6
9888 if test "${ucsim_cv_fd+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 ucsim_cv_fd="unknown"
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9899 #include <sys/time.h>
9904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905 $EGREP "yes" >/dev/null 2>&1; then
9906 ucsim_cv_fd="<sys/time.h>"
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 #include <sys/types.h>
9922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9923 $EGREP "yes" >/dev/null 2>&1; then
9924 ucsim_cv_fd="<sys/types.h>"
9928 cat >conftest.$ac_ext <<_ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9935 #include <sys/select.h>
9940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9941 $EGREP "yes" >/dev/null 2>&1; then
9942 ucsim_cv_fd="<sys/types.h>"
9947 echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
9948 echo "${ECHO_T}$ucsim_cv_fd" >&6
9950 cat >>confdefs.h <<\_ACEOF
9951 #define FD_HEADER_OK 0
9954 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
9955 cat >>confdefs.h <<\_ACEOF
9956 #define FD_NEED_TIME_H 1
9959 cat >>confdefs.h <<\_ACEOF
9960 #define FD_HEADER_OK 1
9964 cat >>confdefs.h <<\_ACEOF
9965 #define FD_NEED_TIME_H 0
9969 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
9970 cat >>confdefs.h <<\_ACEOF
9971 #define FD_NEED_TYPES_H 1
9974 cat >>confdefs.h <<\_ACEOF
9975 #define FD_HEADER_OK 1
9979 cat >>confdefs.h <<\_ACEOF
9980 #define FD_NEED_TYPES_H 0
9984 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
9985 cat >>confdefs.h <<\_ACEOF
9986 #define FD_NEED_SELECT_H 1
9989 cat >>confdefs.h <<\_ACEOF
9990 #define FD_HEADER_OK 1
9994 cat >>confdefs.h <<\_ACEOF
9995 #define FD_NEED_SELECT_H 0
10000 cat >>confdefs.h <<_ACEOF
10001 #define HEADER_FD ${ucsim_cv_fd}
10006 # Checking for functions/libs
10007 # ===========================================================================
10009 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10010 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
10011 if test "${ac_cv_lib_socket_socket+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 ac_check_lib_save_LIBS=$LIBS
10015 LIBS="-lsocket $LIBS"
10016 cat >conftest.$ac_ext <<_ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10023 /* Override any gcc2 internal prototype to avoid an error. */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10040 (eval $ac_link) 2>conftest.er1
10042 grep -v '^ *+' conftest.er1 >conftest.err
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -z "$ac_cxx_werror_flag"
10048 || test ! -s conftest.err'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; } &&
10054 { ac_try='test -s conftest$ac_exeext'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_lib_socket_socket=yes
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 ac_cv_lib_socket_socket=no
10067 rm -f conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
10069 LIBS=$ac_check_lib_save_LIBS
10071 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10072 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
10073 if test $ac_cv_lib_socket_socket = yes; then
10074 cat >>confdefs.h <<_ACEOF
10075 #define HAVE_LIBSOCKET 1
10078 LIBS="-lsocket $LIBS"
10083 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
10084 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
10085 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 ac_check_lib_save_LIBS=$LIBS
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10097 /* Override any gcc2 internal prototype to avoid an error. */
10101 /* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>conftest.er1
10116 grep -v '^ *+' conftest.er1 >conftest.err
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -z "$ac_cxx_werror_flag"
10122 || test ! -s conftest.err'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; } &&
10128 { ac_try='test -s conftest$ac_exeext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_lib_nsl_xdr_short=yes
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10139 ac_cv_lib_nsl_xdr_short=no
10141 rm -f conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10145 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
10146 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
10147 if test $ac_cv_lib_nsl_xdr_short = yes; then
10148 cat >>confdefs.h <<_ACEOF
10149 #define HAVE_LIBNSL 1
10156 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10157 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10158 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 ac_check_lib_save_LIBS=$LIBS
10163 cat >conftest.$ac_ext <<_ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10170 /* Override any gcc2 internal prototype to avoid an error. */
10174 /* We use char because int might match the return type of a gcc2
10175 builtin and then its argument prototype would still apply. */
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10187 (eval $ac_link) 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_cxx_werror_flag"
10195 || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_cv_lib_dl_dlopen=yes
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 ac_cv_lib_dl_dlopen=no
10214 rm -f conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10216 LIBS=$ac_check_lib_save_LIBS
10218 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10219 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10220 if test $ac_cv_lib_dl_dlopen = yes; then
10231 #AC_CHECK_LIB(panel,panel_above,
10234 #CURSES_LIBS="-lpanel -lcurses"
10237 #AC_CHECK_LIB(curses,nl,
10239 #CURSES_LIBS="-lcurses"
10245 echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
10246 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6
10247 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 ac_check_lib_save_LIBS=$LIBS
10251 LIBS="-lpanel $LIBS"
10252 cat >conftest.$ac_ext <<_ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10259 /* Override any gcc2 internal prototype to avoid an error. */
10263 /* We use char because int might match the return type of a gcc2
10264 builtin and then its argument prototype would still apply. */
10265 char panel_above ();
10274 rm -f conftest.$ac_objext conftest$ac_exeext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276 (eval $ac_link) 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_cxx_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest$ac_exeext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_cv_lib_panel_panel_above=yes
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ac_cv_lib_panel_panel_above=no
10303 rm -f conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 LIBS=$ac_check_lib_save_LIBS
10307 echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
10308 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6
10309 if test $ac_cv_lib_panel_panel_above = yes; then
10312 CURSES_LIBS="-lpanel"
10320 if test $curses_ok != yes; then
10321 echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
10322 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6
10323 if test "${ac_cv_lib_curses_nl+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-lcurses $LIBS"
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10335 /* Override any gcc2 internal prototype to avoid an error. */
10339 /* We use char because int might match the return type of a gcc2
10340 builtin and then its argument prototype would still apply. */
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352 (eval $ac_link) 2>conftest.er1
10354 grep -v '^ *+' conftest.er1 >conftest.err
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -z "$ac_cxx_werror_flag"
10360 || test ! -s conftest.err'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; } &&
10366 { ac_try='test -s conftest$ac_exeext'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10372 ac_cv_lib_curses_nl=yes
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10377 ac_cv_lib_curses_nl=no
10379 rm -f conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10383 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
10384 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6
10385 if test $ac_cv_lib_curses_nl = yes; then
10387 CURSES_LIBS="-lcurses"
10394 if test $curses_ok != yes; then
10395 echo "$as_me:$LINENO: checking for nl in -lncurses" >&5
10396 echo $ECHO_N "checking for nl in -lncurses... $ECHO_C" >&6
10397 if test "${ac_cv_lib_ncurses_nl+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 ac_check_lib_save_LIBS=$LIBS
10401 LIBS="-lncurses $LIBS"
10402 cat >conftest.$ac_ext <<_ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10409 /* Override any gcc2 internal prototype to avoid an error. */
10413 /* We use char because int might match the return type of a gcc2
10414 builtin and then its argument prototype would still apply. */
10424 rm -f conftest.$ac_objext conftest$ac_exeext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10426 (eval $ac_link) 2>conftest.er1
10428 grep -v '^ *+' conftest.er1 >conftest.err
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_cxx_werror_flag"
10434 || test ! -s conftest.err'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; } &&
10440 { ac_try='test -s conftest$ac_exeext'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }; then
10446 ac_cv_lib_ncurses_nl=yes
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10451 ac_cv_lib_ncurses_nl=no
10453 rm -f conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LIBS=$ac_check_lib_save_LIBS
10457 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_nl" >&5
10458 echo "${ECHO_T}$ac_cv_lib_ncurses_nl" >&6
10459 if test $ac_cv_lib_ncurses_nl = yes; then
10461 CURSES_LIBS="-lncurses"
10473 for ac_func in vprintf
10475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10476 echo "$as_me:$LINENO: checking for $ac_func" >&5
10477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10478 if eval "test \"\${$as_ac_var+set}\" = set"; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 cat >conftest.$ac_ext <<_ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10489 #define $ac_func innocuous_$ac_func
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char $ac_func (); below.
10493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494 <limits.h> exists even on freestanding compilers. */
10497 # include <limits.h>
10499 # include <assert.h>
10504 /* Override any gcc2 internal prototype to avoid an error. */
10509 /* We use char because int might match the return type of a gcc2
10510 builtin and then its argument prototype would still apply. */
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10518 char (*f) () = $ac_func;
10527 return f != $ac_func;
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>conftest.er1
10536 grep -v '^ *+' conftest.er1 >conftest.err
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } &&
10541 { ac_try='test -z "$ac_cxx_werror_flag"
10542 || test ! -s conftest.err'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; } &&
10548 { ac_try='test -s conftest$ac_exeext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 eval "$as_ac_var=yes"
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10559 eval "$as_ac_var=no"
10561 rm -f conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10566 if test `eval echo '${'$as_ac_var'}'` = yes; then
10567 cat >>confdefs.h <<_ACEOF
10568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10571 echo "$as_me:$LINENO: checking for _doprnt" >&5
10572 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10573 if test "${ac_cv_func__doprnt+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10584 #define _doprnt innocuous__doprnt
10586 /* System header to define __stub macros and hopefully few prototypes,
10587 which can conflict with char _doprnt (); below.
10588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10589 <limits.h> exists even on freestanding compilers. */
10592 # include <limits.h>
10594 # include <assert.h>
10599 /* Override any gcc2 internal prototype to avoid an error. */
10604 /* We use char because int might match the return type of a gcc2
10605 builtin and then its argument prototype would still apply. */
10607 /* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10613 char (*f) () = _doprnt;
10622 return f != _doprnt;
10627 rm -f conftest.$ac_objext conftest$ac_exeext
10628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629 (eval $ac_link) 2>conftest.er1
10631 grep -v '^ *+' conftest.er1 >conftest.err
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try='test -z "$ac_cxx_werror_flag"
10637 || test ! -s conftest.err'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; } &&
10643 { ac_try='test -s conftest$ac_exeext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 ac_cv_func__doprnt=yes
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 ac_cv_func__doprnt=no
10656 rm -f conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10659 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10660 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10661 if test $ac_cv_func__doprnt = yes; then
10663 cat >>confdefs.h <<\_ACEOF
10664 #define HAVE_DOPRNT 1
10674 for ac_func in vsnprintf
10676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10677 echo "$as_me:$LINENO: checking for $ac_func" >&5
10678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10679 if eval "test \"\${$as_ac_var+set}\" = set"; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10690 #define $ac_func innocuous_$ac_func
10692 /* System header to define __stub macros and hopefully few prototypes,
10693 which can conflict with char $ac_func (); below.
10694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10695 <limits.h> exists even on freestanding compilers. */
10698 # include <limits.h>
10700 # include <assert.h>
10705 /* Override any gcc2 internal prototype to avoid an error. */
10710 /* We use char because int might match the return type of a gcc2
10711 builtin and then its argument prototype would still apply. */
10713 /* The GNU C library defines this for functions which it implements
10714 to always fail with ENOSYS. Some functions are actually named
10715 something starting with __ and the normal name is an alias. */
10716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10719 char (*f) () = $ac_func;
10728 return f != $ac_func;
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735 (eval $ac_link) 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
10742 { ac_try='test -z "$ac_cxx_werror_flag"
10743 || test ! -s conftest.err'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; } &&
10749 { ac_try='test -s conftest$ac_exeext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 eval "$as_ac_var=yes"
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 eval "$as_ac_var=no"
10762 rm -f conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10767 if test `eval echo '${'$as_ac_var'}'` = yes; then
10768 cat >>confdefs.h <<_ACEOF
10769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10776 for ac_func in vasprintf
10778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10779 echo "$as_me:$LINENO: checking for $ac_func" >&5
10780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10781 if eval "test \"\${$as_ac_var+set}\" = set"; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10792 #define $ac_func innocuous_$ac_func
10794 /* System header to define __stub macros and hopefully few prototypes,
10795 which can conflict with char $ac_func (); below.
10796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10797 <limits.h> exists even on freestanding compilers. */
10800 # include <limits.h>
10802 # include <assert.h>
10807 /* Override any gcc2 internal prototype to avoid an error. */
10812 /* We use char because int might match the return type of a gcc2
10813 builtin and then its argument prototype would still apply. */
10815 /* The GNU C library defines this for functions which it implements
10816 to always fail with ENOSYS. Some functions are actually named
10817 something starting with __ and the normal name is an alias. */
10818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10821 char (*f) () = $ac_func;
10830 return f != $ac_func;
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 (eval $ac_link) 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_cxx_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest$ac_exeext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 eval "$as_ac_var=yes"
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 eval "$as_ac_var=no"
10864 rm -f conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10869 if test `eval echo '${'$as_ac_var'}'` = yes; then
10870 cat >>confdefs.h <<_ACEOF
10871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10885 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
10887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10888 echo "$as_me:$LINENO: checking for $ac_func" >&5
10889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10890 if eval "test \"\${$as_ac_var+set}\" = set"; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 cat >conftest.$ac_ext <<_ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10901 #define $ac_func innocuous_$ac_func
10903 /* System header to define __stub macros and hopefully few prototypes,
10904 which can conflict with char $ac_func (); below.
10905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906 <limits.h> exists even on freestanding compilers. */
10909 # include <limits.h>
10911 # include <assert.h>
10916 /* Override any gcc2 internal prototype to avoid an error. */
10921 /* We use char because int might match the return type of a gcc2
10922 builtin and then its argument prototype would still apply. */
10924 /* The GNU C library defines this for functions which it implements
10925 to always fail with ENOSYS. Some functions are actually named
10926 something starting with __ and the normal name is an alias. */
10927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10930 char (*f) () = $ac_func;
10939 return f != $ac_func;
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946 (eval $ac_link) 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -z "$ac_cxx_werror_flag"
10954 || test ! -s conftest.err'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 eval "$as_ac_var=yes"
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 eval "$as_ac_var=no"
10973 rm -f conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10978 if test `eval echo '${'$as_ac_var'}'` = yes; then
10979 cat >>confdefs.h <<_ACEOF
10980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10988 for ac_func in strchr memcpy
10990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10991 echo "$as_me:$LINENO: checking for $ac_func" >&5
10992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10993 if eval "test \"\${$as_ac_var+set}\" = set"; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11004 #define $ac_func innocuous_$ac_func
11006 /* System header to define __stub macros and hopefully few prototypes,
11007 which can conflict with char $ac_func (); below.
11008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11009 <limits.h> exists even on freestanding compilers. */
11012 # include <limits.h>
11014 # include <assert.h>
11019 /* Override any gcc2 internal prototype to avoid an error. */
11024 /* We use char because int might match the return type of a gcc2
11025 builtin and then its argument prototype would still apply. */
11027 /* The GNU C library defines this for functions which it implements
11028 to always fail with ENOSYS. Some functions are actually named
11029 something starting with __ and the normal name is an alias. */
11030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11033 char (*f) () = $ac_func;
11042 return f != $ac_func;
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11049 (eval $ac_link) 2>conftest.er1
11051 grep -v '^ *+' conftest.er1 >conftest.err
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -z "$ac_cxx_werror_flag"
11057 || test ! -s conftest.err'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; } &&
11063 { ac_try='test -s conftest$ac_exeext'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; }; then
11069 eval "$as_ac_var=yes"
11071 echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11074 eval "$as_ac_var=no"
11076 rm -f conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11081 if test `eval echo '${'$as_ac_var'}'` = yes; then
11082 cat >>confdefs.h <<_ACEOF
11083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11090 for ac_func in fgets
11092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11095 if eval "test \"\${$as_ac_var+set}\" = set"; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106 #define $ac_func innocuous_$ac_func
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11114 # include <limits.h>
11116 # include <assert.h>
11121 /* Override any gcc2 internal prototype to avoid an error. */
11126 /* We use char because int might match the return type of a gcc2
11127 builtin and then its argument prototype would still apply. */
11129 /* The GNU C library defines this for functions which it implements
11130 to always fail with ENOSYS. Some functions are actually named
11131 something starting with __ and the normal name is an alias. */
11132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11135 char (*f) () = $ac_func;
11144 return f != $ac_func;
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>conftest.er1
11153 grep -v '^ *+' conftest.er1 >conftest.err
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_cxx_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 eval "$as_ac_var=yes"
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 eval "$as_ac_var=no"
11178 rm -f conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11183 if test `eval echo '${'$as_ac_var'}'` = yes; then
11184 cat >>confdefs.h <<_ACEOF
11185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11192 for ac_func in yylex
11194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11195 echo "$as_me:$LINENO: checking for $ac_func" >&5
11196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11197 if eval "test \"\${$as_ac_var+set}\" = set"; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 cat >conftest.$ac_ext <<_ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11208 #define $ac_func innocuous_$ac_func
11210 /* System header to define __stub macros and hopefully few prototypes,
11211 which can conflict with char $ac_func (); below.
11212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11213 <limits.h> exists even on freestanding compilers. */
11216 # include <limits.h>
11218 # include <assert.h>
11223 /* Override any gcc2 internal prototype to avoid an error. */
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11231 /* The GNU C library defines this for functions which it implements
11232 to always fail with ENOSYS. Some functions are actually named
11233 something starting with __ and the normal name is an alias. */
11234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11237 char (*f) () = $ac_func;
11246 return f != $ac_func;
11251 rm -f conftest.$ac_objext conftest$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>conftest.er1
11255 grep -v '^ *+' conftest.er1 >conftest.err
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_cxx_werror_flag"
11261 || test ! -s conftest.err'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; } &&
11267 { ac_try='test -s conftest$ac_exeext'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; }; then
11273 eval "$as_ac_var=yes"
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11278 eval "$as_ac_var=no"
11280 rm -f conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
11283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11285 if test `eval echo '${'$as_ac_var'}'` = yes; then
11286 cat >>confdefs.h <<_ACEOF
11287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11294 echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
11295 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6
11296 if test "${ucsim_cv_scanf_a+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 echo "a b" >conftest.data
11300 if test "$cross_compiling" = yes; then
11301 ucsim_cv_scanf_a="unknown"
11303 cat >conftest.$ac_ext <<_ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11316 if ((f= fopen("conftest.data", "r")) == NULL)
11318 i= fscanf(f, " %a[a-z] ", &a);
11327 rm -f conftest$ac_exeext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11329 (eval $ac_link) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ucsim_cv_scanf_a="yes"
11340 echo "$as_me: program exited with status $ac_status" >&5
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ( exit $ac_status )
11345 ucsim_cv_scanf_a="no"
11347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11351 echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
11352 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6
11353 if test "$ucsim_cv_scanf_a" = "yes"; then
11354 cat >>confdefs.h <<\_ACEOF
11360 echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
11361 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6
11362 if test "${ucsim_cv_getcwd+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 if test "$cross_compiling" = yes; then
11366 ucsim_cv_getcwd="unknown"
11368 cat >conftest.$ac_ext <<_ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11375 #include <unistd.h>
11378 if ((getcwd(NULL, 0)) == NULL)
11383 rm -f conftest$ac_exeext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11385 (eval $ac_link) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ucsim_cv_getcwd="yes"
11396 echo "$as_me: program exited with status $ac_status" >&5
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ( exit $ac_status )
11401 ucsim_cv_getcwd="no"
11403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11407 echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
11408 echo "${ECHO_T}$ucsim_cv_getcwd" >&6
11409 if test "$ucsim_cv_getcwd" = "yes"; then
11410 cat >>confdefs.h <<\_ACEOF
11411 #define GNU_GETCWD 1
11419 echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
11420 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6
11421 if test "${ucsim_cv_accept_length_type+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 ac_save_CPPFLAGS="$CPPFLAGS"
11425 ucsim_cv_accept_length_type=no
11426 for ac_val in int size_t socklen_t; do
11427 CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
11428 cat >conftest.$ac_ext <<_ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 #include <sys/types.h>
11435 #include <sys/socket.h>
11439 struct sockaddr a; $ac_val len; accept (0, &a, &len);
11444 rm -f conftest.$ac_objext
11445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11446 (eval $ac_compile) 2>conftest.er1
11448 grep -v '^ *+' conftest.er1 >conftest.err
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } &&
11453 { ac_try='test -z "$ac_cxx_werror_flag"
11454 || test ! -s conftest.err'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; } &&
11460 { ac_try='test -s conftest.$ac_objext'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ucsim_cv_accept_length_type=$ac_val; break
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11474 CPPFLAGS="$ac_save_CPPFLAGS"
11476 echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
11477 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6
11478 if test "$ucsim_cv_accept_length_type" != no; then
11480 cat >>confdefs.h <<_ACEOF
11481 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
11488 # Macro definitions
11489 ###################
11491 # DD_COPT macro checks if the compiler specified as the 1st parameter
11492 # supports option specified as the 2nd parameter
11493 # For example: DD_COPT(CXX, fPIC)
11498 # Checking characteristics of compilers and other programs
11499 # --------------------------------------------------------
11501 # Cross compiling overrides
11503 if test "$CC" = "i586-mingw32msvc-gcc"; then
11504 ac_cv_c_bigendian=no
11505 ac_cv_sizeof_char=1
11506 ac_cv_sizeof_short=2
11508 ac_cv_sizeof_long=4
11509 ac_cv_sizeof_long_long=4
11512 if test "$cross_compiling" = "no"
11514 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11515 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
11516 if test "${ac_cv_c_bigendian+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 # See if sys/param.h defines the BYTE_ORDER macro.
11520 cat >conftest.$ac_ext <<_ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11526 #include <sys/types.h>
11527 #include <sys/param.h>
11532 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11533 bogus endian macros
11540 rm -f conftest.$ac_objext
11541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11542 (eval $ac_compile) 2>conftest.er1
11544 grep -v '^ *+' conftest.er1 >conftest.err
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -z "$ac_cxx_werror_flag"
11550 || test ! -s conftest.err'
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; } &&
11556 { ac_try='test -s conftest.$ac_objext'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }; then
11562 # It does; now see whether it defined to BIG_ENDIAN or not.
11563 cat >conftest.$ac_ext <<_ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include <sys/types.h>
11570 #include <sys/param.h>
11575 #if BYTE_ORDER != BIG_ENDIAN
11583 rm -f conftest.$ac_objext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11585 (eval $ac_compile) 2>conftest.er1
11587 grep -v '^ *+' conftest.er1 >conftest.err
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -z "$ac_cxx_werror_flag"
11593 || test ! -s conftest.err'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest.$ac_objext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 ac_cv_c_bigendian=yes
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_cv_c_bigendian=no
11612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11617 # It does not; compile a test program.
11618 if test "$cross_compiling" = yes; then
11619 # try to guess the endianness by grepping values into an object file
11620 ac_cv_c_bigendian=unknown
11621 cat >conftest.$ac_ext <<_ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11628 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11629 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11630 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11631 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11632 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11636 _ascii (); _ebcdic ();
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>conftest.er1
11645 grep -v '^ *+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_cxx_werror_flag"
11651 || test ! -s conftest.err'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11664 ac_cv_c_bigendian=yes
11666 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11667 if test "$ac_cv_c_bigendian" = unknown; then
11668 ac_cv_c_bigendian=no
11670 # finding both strings is unlikely to happen, but who knows?
11671 ac_cv_c_bigendian=unknown
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11681 cat >conftest.$ac_ext <<_ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11690 /* Are we little or big endian? From Harbison&Steele. */
11694 char c[sizeof (long)];
11697 exit (u.c[sizeof (long) - 1] == 1);
11700 rm -f conftest$ac_exeext
11701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11702 (eval $ac_link) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 ac_cv_c_bigendian=no
11713 echo "$as_me: program exited with status $ac_status" >&5
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11717 ( exit $ac_status )
11718 ac_cv_c_bigendian=yes
11720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11725 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11726 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11727 case $ac_cv_c_bigendian in
11730 cat >>confdefs.h <<\_ACEOF
11731 #define WORDS_BIGENDIAN 1
11737 { { echo "$as_me:$LINENO: error: unknown endianness
11738 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11739 echo "$as_me: error: unknown endianness
11740 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11741 { (exit 1); exit 1; }; } ;;
11745 #echo "CROSS ENDIAN"
11746 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
11747 ac_cv_c_bigendian=no
11751 #echo "CROSS ENDIAN DONE"
11754 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
11755 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
11756 if test "${ucsim_cv_MM+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 echo "#include <stdio.h>" >_test_.c
11761 $CXXCPP -v -MM _test_.c 1>&5 2>&5
11762 if test "$?" = "0"; then
11769 echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
11770 echo "${ECHO_T}$ucsim_cv_MM" >&6
11771 M_OR_MM=$ucsim_cv_MM
11774 # This is the first time when CFLAGS are set/modified!!
11777 echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
11778 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6
11779 if test "${ucsim_cv_CXXggdb+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 cat >_test_.c <<EOF
11784 int main(void) {return(0);}
11786 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
11787 if test "$?" = "0"; then
11788 ucsim_cv_CXXggdb="yes"
11790 ucsim_cv_CXXggdb="no"
11792 rm -f _test_.* a.out
11794 echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
11795 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6
11798 echo "$as_me:$LINENO: checking whether $CXX accepts -gstabs" >&5
11799 echo $ECHO_N "checking whether $CXX accepts -gstabs... $ECHO_C" >&6
11800 if test "${ucsim_cv_CXXgstabs+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >_test_.c <<EOF
11805 int main(void) {return(0);}
11807 $CXX -v -gstabs -c _test_.c 1>&5 2>&5
11808 if test "$?" = "0"; then
11809 ucsim_cv_CXXgstabs="yes"
11811 ucsim_cv_CXXgstabs="no"
11813 rm -f _test_.* a.out
11815 echo "$as_me:$LINENO: result: $ucsim_cv_CXXgstabs" >&5
11816 echo "${ECHO_T}$ucsim_cv_CXXgstabs" >&6
11818 if test "$ucsim_cv_CXXgstabs" = "yes"; then
11819 gopt="-gstabs+ -g3"
11820 elif test "$ucsim_cv_CXXggdb" = "yes"; then
11825 if test "$CXXFLAGS"x = x ;then
11828 CXXFLAGS="$CXXFLAGS $gopt"
11832 echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
11833 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6
11834 if test "${ucsim_cv_CXXpipe+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 cat >_test_.c <<EOF
11839 int main(void) {return(0);}
11841 $CXX -v -pipe -c _test_.c 1>&5 2>&5
11842 if test "$?" = "0"; then
11843 ucsim_cv_CXXpipe="yes"
11845 ucsim_cv_CXXpipe="no"
11847 rm -f _test_.* a.out
11849 echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
11850 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6
11852 if test "$ucsim_cv_CXXpipe" = "yes"; then
11853 CXXFLAGS="$CXXFLAGS -pipe"
11859 echo "$as_me:$LINENO: checking whether $CXX accepts -fPIC" >&5
11860 echo $ECHO_N "checking whether $CXX accepts -fPIC... $ECHO_C" >&6
11861 if test "${ucsim_cv_CXXfPIC+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 cat >_test_.c <<EOF
11866 int main(void) {return(0);}
11868 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
11869 if test "$?" = "0"; then
11870 ucsim_cv_CXXfPIC="yes"
11872 ucsim_cv_CXXfPIC="no"
11874 rm -f _test_.* a.out
11876 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
11877 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6
11879 if test "$ucsim_cv_CXXfPIC" = "yes"; then
11883 echo "$as_me:$LINENO: checking whether $CXX accepts -fpic" >&5
11884 echo $ECHO_N "checking whether $CXX accepts -fpic... $ECHO_C" >&6
11885 if test "${ucsim_cv_CXXfpic+set}" = set; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 cat >_test_.c <<EOF
11890 int main(void) {return(0);}
11892 $CXX -v -fpic -c _test_.c 1>&5 2>&5
11893 if test "$?" = "0"; then
11894 ucsim_cv_CXXfpic="yes"
11896 ucsim_cv_CXXfpic="no"
11898 rm -f _test_.* a.out
11900 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
11901 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6
11903 if test "$ucsim_cv_CXXfpic" = "yes"; then
11907 if test "$PICOPT"x != "x"; then
11910 # If this is Cygwin neither use Position Independant Code
11912 # Quick + dirty by Bernhard
11914 if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
11922 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
11927 # Checks for typedefs, structures, and compiler characteristics.
11928 # ===========================================================================
11930 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11931 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11932 if test "${ac_cv_type_signal+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 #include <sys/types.h>
11942 #include <signal.h>
11947 extern "C" void (*signal (int, void (*)(int)))(int);
11949 void (*signal ()) ();
11960 rm -f conftest.$ac_objext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>conftest.er1
11964 grep -v '^ *+' conftest.er1 >conftest.err
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_cxx_werror_flag"
11970 || test ! -s conftest.err'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest.$ac_objext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_cv_type_signal=void
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_cv_type_signal=int
11989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11991 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11992 echo "${ECHO_T}$ac_cv_type_signal" >&6
11994 cat >>confdefs.h <<_ACEOF
11995 #define RETSIGTYPE $ac_cv_type_signal
11999 if test "$cross_compiling" = "no"; then
12000 echo "$as_me:$LINENO: checking for char" >&5
12001 echo $ECHO_N "checking for char... $ECHO_C" >&6
12002 if test "${ac_cv_type_char+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 $ac_includes_default
12023 rm -f conftest.$ac_objext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025 (eval $ac_compile) 2>conftest.er1
12027 grep -v '^ *+' conftest.er1 >conftest.err
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -z "$ac_cxx_werror_flag"
12033 || test ! -s conftest.err'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest.$ac_objext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 ac_cv_type_char=yes
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12054 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12055 echo "${ECHO_T}$ac_cv_type_char" >&6
12057 echo "$as_me:$LINENO: checking size of char" >&5
12058 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12059 if test "${ac_cv_sizeof_char+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 if test "$ac_cv_type_char" = yes; then
12063 # The cast to unsigned long works around a bug in the HP C Compiler
12064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12066 # This bug is HP SR number 8606223364.
12067 if test "$cross_compiling" = yes; then
12068 # Depending upon the size, compute the lo and hi bounds.
12069 cat >conftest.$ac_ext <<_ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 $ac_includes_default
12079 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12086 rm -f conftest.$ac_objext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12088 (eval $ac_compile) 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_cxx_werror_flag"
12096 || test ! -s conftest.err'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; } &&
12102 { ac_try='test -s conftest.$ac_objext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12110 cat >conftest.$ac_ext <<_ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 $ac_includes_default
12120 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12127 rm -f conftest.$ac_objext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12129 (eval $ac_compile) 2>conftest.er1
12131 grep -v '^ *+' conftest.er1 >conftest.err
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_cxx_werror_flag"
12137 || test ! -s conftest.err'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; } &&
12143 { ac_try='test -s conftest.$ac_objext'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; }; then
12149 ac_hi=$ac_mid; break
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 ac_lo=`expr $ac_mid + 1`
12155 if test $ac_lo -le $ac_mid; then
12159 ac_mid=`expr 2 '*' $ac_mid + 1`
12161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 cat >conftest.$ac_ext <<_ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 $ac_includes_default
12177 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12184 rm -f conftest.$ac_objext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12186 (eval $ac_compile) 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_cxx_werror_flag"
12194 || test ! -s conftest.err'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; } &&
12200 { ac_try='test -s conftest.$ac_objext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12208 cat >conftest.$ac_ext <<_ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12214 $ac_includes_default
12218 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12225 rm -f conftest.$ac_objext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12227 (eval $ac_compile) 2>conftest.er1
12229 grep -v '^ *+' conftest.er1 >conftest.err
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } &&
12234 { ac_try='test -z "$ac_cxx_werror_flag"
12235 || test ! -s conftest.err'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; } &&
12241 { ac_try='test -s conftest.$ac_objext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 ac_lo=$ac_mid; break
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 ac_hi=`expr '(' $ac_mid ')' - 1`
12253 if test $ac_mid -le $ac_hi; then
12257 ac_mid=`expr 2 '*' $ac_mid`
12259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12270 # Binary search between lo and hi bounds.
12271 while test "x$ac_lo" != "x$ac_hi"; do
12272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12273 cat >conftest.$ac_ext <<_ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12279 $ac_includes_default
12283 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12290 rm -f conftest.$ac_objext
12291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12292 (eval $ac_compile) 2>conftest.er1
12294 grep -v '^ *+' conftest.er1 >conftest.err
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -z "$ac_cxx_werror_flag"
12300 || test ! -s conftest.err'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; } &&
12306 { ac_try='test -s conftest.$ac_objext'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_lo=`expr '(' $ac_mid ')' + 1`
12319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12322 ?*) ac_cv_sizeof_char=$ac_lo;;
12323 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12324 See \`config.log' for more details." >&5
12325 echo "$as_me: error: cannot compute sizeof (char), 77
12326 See \`config.log' for more details." >&2;}
12327 { (exit 1); exit 1; }; } ;;
12330 if test "$cross_compiling" = yes; then
12331 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12332 See \`config.log' for more details." >&5
12333 echo "$as_me: error: cannot run test program while cross compiling
12334 See \`config.log' for more details." >&2;}
12335 { (exit 1); exit 1; }; }
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 $ac_includes_default
12344 long longval () { return (long) (sizeof (char)); }
12345 unsigned long ulongval () { return (long) (sizeof (char)); }
12347 #include <stdlib.h>
12352 FILE *f = fopen ("conftest.val", "w");
12355 if (((long) (sizeof (char))) < 0)
12357 long i = longval ();
12358 if (i != ((long) (sizeof (char))))
12360 fprintf (f, "%ld\n", i);
12364 unsigned long i = ulongval ();
12365 if (i != ((long) (sizeof (char))))
12367 fprintf (f, "%lu\n", i);
12369 exit (ferror (f) || fclose (f) != 0);
12375 rm -f conftest$ac_exeext
12376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12377 (eval $ac_link) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_cv_sizeof_char=`cat conftest.val`
12388 echo "$as_me: program exited with status $ac_status" >&5
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12392 ( exit $ac_status )
12393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12394 See \`config.log' for more details." >&5
12395 echo "$as_me: error: cannot compute sizeof (char), 77
12396 See \`config.log' for more details." >&2;}
12397 { (exit 1); exit 1; }; }
12399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12404 ac_cv_sizeof_char=0
12407 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12408 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12409 cat >>confdefs.h <<_ACEOF
12410 #define SIZEOF_CHAR $ac_cv_sizeof_char
12414 echo "$as_me:$LINENO: checking for short" >&5
12415 echo $ECHO_N "checking for short... $ECHO_C" >&6
12416 if test "${ac_cv_type_short+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 cat >conftest.$ac_ext <<_ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12425 $ac_includes_default
12431 if (sizeof (short))
12437 rm -f conftest.$ac_objext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12439 (eval $ac_compile) 2>conftest.er1
12441 grep -v '^ *+' conftest.er1 >conftest.err
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
12446 { ac_try='test -z "$ac_cxx_werror_flag"
12447 || test ! -s conftest.err'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try='test -s conftest.$ac_objext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_type_short=yes
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 ac_cv_type_short=no
12466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12468 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12469 echo "${ECHO_T}$ac_cv_type_short" >&6
12471 echo "$as_me:$LINENO: checking size of short" >&5
12472 echo $ECHO_N "checking size of short... $ECHO_C" >&6
12473 if test "${ac_cv_sizeof_short+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 if test "$ac_cv_type_short" = yes; then
12477 # The cast to unsigned long works around a bug in the HP C Compiler
12478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12480 # This bug is HP SR number 8606223364.
12481 if test "$cross_compiling" = yes; then
12482 # Depending upon the size, compute the lo and hi bounds.
12483 cat >conftest.$ac_ext <<_ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 $ac_includes_default
12493 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
12500 rm -f conftest.$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>conftest.er1
12504 grep -v '^ *+' conftest.er1 >conftest.err
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_cxx_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 $ac_includes_default
12534 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12545 grep -v '^ *+' conftest.er1 >conftest.err
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_cxx_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_hi=$ac_mid; break
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_lo=`expr $ac_mid + 1`
12569 if test $ac_lo -le $ac_mid; then
12573 ac_mid=`expr 2 '*' $ac_mid + 1`
12575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12581 cat >conftest.$ac_ext <<_ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 $ac_includes_default
12591 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12598 rm -f conftest.$ac_objext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>conftest.er1
12602 grep -v '^ *+' conftest.er1 >conftest.err
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_cxx_werror_flag"
12608 || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest.$ac_objext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 $ac_includes_default
12632 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12639 rm -f conftest.$ac_objext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641 (eval $ac_compile) 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try='test -z "$ac_cxx_werror_flag"
12649 || test ! -s conftest.err'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try='test -s conftest.$ac_objext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_lo=$ac_mid; break
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12666 ac_hi=`expr '(' $ac_mid ')' - 1`
12667 if test $ac_mid -le $ac_hi; then
12671 ac_mid=`expr 2 '*' $ac_mid`
12673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12684 # Binary search between lo and hi bounds.
12685 while test "x$ac_lo" != "x$ac_hi"; do
12686 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12687 cat >conftest.$ac_ext <<_ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12693 $ac_includes_default
12697 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12704 rm -f conftest.$ac_objext
12705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12706 (eval $ac_compile) 2>conftest.er1
12708 grep -v '^ *+' conftest.er1 >conftest.err
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -z "$ac_cxx_werror_flag"
12714 || test ! -s conftest.err'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try='test -s conftest.$ac_objext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12731 ac_lo=`expr '(' $ac_mid ')' + 1`
12733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12736 ?*) ac_cv_sizeof_short=$ac_lo;;
12737 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12738 See \`config.log' for more details." >&5
12739 echo "$as_me: error: cannot compute sizeof (short), 77
12740 See \`config.log' for more details." >&2;}
12741 { (exit 1); exit 1; }; } ;;
12744 if test "$cross_compiling" = yes; then
12745 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12746 See \`config.log' for more details." >&5
12747 echo "$as_me: error: cannot run test program while cross compiling
12748 See \`config.log' for more details." >&2;}
12749 { (exit 1); exit 1; }; }
12751 cat >conftest.$ac_ext <<_ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 $ac_includes_default
12758 long longval () { return (long) (sizeof (short)); }
12759 unsigned long ulongval () { return (long) (sizeof (short)); }
12761 #include <stdlib.h>
12766 FILE *f = fopen ("conftest.val", "w");
12769 if (((long) (sizeof (short))) < 0)
12771 long i = longval ();
12772 if (i != ((long) (sizeof (short))))
12774 fprintf (f, "%ld\n", i);
12778 unsigned long i = ulongval ();
12779 if (i != ((long) (sizeof (short))))
12781 fprintf (f, "%lu\n", i);
12783 exit (ferror (f) || fclose (f) != 0);
12789 rm -f conftest$ac_exeext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791 (eval $ac_link) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 ac_cv_sizeof_short=`cat conftest.val`
12802 echo "$as_me: program exited with status $ac_status" >&5
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 ( exit $ac_status )
12807 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12808 See \`config.log' for more details." >&5
12809 echo "$as_me: error: cannot compute sizeof (short), 77
12810 See \`config.log' for more details." >&2;}
12811 { (exit 1); exit 1; }; }
12813 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12818 ac_cv_sizeof_short=0
12821 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12822 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12823 cat >>confdefs.h <<_ACEOF
12824 #define SIZEOF_SHORT $ac_cv_sizeof_short
12828 echo "$as_me:$LINENO: checking for int" >&5
12829 echo $ECHO_N "checking for int... $ECHO_C" >&6
12830 if test "${ac_cv_type_int+set}" = set; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 cat >conftest.$ac_ext <<_ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 $ac_includes_default
12851 rm -f conftest.$ac_objext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853 (eval $ac_compile) 2>conftest.er1
12855 grep -v '^ *+' conftest.er1 >conftest.err
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_cxx_werror_flag"
12861 || test ! -s conftest.err'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest.$ac_objext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12882 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12883 echo "${ECHO_T}$ac_cv_type_int" >&6
12885 echo "$as_me:$LINENO: checking size of int" >&5
12886 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12887 if test "${ac_cv_sizeof_int+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 if test "$ac_cv_type_int" = yes; then
12891 # The cast to unsigned long works around a bug in the HP C Compiler
12892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12894 # This bug is HP SR number 8606223364.
12895 if test "$cross_compiling" = yes; then
12896 # Depending upon the size, compute the lo and hi bounds.
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12903 $ac_includes_default
12907 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12914 rm -f conftest.$ac_objext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12916 (eval $ac_compile) 2>conftest.er1
12918 grep -v '^ *+' conftest.er1 >conftest.err
12920 cat conftest.err >&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
12923 { ac_try='test -z "$ac_cxx_werror_flag"
12924 || test ! -s conftest.err'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } &&
12930 { ac_try='test -s conftest.$ac_objext'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12938 cat >conftest.$ac_ext <<_ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12944 $ac_includes_default
12948 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12955 rm -f conftest.$ac_objext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>conftest.er1
12959 grep -v '^ *+' conftest.er1 >conftest.err
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -z "$ac_cxx_werror_flag"
12965 || test ! -s conftest.err'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; } &&
12971 { ac_try='test -s conftest.$ac_objext'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 ac_hi=$ac_mid; break
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 ac_lo=`expr $ac_mid + 1`
12983 if test $ac_lo -le $ac_mid; then
12987 ac_mid=`expr 2 '*' $ac_mid + 1`
12989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 cat >conftest.$ac_ext <<_ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13001 $ac_includes_default
13005 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13012 rm -f conftest.$ac_objext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13014 (eval $ac_compile) 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try='test -z "$ac_cxx_werror_flag"
13022 || test ! -s conftest.err'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; } &&
13028 { ac_try='test -s conftest.$ac_objext'
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 $ac_includes_default
13046 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13053 rm -f conftest.$ac_objext
13054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13055 (eval $ac_compile) 2>conftest.er1
13057 grep -v '^ *+' conftest.er1 >conftest.err
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -z "$ac_cxx_werror_flag"
13063 || test ! -s conftest.err'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try='test -s conftest.$ac_objext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_lo=$ac_mid; break
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 ac_hi=`expr '(' $ac_mid ')' - 1`
13081 if test $ac_mid -le $ac_hi; then
13085 ac_mid=`expr 2 '*' $ac_mid`
13087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13098 # Binary search between lo and hi bounds.
13099 while test "x$ac_lo" != "x$ac_hi"; do
13100 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13111 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13118 rm -f conftest.$ac_objext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13120 (eval $ac_compile) 2>conftest.er1
13122 grep -v '^ *+' conftest.er1 >conftest.err
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -z "$ac_cxx_werror_flag"
13128 || test ! -s conftest.err'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; } &&
13134 { ac_try='test -s conftest.$ac_objext'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13145 ac_lo=`expr '(' $ac_mid ')' + 1`
13147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13150 ?*) ac_cv_sizeof_int=$ac_lo;;
13151 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13152 See \`config.log' for more details." >&5
13153 echo "$as_me: error: cannot compute sizeof (int), 77
13154 See \`config.log' for more details." >&2;}
13155 { (exit 1); exit 1; }; } ;;
13158 if test "$cross_compiling" = yes; then
13159 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13160 See \`config.log' for more details." >&5
13161 echo "$as_me: error: cannot run test program while cross compiling
13162 See \`config.log' for more details." >&2;}
13163 { (exit 1); exit 1; }; }
13165 cat >conftest.$ac_ext <<_ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 $ac_includes_default
13172 long longval () { return (long) (sizeof (int)); }
13173 unsigned long ulongval () { return (long) (sizeof (int)); }
13175 #include <stdlib.h>
13180 FILE *f = fopen ("conftest.val", "w");
13183 if (((long) (sizeof (int))) < 0)
13185 long i = longval ();
13186 if (i != ((long) (sizeof (int))))
13188 fprintf (f, "%ld\n", i);
13192 unsigned long i = ulongval ();
13193 if (i != ((long) (sizeof (int))))
13195 fprintf (f, "%lu\n", i);
13197 exit (ferror (f) || fclose (f) != 0);
13203 rm -f conftest$ac_exeext
13204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13205 (eval $ac_link) 2>&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 ac_cv_sizeof_int=`cat conftest.val`
13216 echo "$as_me: program exited with status $ac_status" >&5
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 ( exit $ac_status )
13221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13222 See \`config.log' for more details." >&5
13223 echo "$as_me: error: cannot compute sizeof (int), 77
13224 See \`config.log' for more details." >&2;}
13225 { (exit 1); exit 1; }; }
13227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13235 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13236 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13237 cat >>confdefs.h <<_ACEOF
13238 #define SIZEOF_INT $ac_cv_sizeof_int
13242 echo "$as_me:$LINENO: checking for long" >&5
13243 echo $ECHO_N "checking for long... $ECHO_C" >&6
13244 if test "${ac_cv_type_long+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 cat >conftest.$ac_ext <<_ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13253 $ac_includes_default
13265 rm -f conftest.$ac_objext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13267 (eval $ac_compile) 2>conftest.er1
13269 grep -v '^ *+' conftest.er1 >conftest.err
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try='test -z "$ac_cxx_werror_flag"
13275 || test ! -s conftest.err'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_cv_type_long=yes
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13296 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13297 echo "${ECHO_T}$ac_cv_type_long" >&6
13299 echo "$as_me:$LINENO: checking size of long" >&5
13300 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13301 if test "${ac_cv_sizeof_long+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13304 if test "$ac_cv_type_long" = yes; then
13305 # The cast to unsigned long works around a bug in the HP C Compiler
13306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13308 # This bug is HP SR number 8606223364.
13309 if test "$cross_compiling" = yes; then
13310 # Depending upon the size, compute the lo and hi bounds.
13311 cat >conftest.$ac_ext <<_ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 $ac_includes_default
13321 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13328 rm -f conftest.$ac_objext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13330 (eval $ac_compile) 2>conftest.er1
13332 grep -v '^ *+' conftest.er1 >conftest.err
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_cxx_werror_flag"
13338 || test ! -s conftest.err'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest.$ac_objext'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; }; then
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 $ac_includes_default
13362 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13369 rm -f conftest.$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>conftest.er1
13373 grep -v '^ *+' conftest.er1 >conftest.err
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_cxx_werror_flag"
13379 || test ! -s conftest.err'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest.$ac_objext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_hi=$ac_mid; break
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13396 ac_lo=`expr $ac_mid + 1`
13397 if test $ac_lo -le $ac_mid; then
13401 ac_mid=`expr 2 '*' $ac_mid + 1`
13403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409 cat >conftest.$ac_ext <<_ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13415 $ac_includes_default
13419 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13426 rm -f conftest.$ac_objext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428 (eval $ac_compile) 2>conftest.er1
13430 grep -v '^ *+' conftest.er1 >conftest.err
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try='test -z "$ac_cxx_werror_flag"
13436 || test ! -s conftest.err'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; } &&
13442 { ac_try='test -s conftest.$ac_objext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13450 cat >conftest.$ac_ext <<_ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13456 $ac_includes_default
13460 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13467 rm -f conftest.$ac_objext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13469 (eval $ac_compile) 2>conftest.er1
13471 grep -v '^ *+' conftest.er1 >conftest.err
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try='test -z "$ac_cxx_werror_flag"
13477 || test ! -s conftest.err'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; } &&
13483 { ac_try='test -s conftest.$ac_objext'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13489 ac_lo=$ac_mid; break
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13494 ac_hi=`expr '(' $ac_mid ')' - 1`
13495 if test $ac_mid -le $ac_hi; then
13499 ac_mid=`expr 2 '*' $ac_mid`
13501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13512 # Binary search between lo and hi bounds.
13513 while test "x$ac_lo" != "x$ac_hi"; do
13514 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13515 cat >conftest.$ac_ext <<_ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 $ac_includes_default
13525 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13532 rm -f conftest.$ac_objext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>conftest.er1
13536 grep -v '^ *+' conftest.er1 >conftest.err
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_cxx_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest.$ac_objext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13559 ac_lo=`expr '(' $ac_mid ')' + 1`
13561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13564 ?*) ac_cv_sizeof_long=$ac_lo;;
13565 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13566 See \`config.log' for more details." >&5
13567 echo "$as_me: error: cannot compute sizeof (long), 77
13568 See \`config.log' for more details." >&2;}
13569 { (exit 1); exit 1; }; } ;;
13572 if test "$cross_compiling" = yes; then
13573 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13574 See \`config.log' for more details." >&5
13575 echo "$as_me: error: cannot run test program while cross compiling
13576 See \`config.log' for more details." >&2;}
13577 { (exit 1); exit 1; }; }
13579 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 $ac_includes_default
13586 long longval () { return (long) (sizeof (long)); }
13587 unsigned long ulongval () { return (long) (sizeof (long)); }
13589 #include <stdlib.h>
13594 FILE *f = fopen ("conftest.val", "w");
13597 if (((long) (sizeof (long))) < 0)
13599 long i = longval ();
13600 if (i != ((long) (sizeof (long))))
13602 fprintf (f, "%ld\n", i);
13606 unsigned long i = ulongval ();
13607 if (i != ((long) (sizeof (long))))
13609 fprintf (f, "%lu\n", i);
13611 exit (ferror (f) || fclose (f) != 0);
13617 rm -f conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619 (eval $ac_link) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 ac_cv_sizeof_long=`cat conftest.val`
13630 echo "$as_me: program exited with status $ac_status" >&5
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13634 ( exit $ac_status )
13635 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13636 See \`config.log' for more details." >&5
13637 echo "$as_me: error: cannot compute sizeof (long), 77
13638 See \`config.log' for more details." >&2;}
13639 { (exit 1); exit 1; }; }
13641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13646 ac_cv_sizeof_long=0
13649 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13650 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13651 cat >>confdefs.h <<_ACEOF
13652 #define SIZEOF_LONG $ac_cv_sizeof_long
13656 echo "$as_me:$LINENO: checking for long long" >&5
13657 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13658 if test "${ac_cv_type_long_long+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 $ac_includes_default
13671 if ((long long *) 0)
13673 if (sizeof (long long))
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try='test -z "$ac_cxx_werror_flag"
13689 || test ! -s conftest.err'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } &&
13695 { ac_try='test -s conftest.$ac_objext'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_cv_type_long_long=yes
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13706 ac_cv_type_long_long=no
13708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13710 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13711 echo "${ECHO_T}$ac_cv_type_long_long" >&6
13713 echo "$as_me:$LINENO: checking size of long long" >&5
13714 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
13715 if test "${ac_cv_sizeof_long_long+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 if test "$ac_cv_type_long_long" = yes; then
13719 # The cast to unsigned long works around a bug in the HP C Compiler
13720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13722 # This bug is HP SR number 8606223364.
13723 if test "$cross_compiling" = yes; then
13724 # Depending upon the size, compute the lo and hi bounds.
13725 cat >conftest.$ac_ext <<_ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h. */
13731 $ac_includes_default
13735 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13742 rm -f conftest.$ac_objext
13743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13744 (eval $ac_compile) 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_cxx_werror_flag"
13752 || test ! -s conftest.err'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try='test -s conftest.$ac_objext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13766 cat >conftest.$ac_ext <<_ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13772 $ac_includes_default
13776 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13783 rm -f conftest.$ac_objext
13784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785 (eval $ac_compile) 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
13792 { ac_try='test -z "$ac_cxx_werror_flag"
13793 || test ! -s conftest.err'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; } &&
13799 { ac_try='test -s conftest.$ac_objext'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 ac_hi=$ac_mid; break
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13810 ac_lo=`expr $ac_mid + 1`
13811 if test $ac_lo -le $ac_mid; then
13815 ac_mid=`expr 2 '*' $ac_mid + 1`
13817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 cat >conftest.$ac_ext <<_ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13829 $ac_includes_default
13833 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13840 rm -f conftest.$ac_objext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13842 (eval $ac_compile) 2>conftest.er1
13844 grep -v '^ *+' conftest.er1 >conftest.err
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_cxx_werror_flag"
13850 || test ! -s conftest.err'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest.$ac_objext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 $ac_includes_default
13874 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13881 rm -f conftest.$ac_objext
13882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13883 (eval $ac_compile) 2>conftest.er1
13885 grep -v '^ *+' conftest.er1 >conftest.err
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
13890 { ac_try='test -z "$ac_cxx_werror_flag"
13891 || test ! -s conftest.err'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; } &&
13897 { ac_try='test -s conftest.$ac_objext'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 ac_lo=$ac_mid; break
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 ac_hi=`expr '(' $ac_mid ')' - 1`
13909 if test $ac_mid -le $ac_hi; then
13913 ac_mid=`expr 2 '*' $ac_mid`
13915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13926 # Binary search between lo and hi bounds.
13927 while test "x$ac_lo" != "x$ac_hi"; do
13928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 $ac_includes_default
13939 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13946 rm -f conftest.$ac_objext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_cxx_werror_flag"
13956 || test ! -s conftest.err'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 ac_lo=`expr '(' $ac_mid ')' + 1`
13975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13978 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13979 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13980 See \`config.log' for more details." >&5
13981 echo "$as_me: error: cannot compute sizeof (long long), 77
13982 See \`config.log' for more details." >&2;}
13983 { (exit 1); exit 1; }; } ;;
13986 if test "$cross_compiling" = yes; then
13987 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13988 See \`config.log' for more details." >&5
13989 echo "$as_me: error: cannot run test program while cross compiling
13990 See \`config.log' for more details." >&2;}
13991 { (exit 1); exit 1; }; }
13993 cat >conftest.$ac_ext <<_ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 $ac_includes_default
14000 long longval () { return (long) (sizeof (long long)); }
14001 unsigned long ulongval () { return (long) (sizeof (long long)); }
14003 #include <stdlib.h>
14008 FILE *f = fopen ("conftest.val", "w");
14011 if (((long) (sizeof (long long))) < 0)
14013 long i = longval ();
14014 if (i != ((long) (sizeof (long long))))
14016 fprintf (f, "%ld\n", i);
14020 unsigned long i = ulongval ();
14021 if (i != ((long) (sizeof (long long))))
14023 fprintf (f, "%lu\n", i);
14025 exit (ferror (f) || fclose (f) != 0);
14031 rm -f conftest$ac_exeext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14033 (eval $ac_link) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 ac_cv_sizeof_long_long=`cat conftest.val`
14044 echo "$as_me: program exited with status $ac_status" >&5
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ( exit $ac_status )
14049 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14050 See \`config.log' for more details." >&5
14051 echo "$as_me: error: cannot compute sizeof (long long), 77
14052 See \`config.log' for more details." >&2;}
14053 { (exit 1); exit 1; }; }
14055 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14060 ac_cv_sizeof_long_long=0
14063 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14064 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14065 cat >>confdefs.h <<_ACEOF
14066 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14071 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
14072 ac_cv_sizeof_char=1
14073 ac_cv_sizeof_short=2
14075 ac_cv_sizeof_long=4
14076 ac_cv_sizeof_long_long=4
14085 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
14089 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
14093 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
14097 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
14101 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
14108 echo "$as_me:$LINENO: checking type name for byte" >&5
14109 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
14110 TYPE_BYTE=`type_name 1`
14111 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
14112 echo "${ECHO_T}$TYPE_BYTE" >&6
14113 echo "$as_me:$LINENO: checking type name for word" >&5
14114 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
14115 TYPE_WORD=`type_name 2`
14116 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
14117 echo "${ECHO_T}$TYPE_WORD" >&6
14118 echo "$as_me:$LINENO: checking type name for dword" >&5
14119 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
14120 TYPE_DWORD=`type_name 4`
14121 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
14122 echo "${ECHO_T}$TYPE_DWORD" >&6
14123 cat >>confdefs.h <<_ACEOF
14124 #define TYPE_BYTE $TYPE_BYTE
14127 cat >>confdefs.h <<_ACEOF
14128 #define TYPE_WORD $TYPE_WORD
14131 cat >>confdefs.h <<_ACEOF
14132 #define TYPE_DWORD $TYPE_DWORD
14136 if echo $TYPE_DWORD|grep short >/dev/null; then
14138 elif echo $TYPE_DWORD|grep long >/dev/null; then
14144 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
14145 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
14149 cat >>confdefs.h <<_ACEOF
14153 cat >>confdefs.h <<_ACEOF
14158 # Generating output files
14159 # ===========================================================================
14161 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"
14162 cat >confcache <<\_ACEOF
14163 # This file is a shell script that caches the results of configure
14164 # tests run on this system so they can be shared between configure
14165 # scripts and configure runs, see configure's option --config-cache.
14166 # It is not useful on other systems. If it contains results you don't
14167 # want to keep, you may remove or edit it.
14169 # config.status only pays attention to the cache file if you give it
14170 # the --recheck option to rerun configure.
14172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14174 # following values.
14178 # The following way of writing the cache mishandles newlines in values,
14179 # but we know of no workaround that is simple, portable, and efficient.
14180 # So, don't put newlines in cache variables' values.
14181 # Ultrix sh set writes to stderr and can't be redirected directly,
14182 # and sets the high bit in the cache file unless we assign to the vars.
14185 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14187 # `set' does not quote correctly, so add quotes (double-quote
14188 # substitution turns \\\\ into \\, and sed turns \\ into \).
14191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14194 # `set' quotes correctly as required by POSIX, so do not add quotes.
14196 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14205 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14207 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14208 if test -w $cache_file; then
14209 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14210 cat confcache >$cache_file
14212 echo "not updating unwritable cache $cache_file"
14217 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14218 # Let make expand exec_prefix.
14219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14221 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14222 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14223 # trailing colons and then remove the whole line if VPATH becomes empty
14224 # (actually we leave an empty line to preserve line numbers).
14225 if test "x$srcdir" = x.; then
14226 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14227 s/:*\$(srcdir):*/:/;
14228 s/:*\${srcdir}:*/:/;
14230 s/^\([^=]*=[ ]*\):*/\1/;
14236 DEFS=-DHAVE_CONFIG_H
14240 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14241 # 1. Remove the extension, and $U if already installed.
14242 ac_i=`echo "$ac_i" |
14243 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14244 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14245 # will be set to the directory where LIBOBJS objects are built.
14246 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14247 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14249 LIBOBJS=$ac_libobjs
14251 LTLIBOBJS=$ac_ltlibobjs
14255 : ${CONFIG_STATUS=./config.status}
14256 ac_clean_files_save=$ac_clean_files
14257 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14258 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14259 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14260 cat >$CONFIG_STATUS <<_ACEOF
14262 # Generated by $as_me.
14263 # Run this file to recreate the current configuration.
14264 # Compiler output produced by configure, useful for debugging
14265 # configure, is in config.log if it exists.
14268 ac_cs_recheck=false
14270 SHELL=\${CONFIG_SHELL-$SHELL}
14273 cat >>$CONFIG_STATUS <<\_ACEOF
14274 ## --------------------- ##
14275 ## M4sh Initialization. ##
14276 ## --------------------- ##
14278 # Be Bourne compatible
14279 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14282 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14283 # is contrary to our usage. Disable this feature.
14284 alias -g '${1+"$@"}'='"$@"'
14285 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14288 DUALCASE=1; export DUALCASE # for MKS sh
14290 # Support unset when possible.
14291 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14298 # Work around bugs in pre-3.0 UWIN ksh.
14299 $as_unset ENV MAIL MAILPATH
14306 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14307 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14308 LC_TELEPHONE LC_TIME
14310 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14311 eval $as_var=C; export $as_var
14317 # Required to use basename.
14318 if expr a : '\(a\)' >/dev/null 2>&1; then
14324 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14325 as_basename=basename
14331 # Name of the executable.
14332 as_me=`$as_basename "$0" ||
14333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14334 X"$0" : 'X\(//\)$' \| \
14335 X"$0" : 'X\(/\)$' \| \
14336 . : '\(.\)' 2>/dev/null ||
14338 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14339 /^X\/\(\/\/\)$/{ s//\1/; q; }
14340 /^X\/\(\/\).*/{ s//\1/; q; }
14344 # PATH needs CR, and LINENO needs CR and PATH.
14345 # Avoid depending upon Character Ranges.
14346 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14347 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14348 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14349 as_cr_digits='0123456789'
14350 as_cr_alnum=$as_cr_Letters$as_cr_digits
14352 # The user is always right.
14353 if test "${PATH_SEPARATOR+set}" != set; then
14354 echo "#! /bin/sh" >conf$$.sh
14355 echo "exit 0" >>conf$$.sh
14357 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14366 as_lineno_1=$LINENO
14367 as_lineno_2=$LINENO
14368 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14369 test "x$as_lineno_1" != "x$as_lineno_2" &&
14370 test "x$as_lineno_3" = "x$as_lineno_2" || {
14371 # Find who we are. Look in the path if we contain no path at all
14374 *[\\/]* ) as_myself=$0 ;;
14375 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14379 test -z "$as_dir" && as_dir=.
14380 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14385 # We did not find ourselves, most probably we were run as `sh COMMAND'
14386 # in which case we are not to be found in the path.
14387 if test "x$as_myself" = x; then
14390 if test ! -f "$as_myself"; then
14391 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14392 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14393 { (exit 1); exit 1; }; }
14395 case $CONFIG_SHELL in
14397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14401 test -z "$as_dir" && as_dir=.
14402 for as_base in sh bash ksh sh5; do
14405 if ("$as_dir/$as_base" -c '
14406 as_lineno_1=$LINENO
14407 as_lineno_2=$LINENO
14408 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14409 test "x$as_lineno_1" != "x$as_lineno_2" &&
14410 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14411 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14412 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14413 CONFIG_SHELL=$as_dir/$as_base
14414 export CONFIG_SHELL
14415 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14423 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14424 # uniformly replaced by the line number. The first 'sed' inserts a
14425 # line-number line before each line; the second 'sed' does the real
14426 # work. The second script uses 'N' to pair each line-number line
14427 # with the numbered line, and appends trailing '-' during
14428 # substitution so that $LINENO is not a special case at line end.
14429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14430 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14431 sed '=' <$as_myself |
14436 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14439 s,^['$as_cr_digits']*\n,,
14440 ' >$as_me.lineno &&
14441 chmod +x $as_me.lineno ||
14442 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14443 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14444 { (exit 1); exit 1; }; }
14446 # Don't try to exec as it changes $[0], causing all sort of problems
14447 # (the dirname of $[0] is not the place where we might find the
14448 # original and so on. Autoconf is especially sensible to this).
14450 # Exit status is that of the last command.
14455 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14456 *c*,-n*) ECHO_N= ECHO_C='
14458 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14459 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14462 if expr a : '\(a\)' >/dev/null 2>&1; then
14468 rm -f conf$$ conf$$.exe conf$$.file
14470 if ln -s conf$$.file conf$$ 2>/dev/null; then
14471 # We could just check for DJGPP; but this test a) works b) is more generic
14472 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14473 if test -f conf$$.exe; then
14474 # Don't use ln at all; we don't have any links
14479 elif ln conf$$.file conf$$ 2>/dev/null; then
14484 rm -f conf$$ conf$$.exe conf$$.file
14486 if mkdir -p . 2>/dev/null; then
14489 test -d ./-p && rmdir ./-p
14493 as_executable_p="test -f"
14495 # Sed expression to map a string onto a valid CPP name.
14496 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14498 # Sed expression to map a string onto a valid variable name.
14499 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14503 # We need space, tab and new line, in precisely that order.
14513 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14514 # report actual input values of CONFIG_FILES etc. instead of their
14515 # values after options handling. Logging --version etc. is OK.
14519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14520 ## Running $as_me. ##
14525 This file was extended by $as_me, which was
14526 generated by GNU Autoconf 2.59. Invocation command line was
14528 CONFIG_FILES = $CONFIG_FILES
14529 CONFIG_HEADERS = $CONFIG_HEADERS
14530 CONFIG_LINKS = $CONFIG_LINKS
14531 CONFIG_COMMANDS = $CONFIG_COMMANDS
14535 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14539 # Files that config.status was made for.
14540 if test -n "$ac_config_files"; then
14541 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14544 if test -n "$ac_config_headers"; then
14545 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14548 if test -n "$ac_config_links"; then
14549 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14552 if test -n "$ac_config_commands"; then
14553 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14556 cat >>$CONFIG_STATUS <<\_ACEOF
14559 \`$as_me' instantiates files from templates according to the
14560 current configuration.
14562 Usage: $0 [OPTIONS] [FILE]...
14564 -h, --help print this help, then exit
14565 -V, --version print version number, then exit
14566 -q, --quiet do not print progress messages
14567 -d, --debug don't remove temporary files
14568 --recheck update $as_me by reconfiguring in the same conditions
14569 --file=FILE[:TEMPLATE]
14570 instantiate the configuration file FILE
14571 --header=FILE[:TEMPLATE]
14572 instantiate the configuration header FILE
14574 Configuration files:
14577 Configuration headers:
14580 Report bugs to <bug-autoconf@gnu.org>."
14583 cat >>$CONFIG_STATUS <<_ACEOF
14586 configured by $0, generated by GNU Autoconf 2.59,
14587 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14589 Copyright (C) 2003 Free Software Foundation, Inc.
14590 This config.status script is free software; the Free Software Foundation
14591 gives unlimited permission to copy, distribute and modify it."
14596 cat >>$CONFIG_STATUS <<\_ACEOF
14597 # If no file are specified by the user, then we need to provide default
14598 # value. By we need to know if files were specified by the user.
14604 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14605 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14613 *) # This is not an option, so the user has probably given explicit
14616 ac_need_defaults=false;;
14620 # Handling of the options.
14622 cat >>$CONFIG_STATUS <<\_ACEOF
14623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14625 --version | --vers* | -V )
14626 echo "$ac_cs_version"; exit 0 ;;
14628 # Conflict between --help and --header
14629 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14630 Try \`$0 --help' for more information." >&5
14631 echo "$as_me: error: ambiguous option: $1
14632 Try \`$0 --help' for more information." >&2;}
14633 { (exit 1); exit 1; }; };;
14634 --help | --hel | -h )
14635 echo "$ac_cs_usage"; exit 0 ;;
14636 --debug | --d* | -d )
14638 --file | --fil | --fi | --f )
14640 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14641 ac_need_defaults=false;;
14642 --header | --heade | --head | --hea )
14644 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14645 ac_need_defaults=false;;
14646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14647 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14650 # This is an error.
14651 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14652 Try \`$0 --help' for more information." >&5
14653 echo "$as_me: error: unrecognized option: $1
14654 Try \`$0 --help' for more information." >&2;}
14655 { (exit 1); exit 1; }; } ;;
14657 *) ac_config_targets="$ac_config_targets $1" ;;
14663 ac_configure_extra_args=
14665 if $ac_cs_silent; then
14667 ac_configure_extra_args="$ac_configure_extra_args --silent"
14671 cat >>$CONFIG_STATUS <<_ACEOF
14672 if \$ac_cs_recheck; then
14673 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14674 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14683 cat >>$CONFIG_STATUS <<\_ACEOF
14684 for ac_config_target in $ac_config_targets
14686 case "$ac_config_target" in
14687 # Handling of arguments.
14688 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14689 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
14690 "packages.mk" ) CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
14691 "sim.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
14692 "cmd.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
14693 "s51.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
14694 "avr.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
14695 "z80.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
14696 "hc08.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES hc08.src/Makefile" ;;
14697 "xa.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
14698 "gui.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
14699 "gui.src/serio.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
14700 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14701 "ddconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
14702 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14703 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14704 { (exit 1); exit 1; }; };;
14708 # If the user did not use the arguments to specify the items to instantiate,
14709 # then the envvar interface is used. Set only those that are not.
14710 # We use the long form for the default assignment because of an extremely
14711 # bizarre bug on SunOS 4.1.3.
14712 if $ac_need_defaults; then
14713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14717 # Have a temporary directory for convenience. Make it in the build tree
14718 # simply because there is no reason to put it here, and in addition,
14719 # creating and moving files from /tmp can sometimes cause problems.
14720 # Create a temporary directory, and hook for its removal unless debugging.
14723 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14724 trap '{ (exit 1); exit 1; }' 1 2 13 15
14727 # Create a (secure) tmp directory for tmp files.
14730 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14731 test -n "$tmp" && test -d "$tmp"
14734 tmp=./confstat$$-$RANDOM
14735 (umask 077 && mkdir $tmp)
14738 echo "$me: cannot create a temporary directory in ." >&2
14739 { (exit 1); exit 1; }
14744 cat >>$CONFIG_STATUS <<_ACEOF
14747 # CONFIG_FILES section.
14750 # No need to generate the scripts if there are no CONFIG_FILES.
14751 # This happens for instance when ./config.status config.h
14752 if test -n "\$CONFIG_FILES"; then
14753 # Protect against being on the right side of a sed subst in config.status.
14754 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14755 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14756 s,@SHELL@,$SHELL,;t t
14757 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14758 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14759 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14760 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14761 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14762 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14763 s,@exec_prefix@,$exec_prefix,;t t
14764 s,@prefix@,$prefix,;t t
14765 s,@program_transform_name@,$program_transform_name,;t t
14766 s,@bindir@,$bindir,;t t
14767 s,@sbindir@,$sbindir,;t t
14768 s,@libexecdir@,$libexecdir,;t t
14769 s,@datadir@,$datadir,;t t
14770 s,@sysconfdir@,$sysconfdir,;t t
14771 s,@sharedstatedir@,$sharedstatedir,;t t
14772 s,@localstatedir@,$localstatedir,;t t
14773 s,@libdir@,$libdir,;t t
14774 s,@includedir@,$includedir,;t t
14775 s,@oldincludedir@,$oldincludedir,;t t
14776 s,@infodir@,$infodir,;t t
14777 s,@mandir@,$mandir,;t t
14778 s,@build_alias@,$build_alias,;t t
14779 s,@host_alias@,$host_alias,;t t
14780 s,@target_alias@,$target_alias,;t t
14781 s,@DEFS@,$DEFS,;t t
14782 s,@ECHO_C@,$ECHO_C,;t t
14783 s,@ECHO_N@,$ECHO_N,;t t
14784 s,@ECHO_T@,$ECHO_T,;t t
14785 s,@LIBS@,$LIBS,;t t
14787 s,@VERSION@,$VERSION,;t t
14788 s,@VERSIONHI@,$VERSIONHI,;t t
14789 s,@VERSIONLO@,$VERSIONLO,;t t
14790 s,@VERSIONP@,$VERSIONP,;t t
14791 s,@docdir@,$docdir,;t t
14792 s,@enable_ucsim@,$enable_ucsim,;t t
14793 s,@enable_dlso@,$enable_dlso,;t t
14794 s,@enable_51@,$enable_51,;t t
14795 s,@enable_avr@,$enable_avr,;t t
14796 s,@enable_z80@,$enable_z80,;t t
14797 s,@enable_hc08@,$enable_hc08,;t t
14798 s,@enable_xa@,$enable_xa,;t t
14799 s,@enable_serio@,$enable_serio,;t t
14801 s,@CXXFLAGS@,$CXXFLAGS,;t t
14802 s,@LDFLAGS@,$LDFLAGS,;t t
14803 s,@CPPFLAGS@,$CPPFLAGS,;t t
14804 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14805 s,@EXEEXT@,$EXEEXT,;t t
14806 s,@OBJEXT@,$OBJEXT,;t t
14807 s,@CXXCPP@,$CXXCPP,;t t
14808 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14809 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14810 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14811 s,@RANLIB@,$RANLIB,;t t
14812 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14813 s,@STRIP@,$STRIP,;t t
14814 s,@build@,$build,;t t
14815 s,@build_cpu@,$build_cpu,;t t
14816 s,@build_vendor@,$build_vendor,;t t
14817 s,@build_os@,$build_os,;t t
14818 s,@host@,$host,;t t
14819 s,@host_cpu@,$host_cpu,;t t
14820 s,@host_vendor@,$host_vendor,;t t
14821 s,@host_os@,$host_os,;t t
14823 s,@CFLAGS@,$CFLAGS,;t t
14824 s,@ac_ct_CC@,$ac_ct_CC,;t t
14825 s,@LN_S@,$LN_S,;t t
14826 s,@ECHO@,$ECHO,;t t
14827 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14829 s,@EGREP@,$EGREP,;t t
14830 s,@LIBTOOL@,$LIBTOOL,;t t
14831 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
14833 s,@LEXLIB@,$LEXLIB,;t t
14834 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14835 s,@YACC@,$YACC,;t t
14836 s,@BISON_PLUS_PLUS@,$BISON_PLUS_PLUS,;t t
14837 s,@dl_ok@,$dl_ok,;t t
14839 s,@panel_ok@,$panel_ok,;t t
14840 s,@curses_ok@,$curses_ok,;t t
14841 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
14842 s,@M_OR_MM@,$M_OR_MM,;t t
14843 s,@SHAREDLIB@,$SHAREDLIB,;t t
14844 s,@PICOPT@,$PICOPT,;t t
14845 s,@dlso_ok@,$dlso_ok,;t t
14846 s,@LIBOBJS@,$LIBOBJS,;t t
14847 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14852 cat >>$CONFIG_STATUS <<\_ACEOF
14853 # Split the substitutions into bite-sized pieces for seds with
14854 # small command number limits, like on Digital OSF/1 and HP-UX.
14855 ac_max_sed_lines=48
14856 ac_sed_frag=1 # Number of current file.
14857 ac_beg=1 # First line for current file.
14858 ac_end=$ac_max_sed_lines # Line after last line for current file.
14861 while $ac_more_lines; do
14862 if test $ac_beg -gt 1; then
14863 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14865 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14867 if test ! -s $tmp/subs.frag; then
14868 ac_more_lines=false
14870 # The purpose of the label and of the branching condition is to
14871 # speed up the sed processing (if there are no `@' at all, there
14872 # is no need to browse any of the substitutions).
14873 # These are the two extra sed commands mentioned above.
14875 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14876 if test -z "$ac_sed_cmds"; then
14877 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14879 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14881 ac_sed_frag=`expr $ac_sed_frag + 1`
14883 ac_end=`expr $ac_end + $ac_max_sed_lines`
14886 if test -z "$ac_sed_cmds"; then
14889 fi # test -n "$CONFIG_FILES"
14892 cat >>$CONFIG_STATUS <<\_ACEOF
14893 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14894 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14896 - | *:- | *:-:* ) # input from stdin
14898 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14899 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14900 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14901 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14902 * ) ac_file_in=$ac_file.in ;;
14905 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14906 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14908 X"$ac_file" : 'X\(//\)[^/]' \| \
14909 X"$ac_file" : 'X\(//\)$' \| \
14910 X"$ac_file" : 'X\(/\)' \| \
14911 . : '\(.\)' 2>/dev/null ||
14913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14915 /^X\(\/\/\)$/{ s//\1/; q; }
14916 /^X\(\/\).*/{ s//\1/; q; }
14918 { if $as_mkdir_p; then
14923 while test ! -d "$as_dir"; do
14924 as_dirs="$as_dir $as_dirs"
14925 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14927 X"$as_dir" : 'X\(//\)[^/]' \| \
14928 X"$as_dir" : 'X\(//\)$' \| \
14929 X"$as_dir" : 'X\(/\)' \| \
14930 . : '\(.\)' 2>/dev/null ||
14932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14934 /^X\(\/\/\)$/{ s//\1/; q; }
14935 /^X\(\/\).*/{ s//\1/; q; }
14938 test ! -n "$as_dirs" || mkdir $as_dirs
14939 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14940 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14941 { (exit 1); exit 1; }; }; }
14945 if test "$ac_dir" != .; then
14946 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14947 # A "../" for each directory in $ac_dir_suffix.
14948 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14950 ac_dir_suffix= ac_top_builddir=
14954 .) # No --srcdir option. We are building in place.
14956 if test -z "$ac_top_builddir"; then
14959 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14961 [\\/]* | ?:[\\/]* ) # Absolute path.
14962 ac_srcdir=$srcdir$ac_dir_suffix;
14963 ac_top_srcdir=$srcdir ;;
14964 *) # Relative path.
14965 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14966 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14969 # Do not use `cd foo && pwd` to compute absolute paths, because
14970 # the directories may not exist.
14972 .) ac_abs_builddir="$ac_dir";;
14975 .) ac_abs_builddir=`pwd`;;
14976 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14977 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14980 case $ac_abs_builddir in
14981 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14983 case ${ac_top_builddir}. in
14984 .) ac_abs_top_builddir=$ac_abs_builddir;;
14985 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14986 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14989 case $ac_abs_builddir in
14990 .) ac_abs_srcdir=$ac_srcdir;;
14993 .) ac_abs_srcdir=$ac_abs_builddir;;
14994 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14995 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14998 case $ac_abs_builddir in
14999 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15001 case $ac_top_srcdir in
15002 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15003 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15004 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15010 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15011 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15014 if test x"$ac_file" != x-; then
15015 { echo "$as_me:$LINENO: creating $ac_file" >&5
15016 echo "$as_me: creating $ac_file" >&6;}
15019 # Let's still pretend it is `configure' which instantiates (i.e., don't
15020 # use $as_me), people would be surprised to read:
15021 # /* config.h. Generated by config.status. */
15022 if test x"$ac_file" = x-; then
15025 configure_input="$ac_file. "
15027 configure_input=$configure_input"Generated from `echo $ac_file_in |
15028 sed 's,.*/,,'` by configure."
15030 # First look for the input files in the build tree, otherwise in the
15032 ac_file_inputs=`IFS=:
15033 for f in $ac_file_in; do
15035 -) echo $tmp/stdin ;;
15037 # Absolute (can't be DOS-style, as IFS=:)
15038 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15039 echo "$as_me: error: cannot find input file: $f" >&2;}
15040 { (exit 1); exit 1; }; }
15043 if test -f "$f"; then
15046 elif test -f "$srcdir/$f"; then
15051 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15052 echo "$as_me: error: cannot find input file: $f" >&2;}
15053 { (exit 1); exit 1; }; }
15056 done` || { (exit 1); exit 1; }
15058 cat >>$CONFIG_STATUS <<_ACEOF
15062 cat >>$CONFIG_STATUS <<\_ACEOF
15064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15065 s,@configure_input@,$configure_input,;t t
15066 s,@srcdir@,$ac_srcdir,;t t
15067 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15068 s,@top_srcdir@,$ac_top_srcdir,;t t
15069 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15070 s,@builddir@,$ac_builddir,;t t
15071 s,@abs_builddir@,$ac_abs_builddir,;t t
15072 s,@top_builddir@,$ac_top_builddir,;t t
15073 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15074 s,@INSTALL@,$ac_INSTALL,;t t
15075 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15077 if test x"$ac_file" != x-; then
15078 mv $tmp/out $ac_file
15086 cat >>$CONFIG_STATUS <<\_ACEOF
15089 # CONFIG_HEADER section.
15092 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15093 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15095 # ac_d sets the value in "#define NAME VALUE" lines.
15096 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15097 ac_dB='[ ].*$,\1#\2'
15100 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15101 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15102 ac_uB='$,\1#\2define\3'
15106 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15107 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15109 - | *:- | *:-:* ) # input from stdin
15111 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15112 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15113 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15114 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15115 * ) ac_file_in=$ac_file.in ;;
15118 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15119 echo "$as_me: creating $ac_file" >&6;}
15121 # First look for the input files in the build tree, otherwise in the
15123 ac_file_inputs=`IFS=:
15124 for f in $ac_file_in; do
15126 -) echo $tmp/stdin ;;
15128 # Absolute (can't be DOS-style, as IFS=:)
15129 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15130 echo "$as_me: error: cannot find input file: $f" >&2;}
15131 { (exit 1); exit 1; }; }
15132 # Do quote $f, to prevent DOS paths from being IFS'd.
15135 if test -f "$f"; then
15138 elif test -f "$srcdir/$f"; then
15143 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15144 echo "$as_me: error: cannot find input file: $f" >&2;}
15145 { (exit 1); exit 1; }; }
15148 done` || { (exit 1); exit 1; }
15149 # Remove the trailing spaces.
15150 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15154 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15155 # `conftest.undefs', that substitutes the proper values into
15156 # config.h.in to produce config.h. The first handles `#define'
15157 # templates, and the second `#undef' templates.
15158 # And first: Protect against being on the right side of a sed subst in
15159 # config.status. Protect against being in an unquoted here document
15160 # in config.status.
15161 rm -f conftest.defines conftest.undefs
15162 # Using a here document instead of a string reduces the quoting nightmare.
15163 # Putting comments in sed scripts is not portable.
15165 # `end' is used to avoid that the second main sed command (meant for
15166 # 0-ary CPP macros) applies to n-ary macro definitions.
15167 # See the Autoconf documentation for `clear'.
15168 cat >confdef2sed.sed <<\_ACEOF
15173 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15175 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15178 # If some macros were called several times there might be several times
15179 # the same #defines, which is useless. Nevertheless, we may not want to
15180 # sort them, since we want the *last* AC-DEFINE to be honored.
15181 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15182 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15183 rm -f confdef2sed.sed
15185 # This sed command replaces #undef with comments. This is necessary, for
15186 # example, in the case of _POSIX_SOURCE, which is predefined and required
15187 # on some systems where configure will not decide to define it.
15188 cat >>conftest.undefs <<\_ACEOF
15189 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15192 # Break up conftest.defines because some shells have a limit on the size
15193 # of here documents, and old seds have small limits too (100 cmds).
15194 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15195 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15196 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15197 echo ' :' >>$CONFIG_STATUS
15198 rm -f conftest.tail
15199 while grep . conftest.defines >/dev/null
15201 # Write a limited-size here document to $tmp/defines.sed.
15202 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15203 # Speed up: don't consider the non `#define' lines.
15204 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15205 # Work around the forget-to-reset-the-flag bug.
15206 echo 't clr' >>$CONFIG_STATUS
15207 echo ': clr' >>$CONFIG_STATUS
15208 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15210 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15212 mv $tmp/out $tmp/in
15214 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15215 rm -f conftest.defines
15216 mv conftest.tail conftest.defines
15218 rm -f conftest.defines
15219 echo ' fi # grep' >>$CONFIG_STATUS
15220 echo >>$CONFIG_STATUS
15222 # Break up conftest.undefs because some shells have a limit on the size
15223 # of here documents, and old seds have small limits too (100 cmds).
15224 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15225 rm -f conftest.tail
15226 while grep . conftest.undefs >/dev/null
15228 # Write a limited-size here document to $tmp/undefs.sed.
15229 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15230 # Speed up: don't consider the non `#undef'
15231 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15232 # Work around the forget-to-reset-the-flag bug.
15233 echo 't clr' >>$CONFIG_STATUS
15234 echo ': clr' >>$CONFIG_STATUS
15235 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15237 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15239 mv $tmp/out $tmp/in
15241 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15242 rm -f conftest.undefs
15243 mv conftest.tail conftest.undefs
15245 rm -f conftest.undefs
15247 cat >>$CONFIG_STATUS <<\_ACEOF
15248 # Let's still pretend it is `configure' which instantiates (i.e., don't
15249 # use $as_me), people would be surprised to read:
15250 # /* config.h. Generated by config.status. */
15251 if test x"$ac_file" = x-; then
15252 echo "/* Generated by configure. */" >$tmp/config.h
15254 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15256 cat $tmp/in >>$tmp/config.h
15258 if test x"$ac_file" != x-; then
15259 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15260 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15261 echo "$as_me: $ac_file is unchanged" >&6;}
15263 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15264 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15265 X"$ac_file" : 'X\(//\)[^/]' \| \
15266 X"$ac_file" : 'X\(//\)$' \| \
15267 X"$ac_file" : 'X\(/\)' \| \
15268 . : '\(.\)' 2>/dev/null ||
15270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15272 /^X\(\/\/\)$/{ s//\1/; q; }
15273 /^X\(\/\).*/{ s//\1/; q; }
15275 { if $as_mkdir_p; then
15280 while test ! -d "$as_dir"; do
15281 as_dirs="$as_dir $as_dirs"
15282 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15284 X"$as_dir" : 'X\(//\)[^/]' \| \
15285 X"$as_dir" : 'X\(//\)$' \| \
15286 X"$as_dir" : 'X\(/\)' \| \
15287 . : '\(.\)' 2>/dev/null ||
15289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15291 /^X\(\/\/\)$/{ s//\1/; q; }
15292 /^X\(\/\).*/{ s//\1/; q; }
15295 test ! -n "$as_dirs" || mkdir $as_dirs
15296 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15297 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15298 { (exit 1); exit 1; }; }; }
15301 mv $tmp/config.h $ac_file
15305 rm -f $tmp/config.h
15310 cat >>$CONFIG_STATUS <<\_ACEOF
15312 { (exit 0); exit 0; }
15314 chmod +x $CONFIG_STATUS
15315 ac_clean_files=$ac_clean_files_save
15318 # configure is writing to config.log, and then calls config.status.
15319 # config.status does its own redirection, appending to config.log.
15320 # Unfortunately, on DOS this fails, as config.log is still kept open
15321 # by configure, so config.status won't be able to write to it; its
15322 # output is simply discarded. So we exec the FD to /dev/null,
15323 # effectively closing config.log, so it can be properly (re)opened and
15324 # appended to by config.status. When coming back to configure, we
15325 # need to make the FD available again.
15326 if test "$no_create" != yes; then
15328 ac_config_status_args=
15329 test "$silent" = yes &&
15330 ac_config_status_args="$ac_config_status_args --quiet"
15332 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15334 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15335 # would make configure fail if this is the last instruction.
15336 $ac_cs_success || { (exit 1); exit 1; }
15340 #gui.src/portmon.src/Makefile
15343 # End of configure/configure.in