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 --enable-z80 compile simulator for Z80
1027 --enable-hc08 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 .version; then
1540 VERSION=`cat .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" || test ! -s conftest.err'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; } &&
2032 { ac_try='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2040 echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2046 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2049 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2050 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2051 GXX=`test $ac_compiler_gnu = yes && echo yes`
2052 ac_test_CXXFLAGS=${CXXFLAGS+set}
2053 ac_save_CXXFLAGS=$CXXFLAGS
2055 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2056 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2057 if test "${ac_cv_prog_cxx_g+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 cat >conftest.$ac_ext <<_ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h. */
2075 rm -f conftest.$ac_objext
2076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077 (eval $ac_compile) 2>conftest.er1
2079 grep -v '^ *+' conftest.er1 >conftest.err
2081 cat conftest.err >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); } &&
2084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2096 ac_cv_prog_cxx_g=yes
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2105 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2106 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2107 if test "$ac_test_CXXFLAGS" = set; then
2108 CXXFLAGS=$ac_save_CXXFLAGS
2109 elif test $ac_cv_prog_cxx_g = yes; then
2110 if test "$GXX" = yes; then
2116 if test "$GXX" = yes; then
2122 for ac_declaration in \
2124 'extern "C" void std::exit (int) throw (); using std::exit;' \
2125 'extern "C" void std::exit (int); using std::exit;' \
2126 'extern "C" void exit (int) throw ();' \
2127 'extern "C" void exit (int);' \
2130 cat >conftest.$ac_ext <<_ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>conftest.er1
2150 grep -v '^ *+' conftest.er1 >conftest.err
2152 cat conftest.err >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); } &&
2155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; } &&
2161 { ac_try='test -s conftest.$ac_objext'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175 cat >conftest.$ac_ext <<_ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2194 grep -v '^ *+' conftest.er1 >conftest.err
2196 cat conftest.err >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; } &&
2205 { ac_try='test -s conftest.$ac_objext'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; }; then
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2220 if test -n "$ac_declaration"; then
2221 echo '#ifdef __cplusplus' >>confdefs.h
2222 echo $ac_declaration >>confdefs.h
2223 echo '#endif' >>confdefs.h
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233 ac_cpp='$CXXCPP $CPPFLAGS'
2234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2237 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2238 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2239 if test -z "$CXXCPP"; then
2240 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 # Double quotes because CXXCPP needs to be expanded
2244 for CXXCPP in "$CXX -E" "/lib/cpp"
2247 for ac_cxx_preproc_warn_flag in '' yes
2249 # Use a header file that comes with gcc, so configuring glibc
2250 # with a fresh cross-compiler works.
2251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2252 # <limits.h> exists even on freestanding compilers.
2253 # On the NeXT, cc -E runs the code through the compiler's parser,
2254 # not just through cpp. "Syntax error" is here to catch this case.
2255 cat >conftest.$ac_ext <<_ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2262 # include <limits.h>
2264 # include <assert.h>
2268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2271 grep -v '^ *+' conftest.er1 >conftest.err
2273 cat conftest.err >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } >/dev/null; then
2276 if test -s conftest.err; then
2277 ac_cpp_err=$ac_cxx_preproc_warn_flag
2278 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2285 if test -z "$ac_cpp_err"; then
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2291 # Broken: fails on valid input.
2294 rm -f conftest.err conftest.$ac_ext
2296 # OK, works on sane cases. Now check whether non-existent headers
2297 # can be detected and how.
2298 cat >conftest.$ac_ext <<_ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2304 #include <ac_nonexistent.h>
2306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } >/dev/null; then
2314 if test -s conftest.err; then
2315 ac_cpp_err=$ac_cxx_preproc_warn_flag
2316 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2323 if test -z "$ac_cpp_err"; then
2324 # Broken: success on invalid input.
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 # Passes both tests.
2334 rm -f conftest.err conftest.$ac_ext
2337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2338 rm -f conftest.err conftest.$ac_ext
2339 if $ac_preproc_ok; then
2344 ac_cv_prog_CXXCPP=$CXXCPP
2347 CXXCPP=$ac_cv_prog_CXXCPP
2349 ac_cv_prog_CXXCPP=$CXXCPP
2351 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2352 echo "${ECHO_T}$CXXCPP" >&6
2354 for ac_cxx_preproc_warn_flag in '' yes
2356 # Use a header file that comes with gcc, so configuring glibc
2357 # with a fresh cross-compiler works.
2358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2359 # <limits.h> exists even on freestanding compilers.
2360 # On the NeXT, cc -E runs the code through the compiler's parser,
2361 # not just through cpp. "Syntax error" is here to catch this case.
2362 cat >conftest.$ac_ext <<_ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2369 # include <limits.h>
2371 # include <assert.h>
2375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2378 grep -v '^ *+' conftest.er1 >conftest.err
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } >/dev/null; then
2383 if test -s conftest.err; then
2384 ac_cpp_err=$ac_cxx_preproc_warn_flag
2385 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2392 if test -z "$ac_cpp_err"; then
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2398 # Broken: fails on valid input.
2401 rm -f conftest.err conftest.$ac_ext
2403 # OK, works on sane cases. Now check whether non-existent headers
2404 # can be detected and how.
2405 cat >conftest.$ac_ext <<_ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2411 #include <ac_nonexistent.h>
2413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2416 grep -v '^ *+' conftest.er1 >conftest.err
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } >/dev/null; then
2421 if test -s conftest.err; then
2422 ac_cpp_err=$ac_cxx_preproc_warn_flag
2423 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2430 if test -z "$ac_cpp_err"; then
2431 # Broken: success on invalid input.
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2437 # Passes both tests.
2441 rm -f conftest.err conftest.$ac_ext
2444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2445 rm -f conftest.err conftest.$ac_ext
2446 if $ac_preproc_ok; then
2449 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2450 See \`config.log' for more details." >&5
2451 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2452 See \`config.log' for more details." >&2;}
2453 { (exit 1); exit 1; }; }
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2464 if test -f $ac_dir/install-sh; then
2466 ac_install_sh="$ac_aux_dir/install-sh -c"
2468 elif test -f $ac_dir/install.sh; then
2470 ac_install_sh="$ac_aux_dir/install.sh -c"
2472 elif test -f $ac_dir/shtool; then
2474 ac_install_sh="$ac_aux_dir/shtool install -c"
2478 if test -z "$ac_aux_dir"; then
2479 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2480 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2481 { (exit 1); exit 1; }; }
2483 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2484 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2485 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2487 # Find a good install program. We prefer a C program (faster),
2488 # so one script is as good as another. But avoid the broken or
2489 # incompatible versions:
2490 # SysV /etc/install, /usr/sbin/install
2491 # SunOS /usr/etc/install
2492 # IRIX /sbin/install
2494 # AmigaOS /C/install, which installs bootblocks on floppy discs
2495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2498 # OS/2's system install, which has a completely different semantic
2499 # ./install, which can be erroneously created by make from ./install.sh.
2500 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2501 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2502 if test -z "$INSTALL"; then
2503 if test "${ac_cv_path_install+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 # Account for people who put trailing slashes in PATH elements.
2513 ./ | .// | /cC/* | \
2514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2518 # OSF1 and SCO ODT 3.0 have their own names for install.
2519 # Don't use installbsd from OSF since it installs stuff as root
2521 for ac_prog in ginstall scoinst install; do
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2524 if test $ac_prog = install &&
2525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # AIX install. It has an incompatible calling convention.
2528 elif test $ac_prog = install &&
2529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # program-specific install script used by HP pwplus--don't use.
2533 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2545 if test "${ac_cv_path_install+set}" = set; then
2546 INSTALL=$ac_cv_path_install
2548 # As a last resort, use the slow shell script. We don't cache a
2549 # path for INSTALL within a source directory, because that will
2550 # break other packages using the cache if that directory is
2551 # removed, or if the path is relative.
2552 INSTALL=$ac_install_sh
2555 echo "$as_me:$LINENO: result: $INSTALL" >&5
2556 echo "${ECHO_T}$INSTALL" >&6
2558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2559 # It thinks the first close brace ends the variable substitution.
2560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2569 echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571 if test "${ac_cv_prog_RANLIB+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 if test -n "$RANLIB"; then
2575 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 RANLIB=$ac_cv_prog_RANLIB
2594 if test -n "$RANLIB"; then
2595 echo "$as_me:$LINENO: result: $RANLIB" >&5
2596 echo "${ECHO_T}$RANLIB" >&6
2598 echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6
2603 if test -z "$ac_cv_prog_RANLIB"; then
2604 ac_ct_RANLIB=$RANLIB
2605 # Extract the first word of "ranlib", so it can be a program name with args.
2606 set dummy ranlib; ac_word=$2
2607 echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if test -n "$ac_ct_RANLIB"; then
2613 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 ac_cv_prog_ac_ct_RANLIB="ranlib"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2632 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2633 if test -n "$ac_ct_RANLIB"; then
2634 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2635 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2637 echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6
2641 RANLIB=$ac_ct_RANLIB
2643 RANLIB="$ac_cv_prog_RANLIB"
2647 # Extract the first word of "strip", so it can be a program name with args.
2648 set dummy strip; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_STRIP+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 if test -n "$STRIP"; then
2655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_STRIP="strip"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2674 STRIP=$ac_cv_prog_STRIP
2675 if test -n "$STRIP"; then
2676 echo "$as_me:$LINENO: result: $STRIP" >&5
2677 echo "${ECHO_T}$STRIP" >&6
2679 echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6
2685 # Check whether --enable-shared or --disable-shared was given.
2686 if test "${enable_shared+set}" = set; then
2687 enableval="$enable_shared"
2688 p=${PACKAGE-default}
2690 yes) enable_shared=yes ;;
2691 no) enable_shared=no ;;
2694 # Look at the argument we got. We use all the common list separators.
2695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2696 for pkg in $enableval; do
2697 if test "X$pkg" = "X$p"; then
2707 # Check whether --enable-static or --disable-static was given.
2708 if test "${enable_static+set}" = set; then
2709 enableval="$enable_static"
2710 p=${PACKAGE-default}
2712 yes) enable_static=yes ;;
2713 no) enable_static=no ;;
2716 # Look at the argument we got. We use all the common list separators.
2717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2718 for pkg in $enableval; do
2719 if test "X$pkg" = "X$p"; then
2729 # Check whether --enable-fast-install or --disable-fast-install was given.
2730 if test "${enable_fast_install+set}" = set; then
2731 enableval="$enable_fast_install"
2732 p=${PACKAGE-default}
2734 yes) enable_fast_install=yes ;;
2735 no) enable_fast_install=no ;;
2737 enable_fast_install=no
2738 # Look at the argument we got. We use all the common list separators.
2739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2740 for pkg in $enableval; do
2741 if test "X$pkg" = "X$p"; then
2742 enable_fast_install=yes
2749 enable_fast_install=yes
2751 # Make sure we can run config.sub.
2752 $ac_config_sub sun4 >/dev/null 2>&1 ||
2753 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2754 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2755 { (exit 1); exit 1; }; }
2757 echo "$as_me:$LINENO: checking build system type" >&5
2758 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2759 if test "${ac_cv_build+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 ac_cv_build_alias=$build_alias
2763 test -z "$ac_cv_build_alias" &&
2764 ac_cv_build_alias=`$ac_config_guess`
2765 test -z "$ac_cv_build_alias" &&
2766 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2767 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2768 { (exit 1); exit 1; }; }
2769 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2770 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2771 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2772 { (exit 1); exit 1; }; }
2775 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2776 echo "${ECHO_T}$ac_cv_build" >&6
2778 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2779 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2780 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2783 echo "$as_me:$LINENO: checking host system type" >&5
2784 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2785 if test "${ac_cv_host+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 ac_cv_host_alias=$host_alias
2789 test -z "$ac_cv_host_alias" &&
2790 ac_cv_host_alias=$ac_cv_build_alias
2791 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2792 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2793 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2794 { (exit 1); exit 1; }; }
2797 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2798 echo "${ECHO_T}$ac_cv_host" >&6
2800 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2801 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2802 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2813 echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815 if test "${ac_cv_prog_CC+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 if test -n "$CC"; then
2839 echo "$as_me:$LINENO: result: $CC" >&5
2840 echo "${ECHO_T}$CC" >&6
2842 echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6
2847 if test -z "$ac_cv_prog_CC"; then
2849 # Extract the first word of "gcc", so it can be a program name with args.
2850 set dummy gcc; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$ac_ct_CC"; then
2857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_ac_ct_CC="gcc"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876 if test -n "$ac_ct_CC"; then
2877 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2878 echo "${ECHO_T}$ac_ct_CC" >&6
2880 echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2889 if test -z "$CC"; then
2890 if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2892 set dummy ${ac_tool_prefix}cc; ac_word=$2
2893 echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2895 if test "${ac_cv_prog_CC+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908 ac_cv_prog_CC="${ac_tool_prefix}cc"
2909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 if test -n "$CC"; then
2919 echo "$as_me:$LINENO: result: $CC" >&5
2920 echo "${ECHO_T}$CC" >&6
2922 echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6
2927 if test -z "$ac_cv_prog_CC"; then
2929 # Extract the first word of "cc", so it can be a program name with args.
2930 set dummy cc; ac_word=$2
2931 echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 if test -n "$ac_ct_CC"; then
2937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_ac_ct_CC="cc"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956 if test -n "$ac_ct_CC"; then
2957 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2958 echo "${ECHO_T}$ac_ct_CC" >&6
2960 echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6
2970 if test -z "$CC"; then
2971 # Extract the first word of "cc", so it can be a program name with args.
2972 set dummy cc; ac_word=$2
2973 echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975 if test "${ac_cv_prog_CC+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2990 ac_prog_rejected=yes
2994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 if test $ac_prog_rejected = yes; then
3001 # We found a bogon in the path, so make sure we never use it.
3002 set dummy $ac_cv_prog_CC
3004 if test $# != 0; then
3005 # We chose a different compiler from the bogus one.
3006 # However, it has the same basename, so the bogon will be chosen
3007 # first if we set CC to just the basename; use the full file name.
3009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3015 if test -n "$CC"; then
3016 echo "$as_me:$LINENO: result: $CC" >&5
3017 echo "${ECHO_T}$CC" >&6
3019 echo "$as_me:$LINENO: result: no" >&5
3020 echo "${ECHO_T}no" >&6
3024 if test -z "$CC"; then
3025 if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3030 echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032 if test "${ac_cv_prog_CC+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 if test -n "$CC"; then
3056 echo "$as_me:$LINENO: result: $CC" >&5
3057 echo "${ECHO_T}$CC" >&6
3059 echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3063 test -n "$CC" && break
3066 if test -z "$CC"; then
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_ac_ct_CC="$ac_prog"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097 if test -n "$ac_ct_CC"; then
3098 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3099 echo "${ECHO_T}$ac_ct_CC" >&6
3101 echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3105 test -n "$ac_ct_CC" && break
3114 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details." >&2;}
3118 { (exit 1); exit 1; }; }
3120 # Provide some information about the compiler.
3121 echo "$as_me:$LINENO:" \
3122 "checking for C compiler version" >&5
3123 ac_compiler=`set X $ac_compile; echo $2`
3124 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3125 (eval $ac_compiler --version </dev/null >&5) 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }
3129 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3130 (eval $ac_compiler -v </dev/null >&5) 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }
3134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3135 (eval $ac_compiler -V </dev/null >&5) 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }
3140 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3141 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3142 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 cat >conftest.$ac_ext <<_ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3163 rm -f conftest.$ac_objext
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>conftest.er1
3167 grep -v '^ *+' conftest.er1 >conftest.err
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3195 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3196 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3197 GCC=`test $ac_compiler_gnu = yes && echo yes`
3198 ac_test_CFLAGS=${CFLAGS+set}
3199 ac_save_CFLAGS=$CFLAGS
3201 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try='test -s conftest.$ac_objext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3252 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3253 if test "$ac_test_CFLAGS" = set; then
3254 CFLAGS=$ac_save_CFLAGS
3255 elif test $ac_cv_prog_cc_g = yes; then
3256 if test "$GCC" = yes; then
3262 if test "$GCC" = yes; then
3268 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3269 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3270 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 ac_cv_prog_cc_stdc=no
3275 cat >conftest.$ac_ext <<_ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3283 #include <sys/types.h>
3284 #include <sys/stat.h>
3285 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3286 struct buf { int x; };
3287 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3288 static char *e (p, i)
3294 static char *f (char * (*g) (char **, int), char **p, ...)
3299 s = g (p, va_arg (v,int));
3304 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3305 function prototypes and stuff, but not '\xHH' hex character constants.
3306 These don't provoke an error unfortunately, instead are silently treated
3307 as 'x'. The following induces an error, until -std1 is added to get
3308 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3309 array size at least. It's necessary to write '\x00'==0 to get something
3310 that's true only with -std1. */
3311 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313 int test (int i, double x);
3314 struct s1 {int (*f) (int a);};
3315 struct s2 {int (*f) (double a);};
3316 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3327 # Don't try gcc -ansi; that turns off useful extensions and
3328 # breaks some systems' header files.
3329 # AIX -qlanglvl=ansi
3330 # Ultrix and OSF/1 -std1
3331 # HP-UX 10.20 and later -Ae
3332 # HP-UX older versions -Aa -D_HPUX_SOURCE
3333 # SVR4 -Xc -D__EXTENSIONS__
3334 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339 (eval $ac_compile) 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_cv_prog_cc_stdc=$ac_arg
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3365 rm -f conftest.err conftest.$ac_objext
3367 rm -f conftest.$ac_ext conftest.$ac_objext
3372 case "x$ac_cv_prog_cc_stdc" in
3374 echo "$as_me:$LINENO: result: none needed" >&5
3375 echo "${ECHO_T}none needed" >&6 ;;
3377 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3378 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3379 CC="$CC $ac_cv_prog_cc_stdc" ;;
3382 # Some people use a C++ compiler to compile C. Since we use `exit',
3383 # in C++ we need to declare it. In case someone uses the same compiler
3384 # for both compiling C and C++ we need to have the C++ compiler decide
3385 # the declaration of exit, since it's the most demanding environment.
3386 cat >conftest.$ac_ext <<_ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>conftest.er1
3395 grep -v '^ *+' conftest.er1 >conftest.err
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 for ac_declaration in \
3414 'extern "C" void std::exit (int) throw (); using std::exit;' \
3415 'extern "C" void std::exit (int); using std::exit;' \
3416 'extern "C" void exit (int) throw ();' \
3417 'extern "C" void exit (int);' \
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3436 rm -f conftest.$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>conftest.er1
3484 grep -v '^ *+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510 if test -n "$ac_declaration"; then
3511 echo '#ifdef __cplusplus' >>confdefs.h
3512 echo $ac_declaration >>confdefs.h
3513 echo '#endif' >>confdefs.h
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 # Find the correct PATH separator. Usually this is `:', but
3529 # DJGPP uses `;' like DOS.
3530 if test "X${PATH_SEPARATOR+set}" != Xset; then
3531 UNAME=${UNAME-`uname 2>/dev/null`}
3533 *-DOS) lt_cv_sys_path_separator=';' ;;
3534 *) lt_cv_sys_path_separator=':' ;;
3536 PATH_SEPARATOR=$lt_cv_sys_path_separator
3540 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3541 if test "${with_gnu_ld+set}" = set; then
3542 withval="$with_gnu_ld"
3543 test "$withval" = no || with_gnu_ld=yes
3548 if test "$GCC" = yes; then
3549 # Check if gcc -print-prog-name=ld gives a path.
3550 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3551 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3554 # gcc leaves a trailing carriage return which upsets mingw
3555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3560 # Accept absolute paths.
3561 [\\/]* | [A-Za-z]:[\\/]*)
3562 re_direlt='/[^/][^/]*/\.\./'
3563 # Canonicalize the path of ld
3564 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3565 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3566 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3568 test -z "$LD" && LD="$ac_prog"
3571 # If it fails, then pretend we aren't using GCC.
3575 # If it is relative, then search for the first ld in PATH.
3579 elif test "$with_gnu_ld" = yes; then
3580 echo "$as_me:$LINENO: checking for GNU ld" >&5
3581 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3583 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3584 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3586 if test "${lt_cv_path_LD+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test -z "$LD"; then
3590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3591 for ac_dir in $PATH; do
3592 test -z "$ac_dir" && ac_dir=.
3593 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3594 lt_cv_path_LD="$ac_dir/$ac_prog"
3595 # Check to see if the program is GNU ld. I'd rather use --version,
3596 # but apparently some GNU ld's only accept -v.
3597 # Break only if it was the GNU/non-GNU ld that we prefer.
3598 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3599 test "$with_gnu_ld" != no && break
3601 test "$with_gnu_ld" != yes && break
3607 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3612 if test -n "$LD"; then
3613 echo "$as_me:$LINENO: result: $LD" >&5
3614 echo "${ECHO_T}$LD" >&6
3616 echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6
3619 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3620 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3621 { (exit 1); exit 1; }; }
3622 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3623 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3624 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3628 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3629 lt_cv_prog_gnu_ld=yes
3631 lt_cv_prog_gnu_ld=no
3634 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3635 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3636 with_gnu_ld=$lt_cv_prog_gnu_ld
3639 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3640 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3641 if test "${lt_cv_ld_reload_flag+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 lt_cv_ld_reload_flag='-r'
3646 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3647 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3648 reload_flag=$lt_cv_ld_reload_flag
3649 test -n "$reload_flag" && reload_flag=" $reload_flag"
3651 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3652 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3653 if test "${lt_cv_path_NM+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 if test -n "$NM"; then
3657 # Let the user override the test.
3660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3661 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3662 test -z "$ac_dir" && ac_dir=.
3663 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3664 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3665 # Check to see if the nm accepts a BSD-compat flag.
3666 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3667 # nm: unknown option "B" ignored
3668 # Tru64's nm complains that /dev/null is an invalid object file
3669 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3670 lt_cv_path_NM="$tmp_nm -B"
3672 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3673 lt_cv_path_NM="$tmp_nm -p"
3676 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3677 continue # so that we can try to find one that supports BSD flags
3682 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3687 echo "$as_me:$LINENO: result: $NM" >&5
3688 echo "${ECHO_T}$NM" >&6
3690 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3691 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3693 if test "$LN_S" = "ln -s"; then
3694 echo "$as_me:$LINENO: result: yes" >&5
3695 echo "${ECHO_T}yes" >&6
3697 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3698 echo "${ECHO_T}no, using $LN_S" >&6
3701 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3702 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3703 if test "${lt_cv_deplibs_check_method+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 lt_cv_file_magic_cmd='$MAGIC_CMD'
3707 lt_cv_file_magic_test_file=
3708 lt_cv_deplibs_check_method='unknown'
3709 # Need to set the preceding variable on all platforms that support
3710 # interlibrary dependencies.
3711 # 'none' -- dependencies not supported.
3712 # `unknown' -- same as none, but documents that we really don't know.
3713 # 'pass_all' -- all dependencies passed with no checks.
3714 # 'test_compile' -- check by making test program.
3715 # 'file_magic [[regex]]' -- check by looking for files in library path
3716 # which responds to the $file_magic_cmd with a given egrep regex.
3717 # If you have `file' or equivalent on your system and you're not sure
3718 # whether `pass_all' will *always* work, you probably want this one.
3722 lt_cv_deplibs_check_method=pass_all
3726 lt_cv_deplibs_check_method=pass_all
3730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3731 lt_cv_file_magic_cmd='/usr/bin/file -L'
3732 lt_cv_file_magic_test_file=/shlib/libc.so
3735 cygwin* | mingw* | pw32*)
3736 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3737 lt_cv_file_magic_cmd='$OBJDUMP -f'
3740 darwin* | rhapsody*)
3741 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3742 lt_cv_file_magic_cmd='/usr/bin/file -L'
3744 rhapsody* | darwin1.[012])
3745 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3748 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3754 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3757 # Not sure whether the presence of OpenBSD here was a mistake.
3758 # Let's accept both of them until this is cleared up.
3759 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3760 lt_cv_file_magic_cmd=/usr/bin/file
3761 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3765 lt_cv_deplibs_check_method=pass_all
3770 lt_cv_deplibs_check_method=pass_all
3774 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3775 lt_cv_file_magic_cmd=/usr/bin/file
3776 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3779 irix5* | irix6* | nonstopux*)
3781 irix5* | nonstopux*)
3782 # this will be overridden with pass_all, but let us keep it just in case
3783 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3787 *-32|*"-32 ") libmagic=32-bit;;
3788 *-n32|*"-n32 ") libmagic=N32;;
3789 *-64|*"-64 ") libmagic=64-bit;;
3790 *) libmagic=never-match;;
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 ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3796 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3797 lt_cv_deplibs_check_method=pass_all
3800 # This must be Linux ELF.
3803 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3804 lt_cv_deplibs_check_method=pass_all ;;
3806 # glibc up to 2.1.1 does not perform some relocations on ARM
3807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3809 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3813 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3814 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3816 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3822 lt_cv_file_magic_cmd=/usr/bin/file
3823 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3827 lt_cv_file_magic_cmd=/usr/bin/file
3828 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3832 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3836 osf3* | osf4* | osf5*)
3837 # this will be overridden with pass_all, but let us keep it just in case
3838 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3839 lt_cv_file_magic_test_file=/shlib/libc.so
3840 lt_cv_deplibs_check_method=pass_all
3844 lt_cv_deplibs_check_method=pass_all
3848 lt_cv_deplibs_check_method=pass_all
3849 lt_cv_file_magic_test_file=/lib/libc.so
3852 sysv5uw[78]* | sysv4*uw2*)
3853 lt_cv_deplibs_check_method=pass_all
3856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3857 case $host_vendor in
3859 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]'
3860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3863 lt_cv_deplibs_check_method=pass_all
3866 lt_cv_file_magic_cmd='/bin/file'
3867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3870 lt_cv_file_magic_cmd='/bin/file'
3871 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3872 lt_cv_file_magic_test_file=/lib/libc.so
3879 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3880 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3881 file_magic_cmd=$lt_cv_file_magic_cmd
3882 deplibs_check_method=$lt_cv_deplibs_check_method
3891 # Check for command to grab the raw symbol name followed by C symbol from nm.
3892 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3893 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3894 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 # These are sane defaults that work on at least a few old systems.
3899 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3901 # Character class describing NM global symbol codes.
3902 symcode='[BCDEGRST]'
3904 # Regexp to match symbols that can be accessed directly from C.
3905 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3907 # Transform the above into a raw symbol and a C symbol.
3908 symxfrm='\1 \2\3 \3'
3910 # Transform an extracted symbol line into a proper C declaration
3911 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3913 # Transform an extracted symbol line into symbol name and symbol address
3914 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'"
3916 # Define system-specific variables.
3921 cygwin* | mingw* | pw32*)
3922 symcode='[ABCDGISTW]'
3924 hpux*) # Its linker distinguishes data from code symbols
3925 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3926 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'"
3929 symcode='[BCDEGRST]'
3939 # Handle CRLF in mingw tool chain
3943 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3947 # If we're using GNU nm, then use its standard symbol codes.
3948 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3949 symcode='[ABCDGISTW]'
3952 # Try without a prefix undercore, then with it.
3953 for ac_symprfx in "" "_"; do
3955 # Write the raw and C identifiers.
3956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3958 # Check to see that the pipe works correctly.
3961 cat > conftest.$ac_ext <<EOF
3966 void nm_test_func(){}
3970 int main(){nm_test_var='a';nm_test_func();return(0);}
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; then
3978 # Now try to grab the symbols.
3980 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3981 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && test -s "$nlist"; then
3985 # Try sorting and uniquifying the output.
3986 if sort "$nlist" | uniq > "$nlist"T; then
3987 mv -f "$nlist"T "$nlist"
3992 # Make sure that we snagged all the symbols we need.
3993 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3994 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3995 cat <<EOF > conftest.$ac_ext
4001 # Now generate the symbol file.
4002 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4004 cat <<EOF >> conftest.$ac_ext
4005 #if defined (__STDC__) && __STDC__
4006 # define lt_ptr void *
4008 # define lt_ptr char *
4012 /* The mapping between symbol names and symbols. */
4017 lt_preloaded_symbols[] =
4020 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4021 cat <<\EOF >> conftest.$ac_ext
4029 # Now try linking the two files.
4030 mv conftest.$ac_objext conftstm.$ac_objext
4032 save_CFLAGS="$CFLAGS"
4033 LIBS="conftstm.$ac_objext"
4034 CFLAGS="$CFLAGS$no_builtin_flag"
4035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4036 (eval $ac_link) 2>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } && test -s conftest; then
4043 CFLAGS="$save_CFLAGS"
4045 echo "cannot find nm_test_func in $nlist" >&5
4048 echo "cannot find nm_test_var in $nlist" >&5
4051 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4054 echo "$progname: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4057 rm -f conftest* conftst*
4059 # Do not use the global_symbol_pipe unless it works.
4060 if test "$pipe_works" = yes; then
4063 lt_cv_sys_global_symbol_pipe=
4069 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4070 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4071 global_symbol_to_cdecl=
4072 global_symbol_to_c_name_address=
4074 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4075 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4077 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4079 echo "$as_me:$LINENO: result: failed" >&5
4080 echo "${ECHO_T}failed" >&6
4082 echo "$as_me:$LINENO: result: ok" >&5
4083 echo "${ECHO_T}ok" >&6
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4092 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4093 # On Suns, sometimes $CPP names a directory.
4094 if test -n "$CPP" && test -d "$CPP"; then
4097 if test -z "$CPP"; then
4098 if test "${ac_cv_prog_CPP+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 # Double quotes because CPP needs to be expanded
4102 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4105 for ac_c_preproc_warn_flag in '' yes
4107 # Use a header file that comes with gcc, so configuring glibc
4108 # with a fresh cross-compiler works.
4109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4110 # <limits.h> exists even on freestanding compilers.
4111 # On the NeXT, cc -E runs the code through the compiler's parser,
4112 # not just through cpp. "Syntax error" is here to catch this case.
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4120 # include <limits.h>
4122 # include <assert.h>
4126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4129 grep -v '^ *+' conftest.er1 >conftest.err
4131 cat conftest.err >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } >/dev/null; then
4134 if test -s conftest.err; then
4135 ac_cpp_err=$ac_c_preproc_warn_flag
4136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4143 if test -z "$ac_cpp_err"; then
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 # Broken: fails on valid input.
4152 rm -f conftest.err conftest.$ac_ext
4154 # OK, works on sane cases. Now check whether non-existent headers
4155 # can be detected and how.
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 #include <ac_nonexistent.h>
4164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4167 grep -v '^ *+' conftest.er1 >conftest.err
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } >/dev/null; then
4172 if test -s conftest.err; then
4173 ac_cpp_err=$ac_c_preproc_warn_flag
4174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4181 if test -z "$ac_cpp_err"; then
4182 # Broken: success on invalid input.
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 # Passes both tests.
4192 rm -f conftest.err conftest.$ac_ext
4195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4196 rm -f conftest.err conftest.$ac_ext
4197 if $ac_preproc_ok; then
4209 echo "$as_me:$LINENO: result: $CPP" >&5
4210 echo "${ECHO_T}$CPP" >&6
4212 for ac_c_preproc_warn_flag in '' yes
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4227 # include <limits.h>
4229 # include <assert.h>
4233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4236 grep -v '^ *+' conftest.er1 >conftest.err
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } >/dev/null; then
4241 if test -s conftest.err; then
4242 ac_cpp_err=$ac_c_preproc_warn_flag
4243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4250 if test -z "$ac_cpp_err"; then
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4256 # Broken: fails on valid input.
4259 rm -f conftest.err conftest.$ac_ext
4261 # OK, works on sane cases. Now check whether non-existent headers
4262 # can be detected and how.
4263 cat >conftest.$ac_ext <<_ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <ac_nonexistent.h>
4271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274 grep -v '^ *+' conftest.er1 >conftest.err
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } >/dev/null; then
4279 if test -s conftest.err; then
4280 ac_cpp_err=$ac_c_preproc_warn_flag
4281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4288 if test -z "$ac_cpp_err"; then
4289 # Broken: success on invalid input.
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 # Passes both tests.
4299 rm -f conftest.err conftest.$ac_ext
4302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4303 rm -f conftest.err conftest.$ac_ext
4304 if $ac_preproc_ok; then
4307 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4308 See \`config.log' for more details." >&5
4309 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4310 See \`config.log' for more details." >&2;}
4311 { (exit 1); exit 1; }; }
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 echo "$as_me:$LINENO: checking for egrep" >&5
4322 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4323 if test "${ac_cv_prog_egrep+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4327 then ac_cv_prog_egrep='grep -E'
4328 else ac_cv_prog_egrep='egrep'
4331 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4332 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4333 EGREP=$ac_cv_prog_egrep
4336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1 >conftest.err
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; } &&
4375 { ac_try='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_header_stdc=yes
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_header_stdc=no
4388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4390 if test $ac_cv_header_stdc = yes; then
4391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4402 $EGREP "memchr" >/dev/null 2>&1; then
4405 ac_cv_header_stdc=no
4411 if test $ac_cv_header_stdc = yes; then
4412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4413 cat >conftest.$ac_ext <<_ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "free" >/dev/null 2>&1; then
4426 ac_cv_header_stdc=no
4432 if test $ac_cv_header_stdc = yes; then
4433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4434 if test "$cross_compiling" = yes; then
4437 cat >conftest.$ac_ext <<_ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4444 #if ((' ' & 0x0FF) == 0x020)
4445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4448 # define ISLOWER(c) \
4449 (('a' <= (c) && (c) <= 'i') \
4450 || ('j' <= (c) && (c) <= 'r') \
4451 || ('s' <= (c) && (c) <= 'z'))
4452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4460 for (i = 0; i < 256; i++)
4461 if (XOR (islower (i), ISLOWER (i))
4462 || toupper (i) != TOUPPER (i))
4467 rm -f conftest$ac_exeext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469 (eval $ac_link) 2>&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4480 echo "$as_me: program exited with status $ac_status" >&5
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4485 ac_cv_header_stdc=no
4487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4492 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4493 if test $ac_cv_header_stdc = yes; then
4495 cat >>confdefs.h <<\_ACEOF
4496 #define STDC_HEADERS 1
4501 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4511 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4512 inttypes.h stdint.h unistd.h
4514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4515 echo "$as_me:$LINENO: checking for $ac_header" >&5
4516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 $ac_includes_default
4528 #include <$ac_header>
4530 rm -f conftest.$ac_objext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4532 (eval $ac_compile) 2>conftest.er1
4534 grep -v '^ *+' conftest.er1 >conftest.err
4536 cat conftest.err >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } &&
4539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try='test -s conftest.$ac_objext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 eval "$as_ac_Header=yes"
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 eval "$as_ac_Header=no"
4558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4563 cat >>confdefs.h <<_ACEOF
4564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573 for ac_header in dlfcn.h
4575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4577 echo "$as_me:$LINENO: checking for $ac_header" >&5
4578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4585 # Is the header compilable?
4586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 $ac_includes_default
4595 #include <$ac_header>
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599 (eval $ac_compile) 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_header_compiler=yes
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4623 ac_header_compiler=no
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4627 echo "${ECHO_T}$ac_header_compiler" >&6
4629 # Is the header present?
4630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 #include <$ac_header>
4640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } >/dev/null; then
4648 if test -s conftest.err; then
4649 ac_cpp_err=$ac_c_preproc_warn_flag
4650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4657 if test -z "$ac_cpp_err"; then
4658 ac_header_preproc=yes
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 ac_header_preproc=no
4665 rm -f conftest.err conftest.$ac_ext
4666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4667 echo "${ECHO_T}$ac_header_preproc" >&6
4669 # So? What about this header?
4670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4676 ac_header_preproc=yes
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4693 ## ------------------------------------------ ##
4694 ## Report this to the AC_PACKAGE_NAME lists. ##
4695 ## ------------------------------------------ ##
4698 sed "s/^/$as_me: WARNING: /" >&2
4701 echo "$as_me:$LINENO: checking for $ac_header" >&5
4702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 eval "$as_ac_Header=\$ac_header_preproc"
4708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4713 cat >>confdefs.h <<_ACEOF
4714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4725 # Only perform the check for file, if the check method requires it
4726 case $deplibs_check_method in
4728 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4729 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4730 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4731 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4739 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4742 ac_save_MAGIC_CMD="$MAGIC_CMD"
4743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4744 ac_dummy="/usr/bin:$PATH"
4745 for ac_dir in $ac_dummy; do
4746 test -z "$ac_dir" && ac_dir=.
4747 if test -f $ac_dir/${ac_tool_prefix}file; then
4748 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4749 if test -n "$file_magic_test_file"; then
4750 case $deplibs_check_method in
4752 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4755 egrep "$file_magic_regex" > /dev/null; then
4760 *** Warning: the command libtool uses to detect shared libraries,
4761 *** $file_magic_cmd, produces output that libtool cannot recognize.
4762 *** The result is that libtool may fail to recognize shared libraries
4763 *** as such. This will affect the creation of libtool libraries that
4764 *** depend on shared libraries, but programs linked with such libtool
4765 *** libraries will work regardless of this problem. Nevertheless, you
4766 *** may want to report the problem to your system manager and/or to
4767 *** bug-libtool@gnu.org
4777 MAGIC_CMD="$ac_save_MAGIC_CMD"
4782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4783 if test -n "$MAGIC_CMD"; then
4784 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4785 echo "${ECHO_T}$MAGIC_CMD" >&6
4787 echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4791 if test -z "$lt_cv_path_MAGIC_CMD"; then
4792 if test -n "$ac_tool_prefix"; then
4793 echo "$as_me:$LINENO: checking for file" >&5
4794 echo $ECHO_N "checking for file... $ECHO_C" >&6
4795 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4806 ac_save_MAGIC_CMD="$MAGIC_CMD"
4807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4808 ac_dummy="/usr/bin:$PATH"
4809 for ac_dir in $ac_dummy; do
4810 test -z "$ac_dir" && ac_dir=.
4811 if test -f $ac_dir/file; then
4812 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4813 if test -n "$file_magic_test_file"; then
4814 case $deplibs_check_method in
4816 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4819 egrep "$file_magic_regex" > /dev/null; then
4824 *** Warning: the command libtool uses to detect shared libraries,
4825 *** $file_magic_cmd, produces output that libtool cannot recognize.
4826 *** The result is that libtool may fail to recognize shared libraries
4827 *** as such. This will affect the creation of libtool libraries that
4828 *** depend on shared libraries, but programs linked with such libtool
4829 *** libraries will work regardless of this problem. Nevertheless, you
4830 *** may want to report the problem to your system manager and/or to
4831 *** bug-libtool@gnu.org
4841 MAGIC_CMD="$ac_save_MAGIC_CMD"
4846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4847 if test -n "$MAGIC_CMD"; then
4848 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4849 echo "${ECHO_T}$MAGIC_CMD" >&6
4851 echo "$as_me:$LINENO: result: no" >&5
4852 echo "${ECHO_T}no" >&6
4864 if test -n "$ac_tool_prefix"; then
4865 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4866 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4867 echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4869 if test "${ac_cv_prog_RANLIB+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 if test -n "$RANLIB"; then
4873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 RANLIB=$ac_cv_prog_RANLIB
4892 if test -n "$RANLIB"; then
4893 echo "$as_me:$LINENO: result: $RANLIB" >&5
4894 echo "${ECHO_T}$RANLIB" >&6
4896 echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6
4901 if test -z "$ac_cv_prog_RANLIB"; then
4902 ac_ct_RANLIB=$RANLIB
4903 # Extract the first word of "ranlib", so it can be a program name with args.
4904 set dummy ranlib; ac_word=$2
4905 echo "$as_me:$LINENO: checking for $ac_word" >&5
4906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4907 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 if test -n "$ac_ct_RANLIB"; then
4911 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920 ac_cv_prog_ac_ct_RANLIB="ranlib"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4930 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4931 if test -n "$ac_ct_RANLIB"; then
4932 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4933 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4935 echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6
4939 RANLIB=$ac_ct_RANLIB
4941 RANLIB="$ac_cv_prog_RANLIB"
4944 if test -n "$ac_tool_prefix"; then
4945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4946 set dummy ${ac_tool_prefix}strip; ac_word=$2
4947 echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4949 if test "${ac_cv_prog_STRIP+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 if test -n "$STRIP"; then
4953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 STRIP=$ac_cv_prog_STRIP
4972 if test -n "$STRIP"; then
4973 echo "$as_me:$LINENO: result: $STRIP" >&5
4974 echo "${ECHO_T}$STRIP" >&6
4976 echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6
4981 if test -z "$ac_cv_prog_STRIP"; then
4983 # Extract the first word of "strip", so it can be a program name with args.
4984 set dummy strip; ac_word=$2
4985 echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4987 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 if test -n "$ac_ct_STRIP"; then
4991 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_ac_ct_STRIP="strip"
5001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5010 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5011 if test -n "$ac_ct_STRIP"; then
5012 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5013 echo "${ECHO_T}$ac_ct_STRIP" >&6
5015 echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6
5021 STRIP="$ac_cv_prog_STRIP"
5028 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5029 if test "${enable_libtool_lock+set}" = set; then
5030 enableval="$enable_libtool_lock"
5033 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5035 # Some flags need to be propagated to the compiler or linker for good
5039 # Find out which ABI we are using.
5040 echo '#line 5040 "configure"' > conftest.$ac_ext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; then
5046 case `/usr/bin/file conftest.$ac_objext` in
5062 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5063 SAVE_CFLAGS="$CFLAGS"
5064 CFLAGS="$CFLAGS -belf"
5065 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5066 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5067 if test "${lt_cv_cc_needs_belf+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 ac_cpp='$CPP $CPPFLAGS'
5074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078 cat >conftest.$ac_ext <<_ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5093 rm -f conftest.$ac_objext conftest$ac_exeext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095 (eval $ac_link) 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 lt_cv_cc_needs_belf=yes
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 lt_cv_cc_needs_belf=no
5121 rm -f conftest.err conftest.$ac_objext \
5122 conftest$ac_exeext conftest.$ac_ext
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5130 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5131 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5132 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5133 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5134 CFLAGS="$SAVE_CFLAGS"
5141 # Sed substitution that helps us do robust quoting. It backslashifies
5142 # metacharacters that are still active within double-quoted strings.
5143 Xsed='sed -e s/^X//'
5144 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5146 # Same as above, but do not quote variable references.
5147 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5149 # Sed substitution to delay expansion of an escaped shell variable in a
5150 # double_quote_subst'ed string.
5151 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5157 default_ofile=libtool
5158 can_build_shared=yes
5160 # All known linkers require a `.a' archive for static linking (except M$VC,
5161 # which needs '.lib').
5163 ltmain="$ac_aux_dir/ltmain.sh"
5164 ofile="$default_ofile"
5165 with_gnu_ld="$lt_cv_prog_gnu_ld"
5166 need_locks="$enable_libtool_lock"
5169 old_CFLAGS="$CFLAGS"
5171 # Set sane defaults for various variables
5172 test -z "$AR" && AR=ar
5173 test -z "$AR_FLAGS" && AR_FLAGS=cru
5174 test -z "$AS" && AS=as
5175 test -z "$CC" && CC=cc
5176 test -z "$DLLTOOL" && DLLTOOL=dlltool
5177 test -z "$LD" && LD=ld
5178 test -z "$LN_S" && LN_S="ln -s"
5179 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5180 test -z "$NM" && NM=nm
5181 test -z "$OBJDUMP" && OBJDUMP=objdump
5182 test -z "$RANLIB" && RANLIB=:
5183 test -z "$STRIP" && STRIP=:
5184 test -z "$ac_objext" && ac_objext=o
5186 if test x"$host" != x"$build"; then
5187 ac_tool_prefix=${host_alias}-
5192 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5195 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5200 # AIX sometimes has problems with the GCC collect2 program. For some
5201 # reason, if we set the COLLECT_NAMES environment variable, the problems
5202 # vanish in a puff of smoke.
5203 if test "X${COLLECT_NAMES+set}" != Xset; then
5205 export COLLECT_NAMES
5210 # Determine commands to create old-style static archives.
5211 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5212 old_postinstall_cmds='chmod 644 $oldlib'
5213 old_postuninstall_cmds=
5215 if test -n "$RANLIB"; then
5218 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5221 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5224 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5227 # Allow CC to be a program name with arguments.
5231 ## FIXME: this should be a separate macro
5233 echo "$as_me:$LINENO: checking for objdir" >&5
5234 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5235 rm -f .libs 2>/dev/null
5236 mkdir .libs 2>/dev/null
5237 if test -d .libs; then
5240 # MS-DOS does not allow filenames that begin with a dot.
5243 rmdir .libs 2>/dev/null
5244 echo "$as_me:$LINENO: result: $objdir" >&5
5245 echo "${ECHO_T}$objdir" >&6
5250 ## FIXME: this should be a separate macro
5253 # Check whether --with-pic or --without-pic was given.
5254 if test "${with_pic+set}" = set; then
5260 test -z "$pic_mode" && pic_mode=default
5262 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5263 # in isolation, and that seeing it set (from the cache) indicates that
5264 # the associated values are set (in the cache) correctly too.
5265 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5266 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5267 if test "${lt_cv_prog_cc_pic+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 lt_cv_prog_cc_shlib=
5273 lt_cv_prog_cc_static=
5274 lt_cv_prog_cc_no_builtin=
5275 lt_cv_prog_cc_can_build_shared=$can_build_shared
5277 if test "$GCC" = yes; then
5278 lt_cv_prog_cc_wl='-Wl,'
5279 lt_cv_prog_cc_static='-static'
5283 # Below there is a dirty hack to force normal static linking with -ldl
5284 # The problem is because libdl dynamically linked with both libc and
5285 # libC (AIX C++ library), which obviously doesn't included in libraries
5286 # list by gcc. This cause undefined symbols with -static flags.
5287 # This hack allows C programs to be linked with "-static -ldl", but
5288 # not sure about C++ programs.
5289 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5292 # FIXME: we need at least 68020 code to build shared libraries, but
5293 # adding the `-m68020' flag to GCC prevents building anything better,
5295 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5297 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5298 # PIC is the default for these OSes.
5300 darwin* | rhapsody*)
5301 # PIC is the default on this platform
5302 # Common symbols not allowed in MH_DYLIB files
5303 lt_cv_prog_cc_pic='-fno-common'
5305 cygwin* | mingw* | pw32* | os2*)
5306 # This hack is so that the source file can tell whether it is being
5307 # built for inclusion in a dll (and should export symbols for example).
5308 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5311 if test -d /usr/nec; then
5312 lt_cv_prog_cc_pic=-Kconform_pic
5316 lt_cv_prog_cc_pic='-fPIC'
5320 # PORTME Check for PIC flags for the system compiler.
5322 aix3* | aix4* | aix5*)
5323 lt_cv_prog_cc_wl='-Wl,'
5324 # All AIX code is PIC.
5325 if test "$host_cpu" = ia64; then
5326 # AIX 5 now supports IA64 processor
5327 lt_cv_prog_cc_static='-Bstatic'
5329 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5333 hpux9* | hpux10* | hpux11*)
5334 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5335 lt_cv_prog_cc_wl='-Wl,'
5336 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5337 lt_cv_prog_cc_pic='+Z'
5340 irix5* | irix6* | nonstopux*)
5341 lt_cv_prog_cc_wl='-Wl,'
5342 lt_cv_prog_cc_static='-non_shared'
5343 # PIC (with -KPIC) is the default.
5346 cygwin* | mingw* | pw32* | os2*)
5347 # This hack is so that the source file can tell whether it is being
5348 # built for inclusion in a dll (and should export symbols for example).
5349 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5353 lt_cv_prog_cc_pic='-KPIC'
5354 lt_cv_prog_cc_static='-Bstatic'
5357 osf3* | osf4* | osf5*)
5358 # All OSF/1 code is PIC.
5359 lt_cv_prog_cc_wl='-Wl,'
5360 lt_cv_prog_cc_static='-non_shared'
5364 lt_cv_prog_cc_pic='-Kpic'
5365 lt_cv_prog_cc_static='-dn'
5366 lt_cv_prog_cc_shlib='-belf'
5370 lt_cv_prog_cc_pic='-KPIC'
5371 lt_cv_prog_cc_static='-Bstatic'
5372 lt_cv_prog_cc_wl='-Wl,'
5376 lt_cv_prog_cc_pic='-PIC'
5377 lt_cv_prog_cc_static='-Bstatic'
5378 lt_cv_prog_cc_wl='-Qoption ld '
5381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5382 lt_cv_prog_cc_pic='-KPIC'
5383 lt_cv_prog_cc_static='-Bstatic'
5384 if test "x$host_vendor" = xsni; then
5385 lt_cv_prog_cc_wl='-LD'
5387 lt_cv_prog_cc_wl='-Wl,'
5392 lt_cv_prog_cc_pic='-pic'
5393 lt_cv_prog_cc_static='-Bstatic'
5397 if test -d /usr/nec ;then
5398 lt_cv_prog_cc_pic='-Kconform_pic'
5399 lt_cv_prog_cc_static='-Bstatic'
5404 lt_cv_prog_cc_can_build_shared=no
5411 if test -z "$lt_cv_prog_cc_pic"; then
5412 echo "$as_me:$LINENO: result: none" >&5
5413 echo "${ECHO_T}none" >&6
5415 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5416 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5418 # Check to make sure the pic_flag actually works.
5419 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5420 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5421 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 save_CFLAGS="$CFLAGS"
5425 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>conftest.er1
5445 grep -v '^ *+' conftest.er1 >conftest.err
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; } &&
5456 { ac_try='test -s conftest.$ac_objext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5463 hpux9* | hpux10* | hpux11*)
5464 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5465 # they create non-PIC objects. So, if there were any warnings, we
5466 # assume that PIC is not supported.
5467 if test -s conftest.err; then
5468 lt_cv_prog_cc_pic_works=no
5470 lt_cv_prog_cc_pic_works=yes
5474 lt_cv_prog_cc_pic_works=yes
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 lt_cv_prog_cc_pic_works=no
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486 CFLAGS="$save_CFLAGS"
5491 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5493 lt_cv_prog_cc_can_build_shared=no
5495 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5498 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5499 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5504 # Check for any special shared library compilation flags.
5505 if test -n "$lt_cv_prog_cc_shlib"; then
5506 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5507 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5508 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5510 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5511 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5512 lt_cv_prog_cc_can_build_shared=no
5516 ## FIXME: this should be a separate macro
5518 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5519 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5520 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 lt_cv_prog_cc_static_works=no
5524 save_LDFLAGS="$LDFLAGS"
5525 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5526 cat >conftest.$ac_ext <<_ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 lt_cv_prog_cc_static_works=yes
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5568 rm -f conftest.err conftest.$ac_objext \
5569 conftest$ac_exeext conftest.$ac_ext
5570 LDFLAGS="$save_LDFLAGS"
5575 # Belt *and* braces to stop my trousers falling down:
5576 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5577 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5578 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5580 pic_flag="$lt_cv_prog_cc_pic"
5581 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5582 wl="$lt_cv_prog_cc_wl"
5583 link_static_flag="$lt_cv_prog_cc_static"
5584 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5585 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5590 ## FIXME: this should be a separate macro
5592 # Check to see if options -o and -c are simultaneously supported by compiler
5593 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5594 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5595 if test "${lt_cv_compiler_c_o+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 $rm -r conftest 2>/dev/null
5602 echo "int some_variable = 0;" > conftest.$ac_ext
5604 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5605 # that will create temporary files in the current directory regardless of
5606 # the output directory. Thus, making CWD read-only will cause this test
5607 # to fail, enabling locking or at least warning the user not to do parallel
5610 save_CFLAGS="$CFLAGS"
5611 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5613 if { (eval echo configure:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5614 # The compiler can only warn and ignore the option if not recognized
5615 # So say no if there are warnings
5616 if test -s out/conftest.err; then
5617 lt_cv_compiler_c_o=no
5619 lt_cv_compiler_c_o=yes
5622 # Append any errors to the config.log.
5623 cat out/conftest.err 1>&5
5624 lt_cv_compiler_c_o=no
5626 CFLAGS="$save_CFLAGS"
5632 $rm -r conftest 2>/dev/null
5636 compiler_c_o=$lt_cv_compiler_c_o
5637 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5638 echo "${ECHO_T}$compiler_c_o" >&6
5640 if test x"$compiler_c_o" = x"yes"; then
5641 # Check to see if we can write to a .lo
5642 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5643 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5644 if test "${lt_cv_compiler_o_lo+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 lt_cv_compiler_o_lo=no
5649 save_CFLAGS="$CFLAGS"
5650 CFLAGS="$CFLAGS -c -o conftest.lo"
5651 save_objext="$ac_objext"
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5663 int some_variable = 0;
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 # The compiler can only warn and ignore the option if not recognized
5690 # So say no if there are warnings
5691 if test -s conftest.err; then
5692 lt_cv_compiler_o_lo=no
5694 lt_cv_compiler_o_lo=yes
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5703 ac_objext="$save_objext"
5704 CFLAGS="$save_CFLAGS"
5708 compiler_o_lo=$lt_cv_compiler_o_lo
5709 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5710 echo "${ECHO_T}$compiler_o_lo" >&6
5717 ## FIXME: this should be a separate macro
5719 # Check to see if we can do hard links to lock some files if needed
5720 hard_links="nottested"
5721 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5722 # do not overwrite the value of need_locks provided by the user
5723 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5724 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5729 ln conftest.a conftest.b 2>&5 || hard_links=no
5730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5731 echo "$as_me:$LINENO: result: $hard_links" >&5
5732 echo "${ECHO_T}$hard_links" >&6
5733 if test "$hard_links" = no; then
5734 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5735 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5744 ## FIXME: this should be a separate macro
5746 if test "$GCC" = yes; then
5747 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5748 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5749 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5750 echo "int some_variable = 0;" > conftest.$ac_ext
5751 save_CFLAGS="$CFLAGS"
5752 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5753 compiler_rtti_exceptions=no
5754 cat >conftest.$ac_ext <<_ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5764 int some_variable = 0;
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>conftest.er1
5773 grep -v '^ *+' conftest.er1 >conftest.err
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; } &&
5784 { ac_try='test -s conftest.$ac_objext'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5790 # The compiler can only warn and ignore the option if not recognized
5791 # So say no if there are warnings
5792 if test -s conftest.err; then
5793 compiler_rtti_exceptions=no
5795 compiler_rtti_exceptions=yes
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5804 CFLAGS="$save_CFLAGS"
5805 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5806 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5808 if test "$compiler_rtti_exceptions" = "yes"; then
5809 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5811 no_builtin_flag=' -fno-builtin'
5817 ## FIXME: this should be a separate macro
5819 # See if the linker supports building shared libraries.
5820 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5821 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5823 allow_undefined_flag=
5825 need_lib_prefix=unknown
5826 need_version=unknown
5827 # when you set need_version to no, make sure it does not cause -set_version
5828 # flags to be left without arguments
5830 archive_expsym_cmds=
5831 old_archive_from_new_cmds=
5832 old_archive_from_expsyms_cmds=
5833 export_dynamic_flag_spec=
5834 whole_archive_flag_spec=
5835 thread_safe_flag_spec=
5836 hardcode_into_libs=no
5837 hardcode_libdir_flag_spec=
5838 hardcode_libdir_separator=
5841 hardcode_shlibpath_var=unsupported
5843 link_all_deplibs=unknown
5844 always_export_symbols=no
5845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5846 # include_expsyms should be a list of space-separated symbols to be *always*
5847 # included in the symbol list
5849 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5850 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5851 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5852 # as well as any symbol that contains `d'.
5853 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5854 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5855 # platforms (ab)use it in PIC code, but their linkers get confused if
5856 # the symbol is explicitly referenced. Since portable code cannot
5857 # rely on this symbol name, it's probably fine to never include it in
5858 # preloaded symbol tables.
5859 extract_expsyms_cmds=
5862 cygwin* | mingw* | pw32*)
5863 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5864 # When not using gcc, we currently assume that we are using
5865 # Microsoft Visual C++.
5866 if test "$GCC" != yes; then
5876 if test "$with_gnu_ld" = yes; then
5877 # If archive_cmds runs LD, not CC, wlarc should be empty
5880 # See if GNU ld supports shared libraries.
5882 aix3* | aix4* | aix5*)
5883 # On AIX, the GNU linker is very broken
5884 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5888 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5889 *** to be unable to reliably create shared libraries on AIX.
5890 *** Therefore, libtool is disabling shared libraries support. If you
5891 *** really care for shared libraries, you may want to modify your PATH
5892 *** so that a non-GNU linker is found, and then restart.
5898 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)'
5899 hardcode_libdir_flag_spec='-L$libdir'
5900 hardcode_minus_L=yes
5902 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5903 # that the semantics of dynamic libraries on AmigaOS, at least up
5904 # to version 4, is to share data among multiple programs linked
5905 # with the same dynamic library. Since this doesn't match the
5906 # behavior of shared libraries on other platforms, we can use
5912 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5913 allow_undefined_flag=unsupported
5914 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5915 # support --undefined. This deserves some investigation. FIXME
5916 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5922 cygwin* | mingw* | pw32*)
5923 # hardcode_libdir_flag_spec is actually meaningless, as there is
5924 # no search path for DLLs.
5925 hardcode_libdir_flag_spec='-L$libdir'
5926 allow_undefined_flag=unsupported
5927 always_export_symbols=yes
5929 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5930 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5931 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5932 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5933 else $CC -o impgen impgen.c ; fi)~
5934 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5936 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5938 # cygwin and mingw dlls have different entry points and sets of symbols
5940 # FIXME: what about values for MSVC?
5941 dll_entry=__cygwin_dll_entry@12
5942 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5946 dll_entry=_DllMainCRTStartup@12
5947 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5951 # mingw and cygwin differ, and it's simplest to just exclude the union
5952 # of the two symbol sets.
5953 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5955 # recent cygwin and mingw systems supply a stub DllMain which the user
5956 # can override, but on older systems we have to supply one (in ltdll.c)
5957 if test "x$lt_cv_need_dllmain" = "xyes"; then
5958 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5959 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~
5960 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5966 # Extract the symbol export list from an `--export-all' def file,
5967 # then regenerate the def file from the symbol export list, so that
5968 # the compiled dll only exports the symbol export list.
5969 # Be careful not to strip the DATA tag left be newer dlltools.
5970 export_symbols_cmds="$ltdll_cmds"'
5971 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5972 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5974 # If the export-symbols file already is a .def file (1st line
5975 # is EXPORTS), use it as is.
5976 # If DATA tags from a recent dlltool are present, honour them!
5977 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5978 cp $export_symbols $output_objdir/$soname-def;
5980 echo EXPORTS > $output_objdir/$soname-def;
5982 cat $export_symbols | while read symbol; do
5985 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5986 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5988 _lt_hint=`expr 1 + \$_lt_hint`;
5992 $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~
5993 $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~
5994 $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~
5995 $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~
5996 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6000 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6001 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6004 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6005 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6010 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6014 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6015 *** create shared libraries on Solaris systems. Therefore, libtool
6016 *** is disabling shared libraries support. We urge you to upgrade GNU
6017 *** binutils to release 2.9.1 or newer. Another option is to modify
6018 *** your PATH or compiler configuration so that the native linker is
6019 *** used, and then restart.
6022 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6031 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6034 hardcode_shlibpath_var=no
6038 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6047 if test "$ld_shlibs" = yes; then
6048 runpath_var=LD_RUN_PATH
6049 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6050 export_dynamic_flag_spec='${wl}--export-dynamic'
6052 cygwin* | mingw* | pw32*)
6053 # dlltool doesn't understand --whole-archive et. al.
6054 whole_archive_flag_spec=
6057 # ancient GNU ld didn't support --whole-archive et. al.
6058 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6059 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6061 whole_archive_flag_spec=
6067 # PORTME fill in a description of your system's linker (not GNU ld)
6070 allow_undefined_flag=unsupported
6071 always_export_symbols=yes
6072 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'
6073 # Note: this linker hardcodes the directories in LIBPATH if there
6074 # are no directories specified by -L.
6075 hardcode_minus_L=yes
6076 if test "$GCC" = yes && test -z "$link_static_flag"; then
6077 # Neither direct hardcoding nor static linking is supported with a
6079 hardcode_direct=unsupported
6084 if test "$host_cpu" = ia64; then
6085 # On IA64, the linker does run time linking by default, so we don't
6086 # have to do anything special.
6087 aix_use_runtimelinking=no
6088 exp_sym_flag='-Bexport'
6091 aix_use_runtimelinking=no
6093 # Test if we are trying to use run time linking or normal
6094 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6095 # need to do runtime linking.
6096 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6097 for ld_flag in $LDFLAGS; do
6098 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6099 aix_use_runtimelinking=yes
6105 exp_sym_flag='-bexport'
6106 no_entry_flag='-bnoentry'
6109 # When large executables or shared objects are built, AIX ld can
6110 # have problems creating the table of contents. If linking a library
6111 # or program results in "error TOC overflow" add -mminimal-toc to
6112 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6113 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6117 hardcode_libdir_separator=':'
6118 if test "$GCC" = yes; then
6119 case $host_os in aix4.[012]|aix4.[012].*)
6120 collect2name=`${CC} -print-prog-name=collect2`
6121 if test -f "$collect2name" && \
6122 strings "$collect2name" | grep resolve_lib_name >/dev/null
6124 # We have reworked collect2
6127 # We have old collect2
6128 hardcode_direct=unsupported
6129 # It fails to find uninstalled libraries when the uninstalled
6130 # path is not listed in the libpath. Setting hardcode_minus_L
6131 # to unsupported forces relinking
6132 hardcode_minus_L=yes
6133 hardcode_libdir_flag_spec='-L$libdir'
6134 hardcode_libdir_separator=
6138 shared_flag='-shared'
6141 if test "$host_cpu" = ia64; then
6142 shared_flag='${wl}-G'
6144 if test "$aix_use_runtimelinking" = yes; then
6145 shared_flag='${wl}-G'
6147 shared_flag='${wl}-bM:SRE'
6152 # It seems that -bexpall can do strange things, so it is better to
6153 # generate a list of symbols to export.
6154 always_export_symbols=yes
6155 if test "$aix_use_runtimelinking" = yes; then
6156 # Warning - without using the other runtime loading flags (-brtl),
6157 # -berok will link without error, but may produce a broken library.
6158 allow_undefined_flag='-berok'
6159 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6160 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"
6162 if test "$host_cpu" = ia64; then
6163 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6164 allow_undefined_flag="-z nodefs"
6165 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"
6167 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6168 # Warning - without using the other run time loading flags,
6169 # -berok will link without error, but may produce a broken library.
6170 allow_undefined_flag='${wl}-berok'
6171 # This is a bit strange, but is similar to how AIX traditionally builds
6172 # it's shared libraries.
6173 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'
6179 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)'
6180 hardcode_libdir_flag_spec='-L$libdir'
6181 hardcode_minus_L=yes
6182 # see comment about different semantics on the GNU ld section
6186 cygwin* | mingw* | pw32*)
6187 # When not using gcc, we currently assume that we are using
6188 # Microsoft Visual C++.
6189 # hardcode_libdir_flag_spec is actually meaningless, as there is
6190 # no search path for DLLs.
6191 hardcode_libdir_flag_spec=' '
6192 allow_undefined_flag=unsupported
6193 # Tell ltmain to make .lib files, not .a files.
6195 # FIXME: Setting linknames here is a bad hack.
6196 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6197 # The linker will automatically build a .lib file if we build a DLL.
6198 old_archive_from_new_cmds='true'
6199 # FIXME: Should let the user specify the lib program.
6200 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6201 fix_srcfile_path='`cygpath -w "$srcfile"`'
6204 darwin* | rhapsody*)
6206 rhapsody* | darwin1.[012])
6207 allow_undefined_flag='-undefined suppress'
6210 allow_undefined_flag='-flat_namespace -undefined suppress'
6213 # FIXME: Relying on posixy $() will cause problems for
6214 # cross-compilation, but unfortunately the echo tests do not
6215 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6216 # `"' quotes if we put them in here... so don't!
6217 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6218 # We need to add '_' to the symbols in $export_symbols first
6219 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6221 hardcode_shlibpath_var=no
6222 whole_archive_flag_spec='-all_load $convenience'
6229 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6230 # support. Future versions do this automatically, but an explicit c++rt0.o
6231 # does not break anything, and helps significantly (at the cost of a little
6234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6235 hardcode_libdir_flag_spec='-R$libdir'
6237 hardcode_shlibpath_var=no
6240 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6244 hardcode_minus_L=yes
6245 hardcode_shlibpath_var=no
6248 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6250 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6251 hardcode_libdir_flag_spec='-R$libdir'
6253 hardcode_shlibpath_var=no
6256 hpux9* | hpux10* | hpux11*)
6258 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' ;;
6259 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6262 hardcode_libdir_separator=:
6264 hardcode_minus_L=yes # Not in the search PATH, but as the default
6265 # location of the library.
6266 export_dynamic_flag_spec='${wl}-E'
6269 irix5* | irix6* | nonstopux*)
6270 if test "$GCC" = yes; then
6271 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'
6273 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'
6275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6276 hardcode_libdir_separator=:
6277 link_all_deplibs=yes
6281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6284 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6286 hardcode_libdir_flag_spec='-R$libdir'
6288 hardcode_shlibpath_var=no
6292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6295 hardcode_libdir_separator=:
6296 hardcode_shlibpath_var=no
6301 hardcode_shlibpath_var=no
6302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6303 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6305 export_dynamic_flag_spec='${wl}-E'
6308 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6310 hardcode_libdir_flag_spec='-R$libdir'
6313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6321 hardcode_libdir_flag_spec='-L$libdir'
6322 hardcode_minus_L=yes
6323 allow_undefined_flag=unsupported
6324 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'
6325 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6329 if test "$GCC" = yes; then
6330 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6331 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'
6333 allow_undefined_flag=' -expect_unresolved \*'
6334 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'
6336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6337 hardcode_libdir_separator=:
6340 osf4* | osf5*) # as osf3* with the addition of -msym flag
6341 if test "$GCC" = yes; then
6342 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6343 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'
6344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6346 allow_undefined_flag=' -expect_unresolved \*'
6347 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'
6348 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6349 $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'
6351 #Both c and cxx compiler support -rpath directly
6352 hardcode_libdir_flag_spec='-rpath $libdir'
6354 hardcode_libdir_separator=:
6358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6359 hardcode_shlibpath_var=no
6360 runpath_var=LD_RUN_PATH
6361 hardcode_runpath_var=yes
6362 export_dynamic_flag_spec='${wl}-Bexport'
6366 # gcc --version < 3.0 without binutils cannot create self contained
6367 # shared libraries reliably, requiring libgcc.a to resolve some of
6368 # the object symbols generated in some cases. Libraries that use
6369 # assert need libgcc.a to resolve __eprintf, for example. Linking
6370 # a copy of libgcc.a into every shared library to guarantee resolving
6371 # such symbols causes other problems: According to Tim Van Holder
6372 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6373 # (to the application) exception stack for one thing.
6374 no_undefined_flag=' -z defs'
6375 if test "$GCC" = yes; then
6376 case `$CC --version 2>/dev/null` in
6380 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6381 *** create self contained shared libraries on Solaris systems, without
6382 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6383 *** -no-undefined support, which will at least allow you to build shared
6384 *** libraries. However, you may find that when you link such libraries
6385 *** into an application without using GCC, you have to manually add
6386 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6387 *** upgrade to a newer version of GCC. Another option is to rebuild your
6388 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6395 # $CC -shared without GNU ld will not create a library from C++
6396 # object files and a static libstdc++, better avoid it by now
6397 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6398 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6400 hardcode_libdir_flag_spec='-R$libdir'
6401 hardcode_shlibpath_var=no
6403 solaris2.[0-5] | solaris2.[0-5].*) ;;
6404 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6405 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6407 link_all_deplibs=yes
6411 if test "x$host_vendor" = xsequent; then
6412 # Use $CC to link under sequent, because it throws in some extra .o
6413 # files that make .init and .fini sections work.
6414 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6416 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6418 hardcode_libdir_flag_spec='-L$libdir'
6420 hardcode_minus_L=yes
6421 hardcode_shlibpath_var=no
6425 if test "x$host_vendor" = xsno; then
6426 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6427 hardcode_direct=yes # is this really true???
6429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6430 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6432 runpath_var='LD_RUN_PATH'
6433 hardcode_shlibpath_var=no
6437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6438 hardcode_shlibpath_var=no
6439 export_dynamic_flag_spec='-Bexport'
6443 no_undefined_flag=' -z text'
6444 # $CC -shared without GNU ld will not create a library from C++
6445 # object files and a static libstdc++, better avoid it by now
6446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6447 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6449 hardcode_libdir_flag_spec=
6450 hardcode_shlibpath_var=no
6451 runpath_var='LD_RUN_PATH'
6455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6456 hardcode_libdir_flag_spec='-L$libdir'
6457 hardcode_shlibpath_var=no
6461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6462 hardcode_libdir_flag_spec='-L$libdir'
6463 hardcode_shlibpath_var=no
6467 if test -d /usr/nec; then
6468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6469 hardcode_shlibpath_var=no
6470 runpath_var=LD_RUN_PATH
6471 hardcode_runpath_var=yes
6477 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6480 hardcode_shlibpath_var=no
6481 hardcode_runpath_var=yes
6482 runpath_var=LD_RUN_PATH
6485 sysv5uw7* | unixware7*)
6486 no_undefined_flag='${wl}-z ${wl}text'
6487 if test "$GCC" = yes; then
6488 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6490 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6492 runpath_var='LD_RUN_PATH'
6493 hardcode_shlibpath_var=no
6501 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6502 echo "${ECHO_T}$ld_shlibs" >&6
6503 test "$ld_shlibs" = no && can_build_shared=no
6507 ## FIXME: this should be a separate macro
6509 # Check hardcoding attributes.
6510 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6511 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6513 if test -n "$hardcode_libdir_flag_spec" || \
6514 test -n "$runpath_var"; then
6516 # We can hardcode non-existant directories.
6517 if test "$hardcode_direct" != no &&
6518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6519 # have to relink, otherwise we might link with an installed library
6520 # when we should be linking with a yet-to-be-installed one
6521 ## test "$hardcode_shlibpath_var" != no &&
6522 test "$hardcode_minus_L" != no; then
6523 # Linking always hardcodes the temporary library directory.
6524 hardcode_action=relink
6526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6527 hardcode_action=immediate
6530 # We cannot hardcode anything, or else we can only hardcode existing
6532 hardcode_action=unsupported
6534 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6535 echo "${ECHO_T}$hardcode_action" >&6
6539 ## FIXME: this should be a separate macro
6543 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6544 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6545 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6546 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6547 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6548 echo "$as_me:$LINENO: result: yes" >&5
6549 echo "${ECHO_T}yes" >&6
6551 echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6
6557 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6558 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6560 ## FIXME: this should be a separate macro
6562 # PORTME Fill in your ld.so characteristics
6563 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6564 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6566 libname_spec='lib$name'
6573 shlibpath_overrides_runpath=unknown
6575 dynamic_linker="$host_os ld.so"
6576 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6582 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6583 shlibpath_var=LIBPATH
6585 # AIX has no versioning support, so we append a major version to the name.
6586 soname_spec='${libname}${release}.so$major'
6591 if test "$host_cpu" = ia64; then
6592 # AIX 5 supports IA64
6593 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6594 shlibpath_var=LD_LIBRARY_PATH
6596 # With GCC up to 2.95.x, collect2 would create an import file
6597 # for dependence libraries. The import file would start with
6598 # the line `#! .'. This would cause the generated library to
6599 # depend on `.', always an invalid library. This was fixed in
6600 # development snapshots of GCC prior to 3.0.
6602 aix4 | aix4.[01] | aix4.[01].*)
6603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6605 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6612 # AIX (on Power*) has no versioning support, so currently we can
6613 # not hardcode correct soname into executable. Probably we can
6614 # add versioning support to collect2, so additional links can
6615 # be useful in future.
6616 if test "$aix_use_runtimelinking" = yes; then
6617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6618 # instead of lib<name>.a to let people know that these are not
6619 # typical AIX shared libraries.
6620 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6622 # We preserve .a as extension for shared libraries through AIX4.2
6623 # and later when we are not doing run time linking.
6624 library_names_spec='${libname}${release}.a $libname.a'
6625 soname_spec='${libname}${release}.so$major'
6627 shlibpath_var=LIBPATH
6632 library_names_spec='$libname.ixlibrary $libname.a'
6633 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6634 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'
6638 library_names_spec='${libname}.so'
6639 dynamic_linker="$host_os ld.so"
6640 shlibpath_var=LIBRARY_PATH
6646 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6647 soname_spec='${libname}${release}.so$major'
6648 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6649 shlibpath_var=LD_LIBRARY_PATH
6650 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6651 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6652 export_dynamic_flag_spec=-rdynamic
6653 # the default ld.so.conf also contains /usr/contrib/lib and
6654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6655 # libtool to hard-code these into programs
6658 cygwin* | mingw* | pw32*)
6659 version_type=windows
6662 case $GCC,$host_os in
6664 library_names_spec='$libname.dll.a'
6665 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6666 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6667 dldir=$destdir/`dirname \$dlpath`~
6668 test -d \$dldir || mkdir -p \$dldir~
6669 $install_prog .libs/$dlname \$dldir/$dlname'
6670 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6671 dlpath=$dir/\$dldll~
6675 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6676 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6679 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6682 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6685 dynamic_linker='Win32 ld.exe'
6686 # FIXME: first we should search . and the directory the executable is in
6690 darwin* | rhapsody*)
6691 dynamic_linker="$host_os dyld"
6695 # FIXME: Relying on posixy $() will cause problems for
6696 # cross-compilation, but unfortunately the echo tests do not
6697 # yet detect zsh echo's removal of \ escapes.
6698 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)'
6699 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6700 shlibpath_overrides_runpath=yes
6701 shlibpath_var=DYLD_LIBRARY_PATH
6709 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6710 version_type=freebsd-$objformat
6711 case $version_type in
6713 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6718 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6722 shlibpath_var=LD_LIBRARY_PATH
6725 shlibpath_overrides_runpath=yes
6728 shlibpath_overrides_runpath=no
6729 hardcode_into_libs=yes
6738 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6739 soname_spec='${libname}${release}.so$major'
6740 shlibpath_var=LD_LIBRARY_PATH
6741 hardcode_into_libs=yes
6744 hpux9* | hpux10* | hpux11*)
6745 # Give a soname corresponding to the major version so that dld.sl refuses to
6746 # link against other versions.
6747 dynamic_linker="$host_os dld.sl"
6751 shlibpath_var=SHLIB_PATH
6752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6753 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6754 soname_spec='${libname}${release}.sl$major'
6755 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6756 postinstall_cmds='chmod 555 $lib'
6759 irix5* | irix6* | nonstopux*)
6761 nonstopux*) version_type=nonstopux ;;
6762 *) version_type=irix ;;
6766 soname_spec='${libname}${release}.so$major'
6767 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6769 irix5* | nonstopux*)
6773 case $LD in # libtool.m4 will add one of these switches to LD
6774 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6775 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6776 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6777 *) libsuff= shlibsuff= libmagic=never-match;;
6781 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6782 shlibpath_overrides_runpath=no
6783 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6784 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6787 # No shared lib support for Linux oldld, aout, or coff.
6788 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6792 # This must be Linux ELF.
6797 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6798 soname_spec='${libname}${release}.so$major'
6799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6800 shlibpath_var=LD_LIBRARY_PATH
6801 shlibpath_overrides_runpath=no
6802 # This implies no fast_install, which is unacceptable.
6803 # Some rework will be needed to allow for fast_install
6804 # before this can be enabled.
6805 hardcode_into_libs=yes
6807 # We used to test for /lib/ld.so.1 and disable shared libraries on
6808 # powerpc, because MkLinux only supported shared libraries with the
6809 # GNU dynamic linker. Since this was broken with cross compilers,
6810 # most powerpc-linux boxes support dynamic linking these days and
6811 # people can always --disable-shared, the test was removed, and we
6812 # assume the GNU/Linux dynamic linker is in use.
6813 dynamic_linker='GNU/Linux ld.so'
6820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6821 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6823 dynamic_linker='NetBSD (a.out) ld.so'
6825 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6826 soname_spec='${libname}${release}.so$major'
6827 dynamic_linker='NetBSD ld.elf_so'
6829 shlibpath_var=LD_LIBRARY_PATH
6830 shlibpath_overrides_runpath=yes
6831 hardcode_into_libs=yes
6836 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6837 shlibpath_var=LD_LIBRARY_PATH
6838 shlibpath_overrides_runpath=yes
6845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6847 openbsd2.[89] | openbsd2.[89].*)
6848 shlibpath_overrides_runpath=no
6851 shlibpath_overrides_runpath=yes
6855 shlibpath_overrides_runpath=yes
6857 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6859 shlibpath_var=LD_LIBRARY_PATH
6863 libname_spec='$name'
6865 library_names_spec='$libname.dll $libname.a'
6866 dynamic_linker='OS/2 ld.exe'
6867 shlibpath_var=LIBPATH
6870 osf3* | osf4* | osf5*)
6873 soname_spec='${libname}${release}.so'
6874 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6875 shlibpath_var=LD_LIBRARY_PATH
6876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6882 soname_spec='${libname}${release}.so$major'
6883 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6884 shlibpath_var=LD_LIBRARY_PATH
6891 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6892 soname_spec='${libname}${release}.so$major'
6893 shlibpath_var=LD_LIBRARY_PATH
6894 shlibpath_overrides_runpath=yes
6895 hardcode_into_libs=yes
6896 # ldd complains unless libraries are executable
6897 postinstall_cmds='chmod +x $lib'
6902 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6904 shlibpath_var=LD_LIBRARY_PATH
6905 shlibpath_overrides_runpath=yes
6906 if test "$with_gnu_ld" = yes; then
6912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6914 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6915 soname_spec='${libname}${release}.so$major'
6916 shlibpath_var=LD_LIBRARY_PATH
6917 case $host_vendor in
6919 shlibpath_overrides_runpath=no
6924 shlibpath_overrides_runpath=no
6925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
6941 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6942 soname_spec='${libname}${release}.so$major'
6943 shlibpath_var=LD_LIBRARY_PATH
6947 if test -d /usr/nec ;then
6949 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6950 soname_spec='$libname.so.$major'
6951 shlibpath_var=LD_LIBRARY_PATH
6959 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6960 echo "${ECHO_T}$dynamic_linker" >&6
6961 test "$dynamic_linker" = no && can_build_shared=no
6965 ## FIXME: this should be a separate macro
6967 # Report the final consequences.
6968 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6969 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6970 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6971 echo "${ECHO_T}$can_build_shared" >&6
6975 ## FIXME: this should be a separate macro
6977 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6978 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6979 test "$can_build_shared" = "no" && enable_shared=no
6981 # On AIX, shared libraries and static libraries use the same namespace, and
6982 # are all built from PIC.
6985 test "$enable_shared" = yes && enable_static=no
6986 if test -n "$RANLIB"; then
6987 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6988 postinstall_cmds='$RANLIB $lib'
6993 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6994 test "$enable_shared" = yes && enable_static=no
6998 echo "$as_me:$LINENO: result: $enable_shared" >&5
6999 echo "${ECHO_T}$enable_shared" >&6
7003 ## FIXME: this should be a separate macro
7005 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7006 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7007 # Make sure either enable_shared or enable_static is yes.
7008 test "$enable_shared" = yes || enable_static=yes
7009 echo "$as_me:$LINENO: result: $enable_static" >&5
7010 echo "${ECHO_T}$enable_static" >&6
7014 if test "$hardcode_action" = relink; then
7015 # Fast installation is not supported
7016 enable_fast_install=no
7017 elif test "$shlibpath_overrides_runpath" = yes ||
7018 test "$enable_shared" = no; then
7019 # Fast installation is not necessary
7020 enable_fast_install=needless
7023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7024 if test "$GCC" = yes; then
7025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7028 if test "x$enable_dlopen" != xyes; then
7029 enable_dlopen=unknown
7030 enable_dlopen_self=unknown
7031 enable_dlopen_self_static=unknown
7038 lt_cv_dlopen="load_add_on"
7040 lt_cv_dlopen_self=yes
7043 cygwin* | mingw* | pw32*)
7044 lt_cv_dlopen="LoadLibrary"
7049 echo "$as_me:$LINENO: checking for shl_load" >&5
7050 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7051 if test "${ac_cv_func_shl_load+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7062 #define shl_load innocuous_shl_load
7064 /* System header to define __stub macros and hopefully few prototypes,
7065 which can conflict with char shl_load (); below.
7066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7067 <limits.h> exists even on freestanding compilers. */
7070 # include <limits.h>
7072 # include <assert.h>
7077 /* Override any gcc2 internal prototype to avoid an error. */
7082 /* We use char because int might match the return type of a gcc2
7083 builtin and then its argument prototype would still apply. */
7085 /* The GNU C library defines this for functions which it implements
7086 to always fail with ENOSYS. Some functions are actually named
7087 something starting with __ and the normal name is an alias. */
7088 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7091 char (*f) () = shl_load;
7100 return f != shl_load;
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107 (eval $ac_link) 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try='test -s conftest$ac_exeext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_cv_func_shl_load=yes
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_cv_func_shl_load=no
7133 rm -f conftest.err conftest.$ac_objext \
7134 conftest$ac_exeext conftest.$ac_ext
7136 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7137 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7138 if test $ac_cv_func_shl_load = yes; then
7139 lt_cv_dlopen="shl_load"
7141 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7142 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7143 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_check_lib_save_LIBS=$LIBS
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7155 /* Override any gcc2 internal prototype to avoid an error. */
7159 /* We use char because int might match the return type of a gcc2
7160 builtin and then its argument prototype would still apply. */
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>conftest.er1
7174 grep -v '^ *+' conftest.er1 >conftest.err
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest$ac_exeext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_cv_lib_dld_shl_load=yes
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 ac_cv_lib_dld_shl_load=no
7198 rm -f conftest.err conftest.$ac_objext \
7199 conftest$ac_exeext conftest.$ac_ext
7200 LIBS=$ac_check_lib_save_LIBS
7202 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7203 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7204 if test $ac_cv_lib_dld_shl_load = yes; then
7205 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7207 echo "$as_me:$LINENO: checking for dlopen" >&5
7208 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7209 if test "${ac_cv_func_dlopen+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 cat >conftest.$ac_ext <<_ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7220 #define dlopen innocuous_dlopen
7222 /* System header to define __stub macros and hopefully few prototypes,
7223 which can conflict with char dlopen (); below.
7224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7225 <limits.h> exists even on freestanding compilers. */
7228 # include <limits.h>
7230 # include <assert.h>
7235 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7243 /* The GNU C library defines this for functions which it implements
7244 to always fail with ENOSYS. Some functions are actually named
7245 something starting with __ and the normal name is an alias. */
7246 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7249 char (*f) () = dlopen;
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
7272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try='test -s conftest$ac_exeext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_cv_func_dlopen=yes
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7289 ac_cv_func_dlopen=no
7291 rm -f conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7294 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7295 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7296 if test $ac_cv_func_dlopen = yes; then
7297 lt_cv_dlopen="dlopen"
7299 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7300 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 ac_check_lib_save_LIBS=$LIBS
7306 cat >conftest.$ac_ext <<_ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7313 /* Override any gcc2 internal prototype to avoid an error. */
7317 /* We use char because int might match the return type of a gcc2
7318 builtin and then its argument prototype would still apply. */
7328 rm -f conftest.$ac_objext conftest$ac_exeext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7330 (eval $ac_link) 2>conftest.er1
7332 grep -v '^ *+' conftest.er1 >conftest.err
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try='test -s conftest$ac_exeext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_lib_dl_dlopen=yes
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 ac_cv_lib_dl_dlopen=no
7356 rm -f conftest.err conftest.$ac_objext \
7357 conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7360 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7361 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7362 if test $ac_cv_lib_dl_dlopen = yes; then
7363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7365 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7366 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7367 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 ac_check_lib_save_LIBS=$LIBS
7372 cat >conftest.$ac_ext <<_ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7379 /* Override any gcc2 internal prototype to avoid an error. */
7383 /* We use char because int might match the return type of a gcc2
7384 builtin and then its argument prototype would still apply. */
7394 rm -f conftest.$ac_objext conftest$ac_exeext
7395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7396 (eval $ac_link) 2>conftest.er1
7398 grep -v '^ *+' conftest.er1 >conftest.err
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 ac_cv_lib_svld_dlopen=yes
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7420 ac_cv_lib_svld_dlopen=no
7422 rm -f conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7424 LIBS=$ac_check_lib_save_LIBS
7426 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7427 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7428 if test $ac_cv_lib_svld_dlopen = yes; then
7429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7431 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7432 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7433 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 ac_check_lib_save_LIBS=$LIBS
7438 cat >conftest.$ac_ext <<_ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7445 /* Override any gcc2 internal prototype to avoid an error. */
7449 /* We use char because int might match the return type of a gcc2
7450 builtin and then its argument prototype would still apply. */
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7462 (eval $ac_link) 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; } &&
7475 { ac_try='test -s conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_lib_dld_dld_link=yes
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 ac_cv_lib_dld_dld_link=no
7488 rm -f conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7490 LIBS=$ac_check_lib_save_LIBS
7492 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7493 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7494 if test $ac_cv_lib_dld_dld_link = yes; then
7495 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7516 if test "x$lt_cv_dlopen" != xno; then
7522 case $lt_cv_dlopen in
7524 save_CPPFLAGS="$CPPFLAGS"
7525 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7527 save_LDFLAGS="$LDFLAGS"
7528 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7531 LIBS="$lt_cv_dlopen_libs $LIBS"
7533 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7534 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7535 if test "${lt_cv_dlopen_self+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 if test "$cross_compiling" = yes; then :
7539 lt_cv_dlopen_self=cross
7541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7542 lt_status=$lt_dlunknown
7543 cat > conftest.$ac_ext <<EOF
7544 #line 7544 "configure"
7545 #include "confdefs.h"
7554 # define LT_DLGLOBAL RTLD_GLOBAL
7557 # define LT_DLGLOBAL DL_GLOBAL
7559 # define LT_DLGLOBAL 0
7563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7564 find out it does not work in some platform. */
7565 #ifndef LT_DLLAZY_OR_NOW
7567 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7570 # define LT_DLLAZY_OR_NOW DL_LAZY
7573 # define LT_DLLAZY_OR_NOW RTLD_NOW
7576 # define LT_DLLAZY_OR_NOW DL_NOW
7578 # define LT_DLLAZY_OR_NOW 0
7586 extern "C" void exit (int);
7589 void fnord() { int i=42;}
7592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7593 int status = $lt_dlunknown;
7597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7598 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7599 /* dlclose (self); */
7605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606 (eval $ac_link) 2>&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7610 (./conftest; exit; ) 2>/dev/null
7613 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7614 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7615 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7618 # compilation failed
7619 lt_cv_dlopen_self=no
7626 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7627 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7629 if test "x$lt_cv_dlopen_self" = xyes; then
7630 LDFLAGS="$LDFLAGS $link_static_flag"
7631 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7632 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7633 if test "${lt_cv_dlopen_self_static+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 if test "$cross_compiling" = yes; then :
7637 lt_cv_dlopen_self_static=cross
7639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7640 lt_status=$lt_dlunknown
7641 cat > conftest.$ac_ext <<EOF
7642 #line 7642 "configure"
7643 #include "confdefs.h"
7652 # define LT_DLGLOBAL RTLD_GLOBAL
7655 # define LT_DLGLOBAL DL_GLOBAL
7657 # define LT_DLGLOBAL 0
7661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7662 find out it does not work in some platform. */
7663 #ifndef LT_DLLAZY_OR_NOW
7665 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7668 # define LT_DLLAZY_OR_NOW DL_LAZY
7671 # define LT_DLLAZY_OR_NOW RTLD_NOW
7674 # define LT_DLLAZY_OR_NOW DL_NOW
7676 # define LT_DLLAZY_OR_NOW 0
7684 extern "C" void exit (int);
7687 void fnord() { int i=42;}
7690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7691 int status = $lt_dlunknown;
7695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7697 /* dlclose (self); */
7703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7704 (eval $ac_link) 2>&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7708 (./conftest; exit; ) 2>/dev/null
7711 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7712 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7713 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7716 # compilation failed
7717 lt_cv_dlopen_self_static=no
7724 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7725 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7728 CPPFLAGS="$save_CPPFLAGS"
7729 LDFLAGS="$save_LDFLAGS"
7734 case $lt_cv_dlopen_self in
7735 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7736 *) enable_dlopen_self=unknown ;;
7739 case $lt_cv_dlopen_self_static in
7740 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7741 *) enable_dlopen_self_static=unknown ;;
7746 ## FIXME: this should be a separate macro
7748 if test "$enable_shared" = yes && test "$GCC" = yes; then
7749 case $archive_cmds in
7751 # FIXME: we may have to deal with multi-command sequences.
7754 # Test whether the compiler implicitly links with -lc since on some
7755 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7756 # to ld, don't add -lc before -lgcc.
7757 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7758 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7759 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 echo 'static int dummy;' > conftest.$ac_ext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766 (eval $ac_compile) 2>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; then
7772 libobjs=conftest.$ac_objext
7774 wl=$lt_cv_prog_cc_wl
7780 save_allow_undefined_flag=$allow_undefined_flag
7781 allow_undefined_flag=
7782 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7783 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }
7788 lt_cv_archive_cmds_need_lc=no
7790 lt_cv_archive_cmds_need_lc=yes
7792 allow_undefined_flag=$save_allow_undefined_flag
7794 cat conftest.err 1>&5
7798 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7799 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7803 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7807 ## FIXME: this should be a separate macro
7809 # The second clause should only fire when bootstrapping the
7810 # libtool distribution, otherwise you forgot to ship ltmain.sh
7811 # with your package, and you will get complaints that there are
7812 # no rules to generate ltmain.sh.
7813 if test -f "$ltmain"; then
7816 # If there is no Makefile yet, we rely on a make rule to execute
7817 # `config.status --recheck' to rerun these tests and create the
7818 # libtool script then.
7819 test -f Makefile && make "$ltmain"
7822 if test -f "$ltmain"; then
7823 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7826 echo creating $ofile
7828 # Now quote all the things that may contain metacharacters while being
7829 # careful not to overquote the AC_SUBSTed values. We take copies of the
7830 # variables and quote the copies for generation of the libtool script.
7831 for var in echo old_CC old_CFLAGS \
7832 AR AR_FLAGS CC LD LN_S NM SHELL \
7833 reload_flag reload_cmds wl \
7834 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7835 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7836 library_names_spec soname_spec \
7837 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7838 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7839 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7840 old_striplib striplib file_magic_cmd export_symbols_cmds \
7841 deplibs_check_method allow_undefined_flag no_undefined_flag \
7842 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7843 global_symbol_to_c_name_address \
7844 hardcode_libdir_flag_spec hardcode_libdir_separator \
7845 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7846 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7849 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7850 old_postinstall_cmds | old_postuninstall_cmds | \
7851 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7852 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7853 postinstall_cmds | postuninstall_cmds | \
7854 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7855 # Double-quote double-evaled strings.
7856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7859 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7864 cat <<__EOF__ > "${ofile}T"
7867 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7868 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7869 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7871 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7872 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7874 # This program is free software; you can redistribute it and/or modify
7875 # it under the terms of the GNU General Public License as published by
7876 # the Free Software Foundation; either version 2 of the License, or
7877 # (at your option) any later version.
7879 # This program is distributed in the hope that it will be useful, but
7880 # WITHOUT ANY WARRANTY; without even the implied warranty of
7881 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7882 # General Public License for more details.
7884 # You should have received a copy of the GNU General Public License
7885 # along with this program; if not, write to the Free Software
7886 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7888 # As a special exception to the GNU General Public License, if you
7889 # distribute this file as part of a program that contains a
7890 # configuration script generated by Autoconf, you may include it under
7891 # the same distribution terms that you use for the rest of that program.
7893 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7894 Xsed="sed -e s/^X//"
7896 # The HP-UX ksh and POSIX shell print the target directory to stdout
7898 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7900 # ### BEGIN LIBTOOL CONFIG
7902 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7904 # Shell to use when invoking shell scripts.
7907 # Whether or not to build shared libraries.
7908 build_libtool_libs=$enable_shared
7910 # Whether or not to build static libraries.
7911 build_old_libs=$enable_static
7913 # Whether or not to add -lc for building shared libraries.
7914 build_libtool_need_lc=$need_lc
7916 # Whether or not to optimize for fast installation.
7917 fast_install=$enable_fast_install
7920 host_alias=$host_alias
7923 # An echo program that does not interpret backslashes.
7928 AR_FLAGS=$lt_AR_FLAGS
7930 # The default C compiler.
7933 # Is the compiler the GNU C compiler?
7936 # The linker used to build libraries.
7939 # Whether we need hard or soft links.
7942 # A BSD-compatible nm program.
7945 # A symbol stripping program
7948 # Used to examine libraries when file_magic_cmd begins "file"
7949 MAGIC_CMD=$MAGIC_CMD
7951 # Used on cygwin: DLL creation program.
7954 # Used on cygwin: object dumper.
7957 # Used on cygwin: assembler.
7960 # The name of the directory that contains temporary libtool files.
7963 # How to create reloadable object files.
7964 reload_flag=$lt_reload_flag
7965 reload_cmds=$lt_reload_cmds
7967 # How to pass a linker flag through the compiler.
7970 # Object file suffix (normally "o").
7973 # Old archive suffix (normally "a").
7976 # Executable file suffix (normally "").
7979 # Additional compiler flags for building library objects.
7980 pic_flag=$lt_pic_flag
7983 # Does compiler simultaneously support -c and -o options?
7984 compiler_c_o=$lt_compiler_c_o
7986 # Can we write directly to a .lo ?
7987 compiler_o_lo=$lt_compiler_o_lo
7989 # Must we lock files when doing compilation ?
7990 need_locks=$lt_need_locks
7992 # Do we need the lib prefix for modules?
7993 need_lib_prefix=$need_lib_prefix
7995 # Do we need a version for libraries?
7996 need_version=$need_version
7998 # Whether dlopen is supported.
7999 dlopen_support=$enable_dlopen
8001 # Whether dlopen of programs is supported.
8002 dlopen_self=$enable_dlopen_self
8004 # Whether dlopen of statically linked programs is supported.
8005 dlopen_self_static=$enable_dlopen_self_static
8007 # Compiler flag to prevent dynamic linking.
8008 link_static_flag=$lt_link_static_flag
8010 # Compiler flag to turn off builtin functions.
8011 no_builtin_flag=$lt_no_builtin_flag
8013 # Compiler flag to allow reflexive dlopens.
8014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8016 # Compiler flag to generate shared objects directly from archives.
8017 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8019 # Compiler flag to generate thread-safe objects.
8020 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8022 # Library versioning type.
8023 version_type=$version_type
8025 # Format of library name prefix.
8026 libname_spec=$lt_libname_spec
8028 # List of archive names. First name is the real one, the rest are links.
8029 # The last name is the one that the linker finds with -lNAME.
8030 library_names_spec=$lt_library_names_spec
8032 # The coded name of the library, if different from the real name.
8033 soname_spec=$lt_soname_spec
8035 # Commands used to build and install an old-style archive.
8037 old_archive_cmds=$lt_old_archive_cmds
8038 old_postinstall_cmds=$lt_old_postinstall_cmds
8039 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8041 # Create an old-style archive from a shared archive.
8042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8044 # Create a temporary old-style archive to link instead of a shared archive.
8045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8047 # Commands used to build and install a shared archive.
8048 archive_cmds=$lt_archive_cmds
8049 archive_expsym_cmds=$lt_archive_expsym_cmds
8050 postinstall_cmds=$lt_postinstall_cmds
8051 postuninstall_cmds=$lt_postuninstall_cmds
8053 # Commands to strip libraries.
8054 old_striplib=$lt_old_striplib
8055 striplib=$lt_striplib
8057 # Method to check whether dependent libraries are shared objects.
8058 deplibs_check_method=$lt_deplibs_check_method
8060 # Command to use when deplibs_check_method == file_magic.
8061 file_magic_cmd=$lt_file_magic_cmd
8063 # Flag that allows shared libraries with undefined symbols to be built.
8064 allow_undefined_flag=$lt_allow_undefined_flag
8066 # Flag that forces no undefined symbols.
8067 no_undefined_flag=$lt_no_undefined_flag
8069 # Commands used to finish a libtool library installation in a directory.
8070 finish_cmds=$lt_finish_cmds
8072 # Same as above, but a single script fragment to be evaled but not shown.
8073 finish_eval=$lt_finish_eval
8075 # Take the output of nm and produce a listing of raw symbols and C names.
8076 global_symbol_pipe=$lt_global_symbol_pipe
8078 # Transform the output of nm in a proper C declaration
8079 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8081 # Transform the output of nm in a C name address pair
8082 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8084 # This is the shared library runtime path variable.
8085 runpath_var=$runpath_var
8087 # This is the shared library path variable.
8088 shlibpath_var=$shlibpath_var
8090 # Is shlibpath searched before the hard-coded library search path?
8091 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8093 # How to hardcode a shared library path into an executable.
8094 hardcode_action=$hardcode_action
8096 # Whether we should hardcode library paths into libraries.
8097 hardcode_into_libs=$hardcode_into_libs
8099 # Flag to hardcode \$libdir into a binary during linking.
8100 # This must work even if \$libdir does not exist.
8101 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8103 # Whether we need a single -rpath flag with a separated argument.
8104 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8106 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8108 hardcode_direct=$hardcode_direct
8110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8112 hardcode_minus_L=$hardcode_minus_L
8114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8115 # the resulting binary.
8116 hardcode_shlibpath_var=$hardcode_shlibpath_var
8118 # Variables whose values should be saved in libtool wrapper scripts and
8119 # restored at relink time.
8120 variables_saved_for_relink="$variables_saved_for_relink"
8122 # Whether libtool must link a program against all its dependency libraries.
8123 link_all_deplibs=$link_all_deplibs
8125 # Compile-time system search path for libraries
8126 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8128 # Run-time system search path for libraries
8129 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8131 # Fix the shell variable \$srcfile for the compiler.
8132 fix_srcfile_path="$fix_srcfile_path"
8134 # Set to yes if exported symbols are required.
8135 always_export_symbols=$always_export_symbols
8137 # The commands to list exported symbols.
8138 export_symbols_cmds=$lt_export_symbols_cmds
8140 # The commands to extract the exported symbol list from a shared archive.
8141 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8143 # Symbols that should not be listed in the preloaded symbols.
8144 exclude_expsyms=$lt_exclude_expsyms
8146 # Symbols that must always be exported.
8147 include_expsyms=$lt_include_expsyms
8149 # ### END LIBTOOL CONFIG
8155 cat <<\EOF >> "${ofile}T"
8157 # AIX sometimes has problems with the GCC collect2 program. For some
8158 # reason, if we set the COLLECT_NAMES environment variable, the problems
8159 # vanish in a puff of smoke.
8160 if test "X${COLLECT_NAMES+set}" != Xset; then
8162 export COLLECT_NAMES
8169 cygwin* | mingw* | pw32* | os2*)
8170 cat <<'EOF' >> "${ofile}T"
8171 # This is a source program that is used to create dlls on Windows
8172 # Don't remove nor modify the starting and closing comments
8173 # /* ltdll.c starts here */
8174 # #define WIN32_LEAN_AND_MEAN
8175 # #include <windows.h>
8176 # #undef WIN32_LEAN_AND_MEAN
8177 # #include <stdio.h>
8179 # #ifndef __CYGWIN__
8180 # # ifdef __CYGWIN32__
8181 # # define __CYGWIN__ __CYGWIN32__
8185 # #ifdef __cplusplus
8188 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8189 # #ifdef __cplusplus
8194 # #include <cygwin/cygwin_dll.h>
8195 # DECLARE_CYGWIN_DLL( DllMain );
8197 # HINSTANCE __hDllInstance_base;
8200 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8202 # __hDllInstance_base = hInst;
8205 # /* ltdll.c ends here */
8206 # This is a source program that is used to create import libraries
8207 # on Windows for dlls which lack them. Don't remove nor modify the
8208 # starting and closing comments
8209 # /* impgen.c starts here */
8210 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8212 # This file is part of GNU libtool.
8214 # This program is free software; you can redistribute it and/or modify
8215 # it under the terms of the GNU General Public License as published by
8216 # the Free Software Foundation; either version 2 of the License, or
8217 # (at your option) any later version.
8219 # This program is distributed in the hope that it will be useful,
8220 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8221 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8222 # GNU General Public License for more details.
8224 # You should have received a copy of the GNU General Public License
8225 # along with this program; if not, write to the Free Software
8226 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8229 # #include <stdio.h> /* for printf() */
8230 # #include <unistd.h> /* for open(), lseek(), read() */
8231 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8232 # #include <string.h> /* for strdup() */
8234 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8236 # #define O_BINARY 0
8239 # static unsigned int
8240 # pe_get16 (fd, offset)
8244 # unsigned char b[2];
8245 # lseek (fd, offset, SEEK_SET);
8247 # return b[0] + (b[1]<<8);
8250 # static unsigned int
8251 # pe_get32 (fd, offset)
8255 # unsigned char b[4];
8256 # lseek (fd, offset, SEEK_SET);
8258 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8261 # static unsigned int
8265 # unsigned char *b = ptr;
8266 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8275 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8276 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8277 # unsigned long name_rvas, nexp;
8278 # unsigned char *expdata, *erva;
8279 # char *filename, *dll_name;
8281 # filename = argv[1];
8283 # dll = open(filename, O_RDONLY|O_BINARY);
8287 # dll_name = filename;
8289 # for (i=0; filename[i]; i++)
8290 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8291 # dll_name = filename + i +1;
8293 # pe_header_offset = pe_get32 (dll, 0x3c);
8294 # opthdr_ofs = pe_header_offset + 4 + 20;
8295 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8297 # if (num_entries < 1) /* no exports */
8300 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8301 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8302 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8303 # secptr = (pe_header_offset + 4 + 20 +
8304 # pe_get16 (dll, pe_header_offset + 4 + 16));
8307 # for (i = 0; i < nsections; i++)
8310 # unsigned long secptr1 = secptr + 40 * i;
8311 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8312 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8313 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8314 # lseek(dll, secptr1, SEEK_SET);
8315 # read(dll, sname, 8);
8316 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8318 # expptr = fptr + (export_rva - vaddr);
8319 # if (export_rva + export_size > vaddr + vsize)
8320 # export_size = vsize - (export_rva - vaddr);
8325 # expdata = (unsigned char*)malloc(export_size);
8326 # lseek (dll, expptr, SEEK_SET);
8327 # read (dll, expdata, export_size);
8328 # erva = expdata - export_rva;
8330 # nexp = pe_as32 (expdata+24);
8331 # name_rvas = pe_as32 (expdata+32);
8333 # printf ("EXPORTS\n");
8334 # for (i = 0; i<nexp; i++)
8336 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8337 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8342 # /* impgen.c ends here */
8348 # We use sed instead of cat because bash on DJGPP gets confused if
8349 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8350 # text mode, it properly converts lines to CR/LF. This bash problem
8351 # is reportedly fixed, but why not run on old versions too?
8352 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8354 mv -f "${ofile}T" "$ofile" || \
8355 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8365 # This can be used to rebuild libtool when needed
8366 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8368 # Always use our own libtool.
8369 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8371 # Prevent multiple expansion
8376 for ac_prog in flex lex
8378 # Extract the first word of "$ac_prog", so it can be a program name with args.
8379 set dummy $ac_prog; ac_word=$2
8380 echo "$as_me:$LINENO: checking for $ac_word" >&5
8381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8382 if test "${ac_cv_prog_LEX+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 if test -n "$LEX"; then
8386 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395 ac_cv_prog_LEX="$ac_prog"
8396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 if test -n "$LEX"; then
8406 echo "$as_me:$LINENO: result: $LEX" >&5
8407 echo "${ECHO_T}$LEX" >&6
8409 echo "$as_me:$LINENO: result: no" >&5
8410 echo "${ECHO_T}no" >&6
8413 test -n "$LEX" && break
8415 test -n "$LEX" || LEX=":"
8417 if test -z "$LEXLIB"
8419 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8420 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8421 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 ac_check_lib_save_LIBS=$LIBS
8426 cat >conftest.$ac_ext <<_ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8433 /* Override any gcc2 internal prototype to avoid an error. */
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>conftest.er1
8452 grep -v '^ *+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest$ac_exeext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_cv_lib_fl_yywrap=yes
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_cv_lib_fl_yywrap=no
8476 rm -f conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 LIBS=$ac_check_lib_save_LIBS
8480 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8481 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8482 if test $ac_cv_lib_fl_yywrap = yes; then
8485 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8486 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8487 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 ac_check_lib_save_LIBS=$LIBS
8492 cat >conftest.$ac_ext <<_ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8499 /* Override any gcc2 internal prototype to avoid an error. */
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest$ac_exeext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_lib_l_yywrap=yes
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 ac_cv_lib_l_yywrap=no
8542 rm -f conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8544 LIBS=$ac_check_lib_save_LIBS
8546 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8547 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8548 if test $ac_cv_lib_l_yywrap = yes; then
8556 if test "x$LEX" != "x:"; then
8557 echo "$as_me:$LINENO: checking lex output file root" >&5
8558 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8559 if test "${ac_cv_prog_lex_root+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 # The minimal lex program is just a single line: %%. But some broken lexes
8563 # (Solaris, I think it was) want two %% lines, so accommodate them.
8564 cat >conftest.l <<_ACEOF
8568 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8569 (eval $LEX conftest.l) 2>&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }
8573 if test -f lex.yy.c; then
8574 ac_cv_prog_lex_root=lex.yy
8575 elif test -f lexyy.c; then
8576 ac_cv_prog_lex_root=lexyy
8578 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8579 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8580 { (exit 1); exit 1; }; }
8583 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8584 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8586 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8588 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8589 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8590 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 # POSIX says lex can declare yytext either as a pointer or an array; the
8594 # default is implementation-dependent. Figure out which it is, since
8595 # not all implementations provide the %pointer and %array declarations.
8596 ac_cv_prog_lex_yytext_pointer=no
8597 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8599 LIBS="$LIBS $LEXLIB"
8600 cat >conftest.$ac_ext <<_ACEOF
8601 `cat $LEX_OUTPUT_ROOT.c`
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest$ac_exeext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 ac_cv_prog_lex_yytext_pointer=yes
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8630 rm -f conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8633 rm -f "${LEX_OUTPUT_ROOT}.c"
8636 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8637 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8638 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8640 cat >>confdefs.h <<\_ACEOF
8641 #define YYTEXT_POINTER 1
8647 if test ${LEX} = "flex"; then
8648 cat >>confdefs.h <<\_ACEOF
8653 for ac_prog in 'bison -y' byacc
8655 # Extract the first word of "$ac_prog", so it can be a program name with args.
8656 set dummy $ac_prog; ac_word=$2
8657 echo "$as_me:$LINENO: checking for $ac_word" >&5
8658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8659 if test "${ac_cv_prog_YACC+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 if test -n "$YACC"; then
8663 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_prog_YACC="$ac_prog"
8673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 YACC=$ac_cv_prog_YACC
8682 if test -n "$YACC"; then
8683 echo "$as_me:$LINENO: result: $YACC" >&5
8684 echo "${ECHO_T}$YACC" >&6
8686 echo "$as_me:$LINENO: result: no" >&5
8687 echo "${ECHO_T}no" >&6
8690 test -n "$YACC" && break
8692 test -n "$YACC" || YACC="yacc"
8694 # Extract the first word of "bison++", so it can be a program name with args.
8695 set dummy bison++; ac_word=$2
8696 echo "$as_me:$LINENO: checking for $ac_word" >&5
8697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8698 if test "${ac_cv_prog_BISON_PLUS_PLUS+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 if test -n "$BISON_PLUS_PLUS"; then
8702 ac_cv_prog_BISON_PLUS_PLUS="$BISON_PLUS_PLUS" # Let the user override the test.
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711 ac_cv_prog_BISON_PLUS_PLUS="bison++"
8712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 test -z "$ac_cv_prog_BISON_PLUS_PLUS" && ac_cv_prog_BISON_PLUS_PLUS=":"
8721 BISON_PLUS_PLUS=$ac_cv_prog_BISON_PLUS_PLUS
8722 if test -n "$BISON_PLUS_PLUS"; then
8723 echo "$as_me:$LINENO: result: $BISON_PLUS_PLUS" >&5
8724 echo "${ECHO_T}$BISON_PLUS_PLUS" >&6
8726 echo "$as_me:$LINENO: result: no" >&5
8727 echo "${ECHO_T}no" >&6
8733 ac_cpp='$CXXCPP $CPPFLAGS'
8734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8739 # Checking for header files.
8740 # ===========================================================================
8742 if test -d /stuff/include; then
8743 CPPFLAGS="$CPPFLAGS -I/stuff/include"
8748 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8749 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8750 if test "${ac_cv_header_stdc+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8772 rm -f conftest.$ac_objext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8774 (eval $ac_compile) 2>conftest.er1
8776 grep -v '^ *+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; } &&
8787 { ac_try='test -s conftest.$ac_objext'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 ac_cv_header_stdc=yes
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 ac_cv_header_stdc=no
8800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8802 if test $ac_cv_header_stdc = yes; then
8803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8804 cat >conftest.$ac_ext <<_ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8814 $EGREP "memchr" >/dev/null 2>&1; then
8817 ac_cv_header_stdc=no
8823 if test $ac_cv_header_stdc = yes; then
8824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8825 cat >conftest.$ac_ext <<_ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8835 $EGREP "free" >/dev/null 2>&1; then
8838 ac_cv_header_stdc=no
8844 if test $ac_cv_header_stdc = yes; then
8845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8846 if test "$cross_compiling" = yes; then
8849 cat >conftest.$ac_ext <<_ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8856 #if ((' ' & 0x0FF) == 0x020)
8857 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8858 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8860 # define ISLOWER(c) \
8861 (('a' <= (c) && (c) <= 'i') \
8862 || ('j' <= (c) && (c) <= 'r') \
8863 || ('s' <= (c) && (c) <= 'z'))
8864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8872 for (i = 0; i < 256; i++)
8873 if (XOR (islower (i), ISLOWER (i))
8874 || toupper (i) != TOUPPER (i))
8879 rm -f conftest$ac_exeext
8880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8881 (eval $ac_link) 2>&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8892 echo "$as_me: program exited with status $ac_status" >&5
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_header_stdc=no
8899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8903 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8904 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8905 if test $ac_cv_header_stdc = yes; then
8907 cat >>confdefs.h <<\_ACEOF
8908 #define STDC_HEADERS 1
8914 for ac_header in getopt.h
8916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8918 echo "$as_me:$LINENO: checking for $ac_header" >&5
8919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8926 # Is the header compilable?
8927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8929 cat >conftest.$ac_ext <<_ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 $ac_includes_default
8936 #include <$ac_header>
8938 rm -f conftest.$ac_objext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940 (eval $ac_compile) 2>conftest.er1
8942 grep -v '^ *+' conftest.er1 >conftest.err
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; } &&
8953 { ac_try='test -s conftest.$ac_objext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 ac_header_compiler=yes
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8964 ac_header_compiler=no
8966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8968 echo "${ECHO_T}$ac_header_compiler" >&6
8970 # Is the header present?
8971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8973 cat >conftest.$ac_ext <<_ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 #include <$ac_header>
8981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8984 grep -v '^ *+' conftest.er1 >conftest.err
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } >/dev/null; then
8989 if test -s conftest.err; then
8990 ac_cpp_err=$ac_cxx_preproc_warn_flag
8991 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8998 if test -z "$ac_cpp_err"; then
8999 ac_header_preproc=yes
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 ac_header_preproc=no
9006 rm -f conftest.err conftest.$ac_ext
9007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9008 echo "${ECHO_T}$ac_header_preproc" >&6
9010 # So? What about this header?
9011 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9017 ac_header_preproc=yes
9020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9034 ## ------------------------------------------ ##
9035 ## Report this to the AC_PACKAGE_NAME lists. ##
9036 ## ------------------------------------------ ##
9039 sed "s/^/$as_me: WARNING: /" >&2
9042 echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 eval "$as_ac_Header=\$ac_header_preproc"
9049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9054 cat >>confdefs.h <<_ACEOF
9055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9063 for ac_header in unistd.h
9065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9067 echo "$as_me:$LINENO: checking for $ac_header" >&5
9068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9075 # Is the header compilable?
9076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9078 cat >conftest.$ac_ext <<_ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 $ac_includes_default
9085 #include <$ac_header>
9087 rm -f conftest.$ac_objext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9089 (eval $ac_compile) 2>conftest.er1
9091 grep -v '^ *+' conftest.er1 >conftest.err
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; } &&
9102 { ac_try='test -s conftest.$ac_objext'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 ac_header_compiler=yes
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 ac_header_compiler=no
9115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9117 echo "${ECHO_T}$ac_header_compiler" >&6
9119 # Is the header present?
9120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 #include <$ac_header>
9130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9133 grep -v '^ *+' conftest.er1 >conftest.err
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } >/dev/null; then
9138 if test -s conftest.err; then
9139 ac_cpp_err=$ac_cxx_preproc_warn_flag
9140 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9147 if test -z "$ac_cpp_err"; then
9148 ac_header_preproc=yes
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9153 ac_header_preproc=no
9155 rm -f conftest.err conftest.$ac_ext
9156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9157 echo "${ECHO_T}$ac_header_preproc" >&6
9159 # So? What about this header?
9160 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9166 ac_header_preproc=yes
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9183 ## ------------------------------------------ ##
9184 ## Report this to the AC_PACKAGE_NAME lists. ##
9185 ## ------------------------------------------ ##
9188 sed "s/^/$as_me: WARNING: /" >&2
9191 echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 eval "$as_ac_Header=\$ac_header_preproc"
9198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9203 cat >>confdefs.h <<_ACEOF
9204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9211 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9212 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
9213 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
9214 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
9218 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
9220 # Is the header compilable?
9221 echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
9222 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
9223 cat >conftest.$ac_ext <<_ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9230 #include <sys/socket.h>
9232 rm -f conftest.$ac_objext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9234 (eval $ac_compile) 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; } &&
9247 { ac_try='test -s conftest.$ac_objext'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9253 ac_header_compiler=yes
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9258 ac_header_compiler=no
9260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9262 echo "${ECHO_T}$ac_header_compiler" >&6
9264 # Is the header present?
9265 echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
9266 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 #include <sys/socket.h>
9275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } >/dev/null; then
9283 if test -s conftest.err; then
9284 ac_cpp_err=$ac_cxx_preproc_warn_flag
9285 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9292 if test -z "$ac_cpp_err"; then
9293 ac_header_preproc=yes
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_header_preproc=no
9300 rm -f conftest.err conftest.$ac_ext
9301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9302 echo "${ECHO_T}$ac_header_preproc" >&6
9304 # So? What about this header?
9305 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9307 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
9308 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
9310 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
9311 ac_header_preproc=yes
9314 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
9315 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
9317 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
9319 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
9321 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
9323 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
9324 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
9325 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
9328 ## ------------------------------------------ ##
9329 ## Report this to the AC_PACKAGE_NAME lists. ##
9330 ## ------------------------------------------ ##
9333 sed "s/^/$as_me: WARNING: /" >&2
9336 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
9337 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
9338 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 ac_cv_header_sys_socket_h=$ac_header_preproc
9343 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
9344 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
9347 if test $ac_cv_header_sys_socket_h = yes; then
9348 cat >>confdefs.h <<\_ACEOF
9349 #define SOCKET_AVAIL 1
9352 cat >>confdefs.h <<\_ACEOF
9353 #define HAVE_SYS_SOCKET_H 1
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 #include <sys/socket.h>
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 $EGREP "socklen_t" >/dev/null 2>&1; then
9367 cat >>confdefs.h <<_ACEOF
9368 #define SOCKLEN_T socklen_t
9372 cat >>confdefs.h <<_ACEOF
9373 #define SOCKLEN_T uint
9383 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9384 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9385 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
9386 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9390 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
9392 # Is the header compilable?
9393 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9394 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 $ac_includes_default
9404 rm -f conftest.$ac_objext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406 (eval $ac_compile) 2>conftest.er1
9408 grep -v '^ *+' conftest.er1 >conftest.err
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; } &&
9419 { ac_try='test -s conftest.$ac_objext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 ac_header_compiler=yes
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9430 ac_header_compiler=no
9432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9434 echo "${ECHO_T}$ac_header_compiler" >&6
9436 # Is the header present?
9437 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9438 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
9439 cat >conftest.$ac_ext <<_ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9450 grep -v '^ *+' conftest.er1 >conftest.err
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } >/dev/null; then
9455 if test -s conftest.err; then
9456 ac_cpp_err=$ac_cxx_preproc_warn_flag
9457 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9464 if test -z "$ac_cpp_err"; then
9465 ac_header_preproc=yes
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9470 ac_header_preproc=no
9472 rm -f conftest.err conftest.$ac_ext
9473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9474 echo "${ECHO_T}$ac_header_preproc" >&6
9476 # So? What about this header?
9477 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9479 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9480 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9482 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9483 ac_header_preproc=yes
9486 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9487 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9489 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9490 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9491 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9492 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9493 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9494 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9495 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9496 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9497 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9500 ## ------------------------------------------ ##
9501 ## Report this to the AC_PACKAGE_NAME lists. ##
9502 ## ------------------------------------------ ##
9505 sed "s/^/$as_me: WARNING: /" >&2
9508 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9509 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
9510 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 ac_cv_header_dlfcn_h=$ac_header_preproc
9515 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9516 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
9527 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9528 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9529 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9530 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 cat >conftest.$ac_ext <<_ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 #include <sys/types.h>
9552 rm -f conftest.$ac_objext
9553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9554 (eval $ac_compile) 2>conftest.er1
9556 grep -v '^ *+' conftest.er1 >conftest.err
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; } &&
9567 { ac_try='test -s conftest.$ac_objext'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; }; then
9573 eval "$as_ac_Header=yes"
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9578 eval "$as_ac_Header=no"
9580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9585 cat >>confdefs.h <<_ACEOF
9586 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9589 ac_header_dirent=$ac_hdr; break
9593 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9594 if test $ac_header_dirent = dirent.h; then
9595 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9596 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9597 if test "${ac_cv_search_opendir+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 ac_func_search_save_LIBS=$LIBS
9601 ac_cv_search_opendir=no
9602 cat >conftest.$ac_ext <<_ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9609 /* Override any gcc2 internal prototype to avoid an error. */
9613 /* We use char because int might match the return type of a gcc2
9614 builtin and then its argument prototype would still apply. */
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626 (eval $ac_link) 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } &&
9639 { ac_try='test -s conftest$ac_exeext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 ac_cv_search_opendir="none required"
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9651 rm -f conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 if test "$ac_cv_search_opendir" = no; then
9654 for ac_lib in dir; do
9655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9663 /* Override any gcc2 internal prototype to avoid an error. */
9667 /* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */
9678 rm -f conftest.$ac_objext conftest$ac_exeext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_search_opendir="-l$ac_lib"
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9706 rm -f conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9710 LIBS=$ac_func_search_save_LIBS
9712 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9713 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9714 if test "$ac_cv_search_opendir" != no; then
9715 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9720 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9721 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9722 if test "${ac_cv_search_opendir+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 ac_func_search_save_LIBS=$LIBS
9726 ac_cv_search_opendir=no
9727 cat >conftest.$ac_ext <<_ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9734 /* Override any gcc2 internal prototype to avoid an error. */
9738 /* We use char because int might match the return type of a gcc2
9739 builtin and then its argument prototype would still apply. */
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9751 (eval $ac_link) 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; } &&
9764 { ac_try='test -s conftest$ac_exeext'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 ac_cv_search_opendir="none required"
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9776 rm -f conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778 if test "$ac_cv_search_opendir" = no; then
9780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9781 cat >conftest.$ac_ext <<_ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9788 /* Override any gcc2 internal prototype to avoid an error. */
9792 /* We use char because int might match the return type of a gcc2
9793 builtin and then its argument prototype would still apply. */
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>conftest.er1
9807 grep -v '^ *+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824 ac_cv_search_opendir="-l$ac_lib"
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9831 rm -f conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9835 LIBS=$ac_func_search_save_LIBS
9837 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9838 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9839 if test "$ac_cv_search_opendir" != no; then
9840 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9847 # This must be after CXXCPP
9849 echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
9850 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6
9851 if test "${ucsim_cv_fd+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 ucsim_cv_fd="unknown"
9855 cat >conftest.$ac_ext <<_ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9862 #include <sys/time.h>
9867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9868 $EGREP "yes" >/dev/null 2>&1; then
9869 ucsim_cv_fd="<sys/time.h>"
9873 cat >conftest.$ac_ext <<_ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9880 #include <sys/types.h>
9885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9886 $EGREP "yes" >/dev/null 2>&1; then
9887 ucsim_cv_fd="<sys/types.h>"
9891 cat >conftest.$ac_ext <<_ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9898 #include <sys/select.h>
9903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9904 $EGREP "yes" >/dev/null 2>&1; then
9905 ucsim_cv_fd="<sys/types.h>"
9910 echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
9911 echo "${ECHO_T}$ucsim_cv_fd" >&6
9913 cat >>confdefs.h <<\_ACEOF
9914 #define FD_HEADER_OK 0
9917 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
9918 cat >>confdefs.h <<\_ACEOF
9919 #define FD_NEED_TIME_H 1
9922 cat >>confdefs.h <<\_ACEOF
9923 #define FD_HEADER_OK 1
9927 cat >>confdefs.h <<\_ACEOF
9928 #define FD_NEED_TIME_H 0
9932 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
9933 cat >>confdefs.h <<\_ACEOF
9934 #define FD_NEED_TYPES_H 1
9937 cat >>confdefs.h <<\_ACEOF
9938 #define FD_HEADER_OK 1
9942 cat >>confdefs.h <<\_ACEOF
9943 #define FD_NEED_TYPES_H 0
9947 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
9948 cat >>confdefs.h <<\_ACEOF
9949 #define FD_NEED_SELECT_H 1
9952 cat >>confdefs.h <<\_ACEOF
9953 #define FD_HEADER_OK 1
9957 cat >>confdefs.h <<\_ACEOF
9958 #define FD_NEED_SELECT_H 0
9963 cat >>confdefs.h <<_ACEOF
9964 #define HEADER_FD ${ucsim_cv_fd}
9969 # Checking for functions/libs
9970 # ===========================================================================
9972 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9973 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9974 if test "${ac_cv_lib_socket_socket+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 ac_check_lib_save_LIBS=$LIBS
9978 LIBS="-lsocket $LIBS"
9979 cat >conftest.$ac_ext <<_ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9986 /* Override any gcc2 internal prototype to avoid an error. */
9990 /* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>conftest.er1
10005 grep -v '^ *+' conftest.er1 >conftest.err
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; } &&
10016 { ac_try='test -s conftest$ac_exeext'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10022 ac_cv_lib_socket_socket=yes
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10027 ac_cv_lib_socket_socket=no
10029 rm -f conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10033 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10034 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
10035 if test $ac_cv_lib_socket_socket = yes; then
10036 cat >>confdefs.h <<_ACEOF
10037 #define HAVE_LIBSOCKET 1
10040 LIBS="-lsocket $LIBS"
10045 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
10046 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
10047 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 ac_check_lib_save_LIBS=$LIBS
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10059 /* Override any gcc2 internal prototype to avoid an error. */
10063 /* We use char because int might match the return type of a gcc2
10064 builtin and then its argument prototype would still apply. */
10074 rm -f conftest.$ac_objext conftest$ac_exeext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10076 (eval $ac_link) 2>conftest.er1
10078 grep -v '^ *+' conftest.er1 >conftest.err
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_lib_nsl_xdr_short=yes
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_cv_lib_nsl_xdr_short=no
10102 rm -f conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 LIBS=$ac_check_lib_save_LIBS
10106 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
10107 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
10108 if test $ac_cv_lib_nsl_xdr_short = yes; then
10109 cat >>confdefs.h <<_ACEOF
10110 #define HAVE_LIBNSL 1
10117 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10118 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10119 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 ac_check_lib_save_LIBS=$LIBS
10124 cat >conftest.$ac_ext <<_ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h. */
10131 /* Override any gcc2 internal prototype to avoid an error. */
10135 /* We use char because int might match the return type of a gcc2
10136 builtin and then its argument prototype would still apply. */
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10148 (eval $ac_link) 2>conftest.er1
10150 grep -v '^ *+' conftest.er1 >conftest.err
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_lib_dl_dlopen=yes
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_cv_lib_dl_dlopen=no
10174 rm -f conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 LIBS=$ac_check_lib_save_LIBS
10178 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10180 if test $ac_cv_lib_dl_dlopen = yes; then
10190 echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
10191 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6
10192 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 ac_check_lib_save_LIBS=$LIBS
10196 LIBS="-lpanel -lcurses $LIBS"
10197 cat >conftest.$ac_ext <<_ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10204 /* Override any gcc2 internal prototype to avoid an error. */
10208 /* We use char because int might match the return type of a gcc2
10209 builtin and then its argument prototype would still apply. */
10210 char panel_above ();
10219 rm -f conftest.$ac_objext conftest$ac_exeext
10220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10221 (eval $ac_link) 2>conftest.er1
10223 grep -v '^ *+' conftest.er1 >conftest.err
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } &&
10228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; } &&
10234 { ac_try='test -s conftest$ac_exeext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_cv_lib_panel_panel_above=yes
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10245 ac_cv_lib_panel_panel_above=no
10247 rm -f conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 LIBS=$ac_check_lib_save_LIBS
10251 echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
10252 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6
10253 if test $ac_cv_lib_panel_panel_above = yes; then
10256 CURSES_LIBS="-lpanel -lcurses"
10260 echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
10261 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6
10262 if test "${ac_cv_lib_curses_nl+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 ac_check_lib_save_LIBS=$LIBS
10266 LIBS="-lcurses $LIBS"
10267 cat >conftest.$ac_ext <<_ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10274 /* Override any gcc2 internal prototype to avoid an error. */
10278 /* We use char because int might match the return type of a gcc2
10279 builtin and then its argument prototype would still apply. */
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291 (eval $ac_link) 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_lib_curses_nl=yes
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10315 ac_cv_lib_curses_nl=no
10317 rm -f conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10321 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
10322 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6
10323 if test $ac_cv_lib_curses_nl = yes; then
10325 CURSES_LIBS="-lcurses"
10339 for ac_func in vprintf
10341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10342 echo "$as_me:$LINENO: checking for $ac_func" >&5
10343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10344 if eval "test \"\${$as_ac_var+set}\" = set"; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 cat >conftest.$ac_ext <<_ACEOF
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h. */
10353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10355 #define $ac_func innocuous_$ac_func
10357 /* System header to define __stub macros and hopefully few prototypes,
10358 which can conflict with char $ac_func (); below.
10359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10360 <limits.h> exists even on freestanding compilers. */
10363 # include <limits.h>
10365 # include <assert.h>
10370 /* Override any gcc2 internal prototype to avoid an error. */
10375 /* We use char because int might match the return type of a gcc2
10376 builtin and then its argument prototype would still apply. */
10378 /* The GNU C library defines this for functions which it implements
10379 to always fail with ENOSYS. Some functions are actually named
10380 something starting with __ and the normal name is an alias. */
10381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10384 char (*f) () = $ac_func;
10393 return f != $ac_func;
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400 (eval $ac_link) 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest$ac_exeext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 eval "$as_ac_var=yes"
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 eval "$as_ac_var=no"
10426 rm -f conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10431 if test `eval echo '${'$as_ac_var'}'` = yes; then
10432 cat >>confdefs.h <<_ACEOF
10433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10436 echo "$as_me:$LINENO: checking for _doprnt" >&5
10437 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10438 if test "${ac_cv_func__doprnt+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 cat >conftest.$ac_ext <<_ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10449 #define _doprnt innocuous__doprnt
10451 /* System header to define __stub macros and hopefully few prototypes,
10452 which can conflict with char _doprnt (); below.
10453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10454 <limits.h> exists even on freestanding compilers. */
10457 # include <limits.h>
10459 # include <assert.h>
10464 /* Override any gcc2 internal prototype to avoid an error. */
10469 /* We use char because int might match the return type of a gcc2
10470 builtin and then its argument prototype would still apply. */
10472 /* The GNU C library defines this for functions which it implements
10473 to always fail with ENOSYS. Some functions are actually named
10474 something starting with __ and the normal name is an alias. */
10475 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10478 char (*f) () = _doprnt;
10487 return f != _doprnt;
10492 rm -f conftest.$ac_objext conftest$ac_exeext
10493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10494 (eval $ac_link) 2>conftest.er1
10496 grep -v '^ *+' conftest.er1 >conftest.err
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest$ac_exeext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 ac_cv_func__doprnt=yes
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 ac_cv_func__doprnt=no
10520 rm -f conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10523 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10524 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10525 if test $ac_cv_func__doprnt = yes; then
10527 cat >>confdefs.h <<\_ACEOF
10528 #define HAVE_DOPRNT 1
10538 for ac_func in vsnprintf
10540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10541 echo "$as_me:$LINENO: checking for $ac_func" >&5
10542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10543 if eval "test \"\${$as_ac_var+set}\" = set"; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 cat >conftest.$ac_ext <<_ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10554 #define $ac_func innocuous_$ac_func
10556 /* System header to define __stub macros and hopefully few prototypes,
10557 which can conflict with char $ac_func (); below.
10558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10559 <limits.h> exists even on freestanding compilers. */
10562 # include <limits.h>
10564 # include <assert.h>
10569 /* Override any gcc2 internal prototype to avoid an error. */
10574 /* We use char because int might match the return type of a gcc2
10575 builtin and then its argument prototype would still apply. */
10577 /* The GNU C library defines this for functions which it implements
10578 to always fail with ENOSYS. Some functions are actually named
10579 something starting with __ and the normal name is an alias. */
10580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10583 char (*f) () = $ac_func;
10592 return f != $ac_func;
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599 (eval $ac_link) 2>conftest.er1
10601 grep -v '^ *+' conftest.er1 >conftest.err
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest$ac_exeext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 eval "$as_ac_var=yes"
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 eval "$as_ac_var=no"
10625 rm -f conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10630 if test `eval echo '${'$as_ac_var'}'` = yes; then
10631 cat >>confdefs.h <<_ACEOF
10632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10639 for ac_func in vasprintf
10641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10642 echo "$as_me:$LINENO: checking for $ac_func" >&5
10643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10644 if eval "test \"\${$as_ac_var+set}\" = set"; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10655 #define $ac_func innocuous_$ac_func
10657 /* System header to define __stub macros and hopefully few prototypes,
10658 which can conflict with char $ac_func (); below.
10659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10660 <limits.h> exists even on freestanding compilers. */
10663 # include <limits.h>
10665 # include <assert.h>
10670 /* Override any gcc2 internal prototype to avoid an error. */
10675 /* We use char because int might match the return type of a gcc2
10676 builtin and then its argument prototype would still apply. */
10678 /* The GNU C library defines this for functions which it implements
10679 to always fail with ENOSYS. Some functions are actually named
10680 something starting with __ and the normal name is an alias. */
10681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10684 char (*f) () = $ac_func;
10693 return f != $ac_func;
10698 rm -f conftest.$ac_objext conftest$ac_exeext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700 (eval $ac_link) 2>conftest.er1
10702 grep -v '^ *+' conftest.er1 >conftest.err
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest$ac_exeext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 eval "$as_ac_var=yes"
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 eval "$as_ac_var=no"
10726 rm -f conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10731 if test `eval echo '${'$as_ac_var'}'` = yes; then
10732 cat >>confdefs.h <<_ACEOF
10733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10747 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
10749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10750 echo "$as_me:$LINENO: checking for $ac_func" >&5
10751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10752 if eval "test \"\${$as_ac_var+set}\" = set"; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10763 #define $ac_func innocuous_$ac_func
10765 /* System header to define __stub macros and hopefully few prototypes,
10766 which can conflict with char $ac_func (); below.
10767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10768 <limits.h> exists even on freestanding compilers. */
10771 # include <limits.h>
10773 # include <assert.h>
10778 /* Override any gcc2 internal prototype to avoid an error. */
10783 /* We use char because int might match the return type of a gcc2
10784 builtin and then its argument prototype would still apply. */
10786 /* The GNU C library defines this for functions which it implements
10787 to always fail with ENOSYS. Some functions are actually named
10788 something starting with __ and the normal name is an alias. */
10789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10792 char (*f) () = $ac_func;
10801 return f != $ac_func;
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10808 (eval $ac_link) 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 eval "$as_ac_var=yes"
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 eval "$as_ac_var=no"
10834 rm -f conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10839 if test `eval echo '${'$as_ac_var'}'` = yes; then
10840 cat >>confdefs.h <<_ACEOF
10841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10849 for ac_func in strchr memcpy
10851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10852 echo "$as_me:$LINENO: checking for $ac_func" >&5
10853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10854 if eval "test \"\${$as_ac_var+set}\" = set"; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10865 #define $ac_func innocuous_$ac_func
10867 /* System header to define __stub macros and hopefully few prototypes,
10868 which can conflict with char $ac_func (); below.
10869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10870 <limits.h> exists even on freestanding compilers. */
10873 # include <limits.h>
10875 # include <assert.h>
10880 /* Override any gcc2 internal prototype to avoid an error. */
10885 /* We use char because int might match the return type of a gcc2
10886 builtin and then its argument prototype would still apply. */
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10894 char (*f) () = $ac_func;
10903 return f != $ac_func;
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; } &&
10923 { ac_try='test -s conftest$ac_exeext'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 eval "$as_ac_var=yes"
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 eval "$as_ac_var=no"
10936 rm -f conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10941 if test `eval echo '${'$as_ac_var'}'` = yes; then
10942 cat >>confdefs.h <<_ACEOF
10943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10950 for ac_func in fgets
10952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10953 echo "$as_me:$LINENO: checking for $ac_func" >&5
10954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10955 if eval "test \"\${$as_ac_var+set}\" = set"; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 cat >conftest.$ac_ext <<_ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10966 #define $ac_func innocuous_$ac_func
10968 /* System header to define __stub macros and hopefully few prototypes,
10969 which can conflict with char $ac_func (); below.
10970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10971 <limits.h> exists even on freestanding compilers. */
10974 # include <limits.h>
10976 # include <assert.h>
10981 /* Override any gcc2 internal prototype to avoid an error. */
10986 /* We use char because int might match the return type of a gcc2
10987 builtin and then its argument prototype would still apply. */
10989 /* The GNU C library defines this for functions which it implements
10990 to always fail with ENOSYS. Some functions are actually named
10991 something starting with __ and the normal name is an alias. */
10992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10995 char (*f) () = $ac_func;
11004 return f != $ac_func;
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011 (eval $ac_link) 2>conftest.er1
11013 grep -v '^ *+' conftest.er1 >conftest.err
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest$ac_exeext'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 eval "$as_ac_var=yes"
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 eval "$as_ac_var=no"
11037 rm -f conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11042 if test `eval echo '${'$as_ac_var'}'` = yes; then
11043 cat >>confdefs.h <<_ACEOF
11044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11051 for ac_func in yylex
11053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11054 echo "$as_me:$LINENO: checking for $ac_func" >&5
11055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11056 if eval "test \"\${$as_ac_var+set}\" = set"; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 cat >conftest.$ac_ext <<_ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11067 #define $ac_func innocuous_$ac_func
11069 /* System header to define __stub macros and hopefully few prototypes,
11070 which can conflict with char $ac_func (); below.
11071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11072 <limits.h> exists even on freestanding compilers. */
11075 # include <limits.h>
11077 # include <assert.h>
11082 /* Override any gcc2 internal prototype to avoid an error. */
11087 /* We use char because int might match the return type of a gcc2
11088 builtin and then its argument prototype would still apply. */
11090 /* The GNU C library defines this for functions which it implements
11091 to always fail with ENOSYS. Some functions are actually named
11092 something starting with __ and the normal name is an alias. */
11093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11096 char (*f) () = $ac_func;
11105 return f != $ac_func;
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112 (eval $ac_link) 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest$ac_exeext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 eval "$as_ac_var=yes"
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11136 eval "$as_ac_var=no"
11138 rm -f conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11143 if test `eval echo '${'$as_ac_var'}'` = yes; then
11144 cat >>confdefs.h <<_ACEOF
11145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11152 echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
11153 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6
11154 if test "${ucsim_cv_scanf_a+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 echo "a b" >conftest.data
11158 if test "$cross_compiling" = yes; then
11159 ucsim_cv_scanf_a="unknown"
11161 cat >conftest.$ac_ext <<_ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11174 if ((f= fopen("conftest.data", "r")) == NULL)
11176 i= fscanf(f, " %a[a-z] ", &a);
11185 rm -f conftest$ac_exeext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ucsim_cv_scanf_a="yes"
11198 echo "$as_me: program exited with status $ac_status" >&5
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ( exit $ac_status )
11203 ucsim_cv_scanf_a="no"
11205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11209 echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
11210 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6
11211 if test "$ucsim_cv_scanf_a" = "yes"; then
11212 cat >>confdefs.h <<\_ACEOF
11218 echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
11219 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6
11220 if test "${ucsim_cv_getcwd+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 if test "$cross_compiling" = yes; then
11224 ucsim_cv_getcwd="unknown"
11226 cat >conftest.$ac_ext <<_ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11233 #include <unistd.h>
11236 if ((getcwd(NULL, 0)) == NULL)
11241 rm -f conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 ucsim_cv_getcwd="yes"
11254 echo "$as_me: program exited with status $ac_status" >&5
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ( exit $ac_status )
11259 ucsim_cv_getcwd="no"
11261 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11265 echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
11266 echo "${ECHO_T}$ucsim_cv_getcwd" >&6
11267 if test "$ucsim_cv_getcwd" = "yes"; then
11268 cat >>confdefs.h <<\_ACEOF
11269 #define GNU_GETCWD 1
11277 echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
11278 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6
11279 if test "${ucsim_cv_accept_length_type+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 ac_save_CPPFLAGS="$CPPFLAGS"
11283 ucsim_cv_accept_length_type=no
11284 for ac_val in int size_t socklen_t; do
11285 CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
11286 cat >conftest.$ac_ext <<_ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11292 #include <sys/types.h>
11293 #include <sys/socket.h>
11297 struct sockaddr a; $ac_val len; accept (0, &a, &len);
11302 rm -f conftest.$ac_objext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304 (eval $ac_compile) 2>conftest.er1
11306 grep -v '^ *+' conftest.er1 >conftest.err
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest.$ac_objext'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ucsim_cv_accept_length_type=$ac_val; break
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11331 CPPFLAGS="$ac_save_CPPFLAGS"
11333 echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
11334 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6
11335 if test "$ucsim_cv_accept_length_type" != no; then
11337 cat >>confdefs.h <<_ACEOF
11338 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
11345 # Macro definitions
11346 ###################
11348 # DD_COPT macro checks if the compiler specified as the 1st parameter
11349 # supports option specified as the 2nd parameter
11350 # For example: DD_COPT(CXX, fPIC)
11355 # Checking characteristics of compilers and other programs
11356 # --------------------------------------------------------
11358 # Cross compiling overrides
11360 if test "$CC" = "i586-mingw32msvc-gcc"; then
11361 ac_cv_c_bigendian=no
11362 ac_cv_sizeof_char=1
11363 ac_cv_sizeof_short=2
11365 ac_cv_sizeof_long=4
11366 ac_cv_sizeof_long_long=4
11369 if test "$cross_compiling" = "no"
11371 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11372 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
11373 if test "${ac_cv_c_bigendian+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 # See if sys/param.h defines the BYTE_ORDER macro.
11377 cat >conftest.$ac_ext <<_ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383 #include <sys/types.h>
11384 #include <sys/param.h>
11389 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11390 bogus endian macros
11397 rm -f conftest.$ac_objext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11399 (eval $ac_compile) 2>conftest.er1
11401 grep -v '^ *+' conftest.er1 >conftest.err
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try='test -s conftest.$ac_objext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 # It does; now see whether it defined to BIG_ENDIAN or not.
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <sys/types.h>
11426 #include <sys/param.h>
11431 #if BYTE_ORDER != BIG_ENDIAN
11439 rm -f conftest.$ac_objext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441 (eval $ac_compile) 2>conftest.er1
11443 grep -v '^ *+' conftest.er1 >conftest.err
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; } &&
11454 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11460 ac_cv_c_bigendian=yes
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 ac_cv_c_bigendian=no
11467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11472 # It does not; compile a test program.
11473 if test "$cross_compiling" = yes; then
11474 # try to guess the endianness by grepping values into an object file
11475 ac_cv_c_bigendian=unknown
11476 cat >conftest.$ac_ext <<_ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11483 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11484 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11485 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11486 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11487 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11491 _ascii (); _ebcdic ();
11496 rm -f conftest.$ac_objext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11498 (eval $ac_compile) 2>conftest.er1
11500 grep -v '^ *+' conftest.er1 >conftest.err
11502 cat conftest.err >&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } &&
11505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11518 ac_cv_c_bigendian=yes
11520 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11521 if test "$ac_cv_c_bigendian" = unknown; then
11522 ac_cv_c_bigendian=no
11524 # finding both strings is unlikely to happen, but who knows?
11525 ac_cv_c_bigendian=unknown
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11535 cat >conftest.$ac_ext <<_ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11544 /* Are we little or big endian? From Harbison&Steele. */
11548 char c[sizeof (long)];
11551 exit (u.c[sizeof (long) - 1] == 1);
11554 rm -f conftest$ac_exeext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556 (eval $ac_link) 2>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ac_cv_c_bigendian=no
11567 echo "$as_me: program exited with status $ac_status" >&5
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 ( exit $ac_status )
11572 ac_cv_c_bigendian=yes
11574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11579 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11580 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11581 case $ac_cv_c_bigendian in
11584 cat >>confdefs.h <<\_ACEOF
11585 #define WORDS_BIGENDIAN 1
11591 { { echo "$as_me:$LINENO: error: unknown endianness
11592 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11593 echo "$as_me: error: unknown endianness
11594 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11595 { (exit 1); exit 1; }; } ;;
11599 #echo "CROSS ENDIAN"
11600 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
11601 ac_cv_c_bigendian=no
11605 #echo "CROSS ENDIAN DONE"
11608 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
11609 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
11610 if test "${ucsim_cv_MM+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 echo "#include <stdio.h>" >_test_.c
11615 $CXXCPP -v -MM _test_.c 1>&5 2>&5
11616 if test "$?" = "0"; then
11623 echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
11624 echo "${ECHO_T}$ucsim_cv_MM" >&6
11625 M_OR_MM=$ucsim_cv_MM
11628 # This is the first time when CFLAGS are set/modified!!
11631 echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
11632 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6
11633 if test "${ucsim_cv_CXXggdb+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 cat >_test_.c <<EOF
11638 int main(void) {return(0);}
11640 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
11641 if test "$?" = "0"; then
11642 ucsim_cv_CXXggdb="yes"
11644 ucsim_cv_CXXggdb="no"
11646 rm -f _test_.* a.out
11648 echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
11649 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6
11652 echo "$as_me:$LINENO: checking whether $CXX accepts -gstabs" >&5
11653 echo $ECHO_N "checking whether $CXX accepts -gstabs... $ECHO_C" >&6
11654 if test "${ucsim_cv_CXXgstabs+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 cat >_test_.c <<EOF
11659 int main(void) {return(0);}
11661 $CXX -v -gstabs -c _test_.c 1>&5 2>&5
11662 if test "$?" = "0"; then
11663 ucsim_cv_CXXgstabs="yes"
11665 ucsim_cv_CXXgstabs="no"
11667 rm -f _test_.* a.out
11669 echo "$as_me:$LINENO: result: $ucsim_cv_CXXgstabs" >&5
11670 echo "${ECHO_T}$ucsim_cv_CXXgstabs" >&6
11672 if test "$ucsim_cv_CXXgstabs" = "yes"; then
11673 gopt="-gstabs+ -g3"
11674 elif test "$ucsim_cv_CXXggdb" = "yes"; then
11679 if test "$CXXFLAGS"x = x ;then
11682 CXXFLAGS="$CXXFLAGS $gopt"
11686 echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
11687 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6
11688 if test "${ucsim_cv_CXXpipe+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 cat >_test_.c <<EOF
11693 int main(void) {return(0);}
11695 $CXX -v -pipe -c _test_.c 1>&5 2>&5
11696 if test "$?" = "0"; then
11697 ucsim_cv_CXXpipe="yes"
11699 ucsim_cv_CXXpipe="no"
11701 rm -f _test_.* a.out
11703 echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
11704 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6
11706 if test "$ucsim_cv_CXXpipe" = "yes"; then
11707 CXXFLAGS="$CXXFLAGS -pipe"
11713 echo "$as_me:$LINENO: checking whether $CXX accepts -fPIC" >&5
11714 echo $ECHO_N "checking whether $CXX accepts -fPIC... $ECHO_C" >&6
11715 if test "${ucsim_cv_CXXfPIC+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 cat >_test_.c <<EOF
11720 int main(void) {return(0);}
11722 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
11723 if test "$?" = "0"; then
11724 ucsim_cv_CXXfPIC="yes"
11726 ucsim_cv_CXXfPIC="no"
11728 rm -f _test_.* a.out
11730 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
11731 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6
11733 if test "$ucsim_cv_CXXfPIC" = "yes"; then
11737 echo "$as_me:$LINENO: checking whether $CXX accepts -fpic" >&5
11738 echo $ECHO_N "checking whether $CXX accepts -fpic... $ECHO_C" >&6
11739 if test "${ucsim_cv_CXXfpic+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 cat >_test_.c <<EOF
11744 int main(void) {return(0);}
11746 $CXX -v -fpic -c _test_.c 1>&5 2>&5
11747 if test "$?" = "0"; then
11748 ucsim_cv_CXXfpic="yes"
11750 ucsim_cv_CXXfpic="no"
11752 rm -f _test_.* a.out
11754 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
11755 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6
11757 if test "$ucsim_cv_CXXfpic" = "yes"; then
11761 if test "$PICOPT"x != "x"; then
11764 # If this is Cygwin neither use Position Independant Code
11766 # Quick + dirty by Bernhard
11768 if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
11776 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
11781 # Checks for typedefs, structures, and compiler characteristics.
11782 # ===========================================================================
11784 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11785 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11786 if test "${ac_cv_type_signal+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 cat >conftest.$ac_ext <<_ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11795 #include <sys/types.h>
11796 #include <signal.h>
11801 extern "C" void (*signal (int, void (*)(int)))(int);
11803 void (*signal ()) ();
11814 rm -f conftest.$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>conftest.er1
11818 grep -v '^ *+' conftest.er1 >conftest.err
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest.$ac_objext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_cv_type_signal=void
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_cv_type_signal=int
11842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11844 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11845 echo "${ECHO_T}$ac_cv_type_signal" >&6
11847 cat >>confdefs.h <<_ACEOF
11848 #define RETSIGTYPE $ac_cv_type_signal
11852 if test "$cross_compiling" = "no"; then
11853 echo "$as_me:$LINENO: checking for char" >&5
11854 echo $ECHO_N "checking for char... $ECHO_C" >&6
11855 if test "${ac_cv_type_char+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 cat >conftest.$ac_ext <<_ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 $ac_includes_default
11876 rm -f conftest.$ac_objext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11878 (eval $ac_compile) 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_type_char=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11906 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11907 echo "${ECHO_T}$ac_cv_type_char" >&6
11909 echo "$as_me:$LINENO: checking size of char" >&5
11910 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11911 if test "${ac_cv_sizeof_char+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 if test "$ac_cv_type_char" = yes; then
11915 # The cast to unsigned long works around a bug in the HP C Compiler
11916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11918 # This bug is HP SR number 8606223364.
11919 if test "$cross_compiling" = yes; then
11920 # Depending upon the size, compute the lo and hi bounds.
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 $ac_includes_default
11931 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11938 rm -f conftest.$ac_objext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>conftest.er1
11942 grep -v '^ *+' conftest.er1 >conftest.err
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11961 cat >conftest.$ac_ext <<_ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 $ac_includes_default
11971 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11978 rm -f conftest.$ac_objext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11980 (eval $ac_compile) 2>conftest.er1
11982 grep -v '^ *+' conftest.er1 >conftest.err
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest.$ac_objext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_hi=$ac_mid; break
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 ac_lo=`expr $ac_mid + 1`
12005 if test $ac_lo -le $ac_mid; then
12009 ac_mid=`expr 2 '*' $ac_mid + 1`
12011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 cat >conftest.$ac_ext <<_ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 $ac_includes_default
12027 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12034 rm -f conftest.$ac_objext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>conftest.er1
12038 grep -v '^ *+' conftest.er1 >conftest.err
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest.$ac_objext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 $ac_includes_default
12067 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12074 rm -f conftest.$ac_objext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12076 (eval $ac_compile) 2>conftest.er1
12078 grep -v '^ *+' conftest.er1 >conftest.err
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_lo=$ac_mid; break
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_hi=`expr '(' $ac_mid ')' - 1`
12101 if test $ac_mid -le $ac_hi; then
12105 ac_mid=`expr 2 '*' $ac_mid`
12107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12118 # Binary search between lo and hi bounds.
12119 while test "x$ac_lo" != "x$ac_hi"; do
12120 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12121 cat >conftest.$ac_ext <<_ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127 $ac_includes_default
12131 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12138 rm -f conftest.$ac_objext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>conftest.er1
12142 grep -v '^ *+' conftest.er1 >conftest.err
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; } &&
12153 { ac_try='test -s conftest.$ac_objext'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12164 ac_lo=`expr '(' $ac_mid ')' + 1`
12166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12169 ?*) ac_cv_sizeof_char=$ac_lo;;
12170 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12171 See \`config.log' for more details." >&5
12172 echo "$as_me: error: cannot compute sizeof (char), 77
12173 See \`config.log' for more details." >&2;}
12174 { (exit 1); exit 1; }; } ;;
12177 if test "$cross_compiling" = yes; then
12178 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12179 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12180 { (exit 1); exit 1; }; }
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12189 long longval () { return (long) (sizeof (char)); }
12190 unsigned long ulongval () { return (long) (sizeof (char)); }
12192 #include <stdlib.h>
12197 FILE *f = fopen ("conftest.val", "w");
12200 if (((long) (sizeof (char))) < 0)
12202 long i = longval ();
12203 if (i != ((long) (sizeof (char))))
12205 fprintf (f, "%ld\n", i);
12209 unsigned long i = ulongval ();
12210 if (i != ((long) (sizeof (char))))
12212 fprintf (f, "%lu\n", i);
12214 exit (ferror (f) || fclose (f) != 0);
12220 rm -f conftest$ac_exeext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222 (eval $ac_link) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_cv_sizeof_char=`cat conftest.val`
12233 echo "$as_me: program exited with status $ac_status" >&5
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 ( exit $ac_status )
12238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12239 See \`config.log' for more details." >&5
12240 echo "$as_me: error: cannot compute sizeof (char), 77
12241 See \`config.log' for more details." >&2;}
12242 { (exit 1); exit 1; }; }
12244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12249 ac_cv_sizeof_char=0
12252 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12253 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12254 cat >>confdefs.h <<_ACEOF
12255 #define SIZEOF_CHAR $ac_cv_sizeof_char
12259 echo "$as_me:$LINENO: checking for short" >&5
12260 echo $ECHO_N "checking for short... $ECHO_C" >&6
12261 if test "${ac_cv_type_short+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 cat >conftest.$ac_ext <<_ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12270 $ac_includes_default
12276 if (sizeof (short))
12282 rm -f conftest.$ac_objext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12284 (eval $ac_compile) 2>conftest.er1
12286 grep -v '^ *+' conftest.er1 >conftest.err
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ac_cv_type_short=yes
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 ac_cv_type_short=no
12310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12313 echo "${ECHO_T}$ac_cv_type_short" >&6
12315 echo "$as_me:$LINENO: checking size of short" >&5
12316 echo $ECHO_N "checking size of short... $ECHO_C" >&6
12317 if test "${ac_cv_sizeof_short+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 if test "$ac_cv_type_short" = yes; then
12321 # The cast to unsigned long works around a bug in the HP C Compiler
12322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12324 # This bug is HP SR number 8606223364.
12325 if test "$cross_compiling" = yes; then
12326 # Depending upon the size, compute the lo and hi bounds.
12327 cat >conftest.$ac_ext <<_ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 $ac_includes_default
12337 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
12344 rm -f conftest.$ac_objext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12346 (eval $ac_compile) 2>conftest.er1
12348 grep -v '^ *+' conftest.er1 >conftest.err
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest.$ac_objext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 $ac_includes_default
12377 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12384 rm -f conftest.$ac_objext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12386 (eval $ac_compile) 2>conftest.er1
12388 grep -v '^ *+' conftest.er1 >conftest.err
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; } &&
12399 { ac_try='test -s conftest.$ac_objext'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
12405 ac_hi=$ac_mid; break
12407 echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12410 ac_lo=`expr $ac_mid + 1`
12411 if test $ac_lo -le $ac_mid; then
12415 ac_mid=`expr 2 '*' $ac_mid + 1`
12417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 cat >conftest.$ac_ext <<_ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 $ac_includes_default
12433 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12440 rm -f conftest.$ac_objext
12441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12442 (eval $ac_compile) 2>conftest.er1
12444 grep -v '^ *+' conftest.er1 >conftest.err
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; } &&
12455 { ac_try='test -s conftest.$ac_objext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12463 cat >conftest.$ac_ext <<_ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 $ac_includes_default
12473 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12480 rm -f conftest.$ac_objext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12482 (eval $ac_compile) 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; } &&
12495 { ac_try='test -s conftest.$ac_objext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501 ac_lo=$ac_mid; break
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12506 ac_hi=`expr '(' $ac_mid ')' - 1`
12507 if test $ac_mid -le $ac_hi; then
12511 ac_mid=`expr 2 '*' $ac_mid`
12513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12524 # Binary search between lo and hi bounds.
12525 while test "x$ac_lo" != "x$ac_hi"; do
12526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 $ac_includes_default
12537 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12544 rm -f conftest.$ac_objext
12545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546 (eval $ac_compile) 2>conftest.er1
12548 grep -v '^ *+' conftest.er1 >conftest.err
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } &&
12553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; } &&
12559 { ac_try='test -s conftest.$ac_objext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12570 ac_lo=`expr '(' $ac_mid ')' + 1`
12572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12575 ?*) ac_cv_sizeof_short=$ac_lo;;
12576 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12577 See \`config.log' for more details." >&5
12578 echo "$as_me: error: cannot compute sizeof (short), 77
12579 See \`config.log' for more details." >&2;}
12580 { (exit 1); exit 1; }; } ;;
12583 if test "$cross_compiling" = yes; then
12584 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12585 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12586 { (exit 1); exit 1; }; }
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 $ac_includes_default
12595 long longval () { return (long) (sizeof (short)); }
12596 unsigned long ulongval () { return (long) (sizeof (short)); }
12598 #include <stdlib.h>
12603 FILE *f = fopen ("conftest.val", "w");
12606 if (((long) (sizeof (short))) < 0)
12608 long i = longval ();
12609 if (i != ((long) (sizeof (short))))
12611 fprintf (f, "%ld\n", i);
12615 unsigned long i = ulongval ();
12616 if (i != ((long) (sizeof (short))))
12618 fprintf (f, "%lu\n", i);
12620 exit (ferror (f) || fclose (f) != 0);
12626 rm -f conftest$ac_exeext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12628 (eval $ac_link) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 ac_cv_sizeof_short=`cat conftest.val`
12639 echo "$as_me: program exited with status $ac_status" >&5
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 ( exit $ac_status )
12644 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12645 See \`config.log' for more details." >&5
12646 echo "$as_me: error: cannot compute sizeof (short), 77
12647 See \`config.log' for more details." >&2;}
12648 { (exit 1); exit 1; }; }
12650 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12655 ac_cv_sizeof_short=0
12658 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12659 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12660 cat >>confdefs.h <<_ACEOF
12661 #define SIZEOF_SHORT $ac_cv_sizeof_short
12665 echo "$as_me:$LINENO: checking for int" >&5
12666 echo $ECHO_N "checking for int... $ECHO_C" >&6
12667 if test "${ac_cv_type_int+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 cat >conftest.$ac_ext <<_ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12676 $ac_includes_default
12688 rm -f conftest.$ac_objext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690 (eval $ac_compile) 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try='test -s conftest.$ac_objext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12718 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12719 echo "${ECHO_T}$ac_cv_type_int" >&6
12721 echo "$as_me:$LINENO: checking size of int" >&5
12722 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12723 if test "${ac_cv_sizeof_int+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 if test "$ac_cv_type_int" = yes; then
12727 # The cast to unsigned long works around a bug in the HP C Compiler
12728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12730 # This bug is HP SR number 8606223364.
12731 if test "$cross_compiling" = yes; then
12732 # Depending upon the size, compute the lo and hi bounds.
12733 cat >conftest.$ac_ext <<_ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739 $ac_includes_default
12743 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>conftest.er1
12754 grep -v '^ *+' conftest.er1 >conftest.err
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest.$ac_objext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12773 cat >conftest.$ac_ext <<_ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12779 $ac_includes_default
12783 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12790 rm -f conftest.$ac_objext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12792 (eval $ac_compile) 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; } &&
12805 { ac_try='test -s conftest.$ac_objext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_hi=$ac_mid; break
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12816 ac_lo=`expr $ac_mid + 1`
12817 if test $ac_lo -le $ac_mid; then
12821 ac_mid=`expr 2 '*' $ac_mid + 1`
12823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12829 cat >conftest.$ac_ext <<_ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 $ac_includes_default
12839 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12846 rm -f conftest.$ac_objext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12848 (eval $ac_compile) 2>conftest.er1
12850 grep -v '^ *+' conftest.er1 >conftest.err
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; } &&
12861 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12869 cat >conftest.$ac_ext <<_ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12875 $ac_includes_default
12879 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12886 rm -f conftest.$ac_objext
12887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12888 (eval $ac_compile) 2>conftest.er1
12890 grep -v '^ *+' conftest.er1 >conftest.err
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; } &&
12901 { ac_try='test -s conftest.$ac_objext'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 ac_lo=$ac_mid; break
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ac_hi=`expr '(' $ac_mid ')' - 1`
12913 if test $ac_mid -le $ac_hi; then
12917 ac_mid=`expr 2 '*' $ac_mid`
12919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12930 # Binary search between lo and hi bounds.
12931 while test "x$ac_lo" != "x$ac_hi"; do
12932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939 $ac_includes_default
12943 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12950 rm -f conftest.$ac_objext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12952 (eval $ac_compile) 2>conftest.er1
12954 grep -v '^ *+' conftest.er1 >conftest.err
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
12959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_lo=`expr '(' $ac_mid ')' + 1`
12978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12981 ?*) ac_cv_sizeof_int=$ac_lo;;
12982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12983 See \`config.log' for more details." >&5
12984 echo "$as_me: error: cannot compute sizeof (int), 77
12985 See \`config.log' for more details." >&2;}
12986 { (exit 1); exit 1; }; } ;;
12989 if test "$cross_compiling" = yes; then
12990 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12991 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12992 { (exit 1); exit 1; }; }
12994 cat >conftest.$ac_ext <<_ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13000 $ac_includes_default
13001 long longval () { return (long) (sizeof (int)); }
13002 unsigned long ulongval () { return (long) (sizeof (int)); }
13004 #include <stdlib.h>
13009 FILE *f = fopen ("conftest.val", "w");
13012 if (((long) (sizeof (int))) < 0)
13014 long i = longval ();
13015 if (i != ((long) (sizeof (int))))
13017 fprintf (f, "%ld\n", i);
13021 unsigned long i = ulongval ();
13022 if (i != ((long) (sizeof (int))))
13024 fprintf (f, "%lu\n", i);
13026 exit (ferror (f) || fclose (f) != 0);
13032 rm -f conftest$ac_exeext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13034 (eval $ac_link) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_sizeof_int=`cat conftest.val`
13045 echo "$as_me: program exited with status $ac_status" >&5
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 ( exit $ac_status )
13050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13051 See \`config.log' for more details." >&5
13052 echo "$as_me: error: cannot compute sizeof (int), 77
13053 See \`config.log' for more details." >&2;}
13054 { (exit 1); exit 1; }; }
13056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13064 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13065 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13066 cat >>confdefs.h <<_ACEOF
13067 #define SIZEOF_INT $ac_cv_sizeof_int
13071 echo "$as_me:$LINENO: checking for long" >&5
13072 echo $ECHO_N "checking for long... $ECHO_C" >&6
13073 if test "${ac_cv_type_long+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 cat >conftest.$ac_ext <<_ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 $ac_includes_default
13094 rm -f conftest.$ac_objext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096 (eval $ac_compile) 2>conftest.er1
13098 grep -v '^ *+' conftest.er1 >conftest.err
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest.$ac_objext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_type_long=yes
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13124 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13125 echo "${ECHO_T}$ac_cv_type_long" >&6
13127 echo "$as_me:$LINENO: checking size of long" >&5
13128 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13129 if test "${ac_cv_sizeof_long+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 if test "$ac_cv_type_long" = yes; then
13133 # The cast to unsigned long works around a bug in the HP C Compiler
13134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13136 # This bug is HP SR number 8606223364.
13137 if test "$cross_compiling" = yes; then
13138 # Depending upon the size, compute the lo and hi bounds.
13139 cat >conftest.$ac_ext <<_ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13145 $ac_includes_default
13149 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13156 rm -f conftest.$ac_objext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158 (eval $ac_compile) 2>conftest.er1
13160 grep -v '^ *+' conftest.er1 >conftest.err
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13179 cat >conftest.$ac_ext <<_ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 $ac_includes_default
13189 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_hi=$ac_mid; break
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 ac_lo=`expr $ac_mid + 1`
13223 if test $ac_lo -le $ac_mid; then
13227 ac_mid=`expr 2 '*' $ac_mid + 1`
13229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 cat >conftest.$ac_ext <<_ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 $ac_includes_default
13245 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13256 grep -v '^ *+' conftest.er1 >conftest.err
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; } &&
13267 { ac_try='test -s conftest.$ac_objext'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13275 cat >conftest.$ac_ext <<_ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13281 $ac_includes_default
13285 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13292 rm -f conftest.$ac_objext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13294 (eval $ac_compile) 2>conftest.er1
13296 grep -v '^ *+' conftest.er1 >conftest.err
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; } &&
13307 { ac_try='test -s conftest.$ac_objext'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; }; then
13313 ac_lo=$ac_mid; break
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 ac_hi=`expr '(' $ac_mid ')' - 1`
13319 if test $ac_mid -le $ac_hi; then
13323 ac_mid=`expr 2 '*' $ac_mid`
13325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13336 # Binary search between lo and hi bounds.
13337 while test "x$ac_lo" != "x$ac_hi"; do
13338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13339 cat >conftest.$ac_ext <<_ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13345 $ac_includes_default
13349 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13356 rm -f conftest.$ac_objext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358 (eval $ac_compile) 2>conftest.er1
13360 grep -v '^ *+' conftest.er1 >conftest.err
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } &&
13371 { ac_try='test -s conftest.$ac_objext'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13379 echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13382 ac_lo=`expr '(' $ac_mid ')' + 1`
13384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13387 ?*) ac_cv_sizeof_long=$ac_lo;;
13388 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13389 See \`config.log' for more details." >&5
13390 echo "$as_me: error: cannot compute sizeof (long), 77
13391 See \`config.log' for more details." >&2;}
13392 { (exit 1); exit 1; }; } ;;
13395 if test "$cross_compiling" = yes; then
13396 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13397 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13398 { (exit 1); exit 1; }; }
13400 cat >conftest.$ac_ext <<_ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 $ac_includes_default
13407 long longval () { return (long) (sizeof (long)); }
13408 unsigned long ulongval () { return (long) (sizeof (long)); }
13410 #include <stdlib.h>
13415 FILE *f = fopen ("conftest.val", "w");
13418 if (((long) (sizeof (long))) < 0)
13420 long i = longval ();
13421 if (i != ((long) (sizeof (long))))
13423 fprintf (f, "%ld\n", i);
13427 unsigned long i = ulongval ();
13428 if (i != ((long) (sizeof (long))))
13430 fprintf (f, "%lu\n", i);
13432 exit (ferror (f) || fclose (f) != 0);
13438 rm -f conftest$ac_exeext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13440 (eval $ac_link) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 ac_cv_sizeof_long=`cat conftest.val`
13451 echo "$as_me: program exited with status $ac_status" >&5
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13455 ( exit $ac_status )
13456 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13457 See \`config.log' for more details." >&5
13458 echo "$as_me: error: cannot compute sizeof (long), 77
13459 See \`config.log' for more details." >&2;}
13460 { (exit 1); exit 1; }; }
13462 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13467 ac_cv_sizeof_long=0
13470 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13471 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13472 cat >>confdefs.h <<_ACEOF
13473 #define SIZEOF_LONG $ac_cv_sizeof_long
13477 echo "$as_me:$LINENO: checking for long long" >&5
13478 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13479 if test "${ac_cv_type_long_long+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 cat >conftest.$ac_ext <<_ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13488 $ac_includes_default
13492 if ((long long *) 0)
13494 if (sizeof (long long))
13500 rm -f conftest.$ac_objext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13502 (eval $ac_compile) 2>conftest.er1
13504 grep -v '^ *+' conftest.er1 >conftest.err
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } &&
13509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511 (eval $ac_try) 2>&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; } &&
13515 { ac_try='test -s conftest.$ac_objext'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
13521 ac_cv_type_long_long=yes
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 ac_cv_type_long_long=no
13528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13530 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13531 echo "${ECHO_T}$ac_cv_type_long_long" >&6
13533 echo "$as_me:$LINENO: checking size of long long" >&5
13534 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
13535 if test "${ac_cv_sizeof_long_long+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 if test "$ac_cv_type_long_long" = yes; then
13539 # The cast to unsigned long works around a bug in the HP C Compiler
13540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13542 # This bug is HP SR number 8606223364.
13543 if test "$cross_compiling" = yes; then
13544 # Depending upon the size, compute the lo and hi bounds.
13545 cat >conftest.$ac_ext <<_ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h. */
13551 $ac_includes_default
13555 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13562 rm -f conftest.$ac_objext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13564 (eval $ac_compile) 2>conftest.er1
13566 grep -v '^ *+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest.$ac_objext'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13585 cat >conftest.$ac_ext <<_ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 $ac_includes_default
13595 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
13606 grep -v '^ *+' conftest.er1 >conftest.err
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest.$ac_objext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_hi=$ac_mid; break
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_lo=`expr $ac_mid + 1`
13629 if test $ac_lo -le $ac_mid; then
13633 ac_mid=`expr 2 '*' $ac_mid + 1`
13635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 $ac_includes_default
13651 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13658 rm -f conftest.$ac_objext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660 (eval $ac_compile) 2>conftest.er1
13662 grep -v '^ *+' conftest.er1 >conftest.err
13664 cat conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try='test -s conftest.$ac_objext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13681 cat >conftest.$ac_ext <<_ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 $ac_includes_default
13691 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13698 rm -f conftest.$ac_objext
13699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13700 (eval $ac_compile) 2>conftest.er1
13702 grep -v '^ *+' conftest.er1 >conftest.err
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
13707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try='test -s conftest.$ac_objext'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_lo=$ac_mid; break
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_hi=`expr '(' $ac_mid ')' - 1`
13725 if test $ac_mid -le $ac_hi; then
13729 ac_mid=`expr 2 '*' $ac_mid`
13731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13742 # Binary search between lo and hi bounds.
13743 while test "x$ac_lo" != "x$ac_hi"; do
13744 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13745 cat >conftest.$ac_ext <<_ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 $ac_includes_default
13755 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764 (eval $ac_compile) 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_lo=`expr '(' $ac_mid ')' + 1`
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13793 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13794 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13795 See \`config.log' for more details." >&5
13796 echo "$as_me: error: cannot compute sizeof (long long), 77
13797 See \`config.log' for more details." >&2;}
13798 { (exit 1); exit 1; }; } ;;
13801 if test "$cross_compiling" = yes; then
13802 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13803 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13804 { (exit 1); exit 1; }; }
13806 cat >conftest.$ac_ext <<_ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h. */
13812 $ac_includes_default
13813 long longval () { return (long) (sizeof (long long)); }
13814 unsigned long ulongval () { return (long) (sizeof (long long)); }
13816 #include <stdlib.h>
13821 FILE *f = fopen ("conftest.val", "w");
13824 if (((long) (sizeof (long long))) < 0)
13826 long i = longval ();
13827 if (i != ((long) (sizeof (long long))))
13829 fprintf (f, "%ld\n", i);
13833 unsigned long i = ulongval ();
13834 if (i != ((long) (sizeof (long long))))
13836 fprintf (f, "%lu\n", i);
13838 exit (ferror (f) || fclose (f) != 0);
13844 rm -f conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 ac_cv_sizeof_long_long=`cat conftest.val`
13857 echo "$as_me: program exited with status $ac_status" >&5
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ( exit $ac_status )
13862 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13863 See \`config.log' for more details." >&5
13864 echo "$as_me: error: cannot compute sizeof (long long), 77
13865 See \`config.log' for more details." >&2;}
13866 { (exit 1); exit 1; }; }
13868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13873 ac_cv_sizeof_long_long=0
13876 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13877 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13878 cat >>confdefs.h <<_ACEOF
13879 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13884 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
13885 ac_cv_sizeof_char=1
13886 ac_cv_sizeof_short=2
13888 ac_cv_sizeof_long=4
13889 ac_cv_sizeof_long_long=4
13898 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
13902 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
13906 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
13910 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
13914 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
13921 echo "$as_me:$LINENO: checking type name for byte" >&5
13922 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
13923 TYPE_BYTE=`type_name 1`
13924 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
13925 echo "${ECHO_T}$TYPE_BYTE" >&6
13926 echo "$as_me:$LINENO: checking type name for word" >&5
13927 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
13928 TYPE_WORD=`type_name 2`
13929 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
13930 echo "${ECHO_T}$TYPE_WORD" >&6
13931 echo "$as_me:$LINENO: checking type name for dword" >&5
13932 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
13933 TYPE_DWORD=`type_name 4`
13934 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
13935 echo "${ECHO_T}$TYPE_DWORD" >&6
13936 cat >>confdefs.h <<_ACEOF
13937 #define TYPE_BYTE $TYPE_BYTE
13940 cat >>confdefs.h <<_ACEOF
13941 #define TYPE_WORD $TYPE_WORD
13944 cat >>confdefs.h <<_ACEOF
13945 #define TYPE_DWORD $TYPE_DWORD
13949 if echo $TYPE_DWORD|grep short >/dev/null; then
13951 elif echo $TYPE_DWORD|grep long >/dev/null; then
13957 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
13958 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
13962 cat >>confdefs.h <<_ACEOF
13966 cat >>confdefs.h <<_ACEOF
13971 # Generating output files
13972 # ===========================================================================
13974 ac_config_files="$ac_config_files 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"
13975 cat >confcache <<\_ACEOF
13976 # This file is a shell script that caches the results of configure
13977 # tests run on this system so they can be shared between configure
13978 # scripts and configure runs, see configure's option --config-cache.
13979 # It is not useful on other systems. If it contains results you don't
13980 # want to keep, you may remove or edit it.
13982 # config.status only pays attention to the cache file if you give it
13983 # the --recheck option to rerun configure.
13985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13987 # following values.
13991 # The following way of writing the cache mishandles newlines in values,
13992 # but we know of no workaround that is simple, portable, and efficient.
13993 # So, don't put newlines in cache variables' values.
13994 # Ultrix sh set writes to stderr and can't be redirected directly,
13995 # and sets the high bit in the cache file unless we assign to the vars.
13998 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14000 # `set' does not quote correctly, so add quotes (double-quote
14001 # substitution turns \\\\ into \\, and sed turns \\ into \).
14004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14007 # `set' quotes correctly as required by POSIX, so do not add quotes.
14009 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14018 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14020 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14021 if test -w $cache_file; then
14022 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14023 cat confcache >$cache_file
14025 echo "not updating unwritable cache $cache_file"
14030 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14031 # Let make expand exec_prefix.
14032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14034 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14035 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14036 # trailing colons and then remove the whole line if VPATH becomes empty
14037 # (actually we leave an empty line to preserve line numbers).
14038 if test "x$srcdir" = x.; then
14039 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14040 s/:*\$(srcdir):*/:/;
14041 s/:*\${srcdir}:*/:/;
14043 s/^\([^=]*=[ ]*\):*/\1/;
14049 DEFS=-DHAVE_CONFIG_H
14053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14054 # 1. Remove the extension, and $U if already installed.
14055 ac_i=`echo "$ac_i" |
14056 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14058 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14059 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14061 LIBOBJS=$ac_libobjs
14063 LTLIBOBJS=$ac_ltlibobjs
14067 : ${CONFIG_STATUS=./config.status}
14068 ac_clean_files_save=$ac_clean_files
14069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14070 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14071 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14072 cat >$CONFIG_STATUS <<_ACEOF
14074 # Generated by $as_me.
14075 # Run this file to recreate the current configuration.
14076 # Compiler output produced by configure, useful for debugging
14077 # configure, is in config.log if it exists.
14080 ac_cs_recheck=false
14082 SHELL=\${CONFIG_SHELL-$SHELL}
14085 cat >>$CONFIG_STATUS <<\_ACEOF
14086 ## --------------------- ##
14087 ## M4sh Initialization. ##
14088 ## --------------------- ##
14090 # Be Bourne compatible
14091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14094 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14095 # is contrary to our usage. Disable this feature.
14096 alias -g '${1+"$@"}'='"$@"'
14097 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14100 DUALCASE=1; export DUALCASE # for MKS sh
14102 # Support unset when possible.
14103 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14110 # Work around bugs in pre-3.0 UWIN ksh.
14111 $as_unset ENV MAIL MAILPATH
14118 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14119 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14120 LC_TELEPHONE LC_TIME
14122 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14123 eval $as_var=C; export $as_var
14129 # Required to use basename.
14130 if expr a : '\(a\)' >/dev/null 2>&1; then
14136 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14137 as_basename=basename
14143 # Name of the executable.
14144 as_me=`$as_basename "$0" ||
14145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14146 X"$0" : 'X\(//\)$' \| \
14147 X"$0" : 'X\(/\)$' \| \
14148 . : '\(.\)' 2>/dev/null ||
14150 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14151 /^X\/\(\/\/\)$/{ s//\1/; q; }
14152 /^X\/\(\/\).*/{ s//\1/; q; }
14156 # PATH needs CR, and LINENO needs CR and PATH.
14157 # Avoid depending upon Character Ranges.
14158 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14159 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14160 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14161 as_cr_digits='0123456789'
14162 as_cr_alnum=$as_cr_Letters$as_cr_digits
14164 # The user is always right.
14165 if test "${PATH_SEPARATOR+set}" != set; then
14166 echo "#! /bin/sh" >conf$$.sh
14167 echo "exit 0" >>conf$$.sh
14169 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14178 as_lineno_1=$LINENO
14179 as_lineno_2=$LINENO
14180 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14181 test "x$as_lineno_1" != "x$as_lineno_2" &&
14182 test "x$as_lineno_3" = "x$as_lineno_2" || {
14183 # Find who we are. Look in the path if we contain no path at all
14186 *[\\/]* ) as_myself=$0 ;;
14187 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188 for as_dir in $PATH
14191 test -z "$as_dir" && as_dir=.
14192 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14197 # We did not find ourselves, most probably we were run as `sh COMMAND'
14198 # in which case we are not to be found in the path.
14199 if test "x$as_myself" = x; then
14202 if test ! -f "$as_myself"; then
14203 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14204 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14205 { (exit 1); exit 1; }; }
14207 case $CONFIG_SHELL in
14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14213 test -z "$as_dir" && as_dir=.
14214 for as_base in sh bash ksh sh5; do
14217 if ("$as_dir/$as_base" -c '
14218 as_lineno_1=$LINENO
14219 as_lineno_2=$LINENO
14220 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14221 test "x$as_lineno_1" != "x$as_lineno_2" &&
14222 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14223 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14224 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14225 CONFIG_SHELL=$as_dir/$as_base
14226 export CONFIG_SHELL
14227 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14235 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14236 # uniformly replaced by the line number. The first 'sed' inserts a
14237 # line-number line before each line; the second 'sed' does the real
14238 # work. The second script uses 'N' to pair each line-number line
14239 # with the numbered line, and appends trailing '-' during
14240 # substitution so that $LINENO is not a special case at line end.
14241 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14242 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14243 sed '=' <$as_myself |
14248 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14251 s,^['$as_cr_digits']*\n,,
14252 ' >$as_me.lineno &&
14253 chmod +x $as_me.lineno ||
14254 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14255 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14256 { (exit 1); exit 1; }; }
14258 # Don't try to exec as it changes $[0], causing all sort of problems
14259 # (the dirname of $[0] is not the place where we might find the
14260 # original and so on. Autoconf is especially sensible to this).
14262 # Exit status is that of the last command.
14267 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14268 *c*,-n*) ECHO_N= ECHO_C='
14270 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14271 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14274 if expr a : '\(a\)' >/dev/null 2>&1; then
14280 rm -f conf$$ conf$$.exe conf$$.file
14282 if ln -s conf$$.file conf$$ 2>/dev/null; then
14283 # We could just check for DJGPP; but this test a) works b) is more generic
14284 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14285 if test -f conf$$.exe; then
14286 # Don't use ln at all; we don't have any links
14291 elif ln conf$$.file conf$$ 2>/dev/null; then
14296 rm -f conf$$ conf$$.exe conf$$.file
14298 if mkdir -p . 2>/dev/null; then
14301 test -d ./-p && rmdir ./-p
14305 as_executable_p="test -f"
14307 # Sed expression to map a string onto a valid CPP name.
14308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14310 # Sed expression to map a string onto a valid variable name.
14311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14315 # We need space, tab and new line, in precisely that order.
14325 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14326 # report actual input values of CONFIG_FILES etc. instead of their
14327 # values after options handling. Logging --version etc. is OK.
14331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14332 ## Running $as_me. ##
14337 This file was extended by $as_me, which was
14338 generated by GNU Autoconf 2.59. Invocation command line was
14340 CONFIG_FILES = $CONFIG_FILES
14341 CONFIG_HEADERS = $CONFIG_HEADERS
14342 CONFIG_LINKS = $CONFIG_LINKS
14343 CONFIG_COMMANDS = $CONFIG_COMMANDS
14347 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14351 # Files that config.status was made for.
14352 if test -n "$ac_config_files"; then
14353 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14356 if test -n "$ac_config_headers"; then
14357 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14360 if test -n "$ac_config_links"; then
14361 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14364 if test -n "$ac_config_commands"; then
14365 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14368 cat >>$CONFIG_STATUS <<\_ACEOF
14371 \`$as_me' instantiates files from templates according to the
14372 current configuration.
14374 Usage: $0 [OPTIONS] [FILE]...
14376 -h, --help print this help, then exit
14377 -V, --version print version number, then exit
14378 -q, --quiet do not print progress messages
14379 -d, --debug don't remove temporary files
14380 --recheck update $as_me by reconfiguring in the same conditions
14381 --file=FILE[:TEMPLATE]
14382 instantiate the configuration file FILE
14383 --header=FILE[:TEMPLATE]
14384 instantiate the configuration header FILE
14386 Configuration files:
14389 Configuration headers:
14392 Report bugs to <bug-autoconf@gnu.org>."
14395 cat >>$CONFIG_STATUS <<_ACEOF
14398 configured by $0, generated by GNU Autoconf 2.59,
14399 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14401 Copyright (C) 2003 Free Software Foundation, Inc.
14402 This config.status script is free software; the Free Software Foundation
14403 gives unlimited permission to copy, distribute and modify it."
14408 cat >>$CONFIG_STATUS <<\_ACEOF
14409 # If no file are specified by the user, then we need to provide default
14410 # value. By we need to know if files were specified by the user.
14416 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14417 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14425 *) # This is not an option, so the user has probably given explicit
14428 ac_need_defaults=false;;
14432 # Handling of the options.
14434 cat >>$CONFIG_STATUS <<\_ACEOF
14435 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14437 --version | --vers* | -V )
14438 echo "$ac_cs_version"; exit 0 ;;
14440 # Conflict between --help and --header
14441 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14442 Try \`$0 --help' for more information." >&5
14443 echo "$as_me: error: ambiguous option: $1
14444 Try \`$0 --help' for more information." >&2;}
14445 { (exit 1); exit 1; }; };;
14446 --help | --hel | -h )
14447 echo "$ac_cs_usage"; exit 0 ;;
14448 --debug | --d* | -d )
14450 --file | --fil | --fi | --f )
14452 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14453 ac_need_defaults=false;;
14454 --header | --heade | --head | --hea )
14456 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14457 ac_need_defaults=false;;
14458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14459 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14462 # This is an error.
14463 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14464 Try \`$0 --help' for more information." >&5
14465 echo "$as_me: error: unrecognized option: $1
14466 Try \`$0 --help' for more information." >&2;}
14467 { (exit 1); exit 1; }; } ;;
14469 *) ac_config_targets="$ac_config_targets $1" ;;
14475 ac_configure_extra_args=
14477 if $ac_cs_silent; then
14479 ac_configure_extra_args="$ac_configure_extra_args --silent"
14483 cat >>$CONFIG_STATUS <<_ACEOF
14484 if \$ac_cs_recheck; then
14485 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14486 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14495 cat >>$CONFIG_STATUS <<\_ACEOF
14496 for ac_config_target in $ac_config_targets
14498 case "$ac_config_target" in
14499 # Handling of arguments.
14500 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
14501 "packages.mk" ) CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
14502 "sim.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
14503 "cmd.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
14504 "s51.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
14505 "avr.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
14506 "z80.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
14507 "hc08.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES hc08.src/Makefile" ;;
14508 "xa.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
14509 "gui.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
14510 "gui.src/serio.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
14511 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14512 "ddconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
14513 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14514 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14515 { (exit 1); exit 1; }; };;
14519 # If the user did not use the arguments to specify the items to instantiate,
14520 # then the envvar interface is used. Set only those that are not.
14521 # We use the long form for the default assignment because of an extremely
14522 # bizarre bug on SunOS 4.1.3.
14523 if $ac_need_defaults; then
14524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14528 # Have a temporary directory for convenience. Make it in the build tree
14529 # simply because there is no reason to put it here, and in addition,
14530 # creating and moving files from /tmp can sometimes cause problems.
14531 # Create a temporary directory, and hook for its removal unless debugging.
14534 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14535 trap '{ (exit 1); exit 1; }' 1 2 13 15
14538 # Create a (secure) tmp directory for tmp files.
14541 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14542 test -n "$tmp" && test -d "$tmp"
14545 tmp=./confstat$$-$RANDOM
14546 (umask 077 && mkdir $tmp)
14549 echo "$me: cannot create a temporary directory in ." >&2
14550 { (exit 1); exit 1; }
14555 cat >>$CONFIG_STATUS <<_ACEOF
14558 # CONFIG_FILES section.
14561 # No need to generate the scripts if there are no CONFIG_FILES.
14562 # This happens for instance when ./config.status config.h
14563 if test -n "\$CONFIG_FILES"; then
14564 # Protect against being on the right side of a sed subst in config.status.
14565 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14566 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14567 s,@SHELL@,$SHELL,;t t
14568 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14569 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14570 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14571 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14572 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14573 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14574 s,@exec_prefix@,$exec_prefix,;t t
14575 s,@prefix@,$prefix,;t t
14576 s,@program_transform_name@,$program_transform_name,;t t
14577 s,@bindir@,$bindir,;t t
14578 s,@sbindir@,$sbindir,;t t
14579 s,@libexecdir@,$libexecdir,;t t
14580 s,@datadir@,$datadir,;t t
14581 s,@sysconfdir@,$sysconfdir,;t t
14582 s,@sharedstatedir@,$sharedstatedir,;t t
14583 s,@localstatedir@,$localstatedir,;t t
14584 s,@libdir@,$libdir,;t t
14585 s,@includedir@,$includedir,;t t
14586 s,@oldincludedir@,$oldincludedir,;t t
14587 s,@infodir@,$infodir,;t t
14588 s,@mandir@,$mandir,;t t
14589 s,@build_alias@,$build_alias,;t t
14590 s,@host_alias@,$host_alias,;t t
14591 s,@target_alias@,$target_alias,;t t
14592 s,@DEFS@,$DEFS,;t t
14593 s,@ECHO_C@,$ECHO_C,;t t
14594 s,@ECHO_N@,$ECHO_N,;t t
14595 s,@ECHO_T@,$ECHO_T,;t t
14596 s,@LIBS@,$LIBS,;t t
14598 s,@VERSION@,$VERSION,;t t
14599 s,@VERSIONHI@,$VERSIONHI,;t t
14600 s,@VERSIONLO@,$VERSIONLO,;t t
14601 s,@VERSIONP@,$VERSIONP,;t t
14602 s,@docdir@,$docdir,;t t
14603 s,@enable_ucsim@,$enable_ucsim,;t t
14604 s,@enable_dlso@,$enable_dlso,;t t
14605 s,@enable_51@,$enable_51,;t t
14606 s,@enable_avr@,$enable_avr,;t t
14607 s,@enable_z80@,$enable_z80,;t t
14608 s,@enable_hc08@,$enable_hc08,;t t
14609 s,@enable_xa@,$enable_xa,;t t
14610 s,@enable_serio@,$enable_serio,;t t
14612 s,@CXXFLAGS@,$CXXFLAGS,;t t
14613 s,@LDFLAGS@,$LDFLAGS,;t t
14614 s,@CPPFLAGS@,$CPPFLAGS,;t t
14615 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14616 s,@EXEEXT@,$EXEEXT,;t t
14617 s,@OBJEXT@,$OBJEXT,;t t
14618 s,@CXXCPP@,$CXXCPP,;t t
14619 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14620 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14621 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14622 s,@RANLIB@,$RANLIB,;t t
14623 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14624 s,@STRIP@,$STRIP,;t t
14625 s,@build@,$build,;t t
14626 s,@build_cpu@,$build_cpu,;t t
14627 s,@build_vendor@,$build_vendor,;t t
14628 s,@build_os@,$build_os,;t t
14629 s,@host@,$host,;t t
14630 s,@host_cpu@,$host_cpu,;t t
14631 s,@host_vendor@,$host_vendor,;t t
14632 s,@host_os@,$host_os,;t t
14634 s,@CFLAGS@,$CFLAGS,;t t
14635 s,@ac_ct_CC@,$ac_ct_CC,;t t
14636 s,@LN_S@,$LN_S,;t t
14637 s,@ECHO@,$ECHO,;t t
14638 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14640 s,@EGREP@,$EGREP,;t t
14641 s,@LIBTOOL@,$LIBTOOL,;t t
14642 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
14644 s,@LEXLIB@,$LEXLIB,;t t
14645 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14646 s,@YACC@,$YACC,;t t
14647 s,@BISON_PLUS_PLUS@,$BISON_PLUS_PLUS,;t t
14648 s,@dl_ok@,$dl_ok,;t t
14650 s,@panel_ok@,$panel_ok,;t t
14651 s,@curses_ok@,$curses_ok,;t t
14652 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
14653 s,@M_OR_MM@,$M_OR_MM,;t t
14654 s,@SHAREDLIB@,$SHAREDLIB,;t t
14655 s,@PICOPT@,$PICOPT,;t t
14656 s,@dlso_ok@,$dlso_ok,;t t
14657 s,@LIBOBJS@,$LIBOBJS,;t t
14658 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14663 cat >>$CONFIG_STATUS <<\_ACEOF
14664 # Split the substitutions into bite-sized pieces for seds with
14665 # small command number limits, like on Digital OSF/1 and HP-UX.
14666 ac_max_sed_lines=48
14667 ac_sed_frag=1 # Number of current file.
14668 ac_beg=1 # First line for current file.
14669 ac_end=$ac_max_sed_lines # Line after last line for current file.
14672 while $ac_more_lines; do
14673 if test $ac_beg -gt 1; then
14674 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14676 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14678 if test ! -s $tmp/subs.frag; then
14679 ac_more_lines=false
14681 # The purpose of the label and of the branching condition is to
14682 # speed up the sed processing (if there are no `@' at all, there
14683 # is no need to browse any of the substitutions).
14684 # These are the two extra sed commands mentioned above.
14686 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14687 if test -z "$ac_sed_cmds"; then
14688 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14690 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14692 ac_sed_frag=`expr $ac_sed_frag + 1`
14694 ac_end=`expr $ac_end + $ac_max_sed_lines`
14697 if test -z "$ac_sed_cmds"; then
14700 fi # test -n "$CONFIG_FILES"
14703 cat >>$CONFIG_STATUS <<\_ACEOF
14704 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14705 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14707 - | *:- | *:-:* ) # input from stdin
14709 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14710 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14711 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14712 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14713 * ) ac_file_in=$ac_file.in ;;
14716 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14717 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14718 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14719 X"$ac_file" : 'X\(//\)[^/]' \| \
14720 X"$ac_file" : 'X\(//\)$' \| \
14721 X"$ac_file" : 'X\(/\)' \| \
14722 . : '\(.\)' 2>/dev/null ||
14724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14725 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14726 /^X\(\/\/\)$/{ s//\1/; q; }
14727 /^X\(\/\).*/{ s//\1/; q; }
14729 { if $as_mkdir_p; then
14734 while test ! -d "$as_dir"; do
14735 as_dirs="$as_dir $as_dirs"
14736 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14738 X"$as_dir" : 'X\(//\)[^/]' \| \
14739 X"$as_dir" : 'X\(//\)$' \| \
14740 X"$as_dir" : 'X\(/\)' \| \
14741 . : '\(.\)' 2>/dev/null ||
14743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14745 /^X\(\/\/\)$/{ s//\1/; q; }
14746 /^X\(\/\).*/{ s//\1/; q; }
14749 test ! -n "$as_dirs" || mkdir $as_dirs
14750 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14751 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14752 { (exit 1); exit 1; }; }; }
14756 if test "$ac_dir" != .; then
14757 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14758 # A "../" for each directory in $ac_dir_suffix.
14759 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14761 ac_dir_suffix= ac_top_builddir=
14765 .) # No --srcdir option. We are building in place.
14767 if test -z "$ac_top_builddir"; then
14770 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14772 [\\/]* | ?:[\\/]* ) # Absolute path.
14773 ac_srcdir=$srcdir$ac_dir_suffix;
14774 ac_top_srcdir=$srcdir ;;
14775 *) # Relative path.
14776 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14777 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14780 # Do not use `cd foo && pwd` to compute absolute paths, because
14781 # the directories may not exist.
14783 .) ac_abs_builddir="$ac_dir";;
14786 .) ac_abs_builddir=`pwd`;;
14787 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14788 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14791 case $ac_abs_builddir in
14792 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14794 case ${ac_top_builddir}. in
14795 .) ac_abs_top_builddir=$ac_abs_builddir;;
14796 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14797 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14800 case $ac_abs_builddir in
14801 .) ac_abs_srcdir=$ac_srcdir;;
14804 .) ac_abs_srcdir=$ac_abs_builddir;;
14805 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14806 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14809 case $ac_abs_builddir in
14810 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14812 case $ac_top_srcdir in
14813 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14814 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14815 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14821 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14822 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14825 # Let's still pretend it is `configure' which instantiates (i.e., don't
14826 # use $as_me), people would be surprised to read:
14827 # /* config.h. Generated by config.status. */
14828 if test x"$ac_file" = x-; then
14831 configure_input="$ac_file. "
14833 configure_input=$configure_input"Generated from `echo $ac_file_in |
14834 sed 's,.*/,,'` by configure."
14836 # First look for the input files in the build tree, otherwise in the
14838 ac_file_inputs=`IFS=:
14839 for f in $ac_file_in; do
14841 -) echo $tmp/stdin ;;
14843 # Absolute (can't be DOS-style, as IFS=:)
14844 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14845 echo "$as_me: error: cannot find input file: $f" >&2;}
14846 { (exit 1); exit 1; }; }
14849 if test -f "$f"; then
14852 elif test -f "$srcdir/$f"; then
14857 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14858 echo "$as_me: error: cannot find input file: $f" >&2;}
14859 { (exit 1); exit 1; }; }
14862 done` || { (exit 1); exit 1; }
14864 if test x"$ac_file" != x-; then
14865 { echo "$as_me:$LINENO: creating $ac_file" >&5
14866 echo "$as_me: creating $ac_file" >&6;}
14870 cat >>$CONFIG_STATUS <<_ACEOF
14874 cat >>$CONFIG_STATUS <<\_ACEOF
14876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14877 s,@configure_input@,$configure_input,;t t
14878 s,@srcdir@,$ac_srcdir,;t t
14879 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14880 s,@top_srcdir@,$ac_top_srcdir,;t t
14881 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14882 s,@builddir@,$ac_builddir,;t t
14883 s,@abs_builddir@,$ac_abs_builddir,;t t
14884 s,@top_builddir@,$ac_top_builddir,;t t
14885 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14886 s,@INSTALL@,$ac_INSTALL,;t t
14887 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14889 if test x"$ac_file" != x-; then
14890 mv $tmp/out $ac_file
14898 cat >>$CONFIG_STATUS <<\_ACEOF
14901 # CONFIG_HEADER section.
14904 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14905 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14907 # ac_d sets the value in "#define NAME VALUE" lines.
14908 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14909 ac_dB='[ ].*$,\1#\2'
14912 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14913 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14914 ac_uB='$,\1#\2define\3'
14918 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14921 - | *:- | *:-:* ) # input from stdin
14923 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14925 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14927 * ) ac_file_in=$ac_file.in ;;
14930 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14931 echo "$as_me: creating $ac_file" >&6;}
14933 # First look for the input files in the build tree, otherwise in the
14935 ac_file_inputs=`IFS=:
14936 for f in $ac_file_in; do
14938 -) echo $tmp/stdin ;;
14940 # Absolute (can't be DOS-style, as IFS=:)
14941 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14942 echo "$as_me: error: cannot find input file: $f" >&2;}
14943 { (exit 1); exit 1; }; }
14944 # Do quote $f, to prevent DOS paths from being IFS'd.
14947 if test -f "$f"; then
14950 elif test -f "$srcdir/$f"; then
14955 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14956 echo "$as_me: error: cannot find input file: $f" >&2;}
14957 { (exit 1); exit 1; }; }
14960 done` || { (exit 1); exit 1; }
14961 # Remove the trailing spaces.
14962 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14966 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14967 # `conftest.undefs', that substitutes the proper values into
14968 # config.h.in to produce config.h. The first handles `#define'
14969 # templates, and the second `#undef' templates.
14970 # And first: Protect against being on the right side of a sed subst in
14971 # config.status. Protect against being in an unquoted here document
14972 # in config.status.
14973 rm -f conftest.defines conftest.undefs
14974 # Using a here document instead of a string reduces the quoting nightmare.
14975 # Putting comments in sed scripts is not portable.
14977 # `end' is used to avoid that the second main sed command (meant for
14978 # 0-ary CPP macros) applies to n-ary macro definitions.
14979 # See the Autoconf documentation for `clear'.
14980 cat >confdef2sed.sed <<\_ACEOF
14985 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14987 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14990 # If some macros were called several times there might be several times
14991 # the same #defines, which is useless. Nevertheless, we may not want to
14992 # sort them, since we want the *last* AC-DEFINE to be honored.
14993 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14994 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14995 rm -f confdef2sed.sed
14997 # This sed command replaces #undef with comments. This is necessary, for
14998 # example, in the case of _POSIX_SOURCE, which is predefined and required
14999 # on some systems where configure will not decide to define it.
15000 cat >>conftest.undefs <<\_ACEOF
15001 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15004 # Break up conftest.defines because some shells have a limit on the size
15005 # of here documents, and old seds have small limits too (100 cmds).
15006 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15007 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15008 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15009 echo ' :' >>$CONFIG_STATUS
15010 rm -f conftest.tail
15011 while grep . conftest.defines >/dev/null
15013 # Write a limited-size here document to $tmp/defines.sed.
15014 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15015 # Speed up: don't consider the non `#define' lines.
15016 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15017 # Work around the forget-to-reset-the-flag bug.
15018 echo 't clr' >>$CONFIG_STATUS
15019 echo ': clr' >>$CONFIG_STATUS
15020 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15022 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15024 mv $tmp/out $tmp/in
15026 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15027 rm -f conftest.defines
15028 mv conftest.tail conftest.defines
15030 rm -f conftest.defines
15031 echo ' fi # grep' >>$CONFIG_STATUS
15032 echo >>$CONFIG_STATUS
15034 # Break up conftest.undefs because some shells have a limit on the size
15035 # of here documents, and old seds have small limits too (100 cmds).
15036 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15037 rm -f conftest.tail
15038 while grep . conftest.undefs >/dev/null
15040 # Write a limited-size here document to $tmp/undefs.sed.
15041 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15042 # Speed up: don't consider the non `#undef'
15043 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15044 # Work around the forget-to-reset-the-flag bug.
15045 echo 't clr' >>$CONFIG_STATUS
15046 echo ': clr' >>$CONFIG_STATUS
15047 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15049 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15051 mv $tmp/out $tmp/in
15053 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15054 rm -f conftest.undefs
15055 mv conftest.tail conftest.undefs
15057 rm -f conftest.undefs
15059 cat >>$CONFIG_STATUS <<\_ACEOF
15060 # Let's still pretend it is `configure' which instantiates (i.e., don't
15061 # use $as_me), people would be surprised to read:
15062 # /* config.h. Generated by config.status. */
15063 if test x"$ac_file" = x-; then
15064 echo "/* Generated by configure. */" >$tmp/config.h
15066 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15068 cat $tmp/in >>$tmp/config.h
15070 if test x"$ac_file" != x-; then
15071 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15072 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15073 echo "$as_me: $ac_file is unchanged" >&6;}
15075 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15077 X"$ac_file" : 'X\(//\)[^/]' \| \
15078 X"$ac_file" : 'X\(//\)$' \| \
15079 X"$ac_file" : 'X\(/\)' \| \
15080 . : '\(.\)' 2>/dev/null ||
15082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15084 /^X\(\/\/\)$/{ s//\1/; q; }
15085 /^X\(\/\).*/{ s//\1/; q; }
15087 { if $as_mkdir_p; then
15092 while test ! -d "$as_dir"; do
15093 as_dirs="$as_dir $as_dirs"
15094 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15096 X"$as_dir" : 'X\(//\)[^/]' \| \
15097 X"$as_dir" : 'X\(//\)$' \| \
15098 X"$as_dir" : 'X\(/\)' \| \
15099 . : '\(.\)' 2>/dev/null ||
15101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15103 /^X\(\/\/\)$/{ s//\1/; q; }
15104 /^X\(\/\).*/{ s//\1/; q; }
15107 test ! -n "$as_dirs" || mkdir $as_dirs
15108 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15109 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15110 { (exit 1); exit 1; }; }; }
15113 mv $tmp/config.h $ac_file
15117 rm -f $tmp/config.h
15122 cat >>$CONFIG_STATUS <<\_ACEOF
15124 { (exit 0); exit 0; }
15126 chmod +x $CONFIG_STATUS
15127 ac_clean_files=$ac_clean_files_save
15130 # configure is writing to config.log, and then calls config.status.
15131 # config.status does its own redirection, appending to config.log.
15132 # Unfortunately, on DOS this fails, as config.log is still kept open
15133 # by configure, so config.status won't be able to write to it; its
15134 # output is simply discarded. So we exec the FD to /dev/null,
15135 # effectively closing config.log, so it can be properly (re)opened and
15136 # appended to by config.status. When coming back to configure, we
15137 # need to make the FD available again.
15138 if test "$no_create" != yes; then
15140 ac_config_status_args=
15141 test "$silent" = yes &&
15142 ac_config_status_args="$ac_config_status_args --quiet"
15144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15147 # would make configure fail if this is the last instruction.
15148 $ac_cs_success || { (exit 1); exit 1; }
15152 #gui.src/portmon.src/Makefile
15155 # End of configure/configure.in