2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/dl_dxf.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA FIND MAKEDEPEND X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
848 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
849 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
850 --with-x use the X Window System
852 Some influential environment variables:
853 CC C compiler command
854 CFLAGS C compiler flags
855 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
856 nonstandard directory <lib dir>
857 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
858 headers in a nonstandard directory <include dir>
861 Use these variables to override the choices made by `configure' or to help
862 it to find libraries and programs with nonstandard names/locations.
867 if test "$ac_init_help" = "recursive"; then
868 # If there are subdirs, report their specific --help.
870 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
871 test -d $ac_dir || continue
874 if test "$ac_dir" != .; then
875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
876 # A "../" for each directory in $ac_dir_suffix.
877 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879 ac_dir_suffix= ac_top_builddir=
883 .) # No --srcdir option. We are building in place.
885 if test -z "$ac_top_builddir"; then
888 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890 [\\/]* | ?:[\\/]* ) # Absolute path.
891 ac_srcdir=$srcdir$ac_dir_suffix;
892 ac_top_srcdir=$srcdir ;;
894 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
895 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
899 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
900 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
901 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
902 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
905 # Check for guested configure; otherwise get Cygnus style configure.
906 if test -f $ac_srcdir/configure.gnu; then
908 $SHELL $ac_srcdir/configure.gnu --help=recursive
909 elif test -f $ac_srcdir/configure; then
911 $SHELL $ac_srcdir/configure --help=recursive
912 elif test -f $ac_srcdir/configure.ac ||
913 test -f $ac_srcdir/configure.in; then
917 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
923 test -n "$ac_init_help" && exit 0
924 if $ac_init_version; then
927 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
928 Free Software Foundation, Inc.
929 This configure script is free software; the Free Software Foundation
930 gives unlimited permission to copy, distribute and modify it.
936 This file contains any messages produced by compilers while
937 running configure, to aid debugging if configure makes a mistake.
939 It was created by $as_me, which was
940 generated by GNU Autoconf 2.57. Invocation command line was
951 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
952 uname -m = `(uname -m) 2>/dev/null || echo unknown`
953 uname -r = `(uname -r) 2>/dev/null || echo unknown`
954 uname -s = `(uname -s) 2>/dev/null || echo unknown`
955 uname -v = `(uname -v) 2>/dev/null || echo unknown`
957 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
958 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
960 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
961 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
962 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
963 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
964 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
965 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
966 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974 test -z "$as_dir" && as_dir=.
990 # Keep a trace of the command line.
991 # Strip out --no-create and --no-recursion so they do not pile up.
992 # Strip out --silent because we don't want to record it for future runs.
993 # Also quote any args containing shell meta-characters.
994 # Make two passes to allow for proper duplicate-argument suppression.
999 ac_must_keep_next=false
1005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil)
1009 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1010 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1013 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1015 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1016 if test $ac_must_keep_next = true; then
1017 ac_must_keep_next=false # Got value, back to normal.
1020 *=* | --config-cache | -C | -disable-* | --disable-* \
1021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1023 | -with-* | --with-* | -without-* | --without-* | --x)
1024 case "$ac_configure_args0 " in
1025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1028 -* ) ac_must_keep_next=true ;;
1031 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1032 # Get rid of the leading space.
1038 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1039 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1041 # When interrupted or exit'd, cleanup temporary files, and complete
1042 # config.log. We remove comments because anyway the quotes in there
1043 # would cause problems or look ugly.
1044 # WARNING: Be sure not to use single quotes in there, as some shells,
1045 # such as our DU 5.0 friend, will then `close' the trap.
1046 trap 'exit_status=$?
1047 # Save into config.log some information that might help in debugging.
1052 ## ---------------- ##
1053 ## Cache variables. ##
1054 ## ---------------- ##
1057 # The following way of writing the cache mishandles newlines in values,
1060 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 ## ----------------- ##
1076 ## Output variables. ##
1077 ## ----------------- ##
1080 for ac_var in $ac_subst_vars
1082 eval ac_val=$`echo $ac_var`
1083 echo "$ac_var='"'"'$ac_val'"'"'"
1087 if test -n "$ac_subst_files"; then
1094 for ac_var in $ac_subst_files
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1102 if test -s confdefs.h; then
1109 sed "/^$/d" confdefs.h | sort
1112 test "$ac_signal" != 0 &&
1113 echo "$as_me: caught signal $ac_signal"
1114 echo "$as_me: exit $exit_status"
1116 rm -f core core.* *.core &&
1117 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1120 for ac_signal in 1 2 13 15; do
1121 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1125 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1126 rm -rf conftest* confdefs.h
1127 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1130 # Predefined preprocessor variables.
1132 cat >>confdefs.h <<_ACEOF
1133 #define PACKAGE_NAME "$PACKAGE_NAME"
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_STRING "$PACKAGE_STRING"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1157 # Let the site file select an alternate cache file if it wants to.
1158 # Prefer explicitly selected file to automatically selected ones.
1159 if test -z "$CONFIG_SITE"; then
1160 if test "x$prefix" != xNONE; then
1161 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1163 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1166 for ac_site_file in $CONFIG_SITE; do
1167 if test -r "$ac_site_file"; then
1168 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1169 echo "$as_me: loading site script $ac_site_file" >&6;}
1170 sed 's/^/| /' "$ac_site_file" >&5
1175 if test -r "$cache_file"; then
1176 # Some versions of bash will fail to source /dev/null (special
1177 # files actually), so we avoid doing that.
1178 if test -f "$cache_file"; then
1179 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1180 echo "$as_me: loading cache $cache_file" >&6;}
1182 [\\/]* | ?:[\\/]* ) . $cache_file;;
1183 *) . ./$cache_file;;
1187 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1188 echo "$as_me: creating cache $cache_file" >&6;}
1192 # Check that the precious variables saved in the cache have kept the same
1194 ac_cache_corrupted=false
1195 for ac_var in `(set) 2>&1 |
1196 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1198 eval ac_new_set=\$ac_env_${ac_var}_set
1199 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1200 eval ac_new_val="\$ac_env_${ac_var}_value"
1201 case $ac_old_set,$ac_new_set in
1203 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1204 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1205 ac_cache_corrupted=: ;;
1207 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1208 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1209 ac_cache_corrupted=: ;;
1212 if test "x$ac_old_val" != "x$ac_new_val"; then
1213 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1214 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1215 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1216 echo "$as_me: former value: $ac_old_val" >&2;}
1217 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1218 echo "$as_me: current value: $ac_new_val" >&2;}
1219 ac_cache_corrupted=:
1222 # Pass precious variables to config.status.
1223 if test "$ac_new_set" = set; then
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 *) ac_arg=$ac_var=$ac_new_val ;;
1229 case " $ac_configure_args " in
1230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1231 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1235 if $ac_cache_corrupted; then
1236 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1237 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1238 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1239 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1240 { (exit 1); exit 1; }; }
1244 ac_cpp='$CPP $CPPFLAGS'
1245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1271 # check cannonical system name
1274 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1275 if test -f $ac_dir/install-sh; then
1277 ac_install_sh="$ac_aux_dir/install-sh -c"
1279 elif test -f $ac_dir/install.sh; then
1281 ac_install_sh="$ac_aux_dir/install.sh -c"
1283 elif test -f $ac_dir/shtool; then
1285 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 if test -z "$ac_aux_dir"; then
1290 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1292 { (exit 1); exit 1; }; }
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1298 # Make sure we can run config.sub.
1299 $ac_config_sub sun4 >/dev/null 2>&1 ||
1300 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1301 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1302 { (exit 1); exit 1; }; }
1304 echo "$as_me:$LINENO: checking build system type" >&5
1305 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1306 if test "${ac_cv_build+set}" = set; then
1307 echo $ECHO_N "(cached) $ECHO_C" >&6
1309 ac_cv_build_alias=$build_alias
1310 test -z "$ac_cv_build_alias" &&
1311 ac_cv_build_alias=`$ac_config_guess`
1312 test -z "$ac_cv_build_alias" &&
1313 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1314 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1315 { (exit 1); exit 1; }; }
1316 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1317 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1318 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1319 { (exit 1); exit 1; }; }
1322 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1323 echo "${ECHO_T}$ac_cv_build" >&6
1325 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1326 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1327 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1330 echo "$as_me:$LINENO: checking host system type" >&5
1331 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1332 if test "${ac_cv_host+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 ac_cv_host_alias=$host_alias
1336 test -z "$ac_cv_host_alias" &&
1337 ac_cv_host_alias=$ac_cv_build_alias
1338 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1339 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1340 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1341 { (exit 1); exit 1; }; }
1344 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1345 echo "${ECHO_T}$ac_cv_host" >&6
1347 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1348 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1349 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353 *-linux-gnu ) cat >>confdefs.h <<\_ACEOF
1357 *-aix* ) cat >>confdefs.h <<\_ACEOF
1361 * ) cat >>confdefs.h <<\_ACEOF
1368 # check C compiler, preprocesor, etc.
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375 if test -n "$ac_tool_prefix"; then
1376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 if test -n "$CC"; then
1384 ac_cv_prog_CC="$CC" # Let the user override the test.
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1403 if test -n "$CC"; then
1404 echo "$as_me:$LINENO: result: $CC" >&5
1405 echo "${ECHO_T}$CC" >&6
1407 echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1412 if test -z "$ac_cv_prog_CC"; then
1414 # Extract the first word of "gcc", so it can be a program name with args.
1415 set dummy gcc; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 if test -n "$ac_ct_CC"; then
1422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431 ac_cv_prog_ac_ct_CC="gcc"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441 if test -n "$ac_ct_CC"; then
1442 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443 echo "${ECHO_T}$ac_ct_CC" >&6
1445 echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1454 if test -z "$CC"; then
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1457 set dummy ${ac_tool_prefix}cc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473 ac_cv_prog_CC="${ac_tool_prefix}cc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 if test -n "$CC"; then
1484 echo "$as_me:$LINENO: result: $CC" >&5
1485 echo "${ECHO_T}$CC" >&6
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1492 if test -z "$ac_cv_prog_CC"; then
1494 # Extract the first word of "cc", so it can be a program name with args.
1495 set dummy cc; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1501 if test -n "$ac_ct_CC"; then
1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_ac_ct_CC="cc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521 if test -n "$ac_ct_CC"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523 echo "${ECHO_T}$ac_ct_CC" >&6
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1535 if test -z "$CC"; then
1536 # Extract the first word of "cc", so it can be a program name with args.
1537 set dummy cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1555 ac_prog_rejected=yes
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 if test $ac_prog_rejected = yes; then
1566 # We found a bogon in the path, so make sure we never use it.
1567 set dummy $ac_cv_prog_CC
1569 if test $# != 0; then
1570 # We chose a different compiler from the bogus one.
1571 # However, it has the same basename, so the bogon will be chosen
1572 # first if we set CC to just the basename; use the full file name.
1574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1580 if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1589 if test -z "$CC"; then
1590 if test -n "$ac_tool_prefix"; then
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 if test -n "$CC"; then
1621 echo "$as_me:$LINENO: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1628 test -n "$CC" && break
1631 if test -z "$CC"; then
1635 # Extract the first word of "$ac_prog", so it can be a program name with args.
1636 set dummy $ac_prog; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$ac_ct_CC"; then
1643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_ac_ct_CC="$ac_prog"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1670 test -n "$ac_ct_CC" && break
1679 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&5
1681 echo "$as_me: error: no acceptable C compiler found in \$PATH
1682 See \`config.log' for more details." >&2;}
1683 { (exit 1); exit 1; }; }
1685 # Provide some information about the compiler.
1686 echo "$as_me:$LINENO:" \
1687 "checking for C compiler version" >&5
1688 ac_compiler=`set X $ac_compile; echo $2`
1689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1690 (eval $ac_compiler --version </dev/null >&5) 2>&5
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1695 (eval $ac_compiler -v </dev/null >&5) 2>&5
1697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698 (exit $ac_status); }
1699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1700 (eval $ac_compiler -V </dev/null >&5) 2>&5
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1705 cat >conftest.$ac_ext <<_ACEOF
1706 #line $LINENO "configure"
1709 cat confdefs.h >>conftest.$ac_ext
1710 cat >>conftest.$ac_ext <<_ACEOF
1711 /* end confdefs.h. */
1721 ac_clean_files_save=$ac_clean_files
1722 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1723 # Try to create an executable without -o first, disregard a.out.
1724 # It will help us diagnose broken compilers, and finding out an intuition
1726 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1727 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1728 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1729 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1730 (eval $ac_link_default) 2>&5
1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733 (exit $ac_status); }; then
1734 # Find the output, starting from the most likely. This scheme is
1735 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1738 # Be careful to initialize this variable, since it used to be cached.
1739 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1741 # b.out is created by i960 compilers.
1742 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1744 test -f "$ac_file" || continue
1746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1749 # This is the source file.
1752 # We found the default executable, but exeext='' is most
1756 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757 # FIXME: I believe we export ac_cv_exeext for Libtool,
1758 # but it would be cool to find out if it's true. Does anybody
1759 # maintain Libtool? --akim.
1767 echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1770 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1771 See \`config.log' for more details." >&5
1772 echo "$as_me: error: C compiler cannot create executables
1773 See \`config.log' for more details." >&2;}
1774 { (exit 77); exit 77; }; }
1777 ac_exeext=$ac_cv_exeext
1778 echo "$as_me:$LINENO: result: $ac_file" >&5
1779 echo "${ECHO_T}$ac_file" >&6
1781 # Check the compiler produces executables we can run. If not, either
1782 # the compiler is broken, or we cross compile.
1783 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1784 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1785 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1786 # If not cross compiling, check that we can run a simple program.
1787 if test "$cross_compiling" != yes; then
1788 if { ac_try='./$ac_file'
1789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }; }; then
1796 if test "$cross_compiling" = maybe; then
1799 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'.
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: cannot run C compiled programs.
1803 If you meant to cross compile, use \`--host'.
1804 See \`config.log' for more details." >&2;}
1805 { (exit 1); exit 1; }; }
1809 echo "$as_me:$LINENO: result: yes" >&5
1810 echo "${ECHO_T}yes" >&6
1812 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1813 ac_clean_files=$ac_clean_files_save
1814 # Check the compiler produces executables we can run. If not, either
1815 # the compiler is broken, or we cross compile.
1816 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1817 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1818 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1819 echo "${ECHO_T}$cross_compiling" >&6
1821 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1822 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1824 (eval $ac_link) 2>&5
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }; then
1828 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1829 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1830 # work properly (i.e., refer to `conftest.exe'), while it won't with
1832 for ac_file in conftest.exe conftest conftest.*; do
1833 test -f "$ac_file" || continue
1835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1836 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1843 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1846 See \`config.log' for more details." >&2;}
1847 { (exit 1); exit 1; }; }
1850 rm -f conftest$ac_cv_exeext
1851 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1852 echo "${ECHO_T}$ac_cv_exeext" >&6
1854 rm -f conftest.$ac_ext
1855 EXEEXT=$ac_cv_exeext
1857 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1858 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1859 if test "${ac_cv_objext+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 cat >conftest.$ac_ext <<_ACEOF
1863 #line $LINENO "configure"
1866 cat confdefs.h >>conftest.$ac_ext
1867 cat >>conftest.$ac_ext <<_ACEOF
1868 /* end confdefs.h. */
1878 rm -f conftest.o conftest.obj
1879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 (eval $ac_compile) 2>&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1887 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1892 echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1902 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1904 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1905 echo "${ECHO_T}$ac_cv_objext" >&6
1906 OBJEXT=$ac_cv_objext
1908 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1909 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1910 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 cat >conftest.$ac_ext <<_ACEOF
1914 #line $LINENO "configure"
1917 cat confdefs.h >>conftest.$ac_ext
1918 cat >>conftest.$ac_ext <<_ACEOF
1919 /* end confdefs.h. */
1932 rm -f conftest.$ac_objext
1933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1934 (eval $ac_compile) 2>&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); } &&
1938 { ac_try='test -s conftest.$ac_objext'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; }; then
1946 echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1951 rm -f conftest.$ac_objext conftest.$ac_ext
1952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1955 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1956 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1957 GCC=`test $ac_compiler_gnu = yes && echo yes`
1958 ac_test_CFLAGS=${CFLAGS+set}
1959 ac_save_CFLAGS=$CFLAGS
1961 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1962 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1963 if test "${ac_cv_prog_cc_g+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 cat >conftest.$ac_ext <<_ACEOF
1967 #line $LINENO "configure"
1970 cat confdefs.h >>conftest.$ac_ext
1971 cat >>conftest.$ac_ext <<_ACEOF
1972 /* end confdefs.h. */
1982 rm -f conftest.$ac_objext
1983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1984 (eval $ac_compile) 2>&5
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); } &&
1988 { ac_try='test -s conftest.$ac_objext'
1989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; }; then
1996 echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
2001 rm -f conftest.$ac_objext conftest.$ac_ext
2003 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2004 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2005 if test "$ac_test_CFLAGS" = set; then
2006 CFLAGS=$ac_save_CFLAGS
2007 elif test $ac_cv_prog_cc_g = yes; then
2008 if test "$GCC" = yes; then
2014 if test "$GCC" = yes; then
2020 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2021 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2022 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 ac_cv_prog_cc_stdc=no
2027 cat >conftest.$ac_ext <<_ACEOF
2028 #line $LINENO "configure"
2031 cat confdefs.h >>conftest.$ac_ext
2032 cat >>conftest.$ac_ext <<_ACEOF
2033 /* end confdefs.h. */
2036 #include <sys/types.h>
2037 #include <sys/stat.h>
2038 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2039 struct buf { int x; };
2040 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2041 static char *e (p, i)
2047 static char *f (char * (*g) (char **, int), char **p, ...)
2052 s = g (p, va_arg (v,int));
2056 int test (int i, double x);
2057 struct s1 {int (*f) (int a);};
2058 struct s2 {int (*f) (double a);};
2059 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2065 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2070 # Don't try gcc -ansi; that turns off useful extensions and
2071 # breaks some systems' header files.
2072 # AIX -qlanglvl=ansi
2073 # Ultrix and OSF/1 -std1
2074 # HP-UX 10.20 and later -Ae
2075 # HP-UX older versions -Aa -D_HPUX_SOURCE
2076 # SVR4 -Xc -D__EXTENSIONS__
2077 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2079 CC="$ac_save_CC $ac_arg"
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2092 ac_cv_prog_cc_stdc=$ac_arg
2095 echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2099 rm -f conftest.$ac_objext
2101 rm -f conftest.$ac_ext conftest.$ac_objext
2106 case "x$ac_cv_prog_cc_stdc" in
2108 echo "$as_me:$LINENO: result: none needed" >&5
2109 echo "${ECHO_T}none needed" >&6 ;;
2111 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2112 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2113 CC="$CC $ac_cv_prog_cc_stdc" ;;
2116 # Some people use a C++ compiler to compile C. Since we use `exit',
2117 # in C++ we need to declare it. In case someone uses the same compiler
2118 # for both compiling C and C++ we need to have the C++ compiler decide
2119 # the declaration of exit, since it's the most demanding environment.
2120 cat >conftest.$ac_ext <<_ACEOF
2125 rm -f conftest.$ac_objext
2126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2127 (eval $ac_compile) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); } &&
2131 { ac_try='test -s conftest.$ac_objext'
2132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; }; then
2137 for ac_declaration in \
2139 '#include <stdlib.h>' \
2140 'extern "C" void std::exit (int) throw (); using std::exit;' \
2141 'extern "C" void std::exit (int); using std::exit;' \
2142 'extern "C" void exit (int) throw ();' \
2143 'extern "C" void exit (int);' \
2146 cat >conftest.$ac_ext <<_ACEOF
2147 #line $LINENO "configure"
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2163 rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165 (eval $ac_compile) 2>&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2177 echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2182 rm -f conftest.$ac_objext conftest.$ac_ext
2183 cat >conftest.$ac_ext <<_ACEOF
2184 #line $LINENO "configure"
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h. */
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201 (eval $ac_compile) 2>&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.$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 echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2231 rm -f conftest.$ac_objext conftest.$ac_ext
2233 ac_cpp='$CPP $CPPFLAGS'
2234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239 ac_cpp='$CPP $CPPFLAGS'
2240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2243 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2244 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2245 # On Suns, sometimes $CPP names a directory.
2246 if test -n "$CPP" && test -d "$CPP"; then
2249 if test -z "$CPP"; then
2250 if test "${ac_cv_prog_CPP+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 # Double quotes because CPP needs to be expanded
2254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2257 for ac_c_preproc_warn_flag in '' yes
2259 # Use a header file that comes with gcc, so configuring glibc
2260 # with a fresh cross-compiler works.
2261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2262 # <limits.h> exists even on freestanding compilers.
2263 # On the NeXT, cc -E runs the code through the compiler's parser,
2264 # not just through cpp. "Syntax error" is here to catch this case.
2265 cat >conftest.$ac_ext <<_ACEOF
2266 #line $LINENO "configure"
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2273 # include <limits.h>
2275 # include <assert.h>
2279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2282 grep -v '^ *+' conftest.er1 >conftest.err
2284 cat conftest.err >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } >/dev/null; then
2287 if test -s conftest.err; then
2288 ac_cpp_err=$ac_c_preproc_warn_flag
2295 if test -z "$ac_cpp_err"; then
2298 echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2301 # Broken: fails on valid input.
2304 rm -f conftest.err conftest.$ac_ext
2306 # OK, works on sane cases. Now check whether non-existent headers
2307 # can be detected and how.
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line $LINENO "configure"
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2315 #include <ac_nonexistent.h>
2317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2320 grep -v '^ *+' conftest.er1 >conftest.err
2322 cat conftest.err >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } >/dev/null; then
2325 if test -s conftest.err; then
2326 ac_cpp_err=$ac_c_preproc_warn_flag
2333 if test -z "$ac_cpp_err"; then
2334 # Broken: success on invalid input.
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 # Passes both tests.
2344 rm -f conftest.err conftest.$ac_ext
2347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2348 rm -f conftest.err conftest.$ac_ext
2349 if $ac_preproc_ok; then
2361 echo "$as_me:$LINENO: result: $CPP" >&5
2362 echo "${ECHO_T}$CPP" >&6
2364 for ac_c_preproc_warn_flag in '' yes
2366 # Use a header file that comes with gcc, so configuring glibc
2367 # with a fresh cross-compiler works.
2368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2369 # <limits.h> exists even on freestanding compilers.
2370 # On the NeXT, cc -E runs the code through the compiler's parser,
2371 # not just through cpp. "Syntax error" is here to catch this case.
2372 cat >conftest.$ac_ext <<_ACEOF
2373 #line $LINENO "configure"
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2380 # include <limits.h>
2382 # include <assert.h>
2386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389 grep -v '^ *+' conftest.er1 >conftest.err
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } >/dev/null; then
2394 if test -s conftest.err; then
2395 ac_cpp_err=$ac_c_preproc_warn_flag
2402 if test -z "$ac_cpp_err"; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2408 # Broken: fails on valid input.
2411 rm -f conftest.err conftest.$ac_ext
2413 # OK, works on sane cases. Now check whether non-existent headers
2414 # can be detected and how.
2415 cat >conftest.$ac_ext <<_ACEOF
2416 #line $LINENO "configure"
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2422 #include <ac_nonexistent.h>
2424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2427 grep -v '^ *+' conftest.er1 >conftest.err
2429 cat conftest.err >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } >/dev/null; then
2432 if test -s conftest.err; then
2433 ac_cpp_err=$ac_c_preproc_warn_flag
2440 if test -z "$ac_cpp_err"; then
2441 # Broken: success on invalid input.
2444 echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2447 # Passes both tests.
2451 rm -f conftest.err conftest.$ac_ext
2454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2455 rm -f conftest.err conftest.$ac_ext
2456 if $ac_preproc_ok; then
2459 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2460 See \`config.log' for more details." >&5
2461 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2462 See \`config.log' for more details." >&2;}
2463 { (exit 1); exit 1; }; }
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 # Find a good install program. We prefer a C program (faster),
2473 # so one script is as good as another. But avoid the broken or
2474 # incompatible versions:
2475 # SysV /etc/install, /usr/sbin/install
2476 # SunOS /usr/etc/install
2477 # IRIX /sbin/install
2479 # AmigaOS /C/install, which installs bootblocks on floppy discs
2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483 # ./install, which can be erroneously created by make from ./install.sh.
2484 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2485 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2486 if test -z "$INSTALL"; then
2487 if test "${ac_cv_path_install+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 # Account for people who put trailing slashes in PATH elements.
2497 ./ | .// | /cC/* | \
2498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501 # OSF1 and SCO ODT 3.0 have their own names for install.
2502 # Don't use installbsd from OSF since it installs stuff as root
2504 for ac_prog in ginstall scoinst install; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2507 if test $ac_prog = install &&
2508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2509 # AIX install. It has an incompatible calling convention.
2511 elif test $ac_prog = install &&
2512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2513 # program-specific install script used by HP pwplus--don't use.
2516 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528 if test "${ac_cv_path_install+set}" = set; then
2529 INSTALL=$ac_cv_path_install
2531 # As a last resort, use the slow shell script. We don't cache a
2532 # path for INSTALL within a source directory, because that will
2533 # break other packages using the cache if that directory is
2534 # removed, or if the path is relative.
2535 INSTALL=$ac_install_sh
2538 echo "$as_me:$LINENO: result: $INSTALL" >&5
2539 echo "${ECHO_T}$INSTALL" >&6
2541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542 # It thinks the first close brace ends the variable substitution.
2543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2545 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2547 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2549 # Extract the first word of "find", so it can be a program name with args.
2550 set dummy find; ac_word=$2
2551 echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553 if test "${ac_cv_prog_FIND+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$FIND"; then
2557 ac_cv_prog_FIND="$FIND" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_FIND="find"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 test -z "$ac_cv_prog_FIND" && ac_cv_prog_FIND=":"
2576 FIND=$ac_cv_prog_FIND
2577 if test -n "$FIND"; then
2578 echo "$as_me:$LINENO: result: $FIND" >&5
2579 echo "${ECHO_T}$FIND" >&6
2581 echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6
2585 # Extract the first word of "makedepend", so it can be a program name with args.
2586 set dummy makedepend; ac_word=$2
2587 echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2589 if test "${ac_cv_prog_MAKEDEPEND+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 if test -n "$MAKEDEPEND"; then
2593 ac_cv_prog_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test.
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602 ac_cv_prog_MAKEDEPEND="makedepend"
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 test -z "$ac_cv_prog_MAKEDEPEND" && ac_cv_prog_MAKEDEPEND=":"
2612 MAKEDEPEND=$ac_cv_prog_MAKEDEPEND
2613 if test -n "$MAKEDEPEND"; then
2614 echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2615 echo "${ECHO_T}$MAKEDEPEND" >&6
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2623 # Try to locate the X Window System include files and libraries
2624 # and add /usr/local to include and lib path and add -lm (for testing)
2628 echo "$as_me:$LINENO: checking for X" >&5
2629 echo $ECHO_N "checking for X... $ECHO_C" >&6
2632 # Check whether --with-x or --without-x was given.
2633 if test "${with_x+set}" = set; then
2637 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2638 if test "x$with_x" = xno; then
2639 # The user explicitly disabled X.
2642 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2643 # Both variables are already set.
2646 if test "${ac_cv_have_x+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 # One or both of the vars are not set, and there is no cached value.
2650 ac_x_includes=no ac_x_libraries=no
2652 if mkdir conftest.dir; then
2654 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2655 cat >Imakefile <<'_ACEOF'
2657 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2659 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2660 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2661 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2662 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2663 for ac_extension in a so sl; do
2664 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2665 test -f $ac_im_libdir/libX11.$ac_extension; then
2666 ac_im_usrlibdir=$ac_im_libdir; break
2669 # Screen out bogus values from the imake configuration. They are
2670 # bogus both because they are the default anyway, and because
2671 # using them would break gcc on systems where it needs fixed includes.
2672 case $ac_im_incroot in
2674 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2676 case $ac_im_usrlibdir in
2678 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2685 # Standard set of common directories for X headers.
2686 # Check X11 before X11Rn because it is often a symlink to the current release.
2698 /usr/local/X11/include
2699 /usr/local/X11R6/include
2700 /usr/local/X11R5/include
2701 /usr/local/X11R4/include
2703 /usr/local/include/X11
2704 /usr/local/include/X11R6
2705 /usr/local/include/X11R5
2706 /usr/local/include/X11R4
2710 /usr/XFree86/include/X11
2714 /usr/unsupported/include
2716 /usr/local/x11r5/include
2717 /usr/lpp/Xamples/include
2719 /usr/openwin/include
2720 /usr/openwin/share/include'
2722 if test "$ac_x_includes" = no; then
2723 # Guess where to find include files, by looking for Intrinsic.h.
2724 # First, try using that file with no special directory specified.
2725 cat >conftest.$ac_ext <<_ACEOF
2726 #line $LINENO "configure"
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2732 #include <X11/Intrinsic.h>
2734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2737 grep -v '^ *+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } >/dev/null; then
2742 if test -s conftest.err; then
2743 ac_cpp_err=$ac_c_preproc_warn_flag
2750 if test -z "$ac_cpp_err"; then
2751 # We can compile using X headers with no special include directory.
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 for ac_dir in $ac_x_header_dirs; do
2758 if test -r "$ac_dir/X11/Intrinsic.h"; then
2759 ac_x_includes=$ac_dir
2764 rm -f conftest.err conftest.$ac_ext
2765 fi # $ac_x_includes = no
2767 if test "$ac_x_libraries" = no; then
2768 # Check for the libraries.
2769 # See if we find them without any special options.
2770 # Don't add to $LIBS permanently.
2773 cat >conftest.$ac_ext <<_ACEOF
2774 #line $LINENO "configure"
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2780 #include <X11/Intrinsic.h>
2789 rm -f conftest.$ac_objext conftest$ac_exeext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2791 (eval $ac_link) 2>&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -s conftest$ac_exeext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2802 # We can link X programs with no special library path.
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2809 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2811 # Don't even attempt the hair of trying to link an X program!
2812 for ac_extension in a so sl; do
2813 if test -r $ac_dir/libXt.$ac_extension; then
2814 ac_x_libraries=$ac_dir
2820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2821 fi # $ac_x_libraries = no
2823 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2824 # Didn't find X anywhere. Cache the known absence of X.
2825 ac_cv_have_x="have_x=no"
2827 # Record where we found X for the cache.
2828 ac_cv_have_x="have_x=yes \
2829 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2834 eval "$ac_cv_have_x"
2837 if test "$have_x" != yes; then
2838 echo "$as_me:$LINENO: result: $have_x" >&5
2839 echo "${ECHO_T}$have_x" >&6
2842 # If each of the values was on the command line, it overrides each guess.
2843 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2844 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2845 # Update the cache value to reflect the command line values.
2846 ac_cv_have_x="have_x=yes \
2847 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2848 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2849 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2852 if test "$no_x" = yes; then
2853 # Not all programs may use this symbol, but it does not hurt to define it.
2855 cat >>confdefs.h <<\_ACEOF
2856 #define X_DISPLAY_MISSING 1
2859 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2861 if test -n "$x_includes"; then
2862 X_CFLAGS="$X_CFLAGS -I$x_includes"
2865 # It would also be nice to do this for all -L options, not just this one.
2866 if test -n "$x_libraries"; then
2867 X_LIBS="$X_LIBS -L$x_libraries"
2868 # For Solaris; some versions of Sun CC require a space after -R and
2869 # others require no space. Words are not sufficient . . . .
2870 case `(uname -sr) 2>/dev/null` in
2872 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2873 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2874 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2875 cat >conftest.$ac_ext <<_ACEOF
2876 #line $LINENO "configure"
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2891 rm -f conftest.$ac_objext conftest$ac_exeext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2893 (eval $ac_link) 2>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -s conftest$ac_exeext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2911 if test $ac_R_nospace = yes; then
2912 echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6
2914 X_LIBS="$X_LIBS -R$x_libraries"
2916 LIBS="$ac_xsave_LIBS -R $x_libraries"
2917 cat >conftest.$ac_ext <<_ACEOF
2918 #line $LINENO "configure"
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2933 rm -f conftest.$ac_objext conftest$ac_exeext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935 (eval $ac_link) 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -s conftest$ac_exeext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2953 if test $ac_R_space = yes; then
2954 echo "$as_me:$LINENO: result: yes" >&5
2955 echo "${ECHO_T}yes" >&6
2956 X_LIBS="$X_LIBS -R $x_libraries"
2958 echo "$as_me:$LINENO: result: neither works" >&5
2959 echo "${ECHO_T}neither works" >&6
2966 # Check for system-dependent libraries X programs must link with.
2967 # Do this before checking for the system-independent R6 libraries
2968 # (-lICE), since we may need -lsocket or whatever for X linking.
2970 if test "$ISC" = yes; then
2971 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2973 # Martyn Johnson says this is needed for Ultrix, if the X
2974 # libraries were built with DECnet support. And Karl Berry says
2975 # the Alpha needs dnet_stub (dnet does not exist).
2976 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #line $LINENO "configure"
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2985 /* Override any gcc2 internal prototype to avoid an error. */
2989 /* We use char because int might match the return type of a gcc2
2990 builtin and then its argument prototype would still apply. */
2991 char XOpenDisplay ();
3000 rm -f conftest.$ac_objext conftest$ac_exeext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002 (eval $ac_link) 2>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest$ac_exeext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3018 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3019 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 ac_check_lib_save_LIBS=$LIBS
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3032 /* Override any gcc2 internal prototype to avoid an error. */
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3047 rm -f conftest.$ac_objext conftest$ac_exeext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049 (eval $ac_link) 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -s conftest$ac_exeext'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_lib_dnet_dnet_ntoa=yes
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 ac_cv_lib_dnet_dnet_ntoa=no
3066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3067 LIBS=$ac_check_lib_save_LIBS
3069 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3070 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3071 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3072 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3075 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3076 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3077 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3078 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 ac_check_lib_save_LIBS=$LIBS
3082 LIBS="-ldnet_stub $LIBS"
3083 cat >conftest.$ac_ext <<_ACEOF
3084 #line $LINENO "configure"
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3091 /* Override any gcc2 internal prototype to avoid an error. */
3095 /* We use char because int might match the return type of a gcc2
3096 builtin and then its argument prototype would still apply. */
3106 rm -f conftest.$ac_objext conftest$ac_exeext
3107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3108 (eval $ac_link) 2>&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -s conftest$ac_exeext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 ac_cv_lib_dnet_stub_dnet_ntoa=no
3125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3126 LIBS=$ac_check_lib_save_LIBS
3128 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3129 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3130 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3131 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3137 LIBS="$ac_xsave_LIBS"
3139 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3140 # to get the SysV transport functions.
3141 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3143 # The nsl library prevents programs from opening the X display
3144 # on Irix 5.2, according to T.E. Dickey.
3145 # The functions gethostbyname, getservbyname, and inet_addr are
3146 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3147 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3148 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3149 if test "${ac_cv_func_gethostbyname+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 /* System header to define __stub macros and hopefully few prototypes,
3160 which can conflict with char gethostbyname (); below.
3161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3162 <limits.h> exists even on freestanding compilers. */
3164 # include <limits.h>
3166 # include <assert.h>
3168 /* Override any gcc2 internal prototype to avoid an error. */
3173 /* We use char because int might match the return type of a gcc2
3174 builtin and then its argument prototype would still apply. */
3175 char gethostbyname ();
3176 /* The GNU C library defines this for functions which it implements
3177 to always fail with ENOSYS. Some functions are actually named
3178 something starting with __ and the normal name is an alias. */
3179 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3182 char (*f) () = gethostbyname;
3191 return f != gethostbyname;
3196 rm -f conftest.$ac_objext conftest$ac_exeext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3198 (eval $ac_link) 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } &&
3202 { ac_try='test -s conftest$ac_exeext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_func_gethostbyname=yes
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 ac_cv_func_gethostbyname=no
3215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3218 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3220 if test $ac_cv_func_gethostbyname = no; then
3221 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3222 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3223 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 ac_check_lib_save_LIBS=$LIBS
3228 cat >conftest.$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3236 /* Override any gcc2 internal prototype to avoid an error. */
3240 /* We use char because int might match the return type of a gcc2
3241 builtin and then its argument prototype would still apply. */
3242 char gethostbyname ();
3251 rm -f conftest.$ac_objext conftest$ac_exeext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253 (eval $ac_link) 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -s conftest$ac_exeext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_lib_nsl_gethostbyname=yes
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 ac_cv_lib_nsl_gethostbyname=no
3270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3271 LIBS=$ac_check_lib_save_LIBS
3273 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3274 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3275 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3276 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3279 if test $ac_cv_lib_nsl_gethostbyname = no; then
3280 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3281 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3282 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 ac_check_lib_save_LIBS=$LIBS
3287 cat >conftest.$ac_ext <<_ACEOF
3288 #line $LINENO "configure"
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3295 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
3301 char gethostbyname ();
3310 rm -f conftest.$ac_objext conftest$ac_exeext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3312 (eval $ac_link) 2>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -s conftest$ac_exeext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_cv_lib_bsd_gethostbyname=yes
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 ac_cv_lib_bsd_gethostbyname=no
3329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3330 LIBS=$ac_check_lib_save_LIBS
3332 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3333 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3334 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3341 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3342 # socket/setsockopt and other routines are undefined under SCO ODT
3343 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3344 # on later versions), says Simon Leinen: it contains gethostby*
3345 # variants that don't use the name server (or something). -lsocket
3346 # must be given before -lnsl if both are needed. We assume that
3347 # if connect needs -lnsl, so does gethostbyname.
3348 echo "$as_me:$LINENO: checking for connect" >&5
3349 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3350 if test "${ac_cv_func_connect+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 /* System header to define __stub macros and hopefully few prototypes,
3361 which can conflict with char connect (); below.
3362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363 <limits.h> exists even on freestanding compilers. */
3365 # include <limits.h>
3367 # include <assert.h>
3369 /* Override any gcc2 internal prototype to avoid an error. */
3374 /* We use char because int might match the return type of a gcc2
3375 builtin and then its argument prototype would still apply. */
3377 /* The GNU C library defines this for functions which it implements
3378 to always fail with ENOSYS. Some functions are actually named
3379 something starting with __ and the normal name is an alias. */
3380 #if defined (__stub_connect) || defined (__stub___connect)
3383 char (*f) () = connect;
3392 return f != connect;
3397 rm -f conftest.$ac_objext conftest$ac_exeext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3399 (eval $ac_link) 2>&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -s conftest$ac_exeext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 ac_cv_func_connect=yes
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3414 ac_cv_func_connect=no
3416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3418 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3419 echo "${ECHO_T}$ac_cv_func_connect" >&6
3421 if test $ac_cv_func_connect = no; then
3422 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3423 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3424 if test "${ac_cv_lib_socket_connect+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_check_lib_save_LIBS=$LIBS
3428 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3429 cat >conftest.$ac_ext <<_ACEOF
3430 #line $LINENO "configure"
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3437 /* Override any gcc2 internal prototype to avoid an error. */
3441 /* We use char because int might match the return type of a gcc2
3442 builtin and then its argument prototype would still apply. */
3452 rm -f conftest.$ac_objext conftest$ac_exeext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3454 (eval $ac_link) 2>&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try='test -s conftest$ac_exeext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 ac_cv_lib_socket_connect=yes
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3469 ac_cv_lib_socket_connect=no
3471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3472 LIBS=$ac_check_lib_save_LIBS
3474 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3475 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3476 if test $ac_cv_lib_socket_connect = yes; then
3477 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3482 # Guillermo Gomez says -lposix is necessary on A/UX.
3483 echo "$as_me:$LINENO: checking for remove" >&5
3484 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3485 if test "${ac_cv_func_remove+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 cat >conftest.$ac_ext <<_ACEOF
3489 #line $LINENO "configure"
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 /* System header to define __stub macros and hopefully few prototypes,
3496 which can conflict with char remove (); below.
3497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 <limits.h> exists even on freestanding compilers. */
3500 # include <limits.h>
3502 # include <assert.h>
3504 /* Override any gcc2 internal prototype to avoid an error. */
3509 /* We use char because int might match the return type of a gcc2
3510 builtin and then its argument prototype would still apply. */
3512 /* The GNU C library defines this for functions which it implements
3513 to always fail with ENOSYS. Some functions are actually named
3514 something starting with __ and the normal name is an alias. */
3515 #if defined (__stub_remove) || defined (__stub___remove)
3518 char (*f) () = remove;
3532 rm -f conftest.$ac_objext conftest$ac_exeext
3533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3534 (eval $ac_link) 2>&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -s conftest$ac_exeext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3544 ac_cv_func_remove=yes
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 ac_cv_func_remove=no
3551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3553 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3554 echo "${ECHO_T}$ac_cv_func_remove" >&6
3556 if test $ac_cv_func_remove = no; then
3557 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3558 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3559 if test "${ac_cv_lib_posix_remove+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 ac_check_lib_save_LIBS=$LIBS
3563 LIBS="-lposix $LIBS"
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3572 /* Override any gcc2 internal prototype to avoid an error. */
3576 /* We use char because int might match the return type of a gcc2
3577 builtin and then its argument prototype would still apply. */
3587 rm -f conftest.$ac_objext conftest$ac_exeext
3588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3589 (eval $ac_link) 2>&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try='test -s conftest$ac_exeext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 ac_cv_lib_posix_remove=yes
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 ac_cv_lib_posix_remove=no
3606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3607 LIBS=$ac_check_lib_save_LIBS
3609 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3610 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3611 if test $ac_cv_lib_posix_remove = yes; then
3612 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3617 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3618 echo "$as_me:$LINENO: checking for shmat" >&5
3619 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3620 if test "${ac_cv_func_shmat+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 cat >conftest.$ac_ext <<_ACEOF
3624 #line $LINENO "configure"
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 /* System header to define __stub macros and hopefully few prototypes,
3631 which can conflict with char shmat (); below.
3632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3633 <limits.h> exists even on freestanding compilers. */
3635 # include <limits.h>
3637 # include <assert.h>
3639 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3647 /* The GNU C library defines this for functions which it implements
3648 to always fail with ENOSYS. Some functions are actually named
3649 something starting with __ and the normal name is an alias. */
3650 #if defined (__stub_shmat) || defined (__stub___shmat)
3653 char (*f) () = shmat;
3667 rm -f conftest.$ac_objext conftest$ac_exeext
3668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669 (eval $ac_link) 2>&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } &&
3673 { ac_try='test -s conftest$ac_exeext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_func_shmat=yes
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3688 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3689 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3691 if test $ac_cv_func_shmat = no; then
3692 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3693 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3694 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 ac_check_lib_save_LIBS=$LIBS
3699 cat >conftest.$ac_ext <<_ACEOF
3700 #line $LINENO "configure"
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3707 /* Override any gcc2 internal prototype to avoid an error. */
3711 /* We use char because int might match the return type of a gcc2
3712 builtin and then its argument prototype would still apply. */
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -s conftest$ac_exeext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_lib_ipc_shmat=yes
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_cv_lib_ipc_shmat=no
3741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3742 LIBS=$ac_check_lib_save_LIBS
3744 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3745 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3746 if test $ac_cv_lib_ipc_shmat = yes; then
3747 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3753 # Check for libraries that X11R6 Xt/Xaw programs need.
3754 ac_save_LDFLAGS=$LDFLAGS
3755 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3756 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3757 # check for ICE first), but we must link in the order -lSM -lICE or
3758 # we get undefined symbols. So assume we have SM if we have ICE.
3759 # These have to be linked with before -lX11, unlike the other
3760 # libraries we check for below, so use a different variable.
3761 # John Interrante, Karl Berry
3762 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3763 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3764 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 ac_check_lib_save_LIBS=$LIBS
3768 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3769 cat >conftest.$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3777 /* Override any gcc2 internal prototype to avoid an error. */
3781 /* We use char because int might match the return type of a gcc2
3782 builtin and then its argument prototype would still apply. */
3783 char IceConnectionNumber ();
3787 IceConnectionNumber ();
3792 rm -f conftest.$ac_objext conftest$ac_exeext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794 (eval $ac_link) 2>&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
3798 { ac_try='test -s conftest$ac_exeext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_cv_lib_ICE_IceConnectionNumber=yes
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 ac_cv_lib_ICE_IceConnectionNumber=no
3811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3812 LIBS=$ac_check_lib_save_LIBS
3814 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3815 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3816 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3817 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3820 LDFLAGS=$ac_save_LDFLAGS
3824 #CFLAGS="$CFLAGS $X_CFLAGS -I/usr/local/include"
3825 CFLAGS="$CFLAGS $X_CFLAGS"
3826 LDFLAGS="$LDFLAGS $X_LIBS -L/usr/local/lib"
3830 # Declare variables which we want substituted in the Makefile.in's
3834 echo "$as_me:$LINENO: checking for egrep" >&5
3835 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3836 if test "${ac_cv_prog_egrep+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3840 then ac_cv_prog_egrep='grep -E'
3841 else ac_cv_prog_egrep='egrep'
3844 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3845 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3846 EGREP=$ac_cv_prog_egrep
3849 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3850 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3851 if test "${ac_cv_header_stdc+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 cat >conftest.$ac_ext <<_ACEOF
3855 #line $LINENO "configure"
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3874 rm -f conftest.$ac_objext
3875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3876 (eval $ac_compile) 2>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 ac_cv_header_stdc=yes
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 ac_cv_header_stdc=no
3893 rm -f conftest.$ac_objext conftest.$ac_ext
3895 if test $ac_cv_header_stdc = yes; then
3896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3897 cat >conftest.$ac_ext <<_ACEOF
3898 #line $LINENO "configure"
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 $EGREP "memchr" >/dev/null 2>&1; then
3911 ac_cv_header_stdc=no
3917 if test $ac_cv_header_stdc = yes; then
3918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919 cat >conftest.$ac_ext <<_ACEOF
3920 #line $LINENO "configure"
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3930 $EGREP "free" >/dev/null 2>&1; then
3933 ac_cv_header_stdc=no
3939 if test $ac_cv_header_stdc = yes; then
3940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3941 if test "$cross_compiling" = yes; then
3944 cat >conftest.$ac_ext <<_ACEOF
3945 #line $LINENO "configure"
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3952 #if ((' ' & 0x0FF) == 0x020)
3953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3956 # define ISLOWER(c) \
3957 (('a' <= (c) && (c) <= 'i') \
3958 || ('j' <= (c) && (c) <= 'r') \
3959 || ('s' <= (c) && (c) <= 'z'))
3960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3968 for (i = 0; i < 256; i++)
3969 if (XOR (islower (i), ISLOWER (i))
3970 || toupper (i) != TOUPPER (i))
3975 rm -f conftest$ac_exeext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977 (eval $ac_link) 2>&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3988 echo "$as_me: program exited with status $ac_status" >&5
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3993 ac_cv_header_stdc=no
3995 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3999 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4000 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4001 if test $ac_cv_header_stdc = yes; then
4003 cat >>confdefs.h <<\_ACEOF
4004 #define STDC_HEADERS 1
4009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4020 inttypes.h stdint.h unistd.h
4022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4023 echo "$as_me:$LINENO: checking for $ac_header" >&5
4024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 cat >conftest.$ac_ext <<_ACEOF
4029 #line $LINENO "configure"
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4035 $ac_includes_default
4037 #include <$ac_header>
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 eval "$as_ac_Header=yes"
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 eval "$as_ac_Header=no"
4058 rm -f conftest.$ac_objext conftest.$ac_ext
4060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4063 cat >>confdefs.h <<_ACEOF
4064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4073 for ac_header in limits.h
4075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4077 echo "$as_me:$LINENO: checking for $ac_header" >&5
4078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4085 # Is the header compilable?
4086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 $ac_includes_default
4096 #include <$ac_header>
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100 (eval $ac_compile) 2>&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 ac_header_compiler=yes
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 ac_header_compiler=no
4117 rm -f conftest.$ac_objext conftest.$ac_ext
4118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4119 echo "${ECHO_T}$ac_header_compiler" >&6
4121 # Is the header present?
4122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4124 cat >conftest.$ac_ext <<_ACEOF
4125 #line $LINENO "configure"
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 #include <$ac_header>
4133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } >/dev/null; then
4141 if test -s conftest.err; then
4142 ac_cpp_err=$ac_c_preproc_warn_flag
4149 if test -z "$ac_cpp_err"; then
4150 ac_header_preproc=yes
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 ac_header_preproc=no
4157 rm -f conftest.err conftest.$ac_ext
4158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4159 echo "${ECHO_T}$ac_header_preproc" >&6
4161 # So? What about this header?
4162 case $ac_header_compiler:$ac_header_preproc in
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4170 ## ------------------------------------ ##
4171 ## Report this to bug-autoconf@gnu.org. ##
4172 ## ------------------------------------ ##
4175 sed "s/^/$as_me: WARNING: /" >&2
4178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4186 ## ------------------------------------ ##
4187 ## Report this to bug-autoconf@gnu.org. ##
4188 ## ------------------------------------ ##
4191 sed "s/^/$as_me: WARNING: /" >&2
4194 echo "$as_me:$LINENO: checking for $ac_header" >&5
4195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 eval "$as_ac_Header=$ac_header_preproc"
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4206 cat >>confdefs.h <<_ACEOF
4207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4217 # finally create makefiles using Makefile.in
4220 ac_config_files="$ac_config_files Makefile test/Makefile"
4221 cat >confcache <<\_ACEOF
4222 # This file is a shell script that caches the results of configure
4223 # tests run on this system so they can be shared between configure
4224 # scripts and configure runs, see configure's option --config-cache.
4225 # It is not useful on other systems. If it contains results you don't
4226 # want to keep, you may remove or edit it.
4228 # config.status only pays attention to the cache file if you give it
4229 # the --recheck option to rerun configure.
4231 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4232 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4237 # The following way of writing the cache mishandles newlines in values,
4238 # but we know of no workaround that is simple, portable, and efficient.
4239 # So, don't put newlines in cache variables' values.
4240 # Ultrix sh set writes to stderr and can't be redirected directly,
4241 # and sets the high bit in the cache file unless we assign to the vars.
4244 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4246 # `set' does not quote correctly, so add quotes (double-quote
4247 # substitution turns \\\\ into \\, and sed turns \\ into \).
4250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4253 # `set' quotes correctly as required by POSIX, so do not add quotes.
4255 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4264 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4266 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4267 if test -w $cache_file; then
4268 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4269 cat confcache >$cache_file
4271 echo "not updating unwritable cache $cache_file"
4276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4277 # Let make expand exec_prefix.
4278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4280 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4281 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4282 # trailing colons and then remove the whole line if VPATH becomes empty
4283 # (actually we leave an empty line to preserve line numbers).
4284 if test "x$srcdir" = x.; then
4285 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4286 s/:*\$(srcdir):*/:/;
4287 s/:*\${srcdir}:*/:/;
4289 s/^\([^=]*=[ ]*\):*/\1/;
4295 # Transform confdefs.h into DEFS.
4296 # Protect against shell expansion while executing Makefile rules.
4297 # Protect against Makefile macro expansion.
4299 # If the first sed substitution is executed (which looks for macros that
4300 # take arguments), then we branch to the quote section. Otherwise,
4301 # look for a macro that doesn't take arguments.
4302 cat >confdef2opt.sed <<\_ACEOF
4305 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4307 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4311 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4317 # We use echo to avoid assuming a particular line-breaking character.
4318 # The extra dot is to prevent the shell from consuming trailing
4319 # line-breaks from the sub-command output. A line-break within
4320 # single-quotes doesn't work because, if this script is created in a
4321 # platform that uses two characters for line-breaks (e.g., DOS), tr
4323 ac_LF_and_DOT=`echo; echo .`
4324 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4325 rm -f confdef2opt.sed
4330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4331 # 1. Remove the extension, and $U if already installed.
4332 ac_i=`echo "$ac_i" |
4333 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4335 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4336 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4340 LTLIBOBJS=$ac_ltlibobjs
4344 : ${CONFIG_STATUS=./config.status}
4345 ac_clean_files_save=$ac_clean_files
4346 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4347 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4348 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4349 cat >$CONFIG_STATUS <<_ACEOF
4351 # Generated by $as_me.
4352 # Run this file to recreate the current configuration.
4353 # Compiler output produced by configure, useful for debugging
4354 # configure, is in config.log if it exists.
4359 SHELL=\${CONFIG_SHELL-$SHELL}
4362 cat >>$CONFIG_STATUS <<\_ACEOF
4363 ## --------------------- ##
4364 ## M4sh Initialization. ##
4365 ## --------------------- ##
4367 # Be Bourne compatible
4368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4371 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4372 # is contrary to our usage. Disable this feature.
4373 alias -g '${1+"$@"}'='"$@"'
4374 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4378 # Support unset when possible.
4379 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4386 # Work around bugs in pre-3.0 UWIN ksh.
4387 $as_unset ENV MAIL MAILPATH
4394 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4395 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4396 LC_TELEPHONE LC_TIME
4398 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4399 eval $as_var=C; export $as_var
4405 # Required to use basename.
4406 if expr a : '\(a\)' >/dev/null 2>&1; then
4412 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4413 as_basename=basename
4419 # Name of the executable.
4420 as_me=`$as_basename "$0" ||
4421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4422 X"$0" : 'X\(//\)$' \| \
4423 X"$0" : 'X\(/\)$' \| \
4424 . : '\(.\)' 2>/dev/null ||
4426 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4427 /^X\/\(\/\/\)$/{ s//\1/; q; }
4428 /^X\/\(\/\).*/{ s//\1/; q; }
4432 # PATH needs CR, and LINENO needs CR and PATH.
4433 # Avoid depending upon Character Ranges.
4434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4437 as_cr_digits='0123456789'
4438 as_cr_alnum=$as_cr_Letters$as_cr_digits
4440 # The user is always right.
4441 if test "${PATH_SEPARATOR+set}" != set; then
4442 echo "#! /bin/sh" >conf$$.sh
4443 echo "exit 0" >>conf$$.sh
4445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4456 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4457 test "x$as_lineno_1" != "x$as_lineno_2" &&
4458 test "x$as_lineno_3" = "x$as_lineno_2" || {
4459 # Find who we are. Look in the path if we contain no path at all
4462 *[\\/]* ) as_myself=$0 ;;
4463 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4473 # We did not find ourselves, most probably we were run as `sh COMMAND'
4474 # in which case we are not to be found in the path.
4475 if test "x$as_myself" = x; then
4478 if test ! -f "$as_myself"; then
4479 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4480 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4481 { (exit 1); exit 1; }; }
4483 case $CONFIG_SHELL in
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4489 test -z "$as_dir" && as_dir=.
4490 for as_base in sh bash ksh sh5; do
4493 if ("$as_dir/$as_base" -c '
4496 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4497 test "x$as_lineno_1" != "x$as_lineno_2" &&
4498 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4499 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4500 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4501 CONFIG_SHELL=$as_dir/$as_base
4503 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4511 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4512 # uniformly replaced by the line number. The first 'sed' inserts a
4513 # line-number line before each line; the second 'sed' does the real
4514 # work. The second script uses 'N' to pair each line-number line
4515 # with the numbered line, and appends trailing '-' during
4516 # substitution so that $LINENO is not a special case at line end.
4517 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4518 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4519 sed '=' <$as_myself |
4524 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4527 s,^['$as_cr_digits']*\n,,
4529 chmod +x $as_me.lineno ||
4530 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4531 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4532 { (exit 1); exit 1; }; }
4534 # Don't try to exec as it changes $[0], causing all sort of problems
4535 # (the dirname of $[0] is not the place where we might find the
4536 # original and so on. Autoconf is especially sensible to this).
4538 # Exit status is that of the last command.
4543 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4544 *c*,-n*) ECHO_N= ECHO_C='
4546 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4547 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4550 if expr a : '\(a\)' >/dev/null 2>&1; then
4556 rm -f conf$$ conf$$.exe conf$$.file
4558 if ln -s conf$$.file conf$$ 2>/dev/null; then
4559 # We could just check for DJGPP; but this test a) works b) is more generic
4560 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4561 if test -f conf$$.exe; then
4562 # Don't use ln at all; we don't have any links
4567 elif ln conf$$.file conf$$ 2>/dev/null; then
4572 rm -f conf$$ conf$$.exe conf$$.file
4574 if mkdir -p . 2>/dev/null; then
4580 as_executable_p="test -f"
4582 # Sed expression to map a string onto a valid CPP name.
4583 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4585 # Sed expression to map a string onto a valid variable name.
4586 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4590 # We need space, tab and new line, in precisely that order.
4600 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4601 # report actual input values of CONFIG_FILES etc. instead of their
4602 # values after options handling. Logging --version etc. is OK.
4606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4607 ## Running $as_me. ##
4612 This file was extended by $as_me, which was
4613 generated by GNU Autoconf 2.57. Invocation command line was
4615 CONFIG_FILES = $CONFIG_FILES
4616 CONFIG_HEADERS = $CONFIG_HEADERS
4617 CONFIG_LINKS = $CONFIG_LINKS
4618 CONFIG_COMMANDS = $CONFIG_COMMANDS
4622 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4626 # Files that config.status was made for.
4627 if test -n "$ac_config_files"; then
4628 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4631 if test -n "$ac_config_headers"; then
4632 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4635 if test -n "$ac_config_links"; then
4636 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4639 if test -n "$ac_config_commands"; then
4640 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4643 cat >>$CONFIG_STATUS <<\_ACEOF
4646 \`$as_me' instantiates files from templates according to the
4647 current configuration.
4649 Usage: $0 [OPTIONS] [FILE]...
4651 -h, --help print this help, then exit
4652 -V, --version print version number, then exit
4653 -q, --quiet do not print progress messages
4654 -d, --debug don't remove temporary files
4655 --recheck update $as_me by reconfiguring in the same conditions
4656 --file=FILE[:TEMPLATE]
4657 instantiate the configuration file FILE
4659 Configuration files:
4662 Report bugs to <bug-autoconf@gnu.org>."
4665 cat >>$CONFIG_STATUS <<_ACEOF
4668 configured by $0, generated by GNU Autoconf 2.57,
4669 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4671 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4672 Free Software Foundation, Inc.
4673 This config.status script is free software; the Free Software Foundation
4674 gives unlimited permission to copy, distribute and modify it."
4679 cat >>$CONFIG_STATUS <<\_ACEOF
4680 # If no file are specified by the user, then we need to provide default
4681 # value. By we need to know if files were specified by the user.
4687 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4688 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4696 *) # This is not an option, so the user has probably given explicit
4699 ac_need_defaults=false;;
4703 # Handling of the options.
4705 cat >>$CONFIG_STATUS <<\_ACEOF
4706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4708 --version | --vers* | -V )
4709 echo "$ac_cs_version"; exit 0 ;;
4711 # Conflict between --help and --header
4712 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4713 Try \`$0 --help' for more information." >&5
4714 echo "$as_me: error: ambiguous option: $1
4715 Try \`$0 --help' for more information." >&2;}
4716 { (exit 1); exit 1; }; };;
4717 --help | --hel | -h )
4718 echo "$ac_cs_usage"; exit 0 ;;
4719 --debug | --d* | -d )
4721 --file | --fil | --fi | --f )
4723 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4724 ac_need_defaults=false;;
4725 --header | --heade | --head | --hea )
4727 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4728 ac_need_defaults=false;;
4729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4730 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4734 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4735 Try \`$0 --help' for more information." >&5
4736 echo "$as_me: error: unrecognized option: $1
4737 Try \`$0 --help' for more information." >&2;}
4738 { (exit 1); exit 1; }; } ;;
4740 *) ac_config_targets="$ac_config_targets $1" ;;
4746 ac_configure_extra_args=
4748 if $ac_cs_silent; then
4750 ac_configure_extra_args="$ac_configure_extra_args --silent"
4754 cat >>$CONFIG_STATUS <<_ACEOF
4755 if \$ac_cs_recheck; then
4756 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4757 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4766 cat >>$CONFIG_STATUS <<\_ACEOF
4767 for ac_config_target in $ac_config_targets
4769 case "$ac_config_target" in
4770 # Handling of arguments.
4771 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4772 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
4773 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4774 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4775 { (exit 1); exit 1; }; };;
4779 # If the user did not use the arguments to specify the items to instantiate,
4780 # then the envvar interface is used. Set only those that are not.
4781 # We use the long form for the default assignment because of an extremely
4782 # bizarre bug on SunOS 4.1.3.
4783 if $ac_need_defaults; then
4784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4787 # Have a temporary directory for convenience. Make it in the build tree
4788 # simply because there is no reason to put it here, and in addition,
4789 # creating and moving files from /tmp can sometimes cause problems.
4790 # Create a temporary directory, and hook for its removal unless debugging.
4793 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4794 trap '{ (exit 1); exit 1; }' 1 2 13 15
4797 # Create a (secure) tmp directory for tmp files.
4800 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4801 test -n "$tmp" && test -d "$tmp"
4804 tmp=./confstat$$-$RANDOM
4805 (umask 077 && mkdir $tmp)
4808 echo "$me: cannot create a temporary directory in ." >&2
4809 { (exit 1); exit 1; }
4814 cat >>$CONFIG_STATUS <<_ACEOF
4817 # CONFIG_FILES section.
4820 # No need to generate the scripts if there are no CONFIG_FILES.
4821 # This happens for instance when ./config.status config.h
4822 if test -n "\$CONFIG_FILES"; then
4823 # Protect against being on the right side of a sed subst in config.status.
4824 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4825 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4826 s,@SHELL@,$SHELL,;t t
4827 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4828 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4829 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4830 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4831 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4832 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4833 s,@exec_prefix@,$exec_prefix,;t t
4834 s,@prefix@,$prefix,;t t
4835 s,@program_transform_name@,$program_transform_name,;t t
4836 s,@bindir@,$bindir,;t t
4837 s,@sbindir@,$sbindir,;t t
4838 s,@libexecdir@,$libexecdir,;t t
4839 s,@datadir@,$datadir,;t t
4840 s,@sysconfdir@,$sysconfdir,;t t
4841 s,@sharedstatedir@,$sharedstatedir,;t t
4842 s,@localstatedir@,$localstatedir,;t t
4843 s,@libdir@,$libdir,;t t
4844 s,@includedir@,$includedir,;t t
4845 s,@oldincludedir@,$oldincludedir,;t t
4846 s,@infodir@,$infodir,;t t
4847 s,@mandir@,$mandir,;t t
4848 s,@build_alias@,$build_alias,;t t
4849 s,@host_alias@,$host_alias,;t t
4850 s,@target_alias@,$target_alias,;t t
4852 s,@ECHO_C@,$ECHO_C,;t t
4853 s,@ECHO_N@,$ECHO_N,;t t
4854 s,@ECHO_T@,$ECHO_T,;t t
4856 s,@build@,$build,;t t
4857 s,@build_cpu@,$build_cpu,;t t
4858 s,@build_vendor@,$build_vendor,;t t
4859 s,@build_os@,$build_os,;t t
4861 s,@host_cpu@,$host_cpu,;t t
4862 s,@host_vendor@,$host_vendor,;t t
4863 s,@host_os@,$host_os,;t t
4865 s,@CFLAGS@,$CFLAGS,;t t
4866 s,@LDFLAGS@,$LDFLAGS,;t t
4867 s,@CPPFLAGS@,$CPPFLAGS,;t t
4868 s,@ac_ct_CC@,$ac_ct_CC,;t t
4869 s,@EXEEXT@,$EXEEXT,;t t
4870 s,@OBJEXT@,$OBJEXT,;t t
4872 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4873 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4874 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4876 s,@MAKEDEPEND@,$MAKEDEPEND,;t t
4877 s,@X_CFLAGS@,$X_CFLAGS,;t t
4878 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
4879 s,@X_LIBS@,$X_LIBS,;t t
4880 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
4881 s,@EGREP@,$EGREP,;t t
4882 s,@LIBOBJS@,$LIBOBJS,;t t
4883 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4888 cat >>$CONFIG_STATUS <<\_ACEOF
4889 # Split the substitutions into bite-sized pieces for seds with
4890 # small command number limits, like on Digital OSF/1 and HP-UX.
4892 ac_sed_frag=1 # Number of current file.
4893 ac_beg=1 # First line for current file.
4894 ac_end=$ac_max_sed_lines # Line after last line for current file.
4897 while $ac_more_lines; do
4898 if test $ac_beg -gt 1; then
4899 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4901 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4903 if test ! -s $tmp/subs.frag; then
4906 # The purpose of the label and of the branching condition is to
4907 # speed up the sed processing (if there are no `@' at all, there
4908 # is no need to browse any of the substitutions).
4909 # These are the two extra sed commands mentioned above.
4911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4912 if test -z "$ac_sed_cmds"; then
4913 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4915 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4917 ac_sed_frag=`expr $ac_sed_frag + 1`
4919 ac_end=`expr $ac_end + $ac_max_sed_lines`
4922 if test -z "$ac_sed_cmds"; then
4925 fi # test -n "$CONFIG_FILES"
4928 cat >>$CONFIG_STATUS <<\_ACEOF
4929 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4932 - | *:- | *:-:* ) # input from stdin
4934 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4936 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4938 * ) ac_file_in=$ac_file.in ;;
4941 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4942 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4944 X"$ac_file" : 'X\(//\)[^/]' \| \
4945 X"$ac_file" : 'X\(//\)$' \| \
4946 X"$ac_file" : 'X\(/\)' \| \
4947 . : '\(.\)' 2>/dev/null ||
4949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4951 /^X\(\/\/\)$/{ s//\1/; q; }
4952 /^X\(\/\).*/{ s//\1/; q; }
4954 { if $as_mkdir_p; then
4959 while test ! -d "$as_dir"; do
4960 as_dirs="$as_dir $as_dirs"
4961 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4963 X"$as_dir" : 'X\(//\)[^/]' \| \
4964 X"$as_dir" : 'X\(//\)$' \| \
4965 X"$as_dir" : 'X\(/\)' \| \
4966 . : '\(.\)' 2>/dev/null ||
4968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4970 /^X\(\/\/\)$/{ s//\1/; q; }
4971 /^X\(\/\).*/{ s//\1/; q; }
4974 test ! -n "$as_dirs" || mkdir $as_dirs
4975 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4977 { (exit 1); exit 1; }; }; }
4981 if test "$ac_dir" != .; then
4982 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4983 # A "../" for each directory in $ac_dir_suffix.
4984 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4986 ac_dir_suffix= ac_top_builddir=
4990 .) # No --srcdir option. We are building in place.
4992 if test -z "$ac_top_builddir"; then
4995 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4997 [\\/]* | ?:[\\/]* ) # Absolute path.
4998 ac_srcdir=$srcdir$ac_dir_suffix;
4999 ac_top_srcdir=$srcdir ;;
5001 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5002 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5004 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5006 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5007 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5008 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5009 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5014 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5017 if test x"$ac_file" != x-; then
5018 { echo "$as_me:$LINENO: creating $ac_file" >&5
5019 echo "$as_me: creating $ac_file" >&6;}
5022 # Let's still pretend it is `configure' which instantiates (i.e., don't
5023 # use $as_me), people would be surprised to read:
5024 # /* config.h. Generated by config.status. */
5025 if test x"$ac_file" = x-; then
5028 configure_input="$ac_file. "
5030 configure_input=$configure_input"Generated from `echo $ac_file_in |
5031 sed 's,.*/,,'` by configure."
5033 # First look for the input files in the build tree, otherwise in the
5035 ac_file_inputs=`IFS=:
5036 for f in $ac_file_in; do
5038 -) echo $tmp/stdin ;;
5040 # Absolute (can't be DOS-style, as IFS=:)
5041 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5042 echo "$as_me: error: cannot find input file: $f" >&2;}
5043 { (exit 1); exit 1; }; }
5046 if test -f "$f"; then
5049 elif test -f "$srcdir/$f"; then
5054 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5055 echo "$as_me: error: cannot find input file: $f" >&2;}
5056 { (exit 1); exit 1; }; }
5059 done` || { (exit 1); exit 1; }
5061 cat >>$CONFIG_STATUS <<_ACEOF
5065 cat >>$CONFIG_STATUS <<\_ACEOF
5067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5068 s,@configure_input@,$configure_input,;t t
5069 s,@srcdir@,$ac_srcdir,;t t
5070 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5071 s,@top_srcdir@,$ac_top_srcdir,;t t
5072 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5073 s,@builddir@,$ac_builddir,;t t
5074 s,@abs_builddir@,$ac_abs_builddir,;t t
5075 s,@top_builddir@,$ac_top_builddir,;t t
5076 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5077 s,@INSTALL@,$ac_INSTALL,;t t
5078 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5080 if test x"$ac_file" != x-; then
5081 mv $tmp/out $ac_file
5090 cat >>$CONFIG_STATUS <<\_ACEOF
5092 { (exit 0); exit 0; }
5094 chmod +x $CONFIG_STATUS
5095 ac_clean_files=$ac_clean_files_save
5098 # configure is writing to config.log, and then calls config.status.
5099 # config.status does its own redirection, appending to config.log.
5100 # Unfortunately, on DOS this fails, as config.log is still kept open
5101 # by configure, so config.status won't be able to write to it; its
5102 # output is simply discarded. So we exec the FD to /dev/null,
5103 # effectively closing config.log, so it can be properly (re)opened and
5104 # appended to by config.status. When coming back to configure, we
5105 # need to make the FD available again.
5106 if test "$no_create" != yes; then
5108 ac_config_status_args=
5109 test "$silent" = yes &&
5110 ac_config_status_args="$ac_config_status_args --quiet"
5112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5115 # would make configure fail if this is the last instruction.
5116 $ac_cs_success || { (exit 1); exit 1; }
5121 echo "Run 'make depend' to create dependencies."