2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
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.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="src/gcm_input/message.h"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CXX_set=${CXX+set}
752 ac_env_CXX_value=$CXX
753 ac_cv_env_CXX_set=${CXX+set}
754 ac_cv_env_CXX_value=$CXX
755 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
756 ac_env_CXXFLAGS_value=$CXXFLAGS
757 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
759 ac_env_CPP_set=${CPP+set}
760 ac_env_CPP_value=$CPP
761 ac_cv_env_CPP_set=${CPP+set}
762 ac_cv_env_CPP_value=$CPP
765 # Report the --help message.
767 if test "$ac_init_help" = "long"; then
768 # Omit some internal or obsolete options to make the list less imposing.
769 # This message is too long to be a string in the A/UX 3.1 sh.
771 \`configure' configures this package to adapt to many kinds of systems.
773 Usage: $0 [OPTION]... [VAR=VALUE]...
775 To assign environment variables (e.g., CC, CFLAGS...), specify them as
776 VAR=VALUE. See below for descriptions of some of the useful variables.
778 Defaults for the options are specified in brackets.
781 -h, --help display this help and exit
782 --help=short display options specific to this package
783 --help=recursive display the short help of all the included packages
784 -V, --version display version information and exit
785 -q, --quiet, --silent do not print \`checking...' messages
786 --cache-file=FILE cache test results in FILE [disabled]
787 -C, --config-cache alias for \`--cache-file=config.cache'
788 -n, --no-create do not create output files
789 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 Installation directories:
795 --prefix=PREFIX install architecture-independent files in PREFIX
797 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 By default, \`make install' will install all the files in
801 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
802 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
803 for instance \`--prefix=\$HOME'.
805 For better control, use the options below.
807 Fine tuning of the installation directories:
808 --bindir=DIR user executables [EPREFIX/bin]
809 --sbindir=DIR system admin executables [EPREFIX/sbin]
810 --libexecdir=DIR program executables [EPREFIX/libexec]
811 --datadir=DIR read-only architecture-independent data [PREFIX/share]
812 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
813 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
814 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
815 --libdir=DIR object code libraries [EPREFIX/lib]
816 --includedir=DIR C header files [PREFIX/include]
817 --oldincludedir=DIR C header files for non-gcc [/usr/include]
818 --infodir=DIR info documentation [PREFIX/info]
819 --mandir=DIR man documentation [PREFIX/man]
825 --program-prefix=PREFIX prepend PREFIX to installed program names
826 --program-suffix=SUFFIX append SUFFIX to installed program names
827 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
830 --x-includes=DIR X include files are in DIR
831 --x-libraries=DIR X library files are in DIR
835 if test -n "$ac_init_help"; then
840 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
841 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
842 --disable-dependency-tracking Speeds up one-time builds
843 --enable-dependency-tracking Do not reject slow dependency extractors
846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
848 --with-x use the X Window System
850 Some influential environment variables:
851 CC C compiler command
852 CFLAGS C compiler flags
853 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854 nonstandard directory <lib dir>
855 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856 headers in a nonstandard directory <include dir>
857 CXX C++ compiler command
858 CXXFLAGS C++ compiler flags
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.53. 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 # Also quote any args containing shell meta-characters.
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n ) continue ;;
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1004 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1006 case " $ac_configure_args " in
1007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1008 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1011 # Get rid of the leading space.
1014 # When interrupted or exit'd, cleanup temporary files, and complete
1015 # config.log. We remove comments because anyway the quotes in there
1016 # would cause problems or look ugly.
1017 # WARNING: Be sure not to use single quotes in there, as some shells,
1018 # such as our DU 5.0 friend, will then `close' the trap.
1019 trap 'exit_status=$?
1020 # Save into config.log some information that might help in debugging.
1024 ## ---------------- ##
1025 ## Cache variables. ##
1026 ## ---------------- ##
1029 # The following way of writing the cache mishandles newlines in values,
1032 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1035 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1040 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1045 if test -s confdefs.h; then
1052 sed "/^$/d" confdefs.h
1055 test "$ac_signal" != 0 &&
1056 echo "$as_me: caught signal $ac_signal"
1057 echo "$as_me: exit $exit_status"
1059 rm -f core core.* *.core &&
1060 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1063 for ac_signal in 1 2 13 15; do
1064 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1068 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1069 rm -rf conftest* confdefs.h
1070 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1073 # Predefined preprocessor variables.
1075 cat >>confdefs.h <<_ACEOF
1076 #define PACKAGE_NAME "$PACKAGE_NAME"
1080 cat >>confdefs.h <<_ACEOF
1081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1085 cat >>confdefs.h <<_ACEOF
1086 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1090 cat >>confdefs.h <<_ACEOF
1091 #define PACKAGE_STRING "$PACKAGE_STRING"
1095 cat >>confdefs.h <<_ACEOF
1096 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1100 # Let the site file select an alternate cache file if it wants to.
1101 # Prefer explicitly selected file to automatically selected ones.
1102 if test -z "$CONFIG_SITE"; then
1103 if test "x$prefix" != xNONE; then
1104 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1106 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1109 for ac_site_file in $CONFIG_SITE; do
1110 if test -r "$ac_site_file"; then
1111 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1112 echo "$as_me: loading site script $ac_site_file" >&6;}
1113 sed 's/^/| /' "$ac_site_file" >&5
1118 if test -r "$cache_file"; then
1119 # Some versions of bash will fail to source /dev/null (special
1120 # files actually), so we avoid doing that.
1121 if test -f "$cache_file"; then
1122 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1123 echo "$as_me: loading cache $cache_file" >&6;}
1125 [\\/]* | ?:[\\/]* ) . $cache_file;;
1126 *) . ./$cache_file;;
1130 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1131 echo "$as_me: creating cache $cache_file" >&6;}
1135 # Check that the precious variables saved in the cache have kept the same
1137 ac_cache_corrupted=false
1138 for ac_var in `(set) 2>&1 |
1139 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1140 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1141 eval ac_new_set=\$ac_env_${ac_var}_set
1142 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1143 eval ac_new_val="\$ac_env_${ac_var}_value"
1144 case $ac_old_set,$ac_new_set in
1146 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1147 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1148 ac_cache_corrupted=: ;;
1150 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1151 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1152 ac_cache_corrupted=: ;;
1155 if test "x$ac_old_val" != "x$ac_new_val"; then
1156 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1157 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1158 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1159 echo "$as_me: former value: $ac_old_val" >&2;}
1160 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1161 echo "$as_me: current value: $ac_new_val" >&2;}
1162 ac_cache_corrupted=:
1165 # Pass precious variables to config.status.
1166 if test "$ac_new_set" = set; then
1168 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1169 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1170 *) ac_arg=$ac_var=$ac_new_val ;;
1172 case " $ac_configure_args " in
1173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1174 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1178 if $ac_cache_corrupted; then
1179 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1180 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1181 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1182 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1183 { (exit 1); exit 1; }; }
1187 ac_cpp='$CPP $CPPFLAGS'
1188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1209 am__api_version="1.6"
1211 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1212 if test -f $ac_dir/install-sh; then
1214 ac_install_sh="$ac_aux_dir/install-sh -c"
1216 elif test -f $ac_dir/install.sh; then
1218 ac_install_sh="$ac_aux_dir/install.sh -c"
1220 elif test -f $ac_dir/shtool; then
1222 ac_install_sh="$ac_aux_dir/shtool install -c"
1226 if test -z "$ac_aux_dir"; then
1227 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1228 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1229 { (exit 1); exit 1; }; }
1231 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1232 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1233 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1235 # Find a good install program. We prefer a C program (faster),
1236 # so one script is as good as another. But avoid the broken or
1237 # incompatible versions:
1238 # SysV /etc/install, /usr/sbin/install
1239 # SunOS /usr/etc/install
1240 # IRIX /sbin/install
1242 # AmigaOS /C/install, which installs bootblocks on floppy discs
1243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1246 # ./install, which can be erroneously created by make from ./install.sh.
1247 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1248 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1249 if test -z "$INSTALL"; then
1250 if test "${ac_cv_path_install+set}" = set; then
1251 echo $ECHO_N "(cached) $ECHO_C" >&6
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 test -z "$as_dir" && as_dir=.
1258 # Account for people who put trailing slashes in PATH elements.
1260 ./ | .// | /cC/* | \
1261 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1264 # OSF1 and SCO ODT 3.0 have their own names for install.
1265 # Don't use installbsd from OSF since it installs stuff as root
1267 for ac_prog in ginstall scoinst install; do
1268 for ac_exec_ext in '' $ac_executable_extensions; do
1269 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1270 if test $ac_prog = install &&
1271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1272 # AIX install. It has an incompatible calling convention.
1274 elif test $ac_prog = install &&
1275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1276 # program-specific install script used by HP pwplus--don't use.
1279 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1291 if test "${ac_cv_path_install+set}" = set; then
1292 INSTALL=$ac_cv_path_install
1294 # As a last resort, use the slow shell script. We don't cache a
1295 # path for INSTALL within a source directory, because that will
1296 # break other packages using the cache if that directory is
1297 # removed, or if the path is relative.
1298 INSTALL=$ac_install_sh
1301 echo "$as_me:$LINENO: result: $INSTALL" >&5
1302 echo "${ECHO_T}$INSTALL" >&6
1304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1305 # It thinks the first close brace ends the variable substitution.
1306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1312 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1313 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1316 echo timestamp > conftest.file
1317 # Do `set' in a subshell so we don't clobber the current shell's
1318 # arguments. Must try -L first in case configure is actually a
1319 # symlink; some systems play weird games with the mod time of symlinks
1320 # (eg FreeBSD returns the mod time of the symlink's containing
1323 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1324 if test "$*" = "X"; then
1326 set X `ls -t $srcdir/configure conftest.file`
1329 if test "$*" != "X $srcdir/configure conftest.file" \
1330 && test "$*" != "X conftest.file $srcdir/configure"; then
1332 # If neither matched, then we have a broken ls. This can happen
1333 # if, for instance, CONFIG_SHELL is bash and it inherits a
1334 # broken ls alias from the environment. This has actually
1335 # happened. Such a system could not be considered "sane".
1336 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1337 alias in your environment" >&5
1338 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1339 alias in your environment" >&2;}
1340 { (exit 1); exit 1; }; }
1343 test "$2" = conftest.file
1349 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1350 Check your system clock" >&5
1351 echo "$as_me: error: newly created file is older than distributed files!
1352 Check your system clock" >&2;}
1353 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: result: yes" >&5
1356 echo "${ECHO_T}yes" >&6
1357 test "$program_prefix" != NONE &&
1358 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1359 # Use a double $ so make ignores it.
1360 test "$program_suffix" != NONE &&
1361 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1362 # Double any \ or $. echo might interpret backslashes.
1363 # By default was `s,x,x', remove it if useless.
1364 cat <<\_ACEOF >conftest.sed
1365 s/[\\$]/&&/g;s/;s,x,x,$//
1367 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1371 # expand $ac_aux_dir to an absolute path
1372 am_aux_dir=`cd $ac_aux_dir && pwd`
1374 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1375 # Use eval to expand $SHELL
1376 if eval "$MISSING --run true"; then
1377 am_missing_run="$MISSING --run "
1380 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1381 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1384 for ac_prog in gawk mawk nawk awk
1386 # Extract the first word of "$ac_prog", so it can be a program name with args.
1387 set dummy $ac_prog; ac_word=$2
1388 echo "$as_me:$LINENO: checking for $ac_word" >&5
1389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390 if test "${ac_cv_prog_AWK+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 if test -n "$AWK"; then
1394 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_prog_AWK="$ac_prog"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413 if test -n "$AWK"; then
1414 echo "$as_me:$LINENO: result: $AWK" >&5
1415 echo "${ECHO_T}$AWK" >&6
1417 echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1421 test -n "$AWK" && break
1424 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1425 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1426 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1427 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 cat >conftest.make <<\_ACEOF
1432 @echo 'ac_maketemp="${MAKE}"'
1434 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1435 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1436 if test -n "$ac_maketemp"; then
1437 eval ac_cv_prog_make_${ac_make}_set=yes
1439 eval ac_cv_prog_make_${ac_make}_set=no
1443 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1444 echo "$as_me:$LINENO: result: yes" >&5
1445 echo "${ECHO_T}yes" >&6
1448 echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1450 SET_MAKE="MAKE=${MAKE-make}"
1453 # test to see if srcdir already configured
1454 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1455 test -f $srcdir/config.status; then
1456 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1457 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1458 { (exit 1); exit 1; }; }
1461 # Define the identity of the package.
1466 cat >>confdefs.h <<_ACEOF
1467 #define PACKAGE "$PACKAGE"
1471 cat >>confdefs.h <<_ACEOF
1472 #define VERSION "$VERSION"
1475 # Some tools Automake needs.
1477 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1480 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1483 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1486 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1489 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1492 AMTAR=${AMTAR-"${am_missing_run}tar"}
1494 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1496 # Installed binaries are usually stripped using `strip' when the user
1497 # run `make install-strip'. However `strip' might not be the right
1498 # tool to use in cross-compilation environments, therefore Automake
1499 # will honor the `STRIP' environment variable to overrule this program.
1500 if test "$cross_compiling" != no; then
1501 if test -n "$ac_tool_prefix"; then
1502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1503 set dummy ${ac_tool_prefix}strip; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_STRIP+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 if test -n "$STRIP"; then
1510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 STRIP=$ac_cv_prog_STRIP
1529 if test -n "$STRIP"; then
1530 echo "$as_me:$LINENO: result: $STRIP" >&5
1531 echo "${ECHO_T}$STRIP" >&6
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1538 if test -z "$ac_cv_prog_STRIP"; then
1540 # Extract the first word of "strip", so it can be a program name with args.
1541 set dummy strip; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 if test -n "$ac_ct_STRIP"; then
1548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_ac_ct_STRIP="strip"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1568 if test -n "$ac_ct_STRIP"; then
1569 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1570 echo "${ECHO_T}$ac_ct_STRIP" >&6
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1578 STRIP="$ac_cv_prog_STRIP"
1582 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1584 # We need awk for the "check" target. The system "awk" is bad on
1592 ac_cpp='$CPP $CPPFLAGS'
1593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1596 if test -n "$ac_tool_prefix"; then
1597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 if test -n "$CC"; then
1625 echo "$as_me:$LINENO: result: $CC" >&5
1626 echo "${ECHO_T}$CC" >&6
1628 echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1633 if test -z "$ac_cv_prog_CC"; then
1635 # Extract the first word of "gcc", so it can be a program name with args.
1636 set dummy gcc; 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="gcc"
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
1675 if test -z "$CC"; then
1676 if test -n "$ac_tool_prefix"; then
1677 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1678 set dummy ${ac_tool_prefix}cc; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_CC+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 if test -n "$CC"; then
1685 ac_cv_prog_CC="$CC" # Let the user override the test.
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_CC="${ac_tool_prefix}cc"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 if test -n "$CC"; then
1705 echo "$as_me:$LINENO: result: $CC" >&5
1706 echo "${ECHO_T}$CC" >&6
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1713 if test -z "$ac_cv_prog_CC"; then
1715 # Extract the first word of "cc", so it can be a program name with args.
1716 set dummy cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$ac_ct_CC"; then
1723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_ac_ct_CC="cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1742 if test -n "$ac_ct_CC"; then
1743 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1744 echo "${ECHO_T}$ac_ct_CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1756 if test -z "$CC"; then
1757 # Extract the first word of "cc", so it can be a program name with args.
1758 set dummy cc; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC="$CC" # Let the user override the test.
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1776 ac_prog_rejected=yes
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786 if test $ac_prog_rejected = yes; then
1787 # We found a bogon in the path, so make sure we never use it.
1788 set dummy $ac_cv_prog_CC
1790 if test $# != 0; then
1791 # We chose a different compiler from the bogus one.
1792 # However, it has the same basename, so the bogon will be chosen
1793 # first if we set CC to just the basename; use the full file name.
1795 set dummy "$as_dir/$ac_word" ${1+"$@"}
1803 if test -n "$CC"; then
1804 echo "$as_me:$LINENO: result: $CC" >&5
1805 echo "${ECHO_T}$CC" >&6
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1812 if test -z "$CC"; then
1813 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1851 test -n "$CC" && break
1854 if test -z "$CC"; then
1858 # Extract the first word of "$ac_prog", so it can be a program name with args.
1859 set dummy $ac_prog; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="$ac_prog"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1893 test -n "$ac_ct_CC" && break
1902 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1903 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1904 { (exit 1); exit 1; }; }
1906 # Provide some information about the compiler.
1907 echo "$as_me:$LINENO:" \
1908 "checking for C compiler version" >&5
1909 ac_compiler=`set X $ac_compile; echo $2`
1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1911 (eval $ac_compiler --version </dev/null >&5) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }
1915 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1916 (eval $ac_compiler -v </dev/null >&5) 2>&5
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }
1920 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1921 (eval $ac_compiler -V </dev/null >&5) 2>&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }
1926 cat >conftest.$ac_ext <<_ACEOF
1927 #line $LINENO "configure"
1928 #include "confdefs.h"
1930 #ifdef F77_DUMMY_MAIN
1934 int F77_DUMMY_MAIN() { return 1; }
1944 ac_clean_files_save=$ac_clean_files
1945 ac_clean_files="$ac_clean_files a.out a.exe"
1946 # Try to create an executable without -o first, disregard a.out.
1947 # It will help us diagnose broken compilers, and finding out an intuition
1949 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1950 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1951 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1952 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1953 (eval $ac_link_default) 2>&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; then
1957 # Find the output, starting from the most likely. This scheme is
1958 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1961 # Be careful to initialize this variable, since it used to be cached.
1962 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1964 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1965 ls a.out conftest 2>/dev/null;
1966 ls a.* conftest.* 2>/dev/null`; do
1968 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1969 a.out ) # We found the default executable, but exeext='' is most
1972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1973 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1980 echo "$as_me: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1982 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1983 echo "$as_me: error: C compiler cannot create executables" >&2;}
1984 { (exit 77); exit 77; }; }
1987 ac_exeext=$ac_cv_exeext
1988 echo "$as_me:$LINENO: result: $ac_file" >&5
1989 echo "${ECHO_T}$ac_file" >&6
1991 # Check the compiler produces executables we can run. If not, either
1992 # the compiler is broken, or we cross compile.
1993 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1994 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1995 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1996 # If not cross compiling, check that we can run a simple program.
1997 if test "$cross_compiling" != yes; then
1998 if { ac_try='./$ac_file'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; }; then
2006 if test "$cross_compiling" = maybe; then
2009 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2010 If you meant to cross compile, use \`--host'." >&5
2011 echo "$as_me: error: cannot run C compiled programs.
2012 If you meant to cross compile, use \`--host'." >&2;}
2013 { (exit 1); exit 1; }; }
2017 echo "$as_me:$LINENO: result: yes" >&5
2018 echo "${ECHO_T}yes" >&6
2020 rm -f a.out a.exe conftest$ac_cv_exeext
2021 ac_clean_files=$ac_clean_files_save
2022 # Check the compiler produces executables we can run. If not, either
2023 # the compiler is broken, or we cross compile.
2024 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2025 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2026 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2027 echo "${ECHO_T}$cross_compiling" >&6
2029 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2030 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2032 (eval $ac_link) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; then
2036 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2037 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2038 # work properly (i.e., refer to `conftest.exe'), while it won't with
2040 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2042 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2051 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2052 { (exit 1); exit 1; }; }
2055 rm -f conftest$ac_cv_exeext
2056 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2057 echo "${ECHO_T}$ac_cv_exeext" >&6
2059 rm -f conftest.$ac_ext
2060 EXEEXT=$ac_cv_exeext
2062 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2063 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2064 if test "${ac_cv_objext+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 cat >conftest.$ac_ext <<_ACEOF
2068 #line $LINENO "configure"
2069 #include "confdefs.h"
2071 #ifdef F77_DUMMY_MAIN
2075 int F77_DUMMY_MAIN() { return 1; }
2085 rm -f conftest.o conftest.obj
2086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087 (eval $ac_compile) 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; then
2091 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2099 echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2102 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2103 { (exit 1); exit 1; }; }
2106 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2108 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2109 echo "${ECHO_T}$ac_cv_objext" >&6
2110 OBJEXT=$ac_cv_objext
2112 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2113 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2114 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 cat >conftest.$ac_ext <<_ACEOF
2118 #line $LINENO "configure"
2119 #include "confdefs.h"
2121 #ifdef F77_DUMMY_MAIN
2125 int F77_DUMMY_MAIN() { return 1; }
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
2144 { ac_try='test -s conftest.$ac_objext'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; }; then
2152 echo "$as_me: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2156 rm -f conftest.$ac_objext conftest.$ac_ext
2157 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2160 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2161 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2162 GCC=`test $ac_compiler_gnu = yes && echo yes`
2163 ac_test_CFLAGS=${CFLAGS+set}
2164 ac_save_CFLAGS=$CFLAGS
2166 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2167 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2168 if test "${ac_cv_prog_cc_g+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 cat >conftest.$ac_ext <<_ACEOF
2172 #line $LINENO "configure"
2173 #include "confdefs.h"
2175 #ifdef F77_DUMMY_MAIN
2179 int F77_DUMMY_MAIN() { return 1; }
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2203 echo "$as_me: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2207 rm -f conftest.$ac_objext conftest.$ac_ext
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2211 if test "$ac_test_CFLAGS" = set; then
2212 CFLAGS=$ac_save_CFLAGS
2213 elif test $ac_cv_prog_cc_g = yes; then
2214 if test "$GCC" = yes; then
2220 if test "$GCC" = yes; then
2226 # Some people use a C++ compiler to compile C. Since we use `exit',
2227 # in C++ we need to declare it. In case someone uses the same compiler
2228 # for both compiling C and C++ we need to have the C++ compiler decide
2229 # the declaration of exit, since it's the most demanding environment.
2230 cat >conftest.$ac_ext <<_ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 for ac_declaration in \
2249 '#include <stdlib.h>' \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2256 cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 #include "confdefs.h"
2261 #ifdef F77_DUMMY_MAIN
2265 int F77_DUMMY_MAIN() { return 1; }
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2289 echo "$as_me: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2293 rm -f conftest.$ac_objext conftest.$ac_ext
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2296 #include "confdefs.h"
2298 #ifdef F77_DUMMY_MAIN
2302 int F77_DUMMY_MAIN() { return 1; }
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -s conftest.$ac_objext'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; }; then
2326 echo "$as_me: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2332 if test -n "$ac_declaration"; then
2333 echo '#ifdef __cplusplus' >>confdefs.h
2334 echo $ac_declaration >>confdefs.h
2335 echo '#endif' >>confdefs.h
2339 echo "$as_me: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2342 rm -f conftest.$ac_objext conftest.$ac_ext
2344 ac_cpp='$CPP $CPPFLAGS'
2345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348 rm -f .deps 2>/dev/null
2349 mkdir .deps 2>/dev/null
2350 if test -d .deps; then
2353 # MS-DOS does not allow filenames that begin with a dot.
2356 rmdir .deps 2>/dev/null
2359 ac_config_commands="$ac_config_commands depfiles"
2362 am_make=${MAKE-make}
2363 cat > confinc << 'END'
2367 # If we don't find an include directive, just comment out the code.
2368 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2369 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2373 # First try GNU make style include.
2374 echo "include confinc" > confmf
2375 # We grep out `Entering directory' and `Leaving directory'
2376 # messages which can occur if `w' ends up in MAKEFLAGS.
2377 # In particular we don't look at `^make:' because GNU make might
2378 # be invoked under some other name (usually "gmake"), in which
2379 # case it prints its new name instead of `make'.
2380 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2385 # Now try BSD make style include.
2386 if test "$am__include" = "#"; then
2387 echo '.include "confinc"' > confmf
2388 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2389 am__include=.include
2396 echo "$as_me:$LINENO: result: $_am_result" >&5
2397 echo "${ECHO_T}$_am_result" >&6
2398 rm -f confinc confmf
2400 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2401 if test "${enable_dependency_tracking+set}" = set; then
2402 enableval="$enable_dependency_tracking"
2405 if test "x$enable_dependency_tracking" != xno; then
2406 am_depcomp="$ac_aux_dir/depcomp"
2411 if test "x$enable_dependency_tracking" != xno; then
2422 depcc="$CC" am_compiler_list=
2424 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2426 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2430 # We make a subdir and do the tests there. Otherwise we can end up
2431 # making bogus files that we don't know about and never remove. For
2432 # instance it was reported that on HP-UX the gcc test will end up
2433 # making a dummy file named `D' -- because `-MD' means `put the output
2436 # Copy depcomp to subdir because otherwise we won't find it if we're
2437 # using a relative directory.
2438 cp "$am_depcomp" conftest.dir
2441 am_cv_CC_dependencies_compiler_type=none
2442 if test "$am_compiler_list" = ""; then
2443 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2445 for depmode in $am_compiler_list; do
2446 # We need to recreate these files for each test, as the compiler may
2447 # overwrite some of them when testing with obscure command lines.
2448 # This happens at least with the AIX C compiler.
2449 echo '#include "conftest.h"' > conftest.c
2450 echo 'int i;' > conftest.h
2451 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2455 # after this tag, mechanisms are not by side-effect, so they'll
2456 # only be used when explicitly requested
2457 if test "x$enable_dependency_tracking" = xyes; then
2465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2466 # mode. It turns out that the SunPro C++ compiler does not properly
2467 # handle `-M -o', and we need to detect this.
2468 if depmode=$depmode \
2469 source=conftest.c object=conftest.o \
2470 depfile=conftest.Po tmpdepfile=conftest.TPo \
2471 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2472 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2474 am_cv_CC_dependencies_compiler_type=$depmode
2482 am_cv_CC_dependencies_compiler_type=none
2486 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2487 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2488 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2492 ac_cpp='$CXXCPP $CPPFLAGS'
2493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2496 if test -n "$ac_tool_prefix"; then
2497 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2501 echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_CXX+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$CXX"; then
2507 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 if test -n "$CXX"; then
2527 echo "$as_me:$LINENO: result: $CXX" >&5
2528 echo "${ECHO_T}$CXX" >&6
2530 echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6
2534 test -n "$CXX" && break
2537 if test -z "$CXX"; then
2539 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2541 # Extract the first word of "$ac_prog", so it can be a program name with args.
2542 set dummy $ac_prog; ac_word=$2
2543 echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2545 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 if test -n "$ac_ct_CXX"; then
2549 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2558 ac_cv_prog_ac_ct_CXX="$ac_prog"
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2568 if test -n "$ac_ct_CXX"; then
2569 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2570 echo "${ECHO_T}$ac_ct_CXX" >&6
2572 echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6
2576 test -n "$ac_ct_CXX" && break
2578 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2584 # Provide some information about the compiler.
2585 echo "$as_me:$LINENO:" \
2586 "checking for C++ compiler version" >&5
2587 ac_compiler=`set X $ac_compile; echo $2`
2588 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2589 (eval $ac_compiler --version </dev/null >&5) 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }
2593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2594 (eval $ac_compiler -v </dev/null >&5) 2>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }
2598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2599 (eval $ac_compiler -V </dev/null >&5) 2>&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }
2604 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2605 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2606 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 #include "confdefs.h"
2613 #ifdef F77_DUMMY_MAIN
2617 int F77_DUMMY_MAIN() { return 1; }
2630 rm -f conftest.$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632 (eval $ac_compile) 2>&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -s conftest.$ac_objext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2644 echo "$as_me: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2648 rm -f conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2652 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2653 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2654 GXX=`test $ac_compiler_gnu = yes && echo yes`
2655 ac_test_CXXFLAGS=${CXXFLAGS+set}
2656 ac_save_CXXFLAGS=$CXXFLAGS
2658 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2659 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cxx_g+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 cat >conftest.$ac_ext <<_ACEOF
2664 #line $LINENO "configure"
2665 #include "confdefs.h"
2667 #ifdef F77_DUMMY_MAIN
2671 int F77_DUMMY_MAIN() { return 1; }
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -s conftest.$ac_objext'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; }; then
2693 ac_cv_prog_cxx_g=yes
2695 echo "$as_me: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2699 rm -f conftest.$ac_objext conftest.$ac_ext
2701 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2702 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2703 if test "$ac_test_CXXFLAGS" = set; then
2704 CXXFLAGS=$ac_save_CXXFLAGS
2705 elif test $ac_cv_prog_cxx_g = yes; then
2706 if test "$GXX" = yes; then
2712 if test "$GXX" = yes; then
2718 for ac_declaration in \
2720 '#include <stdlib.h>' \
2721 'extern "C" void std::exit (int) throw (); using std::exit;' \
2722 'extern "C" void std::exit (int); using std::exit;' \
2723 'extern "C" void exit (int) throw ();' \
2724 'extern "C" void exit (int);' \
2727 cat >conftest.$ac_ext <<_ACEOF
2728 #line $LINENO "configure"
2729 #include "confdefs.h"
2732 #ifdef F77_DUMMY_MAIN
2736 int F77_DUMMY_MAIN() { return 1; }
2746 rm -f conftest.$ac_objext
2747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748 (eval $ac_compile) 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2760 echo "$as_me: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2764 rm -f conftest.$ac_objext conftest.$ac_ext
2765 cat >conftest.$ac_ext <<_ACEOF
2766 #line $LINENO "configure"
2767 #include "confdefs.h"
2769 #ifdef F77_DUMMY_MAIN
2773 int F77_DUMMY_MAIN() { return 1; }
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2797 echo "$as_me: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2800 rm -f conftest.$ac_objext conftest.$ac_ext
2803 if test -n "$ac_declaration"; then
2804 echo '#ifdef __cplusplus' >>confdefs.h
2805 echo $ac_declaration >>confdefs.h
2806 echo '#endif' >>confdefs.h
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815 depcc="$CXX" am_compiler_list=
2817 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2819 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2823 # We make a subdir and do the tests there. Otherwise we can end up
2824 # making bogus files that we don't know about and never remove. For
2825 # instance it was reported that on HP-UX the gcc test will end up
2826 # making a dummy file named `D' -- because `-MD' means `put the output
2829 # Copy depcomp to subdir because otherwise we won't find it if we're
2830 # using a relative directory.
2831 cp "$am_depcomp" conftest.dir
2834 am_cv_CXX_dependencies_compiler_type=none
2835 if test "$am_compiler_list" = ""; then
2836 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2838 for depmode in $am_compiler_list; do
2839 # We need to recreate these files for each test, as the compiler may
2840 # overwrite some of them when testing with obscure command lines.
2841 # This happens at least with the AIX C compiler.
2842 echo '#include "conftest.h"' > conftest.c
2843 echo 'int i;' > conftest.h
2844 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2848 # after this tag, mechanisms are not by side-effect, so they'll
2849 # only be used when explicitly requested
2850 if test "x$enable_dependency_tracking" = xyes; then
2858 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2859 # mode. It turns out that the SunPro C++ compiler does not properly
2860 # handle `-M -o', and we need to detect this.
2861 if depmode=$depmode \
2862 source=conftest.c object=conftest.o \
2863 depfile=conftest.Po tmpdepfile=conftest.TPo \
2864 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2865 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2867 am_cv_CXX_dependencies_compiler_type=$depmode
2875 am_cv_CXX_dependencies_compiler_type=none
2879 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2880 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2881 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2890 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2891 # On Suns, sometimes $CPP names a directory.
2892 if test -n "$CPP" && test -d "$CPP"; then
2895 if test -z "$CPP"; then
2896 if test "${ac_cv_prog_CPP+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 # Double quotes because CPP needs to be expanded
2900 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2903 for ac_c_preproc_warn_flag in '' yes
2905 # Use a header file that comes with gcc, so configuring glibc
2906 # with a fresh cross-compiler works.
2907 # On the NeXT, cc -E runs the code through the compiler's parser,
2908 # not just through cpp. "Syntax error" is here to catch this case.
2909 cat >conftest.$ac_ext <<_ACEOF
2910 #line $LINENO "configure"
2911 #include "confdefs.h"
2915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 egrep -v '^ *\+' conftest.er1 >conftest.err
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } >/dev/null; then
2923 if test -s conftest.err; then
2924 ac_cpp_err=$ac_c_preproc_warn_flag
2931 if test -z "$ac_cpp_err"; then
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 # Broken: fails on valid input.
2939 rm -f conftest.err conftest.$ac_ext
2941 # OK, works on sane cases. Now check whether non-existent headers
2942 # can be detected and how.
2943 cat >conftest.$ac_ext <<_ACEOF
2944 #line $LINENO "configure"
2945 #include "confdefs.h"
2946 #include <ac_nonexistent.h>
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 egrep -v '^ *\+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev/null; then
2956 if test -s conftest.err; then
2957 ac_cpp_err=$ac_c_preproc_warn_flag
2964 if test -z "$ac_cpp_err"; then
2965 # Broken: success on invalid input.
2968 echo "$as_me: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2970 # Passes both tests.
2974 rm -f conftest.err conftest.$ac_ext
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2991 echo "$as_me:$LINENO: result: $CPP" >&5
2992 echo "${ECHO_T}$CPP" >&6
2994 for ac_c_preproc_warn_flag in '' yes
2996 # Use a header file that comes with gcc, so configuring glibc
2997 # with a fresh cross-compiler works.
2998 # On the NeXT, cc -E runs the code through the compiler's parser,
2999 # not just through cpp. "Syntax error" is here to catch this case.
3000 cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3002 #include "confdefs.h"
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3009 egrep -v '^ *\+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } >/dev/null; then
3014 if test -s conftest.err; then
3015 ac_cpp_err=$ac_c_preproc_warn_flag
3022 if test -z "$ac_cpp_err"; then
3025 echo "$as_me: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3027 # Broken: fails on valid input.
3030 rm -f conftest.err conftest.$ac_ext
3032 # OK, works on sane cases. Now check whether non-existent headers
3033 # can be detected and how.
3034 cat >conftest.$ac_ext <<_ACEOF
3035 #line $LINENO "configure"
3036 #include "confdefs.h"
3037 #include <ac_nonexistent.h>
3039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3042 egrep -v '^ *\+' conftest.er1 >conftest.err
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } >/dev/null; then
3047 if test -s conftest.err; then
3048 ac_cpp_err=$ac_c_preproc_warn_flag
3055 if test -z "$ac_cpp_err"; then
3056 # Broken: success on invalid input.
3059 echo "$as_me: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 # Passes both tests.
3065 rm -f conftest.err conftest.$ac_ext
3068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3069 rm -f conftest.err conftest.$ac_ext
3070 if $ac_preproc_ok; then
3073 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3075 { (exit 1); exit 1; }; }
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085 for ac_prog in flex lex
3087 # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3091 if test "${ac_cv_prog_LEX+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 if test -n "$LEX"; then
3095 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_LEX="$ac_prog"
3105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 if test -n "$LEX"; then
3115 echo "$as_me:$LINENO: result: $LEX" >&5
3116 echo "${ECHO_T}$LEX" >&6
3118 echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3122 test -n "$LEX" && break
3124 test -n "$LEX" || LEX=":"
3126 if test -z "$LEXLIB"
3128 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3129 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3130 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 ac_check_lib_save_LIBS=$LIBS
3135 cat >conftest.$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3137 #include "confdefs.h"
3139 /* Override any gcc2 internal prototype to avoid an error. */
3143 /* We use char because int might match the return type of a gcc2
3144 builtin and then its argument prototype would still apply. */
3146 #ifdef F77_DUMMY_MAIN
3150 int F77_DUMMY_MAIN() { return 1; }
3160 rm -f conftest.$ac_objext conftest$ac_exeext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3162 (eval $ac_link) 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -s conftest$ac_exeext'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 ac_cv_lib_fl_yywrap=yes
3174 echo "$as_me: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3176 ac_cv_lib_fl_yywrap=no
3178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3179 LIBS=$ac_check_lib_save_LIBS
3181 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3182 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3183 if test $ac_cv_lib_fl_yywrap = yes; then
3186 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3187 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3188 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 ac_check_lib_save_LIBS=$LIBS
3193 cat >conftest.$ac_ext <<_ACEOF
3194 #line $LINENO "configure"
3195 #include "confdefs.h"
3197 /* Override any gcc2 internal prototype to avoid an error. */
3201 /* We use char because int might match the return type of a gcc2
3202 builtin and then its argument prototype would still apply. */
3204 #ifdef F77_DUMMY_MAIN
3208 int F77_DUMMY_MAIN() { return 1; }
3218 rm -f conftest.$ac_objext conftest$ac_exeext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3220 (eval $ac_link) 2>&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -s conftest$ac_exeext'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3230 ac_cv_lib_l_yywrap=yes
3232 echo "$as_me: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3234 ac_cv_lib_l_yywrap=no
3236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3237 LIBS=$ac_check_lib_save_LIBS
3239 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3240 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3241 if test $ac_cv_lib_l_yywrap = yes; then
3249 if test "x$LEX" != "x:"; then
3250 echo "$as_me:$LINENO: checking lex output file root" >&5
3251 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3252 if test "${ac_cv_prog_lex_root+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 # The minimal lex program is just a single line: %%. But some broken lexes
3256 # (Solaris, I think it was) want two %% lines, so accommodate them.
3257 cat >conftest.l <<_ACEOF
3261 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3262 (eval $LEX conftest.l) 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }
3266 if test -f lex.yy.c; then
3267 ac_cv_prog_lex_root=lex.yy
3268 elif test -f lexyy.c; then
3269 ac_cv_prog_lex_root=lexyy
3271 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3272 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3273 { (exit 1); exit 1; }; }
3276 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3277 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3279 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3281 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3282 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3283 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 # POSIX says lex can declare yytext either as a pointer or an array; the
3287 # default is implementation-dependent. Figure out which it is, since
3288 # not all implementations provide the %pointer and %array declarations.
3289 ac_cv_prog_lex_yytext_pointer=no
3290 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3292 LIBS="$LIBS $LEXLIB"
3293 cat >conftest.$ac_ext <<_ACEOF
3294 `cat $LEX_OUTPUT_ROOT.c`
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298 (eval $ac_link) 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -s conftest$ac_exeext'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
3308 ac_cv_prog_lex_yytext_pointer=yes
3310 echo "$as_me: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3315 rm -f "${LEX_OUTPUT_ROOT}.c"
3318 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3319 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3320 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3322 cat >>confdefs.h <<\_ACEOF
3323 #define YYTEXT_POINTER 1
3329 if test "$LEX" = :; then
3330 LEX=${am_missing_run}flex
3332 # Find a good install program. We prefer a C program (faster),
3333 # so one script is as good as another. But avoid the broken or
3334 # incompatible versions:
3335 # SysV /etc/install, /usr/sbin/install
3336 # SunOS /usr/etc/install
3337 # IRIX /sbin/install
3339 # AmigaOS /C/install, which installs bootblocks on floppy discs
3340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3343 # ./install, which can be erroneously created by make from ./install.sh.
3344 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3346 if test -z "$INSTALL"; then
3347 if test "${ac_cv_path_install+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 # Account for people who put trailing slashes in PATH elements.
3357 ./ | .// | /cC/* | \
3358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3361 # OSF1 and SCO ODT 3.0 have their own names for install.
3362 # Don't use installbsd from OSF since it installs stuff as root
3364 for ac_prog in ginstall scoinst install; do
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3367 if test $ac_prog = install &&
3368 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3369 # AIX install. It has an incompatible calling convention.
3371 elif test $ac_prog = install &&
3372 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3373 # program-specific install script used by HP pwplus--don't use.
3376 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3388 if test "${ac_cv_path_install+set}" = set; then
3389 INSTALL=$ac_cv_path_install
3391 # As a last resort, use the slow shell script. We don't cache a
3392 # path for INSTALL within a source directory, because that will
3393 # break other packages using the cache if that directory is
3394 # removed, or if the path is relative.
3395 INSTALL=$ac_install_sh
3398 echo "$as_me:$LINENO: result: $INSTALL" >&5
3399 echo "${ECHO_T}$INSTALL" >&6
3401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3402 # It thinks the first close brace ends the variable substitution.
3403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3409 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3410 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3412 if test "$LN_S" = "ln -s"; then
3413 echo "$as_me:$LINENO: result: yes" >&5
3414 echo "${ECHO_T}yes" >&6
3416 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3417 echo "${ECHO_T}no, using $LN_S" >&6
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3423 echo "$as_me:$LINENO: checking for $ac_word" >&5
3424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425 if test "${ac_cv_prog_RANLIB+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 if test -n "$RANLIB"; then
3429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 RANLIB=$ac_cv_prog_RANLIB
3448 if test -n "$RANLIB"; then
3449 echo "$as_me:$LINENO: result: $RANLIB" >&5
3450 echo "${ECHO_T}$RANLIB" >&6
3452 echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3457 if test -z "$ac_cv_prog_RANLIB"; then
3458 ac_ct_RANLIB=$RANLIB
3459 # Extract the first word of "ranlib", so it can be a program name with args.
3460 set dummy ranlib; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 if test -n "$ac_ct_RANLIB"; then
3467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_RANLIB="ranlib"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3487 if test -n "$ac_ct_RANLIB"; then
3488 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3489 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3491 echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3495 RANLIB=$ac_ct_RANLIB
3497 RANLIB="$ac_cv_prog_RANLIB"
3500 for ac_prog in 'bison -y' byacc
3502 # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 echo "$as_me:$LINENO: checking for $ac_word" >&5
3505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3506 if test "${ac_cv_prog_YACC+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 if test -n "$YACC"; then
3510 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_YACC="$ac_prog"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 YACC=$ac_cv_prog_YACC
3529 if test -n "$YACC"; then
3530 echo "$as_me:$LINENO: result: $YACC" >&5
3531 echo "${ECHO_T}$YACC" >&6
3533 echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6
3537 test -n "$YACC" && break
3539 test -n "$YACC" || YACC="yacc"
3541 for ac_prog in gawk mawk nawk awk
3543 # Extract the first word of "$ac_prog", so it can be a program name with args.
3544 set dummy $ac_prog; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_prog_AWK+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if test -n "$AWK"; then
3551 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_AWK="$ac_prog"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 if test -n "$AWK"; then
3571 echo "$as_me:$LINENO: result: $AWK" >&5
3572 echo "${ECHO_T}$AWK" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 test -n "$AWK" && break
3582 # Extract the first word of "xml2-config", so it can be a program name with args.
3583 set dummy xml2-config; ac_word=$2
3584 echo "$as_me:$LINENO: checking for $ac_word" >&5
3585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3586 if test "${ac_cv_path_XML_CONFIG+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601 ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
3612 XML_CONFIG=$ac_cv_path_XML_CONFIG
3614 if test -n "$XML_CONFIG"; then
3615 echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
3616 echo "${ECHO_T}$XML_CONFIG" >&6
3618 echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6
3623 if test $XML_CONFIG = "no"
3625 echo "XML library not found (see http://xmlsoft.org/)."
3631 echo "$as_me:$LINENO: checking for X" >&5
3632 echo $ECHO_N "checking for X... $ECHO_C" >&6
3635 # Check whether --with-x or --without-x was given.
3636 if test "${with_x+set}" = set; then
3640 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3641 if test "x$with_x" = xno; then
3642 # The user explicitly disabled X.
3645 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3646 # Both variables are already set.
3649 if test "${ac_cv_have_x+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 # One or both of the vars are not set, and there is no cached value.
3653 ac_x_includes=no ac_x_libraries=no
3655 if mkdir conftest.dir; then
3657 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3658 cat >Imakefile <<'_ACEOF'
3660 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3662 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3663 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3664 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3665 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3666 for ac_extension in a so sl; do
3667 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3668 test -f $ac_im_libdir/libX11.$ac_extension; then
3669 ac_im_usrlibdir=$ac_im_libdir; break
3672 # Screen out bogus values from the imake configuration. They are
3673 # bogus both because they are the default anyway, and because
3674 # using them would break gcc on systems where it needs fixed includes.
3675 case $ac_im_incroot in
3677 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3679 case $ac_im_usrlibdir in
3681 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3688 # Standard set of common directories for X headers.
3689 # Check X11 before X11Rn because it is often a symlink to the current release.
3701 /usr/local/X11/include
3702 /usr/local/X11R6/include
3703 /usr/local/X11R5/include
3704 /usr/local/X11R4/include
3706 /usr/local/include/X11
3707 /usr/local/include/X11R6
3708 /usr/local/include/X11R5
3709 /usr/local/include/X11R4
3713 /usr/XFree86/include/X11
3717 /usr/unsupported/include
3719 /usr/local/x11r5/include
3720 /usr/lpp/Xamples/include
3722 /usr/openwin/include
3723 /usr/openwin/share/include'
3725 if test "$ac_x_includes" = no; then
3726 # Guess where to find include files, by looking for Intrinsic.h.
3727 # First, try using that file with no special directory specified.
3728 cat >conftest.$ac_ext <<_ACEOF
3729 #line $LINENO "configure"
3730 #include "confdefs.h"
3731 #include <X11/Intrinsic.h>
3733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3736 egrep -v '^ *\+' conftest.er1 >conftest.err
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } >/dev/null; then
3741 if test -s conftest.err; then
3742 ac_cpp_err=$ac_c_preproc_warn_flag
3749 if test -z "$ac_cpp_err"; then
3750 # We can compile using X headers with no special include directory.
3753 echo "$as_me: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3755 for ac_dir in $ac_x_header_dirs; do
3756 if test -r "$ac_dir/X11/Intrinsic.h"; then
3757 ac_x_includes=$ac_dir
3762 rm -f conftest.err conftest.$ac_ext
3763 fi # $ac_x_includes = no
3765 if test "$ac_x_libraries" = no; then
3766 # Check for the libraries.
3767 # See if we find them without any special options.
3768 # Don't add to $LIBS permanently.
3771 cat >conftest.$ac_ext <<_ACEOF
3772 #line $LINENO "configure"
3773 #include "confdefs.h"
3774 #include <X11/Intrinsic.h>
3775 #ifdef F77_DUMMY_MAIN
3779 int F77_DUMMY_MAIN() { return 1; }
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791 (eval $ac_link) 2>&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -s conftest$ac_exeext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3802 # We can link X programs with no special library path.
3805 echo "$as_me: failed program was:" >&5
3806 cat conftest.$ac_ext >&5
3808 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3810 # Don't even attempt the hair of trying to link an X program!
3811 for ac_extension in a so sl; do
3812 if test -r $ac_dir/libXt.$ac_extension; then
3813 ac_x_libraries=$ac_dir
3819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3820 fi # $ac_x_libraries = no
3822 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3823 # Didn't find X anywhere. Cache the known absence of X.
3824 ac_cv_have_x="have_x=no"
3826 # Record where we found X for the cache.
3827 ac_cv_have_x="have_x=yes \
3828 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3833 eval "$ac_cv_have_x"
3836 if test "$have_x" != yes; then
3837 echo "$as_me:$LINENO: result: $have_x" >&5
3838 echo "${ECHO_T}$have_x" >&6
3841 # If each of the values was on the command line, it overrides each guess.
3842 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3843 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3844 # Update the cache value to reflect the command line values.
3845 ac_cv_have_x="have_x=yes \
3846 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3847 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3848 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3851 if test "$no_x" = yes; then
3852 # Not all programs may use this symbol, but it does not hurt to define it.
3854 cat >>confdefs.h <<\_ACEOF
3855 #define X_DISPLAY_MISSING 1
3858 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3860 if test -n "$x_includes"; then
3861 X_CFLAGS="$X_CFLAGS -I$x_includes"
3864 # It would also be nice to do this for all -L options, not just this one.
3865 if test -n "$x_libraries"; then
3866 X_LIBS="$X_LIBS -L$x_libraries"
3867 # For Solaris; some versions of Sun CC require a space after -R and
3868 # others require no space. Words are not sufficient . . . .
3869 case `(uname -sr) 2>/dev/null` in
3871 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3872 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3873 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3874 cat >conftest.$ac_ext <<_ACEOF
3875 #line $LINENO "configure"
3876 #include "confdefs.h"
3878 #ifdef F77_DUMMY_MAIN
3882 int F77_DUMMY_MAIN() { return 1; }
3892 rm -f conftest.$ac_objext conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894 (eval $ac_link) 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } &&
3898 { ac_try='test -s conftest$ac_exeext'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; }; then
3906 echo "$as_me: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3911 if test $ac_R_nospace = yes; then
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3914 X_LIBS="$X_LIBS -R$x_libraries"
3916 LIBS="$ac_xsave_LIBS -R $x_libraries"
3917 cat >conftest.$ac_ext <<_ACEOF
3918 #line $LINENO "configure"
3919 #include "confdefs.h"
3921 #ifdef F77_DUMMY_MAIN
3925 int F77_DUMMY_MAIN() { return 1; }
3935 rm -f conftest.$ac_objext conftest$ac_exeext
3936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3937 (eval $ac_link) 2>&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -s conftest$ac_exeext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3949 echo "$as_me: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3954 if test $ac_R_space = yes; then
3955 echo "$as_me:$LINENO: result: yes" >&5
3956 echo "${ECHO_T}yes" >&6
3957 X_LIBS="$X_LIBS -R $x_libraries"
3959 echo "$as_me:$LINENO: result: neither works" >&5
3960 echo "${ECHO_T}neither works" >&6
3967 # Check for system-dependent libraries X programs must link with.
3968 # Do this before checking for the system-independent R6 libraries
3969 # (-lICE), since we may need -lsocket or whatever for X linking.
3971 if test "$ISC" = yes; then
3972 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3974 # Martyn Johnson says this is needed for Ultrix, if the X
3975 # libraries were built with DECnet support. And Karl Berry says
3976 # the Alpha needs dnet_stub (dnet does not exist).
3977 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3978 cat >conftest.$ac_ext <<_ACEOF
3979 #line $LINENO "configure"
3980 #include "confdefs.h"
3982 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3988 char XOpenDisplay ();
3989 #ifdef F77_DUMMY_MAIN
3993 int F77_DUMMY_MAIN() { return 1; }
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005 (eval $ac_link) 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try='test -s conftest$ac_exeext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4017 echo "$as_me: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4019 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4020 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4021 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 ac_check_lib_save_LIBS=$LIBS
4026 cat >conftest.$ac_ext <<_ACEOF
4027 #line $LINENO "configure"
4028 #include "confdefs.h"
4030 /* Override any gcc2 internal prototype to avoid an error. */
4034 /* We use char because int might match the return type of a gcc2
4035 builtin and then its argument prototype would still apply. */
4037 #ifdef F77_DUMMY_MAIN
4041 int F77_DUMMY_MAIN() { return 1; }
4051 rm -f conftest.$ac_objext conftest$ac_exeext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4053 (eval $ac_link) 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } &&
4057 { ac_try='test -s conftest$ac_exeext'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 ac_cv_lib_dnet_dnet_ntoa=yes
4065 echo "$as_me: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 ac_cv_lib_dnet_dnet_ntoa=no
4069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4070 LIBS=$ac_check_lib_save_LIBS
4072 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4073 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4074 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4075 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4078 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4079 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4080 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4081 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 ac_check_lib_save_LIBS=$LIBS
4085 LIBS="-ldnet_stub $LIBS"
4086 cat >conftest.$ac_ext <<_ACEOF
4087 #line $LINENO "configure"
4088 #include "confdefs.h"
4090 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4097 #ifdef F77_DUMMY_MAIN
4101 int F77_DUMMY_MAIN() { return 1; }
4111 rm -f conftest.$ac_objext conftest$ac_exeext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4113 (eval $ac_link) 2>&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -s conftest$ac_exeext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4125 echo "$as_me: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4127 ac_cv_lib_dnet_stub_dnet_ntoa=no
4129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4130 LIBS=$ac_check_lib_save_LIBS
4132 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4133 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4134 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4135 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4141 LIBS="$ac_xsave_LIBS"
4143 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4144 # to get the SysV transport functions.
4145 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4147 # The nsl library prevents programs from opening the X display
4148 # on Irix 5.2, according to T.E. Dickey.
4149 # The functions gethostbyname, getservbyname, and inet_addr are
4150 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4151 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4152 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4153 if test "${ac_cv_func_gethostbyname+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 cat >conftest.$ac_ext <<_ACEOF
4157 #line $LINENO "configure"
4158 #include "confdefs.h"
4159 /* System header to define __stub macros and hopefully few prototypes,
4160 which can conflict with char gethostbyname (); below. */
4162 /* Override any gcc2 internal prototype to avoid an error. */
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4168 char gethostbyname ();
4171 #ifdef F77_DUMMY_MAIN
4175 int F77_DUMMY_MAIN() { return 1; }
4180 /* The GNU C library defines this for functions which it implements
4181 to always fail with ENOSYS. Some functions are actually named
4182 something starting with __ and the normal name is an alias. */
4183 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4193 rm -f conftest.$ac_objext conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195 (eval $ac_link) 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try='test -s conftest$ac_exeext'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_cv_func_gethostbyname=yes
4207 echo "$as_me: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4209 ac_cv_func_gethostbyname=no
4211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4213 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4214 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4216 if test $ac_cv_func_gethostbyname = no; then
4217 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4218 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4219 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 ac_check_lib_save_LIBS=$LIBS
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4226 #include "confdefs.h"
4228 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4234 char gethostbyname ();
4235 #ifdef F77_DUMMY_MAIN
4239 int F77_DUMMY_MAIN() { return 1; }
4249 rm -f conftest.$ac_objext conftest$ac_exeext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251 (eval $ac_link) 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
4255 { ac_try='test -s conftest$ac_exeext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 ac_cv_lib_nsl_gethostbyname=yes
4263 echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 ac_cv_lib_nsl_gethostbyname=no
4267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4268 LIBS=$ac_check_lib_save_LIBS
4270 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4271 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4272 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4273 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4276 if test $ac_cv_lib_nsl_gethostbyname = no; then
4277 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4278 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4279 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 ac_check_lib_save_LIBS=$LIBS
4284 cat >conftest.$ac_ext <<_ACEOF
4285 #line $LINENO "configure"
4286 #include "confdefs.h"
4288 /* Override any gcc2 internal prototype to avoid an error. */
4292 /* We use char because int might match the return type of a gcc2
4293 builtin and then its argument prototype would still apply. */
4294 char gethostbyname ();
4295 #ifdef F77_DUMMY_MAIN
4299 int F77_DUMMY_MAIN() { return 1; }
4309 rm -f conftest.$ac_objext conftest$ac_exeext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4311 (eval $ac_link) 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
4315 { ac_try='test -s conftest$ac_exeext'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 ac_cv_lib_bsd_gethostbyname=yes
4323 echo "$as_me: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4325 ac_cv_lib_bsd_gethostbyname=no
4327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_check_lib_save_LIBS
4330 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4331 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4332 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4333 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4339 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4340 # socket/setsockopt and other routines are undefined under SCO ODT
4341 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4342 # on later versions), says Simon Leinen: it contains gethostby*
4343 # variants that don't use the nameserver (or something). -lsocket
4344 # must be given before -lnsl if both are needed. We assume that
4345 # if connect needs -lnsl, so does gethostbyname.
4346 echo "$as_me:$LINENO: checking for connect" >&5
4347 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4348 if test "${ac_cv_func_connect+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 cat >conftest.$ac_ext <<_ACEOF
4352 #line $LINENO "configure"
4353 #include "confdefs.h"
4354 /* System header to define __stub macros and hopefully few prototypes,
4355 which can conflict with char connect (); below. */
4357 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4366 #ifdef F77_DUMMY_MAIN
4370 int F77_DUMMY_MAIN() { return 1; }
4375 /* The GNU C library defines this for functions which it implements
4376 to always fail with ENOSYS. Some functions are actually named
4377 something starting with __ and the normal name is an alias. */
4378 #if defined (__stub_connect) || defined (__stub___connect)
4388 rm -f conftest.$ac_objext conftest$ac_exeext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4390 (eval $ac_link) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -s conftest$ac_exeext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_func_connect=yes
4402 echo "$as_me: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 ac_cv_func_connect=no
4406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4408 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4409 echo "${ECHO_T}$ac_cv_func_connect" >&6
4411 if test $ac_cv_func_connect = no; then
4412 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4413 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4414 if test "${ac_cv_lib_socket_connect+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 ac_check_lib_save_LIBS=$LIBS
4418 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4419 cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4421 #include "confdefs.h"
4423 /* Override any gcc2 internal prototype to avoid an error. */
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4430 #ifdef F77_DUMMY_MAIN
4434 int F77_DUMMY_MAIN() { return 1; }
4444 rm -f conftest.$ac_objext conftest$ac_exeext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446 (eval $ac_link) 2>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -s conftest$ac_exeext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 ac_cv_lib_socket_connect=yes
4458 echo "$as_me: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4460 ac_cv_lib_socket_connect=no
4462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4463 LIBS=$ac_check_lib_save_LIBS
4465 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4466 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4467 if test $ac_cv_lib_socket_connect = yes; then
4468 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4473 # Guillermo Gomez says -lposix is necessary on A/UX.
4474 echo "$as_me:$LINENO: checking for remove" >&5
4475 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4476 if test "${ac_cv_func_remove+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 cat >conftest.$ac_ext <<_ACEOF
4480 #line $LINENO "configure"
4481 #include "confdefs.h"
4482 /* System header to define __stub macros and hopefully few prototypes,
4483 which can conflict with char remove (); below. */
4485 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4494 #ifdef F77_DUMMY_MAIN
4498 int F77_DUMMY_MAIN() { return 1; }
4503 /* The GNU C library defines this for functions which it implements
4504 to always fail with ENOSYS. Some functions are actually named
4505 something starting with __ and the normal name is an alias. */
4506 #if defined (__stub_remove) || defined (__stub___remove)
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518 (eval $ac_link) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_func_remove=yes
4530 echo "$as_me: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 ac_cv_func_remove=no
4534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4536 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4537 echo "${ECHO_T}$ac_cv_func_remove" >&6
4539 if test $ac_cv_func_remove = no; then
4540 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4541 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4542 if test "${ac_cv_lib_posix_remove+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 ac_check_lib_save_LIBS=$LIBS
4546 LIBS="-lposix $LIBS"
4547 cat >conftest.$ac_ext <<_ACEOF
4548 #line $LINENO "configure"
4549 #include "confdefs.h"
4551 /* Override any gcc2 internal prototype to avoid an error. */
4555 /* We use char because int might match the return type of a gcc2
4556 builtin and then its argument prototype would still apply. */
4558 #ifdef F77_DUMMY_MAIN
4562 int F77_DUMMY_MAIN() { return 1; }
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574 (eval $ac_link) 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -s conftest$ac_exeext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_lib_posix_remove=yes
4586 echo "$as_me: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 ac_cv_lib_posix_remove=no
4590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4591 LIBS=$ac_check_lib_save_LIBS
4593 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4594 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4595 if test $ac_cv_lib_posix_remove = yes; then
4596 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4601 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4602 echo "$as_me:$LINENO: checking for shmat" >&5
4603 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4604 if test "${ac_cv_func_shmat+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 cat >conftest.$ac_ext <<_ACEOF
4608 #line $LINENO "configure"
4609 #include "confdefs.h"
4610 /* System header to define __stub macros and hopefully few prototypes,
4611 which can conflict with char shmat (); below. */
4613 /* Override any gcc2 internal prototype to avoid an error. */
4617 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */
4622 #ifdef F77_DUMMY_MAIN
4626 int F77_DUMMY_MAIN() { return 1; }
4631 /* The GNU C library defines this for functions which it implements
4632 to always fail with ENOSYS. Some functions are actually named
4633 something starting with __ and the normal name is an alias. */
4634 #if defined (__stub_shmat) || defined (__stub___shmat)
4644 rm -f conftest.$ac_objext conftest$ac_exeext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646 (eval $ac_link) 2>&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -s conftest$ac_exeext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 ac_cv_func_shmat=yes
4658 echo "$as_me: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4664 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4665 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4667 if test $ac_cv_func_shmat = no; then
4668 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4669 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4670 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 ac_check_lib_save_LIBS=$LIBS
4675 cat >conftest.$ac_ext <<_ACEOF
4676 #line $LINENO "configure"
4677 #include "confdefs.h"
4679 /* Override any gcc2 internal prototype to avoid an error. */
4683 /* We use char because int might match the return type of a gcc2
4684 builtin and then its argument prototype would still apply. */
4686 #ifdef F77_DUMMY_MAIN
4690 int F77_DUMMY_MAIN() { return 1; }
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_cv_lib_ipc_shmat=yes
4714 echo "$as_me: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4716 ac_cv_lib_ipc_shmat=no
4718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4719 LIBS=$ac_check_lib_save_LIBS
4721 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4722 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4723 if test $ac_cv_lib_ipc_shmat = yes; then
4724 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4730 # Check for libraries that X11R6 Xt/Xaw programs need.
4731 ac_save_LDFLAGS=$LDFLAGS
4732 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4733 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4734 # check for ICE first), but we must link in the order -lSM -lICE or
4735 # we get undefined symbols. So assume we have SM if we have ICE.
4736 # These have to be linked with before -lX11, unlike the other
4737 # libraries we check for below, so use a different variable.
4738 # John Interrante, Karl Berry
4739 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4740 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4741 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 ac_check_lib_save_LIBS=$LIBS
4745 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 #include "confdefs.h"
4750 /* Override any gcc2 internal prototype to avoid an error. */
4754 /* We use char because int might match the return type of a gcc2
4755 builtin and then its argument prototype would still apply. */
4756 char IceConnectionNumber ();
4757 #ifdef F77_DUMMY_MAIN
4761 int F77_DUMMY_MAIN() { return 1; }
4766 IceConnectionNumber ();
4771 rm -f conftest.$ac_objext conftest$ac_exeext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4773 (eval $ac_link) 2>&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -s conftest$ac_exeext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 ac_cv_lib_ICE_IceConnectionNumber=yes
4785 echo "$as_me: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4787 ac_cv_lib_ICE_IceConnectionNumber=no
4789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4790 LIBS=$ac_check_lib_save_LIBS
4792 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4793 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4794 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4795 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4798 LDFLAGS=$ac_save_LDFLAGS
4803 XML_CFLAGS=`$XML_CONFIG --cflags`
4804 XML_LFLAGS=`$XML_CONFIG --libs`
4806 LIBS="$LIBS -lAXE -lpq++ $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
4807 LDFLAGS="$LDFLAGS -L/usr/local/lib $XML_LFLAGS"
4808 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS"
4809 CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS"
4812 echo "$as_me:$LINENO: checking for main in -lAXE" >&5
4813 echo $ECHO_N "checking for main in -lAXE... $ECHO_C" >&6
4814 if test "${ac_cv_lib_AXE_main+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 ac_check_lib_save_LIBS=$LIBS
4819 cat >conftest.$ac_ext <<_ACEOF
4820 #line $LINENO "configure"
4821 #include "confdefs.h"
4824 #ifdef F77_DUMMY_MAIN
4828 int F77_DUMMY_MAIN() { return 1; }
4838 rm -f conftest.$ac_objext conftest$ac_exeext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4840 (eval $ac_link) 2>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -s conftest$ac_exeext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_lib_AXE_main=yes
4852 echo "$as_me: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4854 ac_cv_lib_AXE_main=no
4856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4857 LIBS=$ac_check_lib_save_LIBS
4859 echo "$as_me:$LINENO: result: $ac_cv_lib_AXE_main" >&5
4860 echo "${ECHO_T}$ac_cv_lib_AXE_main" >&6
4861 if test $ac_cv_lib_AXE_main = yes; then
4862 cat >>confdefs.h <<_ACEOF
4863 #define HAVE_LIBAXE 1
4871 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
4872 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
4873 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 ac_check_lib_save_LIBS=$LIBS
4878 cat >conftest.$ac_ext <<_ACEOF
4879 #line $LINENO "configure"
4880 #include "confdefs.h"
4882 /* Override any gcc2 internal prototype to avoid an error. */
4886 /* We use char because int might match the return type of a gcc2
4887 builtin and then its argument prototype would still apply. */
4888 char XOpenDisplay ();
4889 #ifdef F77_DUMMY_MAIN
4893 int F77_DUMMY_MAIN() { return 1; }
4903 rm -f conftest.$ac_objext conftest$ac_exeext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4905 (eval $ac_link) 2>&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -s conftest$ac_exeext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_lib_X11_XOpenDisplay=yes
4917 echo "$as_me: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 ac_cv_lib_X11_XOpenDisplay=no
4921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4922 LIBS=$ac_check_lib_save_LIBS
4924 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
4925 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
4926 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
4927 cat >>confdefs.h <<_ACEOF
4928 #define HAVE_LIBX11 1
4936 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
4937 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
4938 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 ac_check_lib_save_LIBS=$LIBS
4943 cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4945 #include "confdefs.h"
4947 /* Override any gcc2 internal prototype to avoid an error. */
4951 /* We use char because int might match the return type of a gcc2
4952 builtin and then its argument prototype would still apply. */
4953 char XpmCreatePixmapFromData ();
4954 #ifdef F77_DUMMY_MAIN
4958 int F77_DUMMY_MAIN() { return 1; }
4963 XpmCreatePixmapFromData ();
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -s conftest$ac_exeext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
4982 echo "$as_me: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4984 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
4986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4987 LIBS=$ac_check_lib_save_LIBS
4989 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
4990 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
4991 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
4992 cat >>confdefs.h <<_ACEOF
4993 #define HAVE_LIBXPM 1
5001 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5002 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5003 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 ac_check_lib_save_LIBS=$LIBS
5007 LIBS="-lpthread $LIBS"
5008 cat >conftest.$ac_ext <<_ACEOF
5009 #line $LINENO "configure"
5010 #include "confdefs.h"
5012 /* Override any gcc2 internal prototype to avoid an error. */
5016 /* We use char because int might match the return type of a gcc2
5017 builtin and then its argument prototype would still apply. */
5018 char pthread_create ();
5019 #ifdef F77_DUMMY_MAIN
5023 int F77_DUMMY_MAIN() { return 1; }
5033 rm -f conftest.$ac_objext conftest$ac_exeext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5035 (eval $ac_link) 2>&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } &&
5039 { ac_try='test -s conftest$ac_exeext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_lib_pthread_pthread_create=yes
5047 echo "$as_me: failed program was:" >&5
5048 cat conftest.$ac_ext >&5
5049 ac_cv_lib_pthread_pthread_create=no
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5054 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5055 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5056 if test $ac_cv_lib_pthread_pthread_create = yes; then
5057 cat >>confdefs.h <<_ACEOF
5058 #define HAVE_LIBPTHREAD 1
5061 LIBS="-lpthread $LIBS"
5066 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
5067 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
5068 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 ac_check_lib_save_LIBS=$LIBS
5073 cat >conftest.$ac_ext <<_ACEOF
5074 #line $LINENO "configure"
5075 #include "confdefs.h"
5077 /* Override any gcc2 internal prototype to avoid an error. */
5081 /* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5083 char xmlParseFile ();
5084 #ifdef F77_DUMMY_MAIN
5088 int F77_DUMMY_MAIN() { return 1; }
5098 rm -f conftest.$ac_objext conftest$ac_exeext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100 (eval $ac_link) 2>&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5104 { ac_try='test -s conftest$ac_exeext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 ac_cv_lib_xml2_xmlParseFile=yes
5112 echo "$as_me: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 ac_cv_lib_xml2_xmlParseFile=no
5116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5117 LIBS=$ac_check_lib_save_LIBS
5119 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
5120 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
5121 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
5122 cat >>confdefs.h <<_ACEOF
5123 #define HAVE_LIBXML2 1
5137 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5138 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5139 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5140 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 cat >conftest.$ac_ext <<_ACEOF
5145 #line $LINENO "configure"
5146 #include "confdefs.h"
5147 #include <sys/types.h>
5150 #ifdef F77_DUMMY_MAIN
5154 int F77_DUMMY_MAIN() { return 1; }
5165 rm -f conftest.$ac_objext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 eval "$as_ac_Header=yes"
5179 echo "$as_me: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 eval "$as_ac_Header=no"
5183 rm -f conftest.$ac_objext conftest.$ac_ext
5185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5188 cat >>confdefs.h <<_ACEOF
5189 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5192 ac_header_dirent=$ac_hdr; break
5196 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5197 if test $ac_header_dirent = dirent.h; then
5198 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5199 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5200 if test "${ac_cv_search_opendir+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 ac_func_search_save_LIBS=$LIBS
5204 ac_cv_search_opendir=no
5205 cat >conftest.$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5207 #include "confdefs.h"
5209 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5216 #ifdef F77_DUMMY_MAIN
5220 int F77_DUMMY_MAIN() { return 1; }
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232 (eval $ac_link) 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -s conftest$ac_exeext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_cv_search_opendir="none required"
5244 echo "$as_me: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5248 if test "$ac_cv_search_opendir" = no; then
5249 for ac_lib in dir; do
5250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5251 cat >conftest.$ac_ext <<_ACEOF
5252 #line $LINENO "configure"
5253 #include "confdefs.h"
5255 /* Override any gcc2 internal prototype to avoid an error. */
5259 /* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5262 #ifdef F77_DUMMY_MAIN
5266 int F77_DUMMY_MAIN() { return 1; }
5276 rm -f conftest.$ac_objext conftest$ac_exeext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5278 (eval $ac_link) 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -s conftest$ac_exeext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_cv_search_opendir="-l$ac_lib"
5291 echo "$as_me: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5297 LIBS=$ac_func_search_save_LIBS
5299 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5300 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5301 if test "$ac_cv_search_opendir" != no; then
5302 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5307 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5308 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5309 if test "${ac_cv_search_opendir+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 ac_func_search_save_LIBS=$LIBS
5313 ac_cv_search_opendir=no
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line $LINENO "configure"
5316 #include "confdefs.h"
5318 /* Override any gcc2 internal prototype to avoid an error. */
5322 /* We use char because int might match the return type of a gcc2
5323 builtin and then its argument prototype would still apply. */
5325 #ifdef F77_DUMMY_MAIN
5329 int F77_DUMMY_MAIN() { return 1; }
5339 rm -f conftest.$ac_objext conftest$ac_exeext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5341 (eval $ac_link) 2>&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try='test -s conftest$ac_exeext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 ac_cv_search_opendir="none required"
5353 echo "$as_me: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5357 if test "$ac_cv_search_opendir" = no; then
5359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5360 cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5362 #include "confdefs.h"
5364 /* Override any gcc2 internal prototype to avoid an error. */
5368 /* We use char because int might match the return type of a gcc2
5369 builtin and then its argument prototype would still apply. */
5371 #ifdef F77_DUMMY_MAIN
5375 int F77_DUMMY_MAIN() { return 1; }
5385 rm -f conftest.$ac_objext conftest$ac_exeext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5387 (eval $ac_link) 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -s conftest$ac_exeext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_cv_search_opendir="-l$ac_lib"
5400 echo "$as_me: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5406 LIBS=$ac_func_search_save_LIBS
5408 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5409 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5410 if test "$ac_cv_search_opendir" != no; then
5411 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5417 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5418 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5419 if test "${ac_cv_header_stdc+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 cat >conftest.$ac_ext <<_ACEOF
5423 #line $LINENO "configure"
5424 #include "confdefs.h"
5431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5434 egrep -v '^ *\+' conftest.er1 >conftest.err
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } >/dev/null; then
5439 if test -s conftest.err; then
5440 ac_cpp_err=$ac_c_preproc_warn_flag
5447 if test -z "$ac_cpp_err"; then
5448 ac_cv_header_stdc=yes
5450 echo "$as_me: failed program was:" >&5
5451 cat conftest.$ac_ext >&5
5452 ac_cv_header_stdc=no
5454 rm -f conftest.err conftest.$ac_ext
5456 if test $ac_cv_header_stdc = yes; then
5457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 #include "confdefs.h"
5464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5465 egrep "memchr" >/dev/null 2>&1; then
5468 ac_cv_header_stdc=no
5474 if test $ac_cv_header_stdc = yes; then
5475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line $LINENO "configure"
5478 #include "confdefs.h"
5482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5483 egrep "free" >/dev/null 2>&1; then
5486 ac_cv_header_stdc=no
5492 if test $ac_cv_header_stdc = yes; then
5493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5494 if test "$cross_compiling" = yes; then
5497 cat >conftest.$ac_ext <<_ACEOF
5498 #line $LINENO "configure"
5499 #include "confdefs.h"
5501 #if ((' ' & 0x0FF) == 0x020)
5502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5505 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5506 || ('j' <= (c) && (c) <= 'r') \
5507 || ('s' <= (c) && (c) <= 'z'))
5508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5516 for (i = 0; i < 256; i++)
5517 if (XOR (islower (i), ISLOWER (i))
5518 || toupper (i) != TOUPPER (i))
5523 rm -f conftest$ac_exeext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5525 (eval $ac_link) 2>&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5536 echo "$as_me: program exited with status $ac_status" >&5
5537 echo "$as_me: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5540 ac_cv_header_stdc=no
5542 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5546 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5547 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5548 if test $ac_cv_header_stdc = yes; then
5550 cat >>confdefs.h <<\_ACEOF
5551 #define STDC_HEADERS 1
5556 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5566 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5567 inttypes.h stdint.h unistd.h
5569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5570 echo "$as_me:$LINENO: checking for $ac_header" >&5
5571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.$ac_ext <<_ACEOF
5576 #line $LINENO "configure"
5577 #include "confdefs.h"
5578 $ac_includes_default
5580 #include <$ac_header>
5582 rm -f conftest.$ac_objext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584 (eval $ac_compile) 2>&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try='test -s conftest.$ac_objext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 eval "$as_ac_Header=yes"
5596 echo "$as_me: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5598 eval "$as_ac_Header=no"
5600 rm -f conftest.$ac_objext conftest.$ac_ext
5602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5605 cat >>confdefs.h <<_ACEOF
5606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5615 for ac_header in unistd.h
5617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5619 echo "$as_me:$LINENO: checking for $ac_header" >&5
5620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5627 # Is the header compilable?
5628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5630 cat >conftest.$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5632 #include "confdefs.h"
5633 $ac_includes_default
5634 #include <$ac_header>
5636 rm -f conftest.$ac_objext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638 (eval $ac_compile) 2>&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try='test -s conftest.$ac_objext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5648 ac_header_compiler=yes
5650 echo "$as_me: failed program was:" >&5
5651 cat conftest.$ac_ext >&5
5652 ac_header_compiler=no
5654 rm -f conftest.$ac_objext conftest.$ac_ext
5655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5656 echo "${ECHO_T}$ac_header_compiler" >&6
5658 # Is the header present?
5659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5661 cat >conftest.$ac_ext <<_ACEOF
5662 #line $LINENO "configure"
5663 #include "confdefs.h"
5664 #include <$ac_header>
5666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5669 egrep -v '^ *\+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null; then
5674 if test -s conftest.err; then
5675 ac_cpp_err=$ac_c_preproc_warn_flag
5682 if test -z "$ac_cpp_err"; then
5683 ac_header_preproc=yes
5685 echo "$as_me: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 ac_header_preproc=no
5689 rm -f conftest.err conftest.$ac_ext
5690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5691 echo "${ECHO_T}$ac_header_preproc" >&6
5693 # So? What about this header?
5694 case $ac_header_compiler:$ac_header_preproc in
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5708 echo "$as_me:$LINENO: checking for $ac_header" >&5
5709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 eval "$as_ac_Header=$ac_header_preproc"
5715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5720 cat >>confdefs.h <<_ACEOF
5721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5729 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5730 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5731 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 ac_cv_prog_cc_stdc=no
5736 cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5738 #include "confdefs.h"
5741 #include <sys/types.h>
5742 #include <sys/stat.h>
5743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5744 struct buf { int x; };
5745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5746 static char *e (p, i)
5752 static char *f (char * (*g) (char **, int), char **p, ...)
5757 s = g (p, va_arg (v,int));
5761 int test (int i, double x);
5762 struct s1 {int (*f) (int a);};
5763 struct s2 {int (*f) (double a);};
5764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5767 #ifdef F77_DUMMY_MAIN
5771 int F77_DUMMY_MAIN() { return 1; }
5776 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5781 # Don't try gcc -ansi; that turns off useful extensions and
5782 # breaks some systems' header files.
5783 # AIX -qlanglvl=ansi
5784 # Ultrix and OSF/1 -std1
5785 # HP-UX 10.20 and later -Ae
5786 # HP-UX older versions -Aa -D_HPUX_SOURCE
5787 # SVR4 -Xc -D__EXTENSIONS__
5788 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5790 CC="$ac_save_CC $ac_arg"
5791 rm -f conftest.$ac_objext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_cv_prog_cc_stdc=$ac_arg
5806 echo "$as_me: failed program was:" >&5
5807 cat conftest.$ac_ext >&5
5809 rm -f conftest.$ac_objext
5811 rm -f conftest.$ac_ext conftest.$ac_objext
5816 case "x$ac_cv_prog_cc_stdc" in
5818 echo "$as_me:$LINENO: result: none needed" >&5
5819 echo "${ECHO_T}none needed" >&6 ;;
5821 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5822 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5823 CC="$CC $ac_cv_prog_cc_stdc" ;;
5826 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5827 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5828 if test "${ac_cv_c_const+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 cat >conftest.$ac_ext <<_ACEOF
5832 #line $LINENO "configure"
5833 #include "confdefs.h"
5835 #ifdef F77_DUMMY_MAIN
5839 int F77_DUMMY_MAIN() { return 1; }
5844 /* FIXME: Include the comments suggested by Paul. */
5846 /* Ultrix mips cc rejects this. */
5847 typedef int charset[2];
5849 /* SunOS 4.1.1 cc rejects this. */
5850 char const *const *ccp;
5852 /* NEC SVR4.0.2 mips cc rejects this. */
5853 struct point {int x, y;};
5854 static struct point const zero = {0,0};
5855 /* AIX XL C 1.02.0.0 rejects this.
5856 It does not let you subtract one const X* pointer from another in
5857 an arm of an if-expression whose if-part is not a constant
5859 const char *g = "string";
5860 ccp = &g + (g ? g-g : 0);
5861 /* HPUX 7.0 cc rejects these. */
5864 ccp = (char const *const *) p;
5865 { /* SCO 3.2v4 cc rejects this. */
5867 char const *s = 0 ? (char *) 0 : (char const *) 0;
5871 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5873 const int *foo = &x[0];
5876 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5877 typedef const int *iptr;
5881 { /* AIX XL C 1.02.0.0 rejects this saying
5882 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5883 struct s { int j; const int *ap[3]; };
5884 struct s *b; b->j = 5;
5886 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5895 rm -f conftest.$ac_objext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } &&
5901 { ac_try='test -s conftest.$ac_objext'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; }; then
5909 echo "$as_me: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5913 rm -f conftest.$ac_objext conftest.$ac_ext
5915 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5916 echo "${ECHO_T}$ac_cv_c_const" >&6
5917 if test $ac_cv_c_const = no; then
5919 cat >>confdefs.h <<\_ACEOF
5929 for ac_func in strtod strtol strtoul
5931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5932 echo "$as_me:$LINENO: checking for $ac_func" >&5
5933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5934 if eval "test \"\${$as_ac_var+set}\" = set"; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 cat >conftest.$ac_ext <<_ACEOF
5938 #line $LINENO "configure"
5939 #include "confdefs.h"
5940 /* System header to define __stub macros and hopefully few prototypes,
5941 which can conflict with char $ac_func (); below. */
5943 /* Override any gcc2 internal prototype to avoid an error. */
5947 /* We use char because int might match the return type of a gcc2
5948 builtin and then its argument prototype would still apply. */
5952 #ifdef F77_DUMMY_MAIN
5956 int F77_DUMMY_MAIN() { return 1; }
5961 /* The GNU C library defines this for functions which it implements
5962 to always fail with ENOSYS. Some functions are actually named
5963 something starting with __ and the normal name is an alias. */
5964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5976 (eval $ac_link) 2>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -s conftest$ac_exeext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 eval "$as_ac_var=yes"
5988 echo "$as_me: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5990 eval "$as_ac_var=no"
5992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5996 if test `eval echo '${'$as_ac_var'}'` = yes; then
5997 cat >>confdefs.h <<_ACEOF
5998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6005 ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile"
6006 cat >confcache <<\_ACEOF
6007 # This file is a shell script that caches the results of configure
6008 # tests run on this system so they can be shared between configure
6009 # scripts and configure runs, see configure's option --config-cache.
6010 # It is not useful on other systems. If it contains results you don't
6011 # want to keep, you may remove or edit it.
6013 # config.status only pays attention to the cache file if you give it
6014 # the --recheck option to rerun configure.
6016 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6017 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6022 # The following way of writing the cache mishandles newlines in values,
6023 # but we know of no workaround that is simple, portable, and efficient.
6024 # So, don't put newlines in cache variables' values.
6025 # Ultrix sh set writes to stderr and can't be redirected directly,
6026 # and sets the high bit in the cache file unless we assign to the vars.
6029 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6031 # `set' does not quote correctly, so add quotes (double-quote
6032 # substitution turns \\\\ into \\, and sed turns \\ into \).
6035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6038 # `set' quotes correctly as required by POSIX, so do not add quotes.
6040 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6047 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6049 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6051 if cmp -s $cache_file confcache; then :; else
6052 if test -w $cache_file; then
6053 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6054 cat confcache >$cache_file
6056 echo "not updating unwritable cache $cache_file"
6061 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6062 # Let make expand exec_prefix.
6063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6065 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6066 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6067 # trailing colons and then remove the whole line if VPATH becomes empty
6068 # (actually we leave an empty line to preserve line numbers).
6069 if test "x$srcdir" = x.; then
6070 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6071 s/:*\$(srcdir):*/:/;
6072 s/:*\${srcdir}:*/:/;
6074 s/^\([^=]*=[ ]*\):*/\1/;
6080 # Transform confdefs.h into DEFS.
6081 # Protect against shell expansion while executing Makefile rules.
6082 # Protect against Makefile macro expansion.
6084 # If the first sed substitution is executed (which looks for macros that
6085 # take arguments), then we branch to the quote section. Otherwise,
6086 # look for a macro that doesn't take arguments.
6087 cat >confdef2opt.sed <<\_ACEOF
6090 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6092 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6096 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6102 # We use echo to avoid assuming a particular line-breaking character.
6103 # The extra dot is to prevent the shell from consuming trailing
6104 # line-breaks from the sub-command output. A line-break within
6105 # single-quotes doesn't work because, if this script is created in a
6106 # platform that uses two characters for line-breaks (e.g., DOS), tr
6108 ac_LF_and_DOT=`echo; echo .`
6109 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6110 rm -f confdef2opt.sed
6113 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6114 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6115 Usually this means the macro was only invoked conditionally." >&5
6116 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6117 Usually this means the macro was only invoked conditionally." >&2;}
6118 { (exit 1); exit 1; }; }
6121 : ${CONFIG_STATUS=./config.status}
6122 ac_clean_files_save=$ac_clean_files
6123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6124 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6125 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6126 cat >$CONFIG_STATUS <<_ACEOF
6128 # Generated by $as_me.
6129 # Run this file to recreate the current configuration.
6130 # Compiler output produced by configure, useful for debugging
6131 # configure, is in config.log if it exists.
6134 SHELL=\${CONFIG_SHELL-$SHELL}
6137 cat >>$CONFIG_STATUS <<\_ACEOF
6139 ## --------------------- ##
6140 ## M4sh Initialization. ##
6141 ## --------------------- ##
6143 # Be Bourne compatible
6144 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6147 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6152 # Support unset when possible.
6153 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6159 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6160 { $as_unset LANG || test "${LANG+set}" != set; } ||
6161 { LANG=C; export LANG; }
6162 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6163 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6164 { LC_ALL=C; export LC_ALL; }
6165 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6166 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6167 { LC_TIME=C; export LC_TIME; }
6168 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6169 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6170 { LC_CTYPE=C; export LC_CTYPE; }
6171 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6172 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6173 { LANGUAGE=C; export LANGUAGE; }
6174 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6175 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6176 { LC_COLLATE=C; export LC_COLLATE; }
6177 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6178 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6179 { LC_NUMERIC=C; export LC_NUMERIC; }
6180 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6181 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6182 { LC_MESSAGES=C; export LC_MESSAGES; }
6185 # Name of the executable.
6186 as_me=`(basename "$0") 2>/dev/null ||
6187 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6188 X"$0" : 'X\(//\)$' \| \
6189 X"$0" : 'X\(/\)$' \| \
6190 . : '\(.\)' 2>/dev/null ||
6192 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6193 /^X\/\(\/\/\)$/{ s//\1/; q; }
6194 /^X\/\(\/\).*/{ s//\1/; q; }
6197 # PATH needs CR, and LINENO needs CR and PATH.
6198 # Avoid depending upon Character Ranges.
6199 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6202 as_cr_digits='0123456789'
6203 as_cr_alnum=$as_cr_Letters$as_cr_digits
6205 # The user is always right.
6206 if test "${PATH_SEPARATOR+set}" != set; then
6207 echo "#! /bin/sh" >conftest.sh
6208 echo "exit 0" >>conftest.sh
6209 chmod +x conftest.sh
6210 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6221 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6222 test "x$as_lineno_1" != "x$as_lineno_2" &&
6223 test "x$as_lineno_3" = "x$as_lineno_2" || {
6224 # Find who we are. Look in the path if we contain no path at all
6227 *[\\/]* ) as_myself=$0 ;;
6228 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 test -z "$as_dir" && as_dir=.
6233 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6238 # We did not find ourselves, most probably we were run as `sh COMMAND'
6239 # in which case we are not to be found in the path.
6240 if test "x$as_myself" = x; then
6243 if test ! -f "$as_myself"; then
6244 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6245 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6246 { (exit 1); exit 1; }; }
6248 case $CONFIG_SHELL in
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6254 test -z "$as_dir" && as_dir=.
6255 for as_base in sh bash ksh sh5; do
6258 if ("$as_dir/$as_base" -c '
6261 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6262 test "x$as_lineno_1" != "x$as_lineno_2" &&
6263 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6264 CONFIG_SHELL=$as_dir/$as_base
6266 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6274 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6275 # uniformly replaced by the line number. The first 'sed' inserts a
6276 # line-number line before each line; the second 'sed' does the real
6277 # work. The second script uses 'N' to pair each line-number line
6278 # with the numbered line, and appends trailing '-' during
6279 # substitution so that $LINENO is not a special case at line end.
6280 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6281 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6282 sed '=' <$as_myself |
6287 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6290 s,^['$as_cr_digits']*\n,,
6292 chmod +x $as_me.lineno ||
6293 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6294 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6295 { (exit 1); exit 1; }; }
6297 # Don't try to exec as it changes $[0], causing all sort of problems
6298 # (the dirname of $[0] is not the place where we might find the
6299 # original and so on. Autoconf is especially sensible to this).
6301 # Exit status is that of the last command.
6306 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6307 *c*,-n*) ECHO_N= ECHO_C='
6309 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6310 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6313 if expr a : '\(a\)' >/dev/null 2>&1; then
6319 rm -f conf$$ conf$$.exe conf$$.file
6321 if ln -s conf$$.file conf$$ 2>/dev/null; then
6322 # We could just check for DJGPP; but this test a) works b) is more generic
6323 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6324 if test -f conf$$.exe; then
6325 # Don't use ln at all; we don't have any links
6330 elif ln conf$$.file conf$$ 2>/dev/null; then
6335 rm -f conf$$ conf$$.exe conf$$.file
6337 as_executable_p="test -f"
6339 # Sed expression to map a string onto a valid CPP name.
6340 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6342 # Sed expression to map a string onto a valid variable name.
6343 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6347 # We need space, tab and new line, in precisely that order.
6353 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6357 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6358 # report actual input values of CONFIG_FILES etc. instead of their
6359 # values after options handling. Logging --version etc. is OK.
6363 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6364 ## Running $as_me. ##
6369 This file was extended by $as_me, which was
6370 generated by GNU Autoconf 2.53. Invocation command line was
6372 CONFIG_FILES = $CONFIG_FILES
6373 CONFIG_HEADERS = $CONFIG_HEADERS
6374 CONFIG_LINKS = $CONFIG_LINKS
6375 CONFIG_COMMANDS = $CONFIG_COMMANDS
6379 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6383 # Files that config.status was made for.
6384 if test -n "$ac_config_files"; then
6385 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6388 if test -n "$ac_config_headers"; then
6389 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6392 if test -n "$ac_config_links"; then
6393 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6396 if test -n "$ac_config_commands"; then
6397 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6400 cat >>$CONFIG_STATUS <<\_ACEOF
6403 \`$as_me' instantiates files from templates according to the
6404 current configuration.
6406 Usage: $0 [OPTIONS] [FILE]...
6408 -h, --help print this help, then exit
6409 -V, --version print version number, then exit
6410 -d, --debug don't remove temporary files
6411 --recheck update $as_me by reconfiguring in the same conditions
6412 --file=FILE[:TEMPLATE]
6413 instantiate the configuration file FILE
6415 Configuration files:
6418 Configuration commands:
6421 Report bugs to <bug-autoconf@gnu.org>."
6424 cat >>$CONFIG_STATUS <<_ACEOF
6427 configured by $0, generated by GNU Autoconf 2.53,
6428 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6430 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6431 Free Software Foundation, Inc.
6432 This config.status script is free software; the Free Software Foundation
6433 gives unlimited permission to copy, distribute and modify it."
6438 cat >>$CONFIG_STATUS <<\_ACEOF
6439 # If no file are specified by the user, then we need to provide default
6440 # value. By we need to know if files were specified by the user.
6446 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6447 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6449 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6453 *) # This is not an option, so the user has probably given explicit
6455 ac_need_defaults=false;;
6459 # Handling of the options.
6461 cat >>$CONFIG_STATUS <<_ACEOF
6462 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6463 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6464 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6466 cat >>$CONFIG_STATUS <<\_ACEOF
6467 --version | --vers* | -V )
6468 echo "$ac_cs_version"; exit 0 ;;
6470 # Conflict between --help and --header
6471 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6472 Try \`$0 --help' for more information." >&5
6473 echo "$as_me: error: ambiguous option: $1
6474 Try \`$0 --help' for more information." >&2;}
6475 { (exit 1); exit 1; }; };;
6476 --help | --hel | -h )
6477 echo "$ac_cs_usage"; exit 0 ;;
6478 --debug | --d* | -d )
6480 --file | --fil | --fi | --f )
6482 CONFIG_FILES="$CONFIG_FILES $1"
6483 ac_need_defaults=false;;
6484 --header | --heade | --head | --hea )
6486 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6487 ac_need_defaults=false;;
6490 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6491 Try \`$0 --help' for more information." >&5
6492 echo "$as_me: error: unrecognized option: $1
6493 Try \`$0 --help' for more information." >&2;}
6494 { (exit 1); exit 1; }; } ;;
6496 *) ac_config_targets="$ac_config_targets $1" ;;
6504 cat >>$CONFIG_STATUS <<_ACEOF
6506 # INIT-COMMANDS section.
6509 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6515 cat >>$CONFIG_STATUS <<\_ACEOF
6516 for ac_config_target in $ac_config_targets
6518 case "$ac_config_target" in
6519 # Handling of arguments.
6520 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6521 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6522 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
6523 "src/gcm_input/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gcm_input/Makefile" ;;
6524 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6525 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6526 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6527 { (exit 1); exit 1; }; };;
6531 # If the user did not use the arguments to specify the items to instantiate,
6532 # then the envvar interface is used. Set only those that are not.
6533 # We use the long form for the default assignment because of an extremely
6534 # bizarre bug on SunOS 4.1.3.
6535 if $ac_need_defaults; then
6536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6540 # Create a temporary directory, and hook for its removal unless debugging.
6543 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6544 trap '{ (exit 1); exit 1; }' 1 2 13 15
6547 # Create a (secure) tmp directory for tmp files.
6550 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6551 test -n "$tmp" && test -d "$tmp"
6554 tmp=$TMPDIR/cs$$-$RANDOM
6555 (umask 077 && mkdir $tmp)
6558 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6559 { (exit 1); exit 1; }
6564 cat >>$CONFIG_STATUS <<_ACEOF
6567 # CONFIG_FILES section.
6570 # No need to generate the scripts if there are no CONFIG_FILES.
6571 # This happens for instance when ./config.status config.h
6572 if test -n "\$CONFIG_FILES"; then
6573 # Protect against being on the right side of a sed subst in config.status.
6574 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6575 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6576 s,@SHELL@,$SHELL,;t t
6577 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6578 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6579 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6580 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6581 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6582 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6583 s,@exec_prefix@,$exec_prefix,;t t
6584 s,@prefix@,$prefix,;t t
6585 s,@program_transform_name@,$program_transform_name,;t t
6586 s,@bindir@,$bindir,;t t
6587 s,@sbindir@,$sbindir,;t t
6588 s,@libexecdir@,$libexecdir,;t t
6589 s,@datadir@,$datadir,;t t
6590 s,@sysconfdir@,$sysconfdir,;t t
6591 s,@sharedstatedir@,$sharedstatedir,;t t
6592 s,@localstatedir@,$localstatedir,;t t
6593 s,@libdir@,$libdir,;t t
6594 s,@includedir@,$includedir,;t t
6595 s,@oldincludedir@,$oldincludedir,;t t
6596 s,@infodir@,$infodir,;t t
6597 s,@mandir@,$mandir,;t t
6598 s,@build_alias@,$build_alias,;t t
6599 s,@host_alias@,$host_alias,;t t
6600 s,@target_alias@,$target_alias,;t t
6602 s,@ECHO_C@,$ECHO_C,;t t
6603 s,@ECHO_N@,$ECHO_N,;t t
6604 s,@ECHO_T@,$ECHO_T,;t t
6606 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6607 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6608 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6609 s,@PACKAGE@,$PACKAGE,;t t
6610 s,@VERSION@,$VERSION,;t t
6611 s,@ACLOCAL@,$ACLOCAL,;t t
6612 s,@AUTOCONF@,$AUTOCONF,;t t
6613 s,@AUTOMAKE@,$AUTOMAKE,;t t
6614 s,@AUTOHEADER@,$AUTOHEADER,;t t
6615 s,@MAKEINFO@,$MAKEINFO,;t t
6616 s,@AMTAR@,$AMTAR,;t t
6617 s,@install_sh@,$install_sh,;t t
6618 s,@STRIP@,$STRIP,;t t
6619 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6620 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6622 s,@SET_MAKE@,$SET_MAKE,;t t
6624 s,@CFLAGS@,$CFLAGS,;t t
6625 s,@LDFLAGS@,$LDFLAGS,;t t
6626 s,@CPPFLAGS@,$CPPFLAGS,;t t
6627 s,@ac_ct_CC@,$ac_ct_CC,;t t
6628 s,@EXEEXT@,$EXEEXT,;t t
6629 s,@OBJEXT@,$OBJEXT,;t t
6630 s,@DEPDIR@,$DEPDIR,;t t
6631 s,@am__include@,$am__include,;t t
6632 s,@am__quote@,$am__quote,;t t
6633 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6634 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6635 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6636 s,@CCDEPMODE@,$CCDEPMODE,;t t
6638 s,@CXXFLAGS@,$CXXFLAGS,;t t
6639 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6640 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6643 s,@LEXLIB@,$LEXLIB,;t t
6644 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6646 s,@RANLIB@,$RANLIB,;t t
6647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6649 s,@XML_CONFIG@,$XML_CONFIG,;t t
6650 s,@X_CFLAGS@,$X_CFLAGS,;t t
6651 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6652 s,@X_LIBS@,$X_LIBS,;t t
6653 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6658 cat >>$CONFIG_STATUS <<\_ACEOF
6659 # Split the substitutions into bite-sized pieces for seds with
6660 # small command number limits, like on Digital OSF/1 and HP-UX.
6662 ac_sed_frag=1 # Number of current file.
6663 ac_beg=1 # First line for current file.
6664 ac_end=$ac_max_sed_lines # Line after last line for current file.
6667 while $ac_more_lines; do
6668 if test $ac_beg -gt 1; then
6669 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6671 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6673 if test ! -s $tmp/subs.frag; then
6676 # The purpose of the label and of the branching condition is to
6677 # speed up the sed processing (if there are no `@' at all, there
6678 # is no need to browse any of the substitutions).
6679 # These are the two extra sed commands mentioned above.
6681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6682 if test -z "$ac_sed_cmds"; then
6683 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6685 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6687 ac_sed_frag=`expr $ac_sed_frag + 1`
6689 ac_end=`expr $ac_end + $ac_max_sed_lines`
6692 if test -z "$ac_sed_cmds"; then
6695 fi # test -n "$CONFIG_FILES"
6698 cat >>$CONFIG_STATUS <<\_ACEOF
6699 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6700 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6702 - | *:- | *:-:* ) # input from stdin
6704 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6706 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6708 * ) ac_file_in=$ac_file.in ;;
6711 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6712 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6713 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6714 X"$ac_file" : 'X\(//\)[^/]' \| \
6715 X"$ac_file" : 'X\(//\)$' \| \
6716 X"$ac_file" : 'X\(/\)' \| \
6717 . : '\(.\)' 2>/dev/null ||
6719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6721 /^X\(\/\/\)$/{ s//\1/; q; }
6722 /^X\(\/\).*/{ s//\1/; q; }
6725 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6729 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6730 case $as_mkdir_dir in
6731 # Skip DOS drivespec
6732 ?:) as_incr_dir=$as_mkdir_dir ;;
6734 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6735 test -d "$as_incr_dir" ||
6736 mkdir "$as_incr_dir" ||
6737 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6738 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6739 { (exit 1); exit 1; }; }
6746 if test "$ac_dir" != .; then
6747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6748 # A "../" for each directory in $ac_dir_suffix.
6749 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6751 ac_dir_suffix= ac_top_builddir=
6755 .) # No --srcdir option. We are building in place.
6757 if test -z "$ac_top_builddir"; then
6760 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6762 [\\/]* | ?:[\\/]* ) # Absolute path.
6763 ac_srcdir=$srcdir$ac_dir_suffix;
6764 ac_top_srcdir=$srcdir ;;
6766 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6767 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6769 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6771 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6772 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6773 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6774 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6778 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6779 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6782 if test x"$ac_file" != x-; then
6783 { echo "$as_me:$LINENO: creating $ac_file" >&5
6784 echo "$as_me: creating $ac_file" >&6;}
6787 # Let's still pretend it is `configure' which instantiates (i.e., don't
6788 # use $as_me), people would be surprised to read:
6789 # /* config.h. Generated by config.status. */
6790 if test x"$ac_file" = x-; then
6793 configure_input="$ac_file. "
6795 configure_input=$configure_input"Generated from `echo $ac_file_in |
6796 sed 's,.*/,,'` by configure."
6798 # First look for the input files in the build tree, otherwise in the
6800 ac_file_inputs=`IFS=:
6801 for f in $ac_file_in; do
6803 -) echo $tmp/stdin ;;
6805 # Absolute (can't be DOS-style, as IFS=:)
6806 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6807 echo "$as_me: error: cannot find input file: $f" >&2;}
6808 { (exit 1); exit 1; }; }
6811 if test -f "$f"; then
6814 elif test -f "$srcdir/$f"; then
6819 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6820 echo "$as_me: error: cannot find input file: $f" >&2;}
6821 { (exit 1); exit 1; }; }
6824 done` || { (exit 1); exit 1; }
6826 cat >>$CONFIG_STATUS <<_ACEOF
6830 cat >>$CONFIG_STATUS <<\_ACEOF
6832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6833 s,@configure_input@,$configure_input,;t t
6834 s,@srcdir@,$ac_srcdir,;t t
6835 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6836 s,@top_srcdir@,$ac_top_srcdir,;t t
6837 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6838 s,@builddir@,$ac_builddir,;t t
6839 s,@abs_builddir@,$ac_abs_builddir,;t t
6840 s,@top_builddir@,$ac_top_builddir,;t t
6841 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6842 s,@INSTALL@,$ac_INSTALL,;t t
6843 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6845 if test x"$ac_file" != x-; then
6846 mv $tmp/out $ac_file
6854 cat >>$CONFIG_STATUS <<\_ACEOF
6857 # CONFIG_COMMANDS section.
6859 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6860 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6861 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6862 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6863 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6864 X"$ac_dest" : 'X\(//\)[^/]' \| \
6865 X"$ac_dest" : 'X\(//\)$' \| \
6866 X"$ac_dest" : 'X\(/\)' \| \
6867 . : '\(.\)' 2>/dev/null ||
6869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6871 /^X\(\/\/\)$/{ s//\1/; q; }
6872 /^X\(\/\).*/{ s//\1/; q; }
6876 if test "$ac_dir" != .; then
6877 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6878 # A "../" for each directory in $ac_dir_suffix.
6879 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6881 ac_dir_suffix= ac_top_builddir=
6885 .) # No --srcdir option. We are building in place.
6887 if test -z "$ac_top_builddir"; then
6890 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6892 [\\/]* | ?:[\\/]* ) # Absolute path.
6893 ac_srcdir=$srcdir$ac_dir_suffix;
6894 ac_top_srcdir=$srcdir ;;
6896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6897 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6899 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6901 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6902 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6903 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6904 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6907 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6908 echo "$as_me: executing $ac_dest commands" >&6;}
6910 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6911 # Strip MF so we end up with the name of the file.
6912 mf=`echo "$mf" | sed -e 's/:.*$//'`
6913 # Check whether this is an Automake generated Makefile or not.
6914 # We used to match only the files named `Makefile.in', but
6915 # some people rename them; so instead we look at the file content.
6916 # Grep'ing the first line is not enough: some people post-process
6917 # each Makefile.in and add a new line on top of each file to say so.
6918 # So let's grep whole file.
6919 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6920 dirpart=`(dirname "$mf") 2>/dev/null ||
6921 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6922 X"$mf" : 'X\(//\)[^/]' \| \
6923 X"$mf" : 'X\(//\)$' \| \
6924 X"$mf" : 'X\(/\)' \| \
6925 . : '\(.\)' 2>/dev/null ||
6927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6929 /^X\(\/\/\)$/{ s//\1/; q; }
6930 /^X\(\/\).*/{ s//\1/; q; }
6935 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6936 # Extract the definition of DEP_FILES from the Makefile without
6938 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6939 test -z "$DEPDIR" && continue
6940 # When using ansi2knr, U may be empty or an underscore; expand it
6941 U=`sed -n -e '/^U = / s///p' < "$mf"`
6942 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6943 # We invoke sed twice because it is the simplest approach to
6944 # changing $(DEPDIR) to its actual value in the expansion.
6945 for file in `sed -n -e '
6946 /^DEP_FILES = .*\\\\$/ {
6955 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6956 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6957 # Make sure the directory exists.
6958 test -f "$dirpart/$file" && continue
6959 fdir=`(dirname "$file") 2>/dev/null ||
6960 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6961 X"$file" : 'X\(//\)[^/]' \| \
6962 X"$file" : 'X\(//\)$' \| \
6963 X"$file" : 'X\(/\)' \| \
6964 . : '\(.\)' 2>/dev/null ||
6966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6968 /^X\(\/\/\)$/{ s//\1/; q; }
6969 /^X\(\/\).*/{ s//\1/; q; }
6971 { case $dirpart/$fdir in
6972 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6975 as_dummy=$dirpart/$fdir
6976 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6977 case $as_mkdir_dir in
6978 # Skip DOS drivespec
6979 ?:) as_incr_dir=$as_mkdir_dir ;;
6981 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6982 test -d "$as_incr_dir" ||
6983 mkdir "$as_incr_dir" ||
6984 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
6985 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
6986 { (exit 1); exit 1; }; }
6991 # echo "creating $dirpart/$file"
6992 echo '# dummy' > "$dirpart/$file"
7000 cat >>$CONFIG_STATUS <<\_ACEOF
7002 { (exit 0); exit 0; }
7004 chmod +x $CONFIG_STATUS
7005 ac_clean_files=$ac_clean_files_save
7008 # configure is writing to config.log, and then calls config.status.
7009 # config.status does its own redirection, appending to config.log.
7010 # Unfortunately, on DOS this fails, as config.log is still kept open
7011 # by configure, so config.status won't be able to write to it; its
7012 # output is simply discarded. So we exec the FD to /dev/null,
7013 # effectively closing config.log, so it can be properly (re)opened and
7014 # appended to by config.status. When coming back to configure, we
7015 # need to make the FD available again.
7016 if test "$no_create" != yes; then
7019 $SHELL $CONFIG_STATUS || ac_cs_success=false
7021 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7022 # would make configure fail if this is the last instruction.
7023 $ac_cs_success || { (exit 1); exit 1; }