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/openbox.cc"
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 --enable-shape enable support of the XShape extension default=yes
843 --enable-slit include code for the Slit default=yes
844 --enable-newspec include code for the new WM Spec (DOES NOTHING)
846 --enable-interlace include code for image interlacing default=yes
847 --enable-ordered-pseudo include code for ordered pseudocolor (8bpp)
849 --enable-clobber intercept mouse events to clients when num lock
850 or scroll lock are on default=yes
851 --enable-debug include verbose debugging code default=no
852 --enable-nls include natural language support default=yes
853 --enable-timed-cache use new timed pixmap cache default=yes
854 --enable-maintainer-mode enable make rules and dependencies not useful
855 (and sometimes confusing) to the casual installer
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-x use the X Window System
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CXX C++ compiler command
870 CXXFLAGS C++ compiler flags
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
886 if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 ac_dir_suffix= ac_top_builddir=
895 .) # No --srcdir option. We are building in place.
897 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
912 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
913 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
917 # Check for guested configure; otherwise get Cygnus style configure.
918 if test -f $ac_srcdir/configure.gnu; then
920 $SHELL $ac_srcdir/configure.gnu --help=recursive
921 elif test -f $ac_srcdir/configure; then
923 $SHELL $ac_srcdir/configure --help=recursive
924 elif test -f $ac_srcdir/configure.ac ||
925 test -f $ac_srcdir/configure.in; then
929 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
935 test -n "$ac_init_help" && exit 0
936 if $ac_init_version; then
939 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
940 Free Software Foundation, Inc.
941 This configure script is free software; the Free Software Foundation
942 gives unlimited permission to copy, distribute and modify it.
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
951 It was created by $as_me, which was
952 generated by GNU Autoconf 2.53. Invocation command line was
959 @%:@@%:@ --------- @%:@@%:@
960 @%:@@%:@ Platform. @%:@@%:@
961 @%:@@%:@ --------- @%:@@%:@
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986 test -z "$as_dir" && as_dir=.
995 @%:@@%:@ ----------- @%:@@%:@
996 @%:@@%:@ Core tests. @%:@@%:@
997 @%:@@%:@ ----------- @%:@@%:@
1002 # Keep a trace of the command line.
1003 # Strip out --no-create and --no-recursion so they do not pile up.
1004 # Also quote any args containing shell meta-characters.
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n ) continue ;;
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1018 case " $ac_configure_args " in
1019 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1020 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1023 # Get rid of the leading space.
1026 # When interrupted or exit'd, cleanup temporary files, and complete
1027 # config.log. We remove comments because anyway the quotes in there
1028 # would cause problems or look ugly.
1029 # WARNING: Be sure not to use single quotes in there, as some shells,
1030 # such as our DU 5.0 friend, will then `close' the trap.
1031 trap 'exit_status=$?
1032 # Save into config.log some information that might help in debugging.
1036 @%:@@%:@ ---------------- @%:@@%:@
1037 @%:@@%:@ Cache variables. @%:@@%:@
1038 @%:@@%:@ ---------------- @%:@@%:@
1041 # The following way of writing the cache mishandles newlines in values,
1044 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1047 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1052 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1057 if test -s confdefs.h; then
1059 @%:@@%:@ ----------- @%:@@%:@
1060 @%:@@%:@ confdefs.h. @%:@@%:@
1061 @%:@@%:@ ----------- @%:@@%:@
1064 sed "/^$/d" confdefs.h
1067 test "$ac_signal" != 0 &&
1068 echo "$as_me: caught signal $ac_signal"
1069 echo "$as_me: exit $exit_status"
1071 rm -f core core.* *.core &&
1072 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1075 for ac_signal in 1 2 13 15; do
1076 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1081 rm -rf conftest* confdefs.h
1082 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1085 # Predefined preprocessor variables.
1087 cat >>confdefs.h <<_ACEOF
1088 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1092 cat >>confdefs.h <<_ACEOF
1093 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1097 cat >>confdefs.h <<_ACEOF
1098 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1102 cat >>confdefs.h <<_ACEOF
1103 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1107 cat >>confdefs.h <<_ACEOF
1108 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1112 # Let the site file select an alternate cache file if it wants to.
1113 # Prefer explicitly selected file to automatically selected ones.
1114 if test -z "$CONFIG_SITE"; then
1115 if test "x$prefix" != xNONE; then
1116 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1118 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1121 for ac_site_file in $CONFIG_SITE; do
1122 if test -r "$ac_site_file"; then
1123 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1124 echo "$as_me: loading site script $ac_site_file" >&6;}
1125 sed 's/^/| /' "$ac_site_file" >&5
1130 if test -r "$cache_file"; then
1131 # Some versions of bash will fail to source /dev/null (special
1132 # files actually), so we avoid doing that.
1133 if test -f "$cache_file"; then
1134 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1135 echo "$as_me: loading cache $cache_file" >&6;}
1137 [\\/]* | ?:[\\/]* ) . $cache_file;;
1138 *) . ./$cache_file;;
1142 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1143 echo "$as_me: creating cache $cache_file" >&6;}
1147 # Check that the precious variables saved in the cache have kept the same
1149 ac_cache_corrupted=false
1150 for ac_var in `(set) 2>&1 |
1151 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1152 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1153 eval ac_new_set=\$ac_env_${ac_var}_set
1154 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1155 eval ac_new_val="\$ac_env_${ac_var}_value"
1156 case $ac_old_set,$ac_new_set in
1158 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1159 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1160 ac_cache_corrupted=: ;;
1162 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1163 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1164 ac_cache_corrupted=: ;;
1167 if test "x$ac_old_val" != "x$ac_new_val"; then
1168 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1169 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1170 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1171 echo "$as_me: former value: $ac_old_val" >&2;}
1172 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1173 echo "$as_me: current value: $ac_new_val" >&2;}
1174 ac_cache_corrupted=:
1177 # Pass precious variables to config.status.
1178 if test "$ac_new_set" = set; then
1180 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1181 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1182 *) ac_arg=$ac_var=$ac_new_val ;;
1184 case " $ac_configure_args " in
1185 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1186 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1190 if $ac_cache_corrupted; then
1191 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1192 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1193 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1194 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1195 { (exit 1); exit 1; }; }
1199 ac_cpp='$CPP $CPPFLAGS'
1200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1222 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1223 if test -f $ac_dir/install-sh; then
1225 ac_install_sh="$ac_aux_dir/install-sh -c"
1227 elif test -f $ac_dir/install.sh; then
1229 ac_install_sh="$ac_aux_dir/install.sh -c"
1231 elif test -f $ac_dir/shtool; then
1233 ac_install_sh="$ac_aux_dir/shtool install -c"
1237 if test -z "$ac_aux_dir"; then
1238 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1239 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1240 { (exit 1); exit 1; }; }
1242 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1243 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1244 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1246 # Find a good install program. We prefer a C program (faster),
1247 # so one script is as good as another. But avoid the broken or
1248 # incompatible versions:
1249 # SysV /etc/install, /usr/sbin/install
1250 # SunOS /usr/etc/install
1251 # IRIX /sbin/install
1253 # AmigaOS /C/install, which installs bootblocks on floppy discs
1254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1257 # ./install, which can be erroneously created by make from ./install.sh.
1258 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1259 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1260 if test -z "$INSTALL"; then
1261 if test "${ac_cv_path_install+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1268 test -z "$as_dir" && as_dir=.
1269 # Account for people who put trailing slashes in PATH elements.
1271 ./ | .// | /cC/* | \
1272 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1275 # OSF1 and SCO ODT 3.0 have their own names for install.
1276 # Don't use installbsd from OSF since it installs stuff as root
1278 for ac_prog in ginstall scoinst install; do
1279 for ac_exec_ext in '' $ac_executable_extensions; do
1280 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1281 if test $ac_prog = install &&
1282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1283 # AIX install. It has an incompatible calling convention.
1285 elif test $ac_prog = install &&
1286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1287 # program-specific install script used by HP pwplus--don't use.
1290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1302 if test "${ac_cv_path_install+set}" = set; then
1303 INSTALL=$ac_cv_path_install
1305 # As a last resort, use the slow shell script. We don't cache a
1306 # path for INSTALL within a source directory, because that will
1307 # break other packages using the cache if that directory is
1308 # removed, or if the path is relative.
1309 INSTALL=$ac_install_sh
1312 echo "$as_me:$LINENO: result: $INSTALL" >&5
1313 echo "${ECHO_T}$INSTALL" >&6
1315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1316 # It thinks the first close brace ends the variable substitution.
1317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1323 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1324 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1327 echo timestamp > conftestfile
1328 # Do `set' in a subshell so we don't clobber the current shell's
1329 # arguments. Must try -L first in case configure is actually a
1330 # symlink; some systems play weird games with the mod time of symlinks
1331 # (eg FreeBSD returns the mod time of the symlink's containing
1334 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1335 if test "$*" = "X"; then
1337 set X `ls -t $srcdir/configure conftestfile`
1339 if test "$*" != "X $srcdir/configure conftestfile" \
1340 && test "$*" != "X conftestfile $srcdir/configure"; then
1342 # If neither matched, then we have a broken ls. This can happen
1343 # if, for instance, CONFIG_SHELL is bash and it inherits a
1344 # broken ls alias from the environment. This has actually
1345 # happened. Such a system could not be considered "sane".
1346 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1347 alias in your environment" >&5
1348 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1349 alias in your environment" >&2;}
1350 { (exit 1); exit 1; }; }
1353 test "$2" = conftestfile
1359 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1360 Check your system clock" >&5
1361 echo "$as_me: error: newly created file is older than distributed files!
1362 Check your system clock" >&2;}
1363 { (exit 1); exit 1; }; }
1366 echo "$as_me:$LINENO: result: yes" >&5
1367 echo "${ECHO_T}yes" >&6
1368 test "$program_prefix" != NONE &&
1369 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1370 # Use a double $ so make ignores it.
1371 test "$program_suffix" != NONE &&
1372 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1373 # Double any \ or $. echo might interpret backslashes.
1374 # By default was `s,x,x', remove it if useless.
1375 cat <<\_ACEOF >conftest.sed
1376 s/[\\$]/&&/g;s/;s,x,x,$//
1378 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1381 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1382 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1383 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1384 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 cat >conftest.make <<\_ACEOF
1389 @echo 'ac_maketemp="${MAKE}"'
1391 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1392 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1393 if test -n "$ac_maketemp"; then
1394 eval ac_cv_prog_make_${ac_make}_set=yes
1396 eval ac_cv_prog_make_${ac_make}_set=no
1400 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1401 echo "$as_me:$LINENO: result: yes" >&5
1402 echo "${ECHO_T}yes" >&6
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 SET_MAKE="MAKE=${MAKE-make}"
1415 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1416 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1417 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1418 { (exit 1); exit 1; }; }
1423 missing_dir=`cd $ac_aux_dir && pwd`
1424 echo "$as_me:$LINENO: checking for working aclocal" >&5
1425 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1426 # Run test in a subshell; some versions of sh will print an error if
1427 # an executable is not found, even if stderr is redirected.
1428 # Redirect stdin to placate older versions of autoconf. Sigh.
1429 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1431 echo "$as_me:$LINENO: result: found" >&5
1432 echo "${ECHO_T}found" >&6
1434 ACLOCAL="$missing_dir/missing aclocal"
1435 echo "$as_me:$LINENO: result: missing" >&5
1436 echo "${ECHO_T}missing" >&6
1439 echo "$as_me:$LINENO: checking for working autoconf" >&5
1440 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1441 # Run test in a subshell; some versions of sh will print an error if
1442 # an executable is not found, even if stderr is redirected.
1443 # Redirect stdin to placate older versions of autoconf. Sigh.
1444 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1446 echo "$as_me:$LINENO: result: found" >&5
1447 echo "${ECHO_T}found" >&6
1449 AUTOCONF="$missing_dir/missing autoconf"
1450 echo "$as_me:$LINENO: result: missing" >&5
1451 echo "${ECHO_T}missing" >&6
1454 echo "$as_me:$LINENO: checking for working automake" >&5
1455 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1456 # Run test in a subshell; some versions of sh will print an error if
1457 # an executable is not found, even if stderr is redirected.
1458 # Redirect stdin to placate older versions of autoconf. Sigh.
1459 if (automake --version) < /dev/null > /dev/null 2>&1; then
1461 echo "$as_me:$LINENO: result: found" >&5
1462 echo "${ECHO_T}found" >&6
1464 AUTOMAKE="$missing_dir/missing automake"
1465 echo "$as_me:$LINENO: result: missing" >&5
1466 echo "${ECHO_T}missing" >&6
1469 echo "$as_me:$LINENO: checking for working autoheader" >&5
1470 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1471 # Run test in a subshell; some versions of sh will print an error if
1472 # an executable is not found, even if stderr is redirected.
1473 # Redirect stdin to placate older versions of autoconf. Sigh.
1474 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1475 AUTOHEADER=autoheader
1476 echo "$as_me:$LINENO: result: found" >&5
1477 echo "${ECHO_T}found" >&6
1479 AUTOHEADER="$missing_dir/missing autoheader"
1480 echo "$as_me:$LINENO: result: missing" >&5
1481 echo "${ECHO_T}missing" >&6
1484 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1485 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1486 # Run test in a subshell; some versions of sh will print an error if
1487 # an executable is not found, even if stderr is redirected.
1488 # Redirect stdin to placate older versions of autoconf. Sigh.
1489 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1491 echo "$as_me:$LINENO: result: found" >&5
1492 echo "${ECHO_T}found" >&6
1494 MAKEINFO="$missing_dir/missing makeinfo"
1495 echo "$as_me:$LINENO: result: missing" >&5
1496 echo "${ECHO_T}missing" >&6
1501 test x$prefix = "xNONE" && prefix="$ac_default_prefix"
1505 ac_cpp='$CPP $CPPFLAGS'
1506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1509 if test -n "$ac_tool_prefix"; then
1510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1511 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1512 echo "$as_me:$LINENO: checking for $ac_word" >&5
1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514 if test "${ac_cv_prog_CC+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 if test -n "$CC"; then
1518 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 test -z "$as_dir" && as_dir=.
1525 for ac_exec_ext in '' $ac_executable_extensions; do
1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 if test -n "$CC"; then
1538 echo "$as_me:$LINENO: result: $CC" >&5
1539 echo "${ECHO_T}$CC" >&6
1541 echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1546 if test -z "$ac_cv_prog_CC"; then
1548 # Extract the first word of "gcc", so it can be a program name with args.
1549 set dummy gcc; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 if test -n "$ac_ct_CC"; then
1556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_ac_ct_CC="gcc"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1575 if test -n "$ac_ct_CC"; then
1576 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1577 echo "${ECHO_T}$ac_ct_CC" >&6
1579 echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1588 if test -z "$CC"; then
1589 if test -n "$ac_tool_prefix"; then
1590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1591 set dummy ${ac_tool_prefix}cc; ac_word=$2
1592 echo "$as_me:$LINENO: checking for $ac_word" >&5
1593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594 if test "${ac_cv_prog_CC+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 if test -n "$CC"; then
1598 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 test -z "$as_dir" && as_dir=.
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 ac_cv_prog_CC="${ac_tool_prefix}cc"
1608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 if test -n "$CC"; then
1618 echo "$as_me:$LINENO: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1621 echo "$as_me:$LINENO: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1626 if test -z "$ac_cv_prog_CC"; then
1628 # Extract the first word of "cc", so it can be a program name with args.
1629 set dummy cc; ac_word=$2
1630 echo "$as_me:$LINENO: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 if test -n "$ac_ct_CC"; then
1636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 test -z "$as_dir" && as_dir=.
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645 ac_cv_prog_ac_ct_CC="cc"
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1655 if test -n "$ac_ct_CC"; then
1656 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1657 echo "${ECHO_T}$ac_ct_CC" >&6
1659 echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1669 if test -z "$CC"; then
1670 # Extract the first word of "cc", so it can be a program name with args.
1671 set dummy cc; ac_word=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1689 ac_prog_rejected=yes
1693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 if test $ac_prog_rejected = yes; then
1700 # We found a bogon in the path, so make sure we never use it.
1701 set dummy $ac_cv_prog_CC
1703 if test $@%:@ != 0; then
1704 # We chose a different compiler from the bogus one.
1705 # However, it has the same basename, so the bogon will be chosen
1706 # first if we set CC to just the basename; use the full file name.
1708 set dummy "$as_dir/$ac_word" ${1+"$@"}
1716 if test -n "$CC"; then
1717 echo "$as_me:$LINENO: result: $CC" >&5
1718 echo "${ECHO_T}$CC" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1725 if test -z "$CC"; then
1726 if test -n "$ac_tool_prefix"; then
1729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$CC"; then
1737 ac_cv_prog_CC="$CC" # Let the user override the test.
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 if test -n "$CC"; then
1757 echo "$as_me:$LINENO: result: $CC" >&5
1758 echo "${ECHO_T}$CC" >&6
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 test -n "$CC" && break
1767 if test -z "$CC"; then
1771 # Extract the first word of "$ac_prog", so it can be a program name with args.
1772 set dummy $ac_prog; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 if test -n "$ac_ct_CC"; then
1779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir=.
1786 for ac_exec_ext in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_ac_ct_CC="$ac_prog"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1798 if test -n "$ac_ct_CC"; then
1799 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1800 echo "${ECHO_T}$ac_ct_CC" >&6
1802 echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1806 test -n "$ac_ct_CC" && break
1815 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1816 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1817 { (exit 1); exit 1; }; }
1819 # Provide some information about the compiler.
1820 echo "$as_me:$LINENO:" \
1821 "checking for C compiler version" >&5
1822 ac_compiler=`set X $ac_compile; echo $2`
1823 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1824 (eval $ac_compiler --version </dev/null >&5) 2>&5
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }
1828 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1829 (eval $ac_compiler -v </dev/null >&5) 2>&5
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); }
1833 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1834 (eval $ac_compiler -V </dev/null >&5) 2>&5
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }
1839 cat >conftest.$ac_ext <<_ACEOF
1840 #line $LINENO "configure"
1841 #include "confdefs.h"
1843 #ifdef F77_DUMMY_MAIN
1847 int F77_DUMMY_MAIN() { return 1; }
1857 ac_clean_files_save=$ac_clean_files
1858 ac_clean_files="$ac_clean_files a.out a.exe"
1859 # Try to create an executable without -o first, disregard a.out.
1860 # It will help us diagnose broken compilers, and finding out an intuition
1862 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1863 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1864 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1865 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1866 (eval $ac_link_default) 2>&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; then
1870 # Find the output, starting from the most likely. This scheme is
1871 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1874 # Be careful to initialize this variable, since it used to be cached.
1875 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1877 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1878 ls a.out conftest 2>/dev/null;
1879 ls a.* conftest.* 2>/dev/null`; do
1881 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1882 a.out ) # We found the default executable, but exeext='' is most
1885 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1886 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1893 echo "$as_me: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1895 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1896 echo "$as_me: error: C compiler cannot create executables" >&2;}
1897 { (exit 77); exit 77; }; }
1900 ac_exeext=$ac_cv_exeext
1901 echo "$as_me:$LINENO: result: $ac_file" >&5
1902 echo "${ECHO_T}$ac_file" >&6
1904 # Check the compiler produces executables we can run. If not, either
1905 # the compiler is broken, or we cross compile.
1906 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1907 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1908 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1909 # If not cross compiling, check that we can run a simple program.
1910 if test "$cross_compiling" != yes; then
1911 if { ac_try='./$ac_file'
1912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; }; then
1919 if test "$cross_compiling" = maybe; then
1922 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1923 If you meant to cross compile, use \`--host'." >&5
1924 echo "$as_me: error: cannot run C compiled programs.
1925 If you meant to cross compile, use \`--host'." >&2;}
1926 { (exit 1); exit 1; }; }
1930 echo "$as_me:$LINENO: result: yes" >&5
1931 echo "${ECHO_T}yes" >&6
1933 rm -f a.out a.exe conftest$ac_cv_exeext
1934 ac_clean_files=$ac_clean_files_save
1935 # Check the compiler produces executables we can run. If not, either
1936 # the compiler is broken, or we cross compile.
1937 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1938 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1939 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1940 echo "${ECHO_T}$cross_compiling" >&6
1942 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1943 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1945 (eval $ac_link) 2>&5
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; then
1949 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1950 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1951 # work properly (i.e., refer to `conftest.exe'), while it won't with
1953 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1955 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1956 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1963 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1964 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1965 { (exit 1); exit 1; }; }
1968 rm -f conftest$ac_cv_exeext
1969 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1970 echo "${ECHO_T}$ac_cv_exeext" >&6
1972 rm -f conftest.$ac_ext
1973 EXEEXT=$ac_cv_exeext
1975 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1976 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1977 if test "${ac_cv_objext+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 cat >conftest.$ac_ext <<_ACEOF
1981 #line $LINENO "configure"
1982 #include "confdefs.h"
1984 #ifdef F77_DUMMY_MAIN
1988 int F77_DUMMY_MAIN() { return 1; }
1998 rm -f conftest.o conftest.obj
1999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; then
2004 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2007 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2012 echo "$as_me: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2014 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2015 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2016 { (exit 1); exit 1; }; }
2019 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2021 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2022 echo "${ECHO_T}$ac_cv_objext" >&6
2023 OBJEXT=$ac_cv_objext
2025 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2026 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2027 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 cat >conftest.$ac_ext <<_ACEOF
2031 #line $LINENO "configure"
2032 #include "confdefs.h"
2034 #ifdef F77_DUMMY_MAIN
2038 int F77_DUMMY_MAIN() { return 1; }
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -s conftest.$ac_objext'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2065 echo "$as_me: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2069 rm -f conftest.$ac_objext conftest.$ac_ext
2070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2073 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2074 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2075 GCC=`test $ac_compiler_gnu = yes && echo yes`
2076 ac_test_CFLAGS=${CFLAGS+set}
2077 ac_save_CFLAGS=$CFLAGS
2079 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2080 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2081 if test "${ac_cv_prog_cc_g+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 cat >conftest.$ac_ext <<_ACEOF
2085 #line $LINENO "configure"
2086 #include "confdefs.h"
2088 #ifdef F77_DUMMY_MAIN
2092 int F77_DUMMY_MAIN() { return 1; }
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2116 echo "$as_me: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2120 rm -f conftest.$ac_objext conftest.$ac_ext
2122 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2123 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2124 if test "$ac_test_CFLAGS" = set; then
2125 CFLAGS=$ac_save_CFLAGS
2126 elif test $ac_cv_prog_cc_g = yes; then
2127 if test "$GCC" = yes; then
2133 if test "$GCC" = yes; then
2139 # Some people use a C++ compiler to compile C. Since we use `exit',
2140 # in C++ we need to declare it. In case someone uses the same compiler
2141 # for both compiling C and C++ we need to have the C++ compiler decide
2142 # the declaration of exit, since it's the most demanding environment.
2143 cat >conftest.$ac_ext <<_ACEOF
2144 @%:@ifndef __cplusplus
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2160 for ac_declaration in \
2162 '#include <stdlib.h>' \
2163 'extern "C" void std::exit (int) throw (); using std::exit;' \
2164 'extern "C" void std::exit (int); using std::exit;' \
2165 'extern "C" void exit (int) throw ();' \
2166 'extern "C" void exit (int);' \
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2171 #include "confdefs.h"
2172 @%:@include <stdlib.h>
2174 #ifdef F77_DUMMY_MAIN
2178 int F77_DUMMY_MAIN() { return 1; }
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190 (eval $ac_compile) 2>&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2202 echo "$as_me: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2206 rm -f conftest.$ac_objext conftest.$ac_ext
2207 cat >conftest.$ac_ext <<_ACEOF
2208 #line $LINENO "configure"
2209 #include "confdefs.h"
2211 #ifdef F77_DUMMY_MAIN
2215 int F77_DUMMY_MAIN() { return 1; }
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2239 echo "$as_me: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2242 rm -f conftest.$ac_objext conftest.$ac_ext
2245 if test -n "$ac_declaration"; then
2246 echo '#ifdef __cplusplus' >>confdefs.h
2247 echo $ac_declaration >>confdefs.h
2248 echo '#endif' >>confdefs.h
2252 echo "$as_me: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2255 rm -f conftest.$ac_objext conftest.$ac_ext
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2263 ac_cpp='$CXXCPP $CPPFLAGS'
2264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2267 if test -n "$ac_tool_prefix"; then
2268 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2272 echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274 if test "${ac_cv_prog_CXX+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 if test -n "$CXX"; then
2278 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2287 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 if test -n "$CXX"; then
2298 echo "$as_me:$LINENO: result: $CXX" >&5
2299 echo "${ECHO_T}$CXX" >&6
2301 echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6
2305 test -n "$CXX" && break
2308 if test -z "$CXX"; then
2310 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2312 # Extract the first word of "$ac_prog", so it can be a program name with args.
2313 set dummy $ac_prog; ac_word=$2
2314 echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2316 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 if test -n "$ac_ct_CXX"; then
2320 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2329 ac_cv_prog_ac_ct_CXX="$ac_prog"
2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2339 if test -n "$ac_ct_CXX"; then
2340 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2341 echo "${ECHO_T}$ac_ct_CXX" >&6
2343 echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6
2347 test -n "$ac_ct_CXX" && break
2349 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2355 # Provide some information about the compiler.
2356 echo "$as_me:$LINENO:" \
2357 "checking for C++ compiler version" >&5
2358 ac_compiler=`set X $ac_compile; echo $2`
2359 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2360 (eval $ac_compiler --version </dev/null >&5) 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
2364 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2365 (eval $ac_compiler -v </dev/null >&5) 2>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2369 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2370 (eval $ac_compiler -V </dev/null >&5) 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }
2375 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2376 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2377 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2382 #include "confdefs.h"
2384 #ifdef F77_DUMMY_MAIN
2388 int F77_DUMMY_MAIN() { return 1; }
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2415 echo "$as_me: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2419 rm -f conftest.$ac_objext conftest.$ac_ext
2420 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2423 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2424 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2425 GXX=`test $ac_compiler_gnu = yes && echo yes`
2426 ac_test_CXXFLAGS=${CXXFLAGS+set}
2427 ac_save_CXXFLAGS=$CXXFLAGS
2429 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2430 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cxx_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 cat >conftest.$ac_ext <<_ACEOF
2435 #line $LINENO "configure"
2436 #include "confdefs.h"
2438 #ifdef F77_DUMMY_MAIN
2442 int F77_DUMMY_MAIN() { return 1; }
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 ac_cv_prog_cxx_g=yes
2466 echo "$as_me: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2470 rm -f conftest.$ac_objext conftest.$ac_ext
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2474 if test "$ac_test_CXXFLAGS" = set; then
2475 CXXFLAGS=$ac_save_CXXFLAGS
2476 elif test $ac_cv_prog_cxx_g = yes; then
2477 if test "$GXX" = yes; then
2483 if test "$GXX" = yes; then
2489 for ac_declaration in \
2491 '#include <stdlib.h>' \
2492 'extern "C" void std::exit (int) throw (); using std::exit;' \
2493 'extern "C" void std::exit (int); using std::exit;' \
2494 'extern "C" void exit (int) throw ();' \
2495 'extern "C" void exit (int);' \
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 #include "confdefs.h"
2501 @%:@include <stdlib.h>
2503 #ifdef F77_DUMMY_MAIN
2507 int F77_DUMMY_MAIN() { return 1; }
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2531 echo "$as_me: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2535 rm -f conftest.$ac_objext conftest.$ac_ext
2536 cat >conftest.$ac_ext <<_ACEOF
2537 #line $LINENO "configure"
2538 #include "confdefs.h"
2540 #ifdef F77_DUMMY_MAIN
2544 int F77_DUMMY_MAIN() { return 1; }
2554 rm -f conftest.$ac_objext
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2568 echo "$as_me: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2571 rm -f conftest.$ac_objext conftest.$ac_ext
2574 if test -n "$ac_declaration"; then
2575 echo '#ifdef __cplusplus' >>confdefs.h
2576 echo $ac_declaration >>confdefs.h
2577 echo '#endif' >>confdefs.h
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586 # Find a good install program. We prefer a C program (faster),
2587 # so one script is as good as another. But avoid the broken or
2588 # incompatible versions:
2589 # SysV /etc/install, /usr/sbin/install
2590 # SunOS /usr/etc/install
2591 # IRIX /sbin/install
2593 # AmigaOS /C/install, which installs bootblocks on floppy discs
2594 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2597 # ./install, which can be erroneously created by make from ./install.sh.
2598 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2599 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2600 if test -z "$INSTALL"; then
2601 if test "${ac_cv_path_install+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 # Account for people who put trailing slashes in PATH elements.
2611 ./ | .// | /cC/* | \
2612 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2615 # OSF1 and SCO ODT 3.0 have their own names for install.
2616 # Don't use installbsd from OSF since it installs stuff as root
2618 for ac_prog in ginstall scoinst install; do
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2621 if test $ac_prog = install &&
2622 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2623 # AIX install. It has an incompatible calling convention.
2625 elif test $ac_prog = install &&
2626 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2627 # program-specific install script used by HP pwplus--don't use.
2630 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2642 if test "${ac_cv_path_install+set}" = set; then
2643 INSTALL=$ac_cv_path_install
2645 # As a last resort, use the slow shell script. We don't cache a
2646 # path for INSTALL within a source directory, because that will
2647 # break other packages using the cache if that directory is
2648 # removed, or if the path is relative.
2649 INSTALL=$ac_install_sh
2652 echo "$as_me:$LINENO: result: $INSTALL" >&5
2653 echo "${ECHO_T}$INSTALL" >&6
2655 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2656 # It thinks the first close brace ends the variable substitution.
2657 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2659 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2661 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670 if test "${ac_cv_prog_regex_cmd+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 if test -n "$regex_cmd"; then
2674 ac_cv_prog_regex_cmd="$regex_cmd" # Let the user override the test.
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_regex_cmd="$ac_prog"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 regex_cmd=$ac_cv_prog_regex_cmd
2693 if test -n "$regex_cmd"; then
2694 echo "$as_me:$LINENO: result: $regex_cmd" >&5
2695 echo "${ECHO_T}$regex_cmd" >&6
2697 echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2701 test -n "$regex_cmd" && break
2704 if test x$regex_cmd = "x"; then
2705 { { echo "$as_me:$LINENO: error: error. sed is required to build the default menu file." >&5
2706 echo "$as_me: error: error. sed is required to build the default menu file." >&2;}
2707 { (exit 1); exit 1; }; }
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2717 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2718 # On Suns, sometimes $CPP names a directory.
2719 if test -n "$CPP" && test -d "$CPP"; then
2722 if test -z "$CPP"; then
2723 if test "${ac_cv_prog_CPP+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 # Double quotes because CPP needs to be expanded
2727 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2730 for ac_c_preproc_warn_flag in '' yes
2732 # Use a header file that comes with gcc, so configuring glibc
2733 # with a fresh cross-compiler works.
2734 # On the NeXT, cc -E runs the code through the compiler's parser,
2735 # not just through cpp. "Syntax error" is here to catch this case.
2736 cat >conftest.$ac_ext <<_ACEOF
2737 #line $LINENO "configure"
2738 #include "confdefs.h"
2739 @%:@include <assert.h>
2742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2745 egrep -v '^ *\+' conftest.er1 >conftest.err
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } >/dev/null; then
2750 if test -s conftest.err; then
2751 ac_cpp_err=$ac_c_preproc_warn_flag
2758 if test -z "$ac_cpp_err"; then
2761 echo "$as_me: failed program was:" >&5
2762 cat conftest.$ac_ext >&5
2763 # Broken: fails on valid input.
2766 rm -f conftest.err conftest.$ac_ext
2768 # OK, works on sane cases. Now check whether non-existent headers
2769 # can be detected and how.
2770 cat >conftest.$ac_ext <<_ACEOF
2771 #line $LINENO "configure"
2772 #include "confdefs.h"
2773 @%:@include <ac_nonexistent.h>
2775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2778 egrep -v '^ *\+' conftest.er1 >conftest.err
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } >/dev/null; then
2783 if test -s conftest.err; then
2784 ac_cpp_err=$ac_c_preproc_warn_flag
2791 if test -z "$ac_cpp_err"; then
2792 # Broken: success on invalid input.
2795 echo "$as_me: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 # Passes both tests.
2801 rm -f conftest.err conftest.$ac_ext
2804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2805 rm -f conftest.err conftest.$ac_ext
2806 if $ac_preproc_ok; then
2818 echo "$as_me:$LINENO: result: $CPP" >&5
2819 echo "${ECHO_T}$CPP" >&6
2821 for ac_c_preproc_warn_flag in '' yes
2823 # Use a header file that comes with gcc, so configuring glibc
2824 # with a fresh cross-compiler works.
2825 # On the NeXT, cc -E runs the code through the compiler's parser,
2826 # not just through cpp. "Syntax error" is here to catch this case.
2827 cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2829 #include "confdefs.h"
2830 @%:@include <assert.h>
2833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2836 egrep -v '^ *\+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } >/dev/null; then
2841 if test -s conftest.err; then
2842 ac_cpp_err=$ac_c_preproc_warn_flag
2849 if test -z "$ac_cpp_err"; then
2852 echo "$as_me: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2854 # Broken: fails on valid input.
2857 rm -f conftest.err conftest.$ac_ext
2859 # OK, works on sane cases. Now check whether non-existent headers
2860 # can be detected and how.
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 #include "confdefs.h"
2864 @%:@include <ac_nonexistent.h>
2866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2869 egrep -v '^ *\+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } >/dev/null; then
2874 if test -s conftest.err; then
2875 ac_cpp_err=$ac_c_preproc_warn_flag
2882 if test -z "$ac_cpp_err"; then
2883 # Broken: success on invalid input.
2886 echo "$as_me: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2888 # Passes both tests.
2892 rm -f conftest.err conftest.$ac_ext
2895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2896 rm -f conftest.err conftest.$ac_ext
2897 if $ac_preproc_ok; then
2900 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2901 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2902 { (exit 1); exit 1; }; }
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2913 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2914 if test "${ac_cv_header_stdc+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 cat >conftest.$ac_ext <<_ACEOF
2918 #line $LINENO "configure"
2919 #include "confdefs.h"
2926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929 egrep -v '^ *\+' conftest.er1 >conftest.err
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } >/dev/null; then
2934 if test -s conftest.err; then
2935 ac_cpp_err=$ac_c_preproc_warn_flag
2942 if test -z "$ac_cpp_err"; then
2943 ac_cv_header_stdc=yes
2945 echo "$as_me: failed program was:" >&5
2946 cat conftest.$ac_ext >&5
2947 ac_cv_header_stdc=no
2949 rm -f conftest.err conftest.$ac_ext
2951 if test $ac_cv_header_stdc = yes; then
2952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2955 #include "confdefs.h"
2959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2960 egrep "memchr" >/dev/null 2>&1; then
2963 ac_cv_header_stdc=no
2969 if test $ac_cv_header_stdc = yes; then
2970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2971 cat >conftest.$ac_ext <<_ACEOF
2972 #line $LINENO "configure"
2973 #include "confdefs.h"
2977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2978 egrep "free" >/dev/null 2>&1; then
2981 ac_cv_header_stdc=no
2987 if test $ac_cv_header_stdc = yes; then
2988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2989 if test "$cross_compiling" = yes; then
2992 cat >conftest.$ac_ext <<_ACEOF
2993 #line $LINENO "configure"
2994 #include "confdefs.h"
2996 #if ((' ' & 0x0FF) == 0x020)
2997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3000 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3001 || ('j' <= (c) && (c) <= 'r') \
3002 || ('s' <= (c) && (c) <= 'z'))
3003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3011 for (i = 0; i < 256; i++)
3012 if (XOR (islower (i), ISLOWER (i))
3013 || toupper (i) != TOUPPER (i))
3018 rm -f conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020 (eval $ac_link) 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3031 echo "$as_me: program exited with status $ac_status" >&5
3032 echo "$as_me: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3035 ac_cv_header_stdc=no
3037 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3041 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3042 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3043 if test $ac_cv_header_stdc = yes; then
3045 cat >>confdefs.h <<\_ACEOF
3046 @%:@define STDC_HEADERS 1
3051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3062 inttypes.h stdint.h unistd.h
3064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3065 echo "$as_me:$LINENO: checking for $ac_header" >&5
3066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 cat >conftest.$ac_ext <<_ACEOF
3071 #line $LINENO "configure"
3072 #include "confdefs.h"
3073 $ac_includes_default
3075 @%:@include <$ac_header>
3077 rm -f conftest.$ac_objext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3079 (eval $ac_compile) 2>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 eval "$as_ac_Header=yes"
3091 echo "$as_me: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3093 eval "$as_ac_Header=no"
3095 rm -f conftest.$ac_objext conftest.$ac_ext
3097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3100 cat >>confdefs.h <<_ACEOF
3101 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3130 for ac_header in ctype.h dirent.h fcntl.h libgen.h locale.h nl_types.h process.h signal.h stdarg.h stdio.h string.h stdlib.h time.h unistd.h sys/param.h sys/select.h sys/signal.h sys/stat.h sys/time.h sys/types.h sys/wait.h
3132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3134 echo "$as_me:$LINENO: checking for $ac_header" >&5
3135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3142 # Is the header compilable?
3143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3145 cat >conftest.$ac_ext <<_ACEOF
3146 #line $LINENO "configure"
3147 #include "confdefs.h"
3148 $ac_includes_default
3149 @%:@include <$ac_header>
3151 rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 ac_header_compiler=yes
3165 echo "$as_me: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3167 ac_header_compiler=no
3169 rm -f conftest.$ac_objext conftest.$ac_ext
3170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3171 echo "${ECHO_T}$ac_header_compiler" >&6
3173 # Is the header present?
3174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3176 cat >conftest.$ac_ext <<_ACEOF
3177 #line $LINENO "configure"
3178 #include "confdefs.h"
3179 @%:@include <$ac_header>
3181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3184 egrep -v '^ *\+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } >/dev/null; then
3189 if test -s conftest.err; then
3190 ac_cpp_err=$ac_c_preproc_warn_flag
3197 if test -z "$ac_cpp_err"; then
3198 ac_header_preproc=yes
3200 echo "$as_me: failed program was:" >&5
3201 cat conftest.$ac_ext >&5
3202 ac_header_preproc=no
3204 rm -f conftest.err conftest.$ac_ext
3205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3206 echo "${ECHO_T}$ac_header_preproc" >&6
3208 # So? What about this header?
3209 case $ac_header_compiler:$ac_header_preproc in
3211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3223 echo "$as_me:$LINENO: checking for $ac_header" >&5
3224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 eval "$as_ac_Header=$ac_header_preproc"
3230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3235 cat >>confdefs.h <<_ACEOF
3236 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3243 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3244 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3245 if test "${ac_cv_header_time+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3251 #include <sys/types.h>
3252 #include <sys/time.h>
3255 #ifdef F77_DUMMY_MAIN
3259 int F77_DUMMY_MAIN() { return 1; }
3264 if ((struct tm *) 0)
3270 rm -f conftest.$ac_objext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272 (eval $ac_compile) 2>&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3282 ac_cv_header_time=yes
3284 echo "$as_me: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3286 ac_cv_header_time=no
3288 rm -f conftest.$ac_objext conftest.$ac_ext
3290 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3291 echo "${ECHO_T}$ac_cv_header_time" >&6
3292 if test $ac_cv_header_time = yes; then
3294 cat >>confdefs.h <<\_ACEOF
3295 @%:@define TIME_WITH_SYS_TIME 1
3302 for ac_func in basename
3304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3305 echo "$as_me:$LINENO: checking for $ac_func" >&5
3306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3307 if eval "test \"\${$as_ac_var+set}\" = set"; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 cat >conftest.$ac_ext <<_ACEOF
3311 #line $LINENO "configure"
3312 #include "confdefs.h"
3313 /* System header to define __stub macros and hopefully few prototypes,
3314 which can conflict with char $ac_func (); below. */
3316 /* Override any gcc2 internal prototype to avoid an error. */
3320 /* We use char because int might match the return type of a gcc2
3321 builtin and then its argument prototype would still apply. */
3325 #ifdef F77_DUMMY_MAIN
3329 int F77_DUMMY_MAIN() { return 1; }
3334 /* The GNU C library defines this for functions which it implements
3335 to always fail with ENOSYS. Some functions are actually named
3336 something starting with __ and the normal name is an alias. */
3337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3347 rm -f conftest.$ac_objext conftest$ac_exeext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3349 (eval $ac_link) 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -s conftest$ac_exeext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3359 eval "$as_ac_var=yes"
3361 echo "$as_me: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3363 eval "$as_ac_var=no"
3365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3369 if test `eval echo '${'$as_ac_var'}'` = yes; then
3370 cat >>confdefs.h <<_ACEOF
3371 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3375 echo "$as_me:$LINENO: checking for basename in -lgen" >&5
3376 echo $ECHO_N "checking for basename in -lgen... $ECHO_C" >&6
3377 if test "${ac_cv_lib_gen_basename+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 ac_check_lib_save_LIBS=$LIBS
3382 cat >conftest.$ac_ext <<_ACEOF
3383 #line $LINENO "configure"
3384 #include "confdefs.h"
3386 /* Override any gcc2 internal prototype to avoid an error. */
3390 /* We use char because int might match the return type of a gcc2
3391 builtin and then its argument prototype would still apply. */
3393 #ifdef F77_DUMMY_MAIN
3397 int F77_DUMMY_MAIN() { return 1; }
3407 rm -f conftest.$ac_objext conftest$ac_exeext
3408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3409 (eval $ac_link) 2>&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try='test -s conftest$ac_exeext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 ac_cv_lib_gen_basename=yes
3421 echo "$as_me: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3423 ac_cv_lib_gen_basename=no
3425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3426 LIBS=$ac_check_lib_save_LIBS
3428 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_basename" >&5
3429 echo "${ECHO_T}$ac_cv_lib_gen_basename" >&6
3430 if test $ac_cv_lib_gen_basename = yes; then
3431 cat >>confdefs.h <<\_ACEOF
3432 @%:@define HAVE_BASENAME 1
3450 for ac_func in getpid setlocale sigaction strftime strcasestr snprintf vsnprintf catopen catgets catclose
3452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3453 echo "$as_me:$LINENO: checking for $ac_func" >&5
3454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3455 if eval "test \"\${$as_ac_var+set}\" = set"; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 cat >conftest.$ac_ext <<_ACEOF
3459 #line $LINENO "configure"
3460 #include "confdefs.h"
3461 /* System header to define __stub macros and hopefully few prototypes,
3462 which can conflict with char $ac_func (); below. */
3464 /* Override any gcc2 internal prototype to avoid an error. */
3468 /* We use char because int might match the return type of a gcc2
3469 builtin and then its argument prototype would still apply. */
3473 #ifdef F77_DUMMY_MAIN
3477 int F77_DUMMY_MAIN() { return 1; }
3482 /* The GNU C library defines this for functions which it implements
3483 to always fail with ENOSYS. Some functions are actually named
3484 something starting with __ and the normal name is an alias. */
3485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3495 rm -f conftest.$ac_objext conftest$ac_exeext
3496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3497 (eval $ac_link) 2>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -s conftest$ac_exeext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 eval "$as_ac_var=yes"
3509 echo "$as_me: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3511 eval "$as_ac_var=no"
3513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3517 if test `eval echo '${'$as_ac_var'}'` = yes; then
3518 cat >>confdefs.h <<_ACEOF
3519 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3525 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
3526 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
3527 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 ac_check_lib_save_LIBS=$LIBS
3532 cat >conftest.$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3534 #include "confdefs.h"
3536 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3543 #ifdef F77_DUMMY_MAIN
3547 int F77_DUMMY_MAIN() { return 1; }
3557 rm -f conftest.$ac_objext conftest$ac_exeext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3559 (eval $ac_link) 2>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -s conftest$ac_exeext'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3569 ac_cv_lib_nsl_t_open=yes
3571 echo "$as_me: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 ac_cv_lib_nsl_t_open=no
3575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3576 LIBS=$ac_check_lib_save_LIBS
3578 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
3579 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
3580 if test $ac_cv_lib_nsl_t_open = yes; then
3584 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3585 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3586 if test "${ac_cv_lib_socket_socket+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 ac_check_lib_save_LIBS=$LIBS
3590 LIBS="-lsocket $LIBS"
3591 cat >conftest.$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3593 #include "confdefs.h"
3595 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3602 #ifdef F77_DUMMY_MAIN
3606 int F77_DUMMY_MAIN() { return 1; }
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618 (eval $ac_link) 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -s conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_lib_socket_socket=yes
3630 echo "$as_me: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 ac_cv_lib_socket_socket=no
3634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3638 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3639 if test $ac_cv_lib_socket_socket = yes; then
3640 LIBS="$LIBS -lsocket"
3644 echo "$as_me:$LINENO: checking for X" >&5
3645 echo $ECHO_N "checking for X... $ECHO_C" >&6
3648 # Check whether --with-x or --without-x was given.
3649 if test "${with_x+set}" = set; then
3653 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3654 if test "x$with_x" = xno; then
3655 # The user explicitly disabled X.
3658 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3659 # Both variables are already set.
3662 if test "${ac_cv_have_x+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 # One or both of the vars are not set, and there is no cached value.
3666 ac_x_includes=no ac_x_libraries=no
3668 if mkdir conftest.dir; then
3670 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3671 cat >Imakefile <<'_ACEOF'
3673 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3675 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3677 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3678 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3679 for ac_extension in a so sl; do
3680 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3681 test -f $ac_im_libdir/libX11.$ac_extension; then
3682 ac_im_usrlibdir=$ac_im_libdir; break
3685 # Screen out bogus values from the imake configuration. They are
3686 # bogus both because they are the default anyway, and because
3687 # using them would break gcc on systems where it needs fixed includes.
3688 case $ac_im_incroot in
3690 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3692 case $ac_im_usrlibdir in
3694 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3701 # Standard set of common directories for X headers.
3702 # Check X11 before X11Rn because it is often a symlink to the current release.
3714 /usr/local/X11/include
3715 /usr/local/X11R6/include
3716 /usr/local/X11R5/include
3717 /usr/local/X11R4/include
3719 /usr/local/include/X11
3720 /usr/local/include/X11R6
3721 /usr/local/include/X11R5
3722 /usr/local/include/X11R4
3726 /usr/XFree86/include/X11
3730 /usr/unsupported/include
3732 /usr/local/x11r5/include
3733 /usr/lpp/Xamples/include
3735 /usr/openwin/include
3736 /usr/openwin/share/include'
3738 if test "$ac_x_includes" = no; then
3739 # Guess where to find include files, by looking for Intrinsic.h.
3740 # First, try using that file with no special directory specified.
3741 cat >conftest.$ac_ext <<_ACEOF
3742 #line $LINENO "configure"
3743 #include "confdefs.h"
3744 @%:@include <X11/Intrinsic.h>
3746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3749 egrep -v '^ *\+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } >/dev/null; then
3754 if test -s conftest.err; then
3755 ac_cpp_err=$ac_c_preproc_warn_flag
3762 if test -z "$ac_cpp_err"; then
3763 # We can compile using X headers with no special include directory.
3766 echo "$as_me: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3768 for ac_dir in $ac_x_header_dirs; do
3769 if test -r "$ac_dir/X11/Intrinsic.h"; then
3770 ac_x_includes=$ac_dir
3775 rm -f conftest.err conftest.$ac_ext
3776 fi # $ac_x_includes = no
3778 if test "$ac_x_libraries" = no; then
3779 # Check for the libraries.
3780 # See if we find them without any special options.
3781 # Don't add to $LIBS permanently.
3784 cat >conftest.$ac_ext <<_ACEOF
3785 #line $LINENO "configure"
3786 #include "confdefs.h"
3787 @%:@include <X11/Intrinsic.h>
3788 #ifdef F77_DUMMY_MAIN
3792 int F77_DUMMY_MAIN() { return 1; }
3802 rm -f conftest.$ac_objext conftest$ac_exeext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804 (eval $ac_link) 2>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -s conftest$ac_exeext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3815 # We can link X programs with no special library path.
3818 echo "$as_me: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3821 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3823 # Don't even attempt the hair of trying to link an X program!
3824 for ac_extension in a so sl; do
3825 if test -r $ac_dir/libXt.$ac_extension; then
3826 ac_x_libraries=$ac_dir
3832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3833 fi # $ac_x_libraries = no
3835 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3836 # Didn't find X anywhere. Cache the known absence of X.
3837 ac_cv_have_x="have_x=no"
3839 # Record where we found X for the cache.
3840 ac_cv_have_x="have_x=yes \
3841 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3846 eval "$ac_cv_have_x"
3849 if test "$have_x" != yes; then
3850 echo "$as_me:$LINENO: result: $have_x" >&5
3851 echo "${ECHO_T}$have_x" >&6
3854 # If each of the values was on the command line, it overrides each guess.
3855 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3856 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3857 # Update the cache value to reflect the command line values.
3858 ac_cv_have_x="have_x=yes \
3859 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3860 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3861 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3864 if test "$no_x" = yes; then
3865 # Not all programs may use this symbol, but it does not hurt to define it.
3867 cat >>confdefs.h <<\_ACEOF
3868 @%:@define X_DISPLAY_MISSING 1
3871 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3873 if test -n "$x_includes"; then
3874 X_CFLAGS="$X_CFLAGS -I$x_includes"
3877 # It would also be nice to do this for all -L options, not just this one.
3878 if test -n "$x_libraries"; then
3879 X_LIBS="$X_LIBS -L$x_libraries"
3880 # For Solaris; some versions of Sun CC require a space after -R and
3881 # others require no space. Words are not sufficient . . . .
3882 case `(uname -sr) 2>/dev/null` in
3884 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3885 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3886 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3887 cat >conftest.$ac_ext <<_ACEOF
3888 #line $LINENO "configure"
3889 #include "confdefs.h"
3891 #ifdef F77_DUMMY_MAIN
3895 int F77_DUMMY_MAIN() { return 1; }
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3907 (eval $ac_link) 2>&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -s conftest$ac_exeext'
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3919 echo "$as_me: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3924 if test $ac_R_nospace = yes; then
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927 X_LIBS="$X_LIBS -R$x_libraries"
3929 LIBS="$ac_xsave_LIBS -R $x_libraries"
3930 cat >conftest.$ac_ext <<_ACEOF
3931 #line $LINENO "configure"
3932 #include "confdefs.h"
3934 #ifdef F77_DUMMY_MAIN
3938 int F77_DUMMY_MAIN() { return 1; }
3948 rm -f conftest.$ac_objext conftest$ac_exeext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3950 (eval $ac_link) 2>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -s conftest$ac_exeext'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3962 echo "$as_me: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3967 if test $ac_R_space = yes; then
3968 echo "$as_me:$LINENO: result: yes" >&5
3969 echo "${ECHO_T}yes" >&6
3970 X_LIBS="$X_LIBS -R $x_libraries"
3972 echo "$as_me:$LINENO: result: neither works" >&5
3973 echo "${ECHO_T}neither works" >&6
3980 # Check for system-dependent libraries X programs must link with.
3981 # Do this before checking for the system-independent R6 libraries
3982 # (-lICE), since we may need -lsocket or whatever for X linking.
3984 if test "$ISC" = yes; then
3985 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3987 # Martyn Johnson says this is needed for Ultrix, if the X
3988 # libraries were built with DECnet support. And Karl Berry says
3989 # the Alpha needs dnet_stub (dnet does not exist).
3990 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3991 cat >conftest.$ac_ext <<_ACEOF
3992 #line $LINENO "configure"
3993 #include "confdefs.h"
3995 /* Override any gcc2 internal prototype to avoid an error. */
3999 /* We use char because int might match the return type of a gcc2
4000 builtin and then its argument prototype would still apply. */
4001 char XOpenDisplay ();
4002 #ifdef F77_DUMMY_MAIN
4006 int F77_DUMMY_MAIN() { return 1; }
4016 rm -f conftest.$ac_objext conftest$ac_exeext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4018 (eval $ac_link) 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -s conftest$ac_exeext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4030 echo "$as_me: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4033 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4034 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 ac_check_lib_save_LIBS=$LIBS
4039 cat >conftest.$ac_ext <<_ACEOF
4040 #line $LINENO "configure"
4041 #include "confdefs.h"
4043 /* Override any gcc2 internal prototype to avoid an error. */
4047 /* We use char because int might match the return type of a gcc2
4048 builtin and then its argument prototype would still apply. */
4050 #ifdef F77_DUMMY_MAIN
4054 int F77_DUMMY_MAIN() { return 1; }
4064 rm -f conftest.$ac_objext conftest$ac_exeext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4066 (eval $ac_link) 2>&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -s conftest$ac_exeext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_cv_lib_dnet_dnet_ntoa=yes
4078 echo "$as_me: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4080 ac_cv_lib_dnet_dnet_ntoa=no
4082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4083 LIBS=$ac_check_lib_save_LIBS
4085 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4086 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4087 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4088 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4091 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4092 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4093 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4094 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 ac_check_lib_save_LIBS=$LIBS
4098 LIBS="-ldnet_stub $LIBS"
4099 cat >conftest.$ac_ext <<_ACEOF
4100 #line $LINENO "configure"
4101 #include "confdefs.h"
4103 /* Override any gcc2 internal prototype to avoid an error. */
4107 /* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4110 #ifdef F77_DUMMY_MAIN
4114 int F77_DUMMY_MAIN() { return 1; }
4124 rm -f conftest.$ac_objext conftest$ac_exeext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4126 (eval $ac_link) 2>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -s conftest$ac_exeext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4138 echo "$as_me: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4140 ac_cv_lib_dnet_stub_dnet_ntoa=no
4142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4143 LIBS=$ac_check_lib_save_LIBS
4145 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4146 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4147 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4148 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4154 LIBS="$ac_xsave_LIBS"
4156 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4157 # to get the SysV transport functions.
4158 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4160 # The nsl library prevents programs from opening the X display
4161 # on Irix 5.2, according to T.E. Dickey.
4162 # The functions gethostbyname, getservbyname, and inet_addr are
4163 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4164 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4165 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4166 if test "${ac_cv_func_gethostbyname+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 cat >conftest.$ac_ext <<_ACEOF
4170 #line $LINENO "configure"
4171 #include "confdefs.h"
4172 /* System header to define __stub macros and hopefully few prototypes,
4173 which can conflict with char gethostbyname (); below. */
4175 /* Override any gcc2 internal prototype to avoid an error. */
4179 /* We use char because int might match the return type of a gcc2
4180 builtin and then its argument prototype would still apply. */
4181 char gethostbyname ();
4184 #ifdef F77_DUMMY_MAIN
4188 int F77_DUMMY_MAIN() { return 1; }
4193 /* The GNU C library defines this for functions which it implements
4194 to always fail with ENOSYS. Some functions are actually named
4195 something starting with __ and the normal name is an alias. */
4196 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4206 rm -f conftest.$ac_objext conftest$ac_exeext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4208 (eval $ac_link) 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest$ac_exeext'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 ac_cv_func_gethostbyname=yes
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 ac_cv_func_gethostbyname=no
4224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4226 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4227 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4229 if test $ac_cv_func_gethostbyname = no; then
4230 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4231 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4232 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 ac_check_lib_save_LIBS=$LIBS
4237 cat >conftest.$ac_ext <<_ACEOF
4238 #line $LINENO "configure"
4239 #include "confdefs.h"
4241 /* Override any gcc2 internal prototype to avoid an error. */
4245 /* We use char because int might match the return type of a gcc2
4246 builtin and then its argument prototype would still apply. */
4247 char gethostbyname ();
4248 #ifdef F77_DUMMY_MAIN
4252 int F77_DUMMY_MAIN() { return 1; }
4262 rm -f conftest.$ac_objext conftest$ac_exeext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264 (eval $ac_link) 2>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -s conftest$ac_exeext'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 ac_cv_lib_nsl_gethostbyname=yes
4276 echo "$as_me: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4278 ac_cv_lib_nsl_gethostbyname=no
4280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4281 LIBS=$ac_check_lib_save_LIBS
4283 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4284 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4285 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4286 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4289 if test $ac_cv_lib_nsl_gethostbyname = no; then
4290 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4291 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4292 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_check_lib_save_LIBS=$LIBS
4297 cat >conftest.$ac_ext <<_ACEOF
4298 #line $LINENO "configure"
4299 #include "confdefs.h"
4301 /* Override any gcc2 internal prototype to avoid an error. */
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4307 char gethostbyname ();
4308 #ifdef F77_DUMMY_MAIN
4312 int F77_DUMMY_MAIN() { return 1; }
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324 (eval $ac_link) 2>&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try='test -s conftest$ac_exeext'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 ac_cv_lib_bsd_gethostbyname=yes
4336 echo "$as_me: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4338 ac_cv_lib_bsd_gethostbyname=no
4340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4341 LIBS=$ac_check_lib_save_LIBS
4343 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4344 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4345 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4352 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4353 # socket/setsockopt and other routines are undefined under SCO ODT
4354 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4355 # on later versions), says Simon Leinen: it contains gethostby*
4356 # variants that don't use the nameserver (or something). -lsocket
4357 # must be given before -lnsl if both are needed. We assume that
4358 # if connect needs -lnsl, so does gethostbyname.
4359 echo "$as_me:$LINENO: checking for connect" >&5
4360 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4361 if test "${ac_cv_func_connect+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4365 #line $LINENO "configure"
4366 #include "confdefs.h"
4367 /* System header to define __stub macros and hopefully few prototypes,
4368 which can conflict with char connect (); below. */
4370 /* Override any gcc2 internal prototype to avoid an error. */
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4379 #ifdef F77_DUMMY_MAIN
4383 int F77_DUMMY_MAIN() { return 1; }
4388 /* The GNU C library defines this for functions which it implements
4389 to always fail with ENOSYS. Some functions are actually named
4390 something starting with __ and the normal name is an alias. */
4391 #if defined (__stub_connect) || defined (__stub___connect)
4401 rm -f conftest.$ac_objext conftest$ac_exeext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4403 (eval $ac_link) 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -s conftest$ac_exeext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 ac_cv_func_connect=yes
4415 echo "$as_me: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4417 ac_cv_func_connect=no
4419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4421 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4422 echo "${ECHO_T}$ac_cv_func_connect" >&6
4424 if test $ac_cv_func_connect = no; then
4425 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4426 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4427 if test "${ac_cv_lib_socket_connect+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 ac_check_lib_save_LIBS=$LIBS
4431 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4432 cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4434 #include "confdefs.h"
4436 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4443 #ifdef F77_DUMMY_MAIN
4447 int F77_DUMMY_MAIN() { return 1; }
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -s conftest$ac_exeext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_cv_lib_socket_connect=yes
4471 echo "$as_me: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 ac_cv_lib_socket_connect=no
4475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4476 LIBS=$ac_check_lib_save_LIBS
4478 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4479 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4480 if test $ac_cv_lib_socket_connect = yes; then
4481 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4486 # Guillermo Gomez says -lposix is necessary on A/UX.
4487 echo "$as_me:$LINENO: checking for remove" >&5
4488 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4489 if test "${ac_cv_func_remove+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 cat >conftest.$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4494 #include "confdefs.h"
4495 /* System header to define __stub macros and hopefully few prototypes,
4496 which can conflict with char remove (); below. */
4498 /* Override any gcc2 internal prototype to avoid an error. */
4502 /* We use char because int might match the return type of a gcc2
4503 builtin and then its argument prototype would still apply. */
4507 #ifdef F77_DUMMY_MAIN
4511 int F77_DUMMY_MAIN() { return 1; }
4516 /* The GNU C library defines this for functions which it implements
4517 to always fail with ENOSYS. Some functions are actually named
4518 something starting with __ and the normal name is an alias. */
4519 #if defined (__stub_remove) || defined (__stub___remove)
4529 rm -f conftest.$ac_objext conftest$ac_exeext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4531 (eval $ac_link) 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -s conftest$ac_exeext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_cv_func_remove=yes
4543 echo "$as_me: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4545 ac_cv_func_remove=no
4547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4549 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4550 echo "${ECHO_T}$ac_cv_func_remove" >&6
4552 if test $ac_cv_func_remove = no; then
4553 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4554 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4555 if test "${ac_cv_lib_posix_remove+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 ac_check_lib_save_LIBS=$LIBS
4559 LIBS="-lposix $LIBS"
4560 cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4562 #include "confdefs.h"
4564 /* Override any gcc2 internal prototype to avoid an error. */
4568 /* We use char because int might match the return type of a gcc2
4569 builtin and then its argument prototype would still apply. */
4571 #ifdef F77_DUMMY_MAIN
4575 int F77_DUMMY_MAIN() { return 1; }
4585 rm -f conftest.$ac_objext conftest$ac_exeext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4587 (eval $ac_link) 2>&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -s conftest$ac_exeext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_lib_posix_remove=yes
4599 echo "$as_me: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4601 ac_cv_lib_posix_remove=no
4603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4604 LIBS=$ac_check_lib_save_LIBS
4606 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4607 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4608 if test $ac_cv_lib_posix_remove = yes; then
4609 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4614 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4615 echo "$as_me:$LINENO: checking for shmat" >&5
4616 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4617 if test "${ac_cv_func_shmat+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 cat >conftest.$ac_ext <<_ACEOF
4621 #line $LINENO "configure"
4622 #include "confdefs.h"
4623 /* System header to define __stub macros and hopefully few prototypes,
4624 which can conflict with char shmat (); below. */
4626 /* Override any gcc2 internal prototype to avoid an error. */
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4635 #ifdef F77_DUMMY_MAIN
4639 int F77_DUMMY_MAIN() { return 1; }
4644 /* The GNU C library defines this for functions which it implements
4645 to always fail with ENOSYS. Some functions are actually named
4646 something starting with __ and the normal name is an alias. */
4647 #if defined (__stub_shmat) || defined (__stub___shmat)
4657 rm -f conftest.$ac_objext conftest$ac_exeext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659 (eval $ac_link) 2>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -s conftest$ac_exeext'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4669 ac_cv_func_shmat=yes
4671 echo "$as_me: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4677 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4678 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4680 if test $ac_cv_func_shmat = no; then
4681 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4682 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4683 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 ac_check_lib_save_LIBS=$LIBS
4688 cat >conftest.$ac_ext <<_ACEOF
4689 #line $LINENO "configure"
4690 #include "confdefs.h"
4692 /* Override any gcc2 internal prototype to avoid an error. */
4696 /* We use char because int might match the return type of a gcc2
4697 builtin and then its argument prototype would still apply. */
4699 #ifdef F77_DUMMY_MAIN
4703 int F77_DUMMY_MAIN() { return 1; }
4713 rm -f conftest.$ac_objext conftest$ac_exeext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4715 (eval $ac_link) 2>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -s conftest$ac_exeext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_cv_lib_ipc_shmat=yes
4727 echo "$as_me: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4729 ac_cv_lib_ipc_shmat=no
4731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4732 LIBS=$ac_check_lib_save_LIBS
4734 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4735 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4736 if test $ac_cv_lib_ipc_shmat = yes; then
4737 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4743 # Check for libraries that X11R6 Xt/Xaw programs need.
4744 ac_save_LDFLAGS=$LDFLAGS
4745 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4746 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4747 # check for ICE first), but we must link in the order -lSM -lICE or
4748 # we get undefined symbols. So assume we have SM if we have ICE.
4749 # These have to be linked with before -lX11, unlike the other
4750 # libraries we check for below, so use a different variable.
4751 # John Interrante, Karl Berry
4752 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4753 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4754 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 ac_check_lib_save_LIBS=$LIBS
4758 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4759 cat >conftest.$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4761 #include "confdefs.h"
4763 /* Override any gcc2 internal prototype to avoid an error. */
4767 /* We use char because int might match the return type of a gcc2
4768 builtin and then its argument prototype would still apply. */
4769 char IceConnectionNumber ();
4770 #ifdef F77_DUMMY_MAIN
4774 int F77_DUMMY_MAIN() { return 1; }
4779 IceConnectionNumber ();
4784 rm -f conftest.$ac_objext conftest$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -s conftest$ac_exeext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_cv_lib_ICE_IceConnectionNumber=yes
4798 echo "$as_me: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 ac_cv_lib_ICE_IceConnectionNumber=no
4802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4803 LIBS=$ac_check_lib_save_LIBS
4805 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4806 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4807 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4808 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4811 LDFLAGS=$ac_save_LDFLAGS
4816 test x$no_x = "xyes" && { { echo "$as_me:$LINENO: error: Openbox requires the X Window System libraries and headers." >&5
4817 echo "$as_me: error: Openbox requires the X Window System libraries and headers." >&2;}
4818 { (exit 1); exit 1; }; }
4820 test x$x_includes = "x" && x_includes="/usr/include"
4821 test x$x_libraries = "x" && x_libraries="/usr/lib"
4823 CFLAGS="$CFLAGS $X_CFLAGS"
4824 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
4825 LIBS="$LIBS $X_LIBS"
4826 LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
4828 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
4829 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
4830 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 ac_check_lib_save_LIBS=$LIBS
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4837 #include "confdefs.h"
4839 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4845 char XOpenDisplay ();
4846 #ifdef F77_DUMMY_MAIN
4850 int F77_DUMMY_MAIN() { return 1; }
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862 (eval $ac_link) 2>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_lib_X11_XOpenDisplay=yes
4874 echo "$as_me: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 ac_cv_lib_X11_XOpenDisplay=no
4878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4879 LIBS=$ac_check_lib_save_LIBS
4881 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
4882 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
4883 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
4886 { { echo "$as_me:$LINENO: error: Could not find XOpenDisplay in -lX11." >&5
4887 echo "$as_me: error: Could not find XOpenDisplay in -lX11." >&2;}
4888 { (exit 1); exit 1; }; }
4893 LIBS="$LIBS $X_EXTRA_LIBS"
4898 echo "$as_me:$LINENO: checking whether to build support for the XShape extension" >&5
4899 echo $ECHO_N "checking whether to build support for the XShape extension... $ECHO_C" >&6
4900 # Check whether --enable-shape or --disable-shape was given.
4901 if test "${enable_shape+set}" = set; then
4902 enableval="$enable_shape"
4906 : ${enableval="yes"}
4907 if test x$enableval = "xyes"; then
4908 echo "$as_me:$LINENO: result: yes" >&5
4909 echo "${ECHO_T}yes" >&6
4910 echo "$as_me:$LINENO: checking for XShapeCombineShape in -lXext" >&5
4911 echo $ECHO_N "checking for XShapeCombineShape in -lXext... $ECHO_C" >&6
4912 if test "${ac_cv_lib_Xext_XShapeCombineShape+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 ac_check_lib_save_LIBS=$LIBS
4917 cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4919 #include "confdefs.h"
4921 /* Override any gcc2 internal prototype to avoid an error. */
4925 /* We use char because int might match the return type of a gcc2
4926 builtin and then its argument prototype would still apply. */
4927 char XShapeCombineShape ();
4928 #ifdef F77_DUMMY_MAIN
4932 int F77_DUMMY_MAIN() { return 1; }
4937 XShapeCombineShape ();
4942 rm -f conftest.$ac_objext conftest$ac_exeext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4944 (eval $ac_link) 2>&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -s conftest$ac_exeext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 ac_cv_lib_Xext_XShapeCombineShape=yes
4956 echo "$as_me: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4958 ac_cv_lib_Xext_XShapeCombineShape=no
4960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4961 LIBS=$ac_check_lib_save_LIBS
4963 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
4964 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineShape" >&6
4965 if test $ac_cv_lib_Xext_XShapeCombineShape = yes; then
4966 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
4967 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
4968 cat >conftest.$ac_ext <<_ACEOF
4969 #line $LINENO "configure"
4970 #include "confdefs.h"
4971 #include <X11/Xlib.h>
4972 #include <X11/Xutil.h>
4973 #include <X11/extensions/shape.h>
4975 #ifdef F77_DUMMY_MAIN
4979 int F77_DUMMY_MAIN() { return 1; }
4989 rm -f conftest.$ac_objext conftest$ac_exeext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4991 (eval $ac_link) 2>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -s conftest$ac_exeext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 echo "$as_me:$LINENO: result: yes" >&5
5002 echo "${ECHO_T}yes" >&6
5003 SHAPE="-DSHAPE"; Xext_lib="-lXext"
5005 echo "$as_me: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6
5011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5016 echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5021 LIBS="$LIBS $Xext_lib"
5024 echo "$as_me:$LINENO: checking whether to include the Slit" >&5
5025 echo $ECHO_N "checking whether to include the Slit... $ECHO_C" >&6
5026 # Check whether --enable-slit or --disable-slit was given.
5027 if test "${enable_slit+set}" = set; then
5028 enableval="$enable_slit"
5029 if test x$enableval = "xyes"; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031 echo "${ECHO_T}yes" >&6
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5038 echo "$as_me:$LINENO: result: yes" >&5
5039 echo "${ECHO_T}yes" >&6
5046 echo "$as_me:$LINENO: checking whether to include the new WM Spec (DOES NOTHING)" >&5
5047 echo $ECHO_N "checking whether to include the new WM Spec (DOES NOTHING)... $ECHO_C" >&6
5048 # Check whether --enable-newspec or --disable-newspec was given.
5049 if test "${enable_newspec+set}" = set; then
5050 enableval="$enable_newspec"
5051 if test x$enableval = "xyes"; then
5052 echo "$as_me:$LINENO: result: yes" >&5
5053 echo "${ECHO_T}yes" >&6
5054 NEWWMSPEC="-DNEWWMSPEC"
5056 echo "$as_me:$LINENO: result: no" >&5
5057 echo "${ECHO_T}no" >&6
5060 echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5068 echo "$as_me:$LINENO: checking whether to include interlacing image code" >&5
5069 echo $ECHO_N "checking whether to include interlacing image code... $ECHO_C" >&6
5070 # Check whether --enable-interlace or --disable-interlace was given.
5071 if test "${enable_interlace+set}" = set; then
5072 enableval="$enable_interlace"
5073 if test x$enableval = "xyes"; then
5074 echo "$as_me:$LINENO: result: yes" >&5
5075 echo "${ECHO_T}yes" >&6
5076 INTERLACE="-DINTERLACE"
5078 echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5082 echo "$as_me:$LINENO: result: yes" >&5
5083 echo "${ECHO_T}yes" >&6
5084 INTERLACE="-DINTERLACE"
5090 echo "$as_me:$LINENO: checking whether to include Pseudocolor ordered dithering code" >&5
5091 echo $ECHO_N "checking whether to include Pseudocolor ordered dithering code... $ECHO_C" >&6
5092 # Check whether --enable-ordered-pseudo or --disable-ordered-pseudo was given.
5093 if test "${enable_ordered_pseudo+set}" = set; then
5094 enableval="$enable_ordered_pseudo"
5095 if test x$enableval = "xyes"; then
5096 echo "$as_me:$LINENO: result: yes" >&5
5097 echo "${ECHO_T}yes" >&6
5098 ORDEREDPSEUDO="-DORDEREDPSEUDO"
5100 echo "$as_me:$LINENO: result: no" >&5
5101 echo "${ECHO_T}no" >&6
5104 echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6
5111 echo "$as_me:$LINENO: checking whether to intercept mouse events to clients" >&5
5112 echo $ECHO_N "checking whether to intercept mouse events to clients... $ECHO_C" >&6
5113 # Check whether --enable-clobber or --disable-clobber was given.
5114 if test "${enable_clobber+set}" = set; then
5115 enableval="$enable_clobber"
5116 if test x$enableval = "xno"; then
5117 echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5119 CLOBBER="-DNOCLOBBER"
5121 echo "$as_me:$LINENO: result: yes" >&5
5122 echo "${ECHO_T}yes" >&6
5125 echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5132 echo "$as_me:$LINENO: checking whether to include verbose debugging code" >&5
5133 echo $ECHO_N "checking whether to include verbose debugging code... $ECHO_C" >&6
5134 # Check whether --enable-debug or --disable-debug was given.
5135 if test "${enable_debug+set}" = set; then
5136 enableval="$enable_debug"
5137 if test x$enableval = "xyes"; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139 echo "${ECHO_T}yes" >&6
5142 echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6
5146 echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6
5153 echo "$as_me:$LINENO: checking whether to include NLS support" >&5
5154 echo $ECHO_N "checking whether to include NLS support... $ECHO_C" >&6
5155 # Check whether --enable-nls or --disable-nls was given.
5156 if test "${enable_nls+set}" = set; then
5157 enableval="$enable_nls"
5158 if test x$enableval = "xyes"; then
5159 echo "$as_me:$LINENO: result: yes" >&5
5160 echo "${ECHO_T}yes" >&6
5163 echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6
5167 echo "$as_me:$LINENO: result: yes" >&5
5168 echo "${ECHO_T}yes" >&6
5174 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
5175 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
5176 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 ac_check_lib_save_LIBS=$LIBS
5181 cat >conftest.$ac_ext <<_ACEOF
5182 #line $LINENO "configure"
5183 #include "confdefs.h"
5185 /* Override any gcc2 internal prototype to avoid an error. */
5189 /* We use char because int might match the return type of a gcc2
5190 builtin and then its argument prototype would still apply. */
5192 #ifdef F77_DUMMY_MAIN
5196 int F77_DUMMY_MAIN() { return 1; }
5206 rm -f conftest.$ac_objext conftest$ac_exeext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208 (eval $ac_link) 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -s conftest$ac_exeext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_cv_lib_xpg4_setlocale=yes
5220 echo "$as_me: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5222 ac_cv_lib_xpg4_setlocale=no
5224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5225 LIBS=$ac_check_lib_save_LIBS
5227 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
5228 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
5229 if test $ac_cv_lib_xpg4_setlocale = yes; then
5234 for ac_prog in gencat
5236 # Extract the first word of "$ac_prog", so it can be a program name with args.
5237 set dummy $ac_prog; ac_word=$2
5238 echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5240 if test "${ac_cv_prog_gencat_cmd+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 if test -n "$gencat_cmd"; then
5244 ac_cv_prog_gencat_cmd="$gencat_cmd" # Let the user override the test.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_gencat_cmd="$ac_prog"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 gencat_cmd=$ac_cv_prog_gencat_cmd
5263 if test -n "$gencat_cmd"; then
5264 echo "$as_me:$LINENO: result: $gencat_cmd" >&5
5265 echo "${ECHO_T}$gencat_cmd" >&6
5267 echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5271 test -n "$gencat_cmd" && break
5274 if test x$gencat_cmd = "x"; then
5280 echo "$as_me:$LINENO: checking whether to use the new timed pixmap cache" >&5
5281 echo $ECHO_N "checking whether to use the new timed pixmap cache... $ECHO_C" >&6
5282 # Check whether --enable-timed-cache or --disable-timed-cache was given.
5283 if test "${enable_timed_cache+set}" = set; then
5284 enableval="$enable_timed_cache"
5285 if test x$enableval = "xyes"; then
5286 echo "$as_me:$LINENO: result: yes" >&5
5287 echo "${ECHO_T}yes" >&6
5288 TIMEDCACHE="-DTIMEDCACHE"
5290 echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5294 echo "$as_me:$LINENO: result: yes" >&5
5295 echo "${ECHO_T}yes" >&6
5296 TIMEDCACHE="-DTIMEDCACHE"
5301 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5302 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5303 if test "${ac_cv_type_signal+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 cat >conftest.$ac_ext <<_ACEOF
5307 #line $LINENO "configure"
5308 #include "confdefs.h"
5309 #include <sys/types.h>
5315 extern "C" void (*signal (int, void (*)(int)))(int);
5317 void (*signal ()) ();
5320 #ifdef F77_DUMMY_MAIN
5324 int F77_DUMMY_MAIN() { return 1; }
5334 rm -f conftest.$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336 (eval $ac_compile) 2>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_cv_type_signal=void
5348 echo "$as_me: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5350 ac_cv_type_signal=int
5352 rm -f conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5355 echo "${ECHO_T}$ac_cv_type_signal" >&6
5357 cat >>confdefs.h <<_ACEOF
5358 @%:@define RETSIGTYPE $ac_cv_type_signal
5363 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5364 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5365 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5366 if test "${enable_maintainer_mode+set}" = set; then
5367 enableval="$enable_maintainer_mode"
5368 USE_MAINTAINER_MODE=$enableval
5370 USE_MAINTAINER_MODE=no
5372 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5373 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5376 if test $USE_MAINTAINER_MODE = yes; then
5377 MAINTAINER_MODE_TRUE=
5378 MAINTAINER_MODE_FALSE='#'
5380 MAINTAINER_MODE_TRUE='#'
5381 MAINTAINER_MODE_FALSE=
5383 MAINT=$MAINTAINER_MODE_TRUE
5387 echo "$as_me:$LINENO: result: " >&5
5388 echo "${ECHO_T}" >&6
5389 echo "$as_me:$LINENO: result: $PACKAGE version $VERSION configured successfully." >&5
5390 echo "${ECHO_T} $PACKAGE version $VERSION configured successfully." >&6
5391 echo "$as_me:$LINENO: result: " >&5
5392 echo "${ECHO_T}" >&6
5393 echo "$as_me:$LINENO: result: Using '$prefix' for installation." >&5
5394 echo "${ECHO_T}Using '$prefix' for installation." >&6
5395 echo "$as_me:$LINENO: result: Using '$CXX' for C++ compiler." >&5
5396 echo "${ECHO_T}Using '$CXX' for C++ compiler." >&6
5397 echo "$as_me:$LINENO: result: Building with '$CXXFLAGS' for C++ compiler flags." >&5
5398 echo "${ECHO_T}Building with '$CXXFLAGS' for C++ compiler flags." >&6
5399 echo "$as_me:$LINENO: result: Building with '$LIBS' for linker flags." >&5
5400 echo "${ECHO_T}Building with '$LIBS' for linker flags." >&6
5401 echo "$as_me:$LINENO: result: " >&5
5402 echo "${ECHO_T}" >&6
5405 ac_config_headers="$ac_config_headers config.h"
5407 ac_config_commands="$ac_config_commands default-1"
5409 ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile data/Makefile data/styles/Makefile doc/Makefile nls/Makefile nls/C/Makefile nls/da_DK/Makefile nls/de_DE/Makefile nls/es_ES/Makefile nls/et_EE/Makefile nls/fr_FR/Makefile nls/it_IT/Makefile nls/ja_JP/Makefile nls/nl_NL/Makefile nls/pt_BR/Makefile nls/ru_RU/Makefile nls/sl_SI/Makefile nls/sv_SE/Makefile nls/tr_TR/Makefile nls/zh_CN/Makefile version.h"
5410 cat >confcache <<\_ACEOF
5411 # This file is a shell script that caches the results of configure
5412 # tests run on this system so they can be shared between configure
5413 # scripts and configure runs, see configure's option --config-cache.
5414 # It is not useful on other systems. If it contains results you don't
5415 # want to keep, you may remove or edit it.
5417 # config.status only pays attention to the cache file if you give it
5418 # the --recheck option to rerun configure.
5420 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5426 # The following way of writing the cache mishandles newlines in values,
5427 # but we know of no workaround that is simple, portable, and efficient.
5428 # So, don't put newlines in cache variables' values.
5429 # Ultrix sh set writes to stderr and can't be redirected directly,
5430 # and sets the high bit in the cache file unless we assign to the vars.
5433 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5435 # `set' does not quote correctly, so add quotes (double-quote
5436 # substitution turns \\\\ into \\, and sed turns \\ into \).
5439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5442 # `set' quotes correctly as required by POSIX, so do not add quotes.
5444 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5451 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5453 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5455 if cmp -s $cache_file confcache; then :; else
5456 if test -w $cache_file; then
5457 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5458 cat confcache >$cache_file
5460 echo "not updating unwritable cache $cache_file"
5465 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5466 # Let make expand exec_prefix.
5467 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5469 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5470 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5471 # trailing colons and then remove the whole line if VPATH becomes empty
5472 # (actually we leave an empty line to preserve line numbers).
5473 if test "x$srcdir" = x.; then
5474 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5475 s/:*\$(srcdir):*/:/;
5476 s/:*\${srcdir}:*/:/;
5478 s/^\([^=]*=[ ]*\):*/\1/;
5484 DEFS=-DHAVE_CONFIG_H
5487 : ${CONFIG_STATUS=./config.status}
5488 ac_clean_files_save=$ac_clean_files
5489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5492 cat >$CONFIG_STATUS <<_ACEOF
5494 # Generated by $as_me.
5495 # Run this file to recreate the current configuration.
5496 # Compiler output produced by configure, useful for debugging
5497 # configure, is in config.log if it exists.
5500 SHELL=\${CONFIG_SHELL-$SHELL}
5503 cat >>$CONFIG_STATUS <<\_ACEOF
5505 ## --------------------- ##
5506 ## M4sh Initialization. ##
5507 ## --------------------- ##
5509 # Be Bourne compatible
5510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5513 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5518 # Support unset when possible.
5519 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5525 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5526 { $as_unset LANG || test "${LANG+set}" != set; } ||
5527 { LANG=C; export LANG; }
5528 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5529 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5530 { LC_ALL=C; export LC_ALL; }
5531 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5532 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5533 { LC_TIME=C; export LC_TIME; }
5534 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5535 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5536 { LC_CTYPE=C; export LC_CTYPE; }
5537 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5538 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5539 { LANGUAGE=C; export LANGUAGE; }
5540 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5541 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5542 { LC_COLLATE=C; export LC_COLLATE; }
5543 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5544 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5545 { LC_NUMERIC=C; export LC_NUMERIC; }
5546 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5547 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5548 { LC_MESSAGES=C; export LC_MESSAGES; }
5551 # Name of the executable.
5552 as_me=`(basename "$0") 2>/dev/null ||
5553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5554 X"$0" : 'X\(//\)$' \| \
5555 X"$0" : 'X\(/\)$' \| \
5556 . : '\(.\)' 2>/dev/null ||
5558 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5559 /^X\/\(\/\/\)$/{ s//\1/; q; }
5560 /^X\/\(\/\).*/{ s//\1/; q; }
5563 # PATH needs CR, and LINENO needs CR and PATH.
5564 # Avoid depending upon Character Ranges.
5565 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5566 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5567 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5568 as_cr_digits='0123456789'
5569 as_cr_alnum=$as_cr_Letters$as_cr_digits
5571 # The user is always right.
5572 if test "${PATH_SEPARATOR+set}" != set; then
5573 echo "#! /bin/sh" >conftest.sh
5574 echo "exit 0" >>conftest.sh
5575 chmod +x conftest.sh
5576 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
5587 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5588 test "x$as_lineno_1" != "x$as_lineno_2" &&
5589 test "x$as_lineno_3" = "x$as_lineno_2" || {
5590 # Find who we are. Look in the path if we contain no path at all
5593 *[\\/]* ) as_myself=$0 ;;
5594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir=.
5599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5604 # We did not find ourselves, most probably we were run as `sh COMMAND'
5605 # in which case we are not to be found in the path.
5606 if test "x$as_myself" = x; then
5609 if test ! -f "$as_myself"; then
5610 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5611 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5612 { (exit 1); exit 1; }; }
5614 case $CONFIG_SHELL in
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5620 test -z "$as_dir" && as_dir=.
5621 for as_base in sh bash ksh sh5; do
5624 if ("$as_dir/$as_base" -c '
5627 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5628 test "x$as_lineno_1" != "x$as_lineno_2" &&
5629 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5630 CONFIG_SHELL=$as_dir/$as_base
5632 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5640 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5641 # uniformly replaced by the line number. The first 'sed' inserts a
5642 # line-number line before each line; the second 'sed' does the real
5643 # work. The second script uses 'N' to pair each line-number line
5644 # with the numbered line, and appends trailing '-' during
5645 # substitution so that $LINENO is not a special case at line end.
5646 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5647 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5648 sed '=' <$as_myself |
5653 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5656 s,^['$as_cr_digits']*\n,,
5658 chmod +x $as_me.lineno ||
5659 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5660 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5661 { (exit 1); exit 1; }; }
5663 # Don't try to exec as it changes $[0], causing all sort of problems
5664 # (the dirname of $[0] is not the place where we might find the
5665 # original and so on. Autoconf is especially sensible to this).
5667 # Exit status is that of the last command.
5672 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5673 *c*,-n*) ECHO_N= ECHO_C='
5675 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5676 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5679 if expr a : '\(a\)' >/dev/null 2>&1; then
5685 rm -f conf$$ conf$$.exe conf$$.file
5687 if ln -s conf$$.file conf$$ 2>/dev/null; then
5688 # We could just check for DJGPP; but this test a) works b) is more generic
5689 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5690 if test -f conf$$.exe; then
5691 # Don't use ln at all; we don't have any links
5696 elif ln conf$$.file conf$$ 2>/dev/null; then
5701 rm -f conf$$ conf$$.exe conf$$.file
5703 as_executable_p="test -f"
5705 # Sed expression to map a string onto a valid CPP name.
5706 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5708 # Sed expression to map a string onto a valid variable name.
5709 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5713 # We need space, tab and new line, in precisely that order.
5719 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
5723 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5724 # report actual input values of CONFIG_FILES etc. instead of their
5725 # values after options handling. Logging --version etc. is OK.
5729 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
5730 @%:@@%:@ Running $as_me. @%:@@%:@
5735 This file was extended by $as_me, which was
5736 generated by GNU Autoconf 2.53. Invocation command line was
5738 CONFIG_FILES = $CONFIG_FILES
5739 CONFIG_HEADERS = $CONFIG_HEADERS
5740 CONFIG_LINKS = $CONFIG_LINKS
5741 CONFIG_COMMANDS = $CONFIG_COMMANDS
5745 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5749 # Files that config.status was made for.
5750 if test -n "$ac_config_files"; then
5751 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5754 if test -n "$ac_config_headers"; then
5755 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5758 if test -n "$ac_config_links"; then
5759 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5762 if test -n "$ac_config_commands"; then
5763 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5766 cat >>$CONFIG_STATUS <<\_ACEOF
5769 \`$as_me' instantiates files from templates according to the
5770 current configuration.
5772 Usage: $0 [OPTIONS] [FILE]...
5774 -h, --help print this help, then exit
5775 -V, --version print version number, then exit
5776 -d, --debug don't remove temporary files
5777 --recheck update $as_me by reconfiguring in the same conditions
5778 --file=FILE[:TEMPLATE]
5779 instantiate the configuration file FILE
5780 --header=FILE[:TEMPLATE]
5781 instantiate the configuration header FILE
5783 Configuration files:
5786 Configuration headers:
5789 Configuration commands:
5792 Report bugs to <bug-autoconf@gnu.org>."
5795 cat >>$CONFIG_STATUS <<_ACEOF
5798 configured by $0, generated by GNU Autoconf 2.53,
5799 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5801 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5802 Free Software Foundation, Inc.
5803 This config.status script is free software; the Free Software Foundation
5804 gives unlimited permission to copy, distribute and modify it."
5809 cat >>$CONFIG_STATUS <<\_ACEOF
5810 # If no file are specified by the user, then we need to provide default
5811 # value. By we need to know if files were specified by the user.
5817 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5818 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5820 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5824 *) # This is not an option, so the user has probably given explicit
5826 ac_need_defaults=false;;
5830 # Handling of the options.
5832 cat >>$CONFIG_STATUS <<_ACEOF
5833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5834 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5835 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5837 cat >>$CONFIG_STATUS <<\_ACEOF
5838 --version | --vers* | -V )
5839 echo "$ac_cs_version"; exit 0 ;;
5841 # Conflict between --help and --header
5842 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5843 Try \`$0 --help' for more information." >&5
5844 echo "$as_me: error: ambiguous option: $1
5845 Try \`$0 --help' for more information." >&2;}
5846 { (exit 1); exit 1; }; };;
5847 --help | --hel | -h )
5848 echo "$ac_cs_usage"; exit 0 ;;
5849 --debug | --d* | -d )
5851 --file | --fil | --fi | --f )
5853 CONFIG_FILES="$CONFIG_FILES $1"
5854 ac_need_defaults=false;;
5855 --header | --heade | --head | --hea )
5857 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5858 ac_need_defaults=false;;
5861 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5862 Try \`$0 --help' for more information." >&5
5863 echo "$as_me: error: unrecognized option: $1
5864 Try \`$0 --help' for more information." >&2;}
5865 { (exit 1); exit 1; }; } ;;
5867 *) ac_config_targets="$ac_config_targets $1" ;;
5875 cat >>$CONFIG_STATUS <<_ACEOF
5877 # INIT-COMMANDS section.
5886 cat >>$CONFIG_STATUS <<\_ACEOF
5887 for ac_config_target in $ac_config_targets
5889 case "$ac_config_target" in
5890 # Handling of arguments.
5891 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5892 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5893 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
5894 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
5895 "data/styles/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/styles/Makefile" ;;
5896 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5897 "nls/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
5898 "nls/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/C/Makefile" ;;
5899 "nls/da_DK/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/da_DK/Makefile" ;;
5900 "nls/de_DE/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/de_DE/Makefile" ;;
5901 "nls/es_ES/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/es_ES/Makefile" ;;
5902 "nls/et_EE/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/et_EE/Makefile" ;;
5903 "nls/fr_FR/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/fr_FR/Makefile" ;;
5904 "nls/it_IT/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/it_IT/Makefile" ;;
5905 "nls/ja_JP/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/ja_JP/Makefile" ;;
5906 "nls/nl_NL/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/nl_NL/Makefile" ;;
5907 "nls/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/pt_BR/Makefile" ;;
5908 "nls/ru_RU/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/ru_RU/Makefile" ;;
5909 "nls/sl_SI/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/sl_SI/Makefile" ;;
5910 "nls/sv_SE/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/sv_SE/Makefile" ;;
5911 "nls/tr_TR/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/tr_TR/Makefile" ;;
5912 "nls/zh_CN/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/zh_CN/Makefile" ;;
5913 "version.h" ) CONFIG_FILES="$CONFIG_FILES version.h" ;;
5914 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5915 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5916 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5917 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5918 { (exit 1); exit 1; }; };;
5922 # If the user did not use the arguments to specify the items to instantiate,
5923 # then the envvar interface is used. Set only those that are not.
5924 # We use the long form for the default assignment because of an extremely
5925 # bizarre bug on SunOS 4.1.3.
5926 if $ac_need_defaults; then
5927 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5928 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5929 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5932 # Create a temporary directory, and hook for its removal unless debugging.
5935 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5936 trap '{ (exit 1); exit 1; }' 1 2 13 15
5939 # Create a (secure) tmp directory for tmp files.
5942 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5943 test -n "$tmp" && test -d "$tmp"
5946 tmp=$TMPDIR/cs$$-$RANDOM
5947 (umask 077 && mkdir $tmp)
5950 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5951 { (exit 1); exit 1; }
5956 cat >>$CONFIG_STATUS <<_ACEOF
5959 # CONFIG_FILES section.
5962 # No need to generate the scripts if there are no CONFIG_FILES.
5963 # This happens for instance when ./config.status config.h
5964 if test -n "\$CONFIG_FILES"; then
5965 # Protect against being on the right side of a sed subst in config.status.
5966 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5967 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5968 s,@SHELL@,$SHELL,;t t
5969 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5970 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5971 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5972 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5973 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5974 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5975 s,@exec_prefix@,$exec_prefix,;t t
5976 s,@prefix@,$prefix,;t t
5977 s,@program_transform_name@,$program_transform_name,;t t
5978 s,@bindir@,$bindir,;t t
5979 s,@sbindir@,$sbindir,;t t
5980 s,@libexecdir@,$libexecdir,;t t
5981 s,@datadir@,$datadir,;t t
5982 s,@sysconfdir@,$sysconfdir,;t t
5983 s,@sharedstatedir@,$sharedstatedir,;t t
5984 s,@localstatedir@,$localstatedir,;t t
5985 s,@libdir@,$libdir,;t t
5986 s,@includedir@,$includedir,;t t
5987 s,@oldincludedir@,$oldincludedir,;t t
5988 s,@infodir@,$infodir,;t t
5989 s,@mandir@,$mandir,;t t
5990 s,@build_alias@,$build_alias,;t t
5991 s,@host_alias@,$host_alias,;t t
5992 s,@target_alias@,$target_alias,;t t
5994 s,@ECHO_C@,$ECHO_C,;t t
5995 s,@ECHO_N@,$ECHO_N,;t t
5996 s,@ECHO_T@,$ECHO_T,;t t
5998 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5999 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6000 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6001 s,@PACKAGE@,$PACKAGE,;t t
6002 s,@VERSION@,$VERSION,;t t
6003 s,@ACLOCAL@,$ACLOCAL,;t t
6004 s,@AUTOCONF@,$AUTOCONF,;t t
6005 s,@AUTOMAKE@,$AUTOMAKE,;t t
6006 s,@AUTOHEADER@,$AUTOHEADER,;t t
6007 s,@MAKEINFO@,$MAKEINFO,;t t
6008 s,@SET_MAKE@,$SET_MAKE,;t t
6010 s,@CFLAGS@,$CFLAGS,;t t
6011 s,@LDFLAGS@,$LDFLAGS,;t t
6012 s,@CPPFLAGS@,$CPPFLAGS,;t t
6013 s,@ac_ct_CC@,$ac_ct_CC,;t t
6014 s,@EXEEXT@,$EXEEXT,;t t
6015 s,@OBJEXT@,$OBJEXT,;t t
6017 s,@CXXFLAGS@,$CXXFLAGS,;t t
6018 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6019 s,@regex_cmd@,$regex_cmd,;t t
6021 s,@X_CFLAGS@,$X_CFLAGS,;t t
6022 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6023 s,@X_LIBS@,$X_LIBS,;t t
6024 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6025 s,@SHAPE@,$SHAPE,;t t
6027 s,@NEWWMSPEC@,$NEWWMSPEC,;t t
6028 s,@INTERLACE@,$INTERLACE,;t t
6029 s,@ORDEREDPSEUDO@,$ORDEREDPSEUDO,;t t
6030 s,@CLOBBER@,$CLOBBER,;t t
6031 s,@DEBUG@,$DEBUG,;t t
6033 s,@gencat_cmd@,$gencat_cmd,;t t
6034 s,@TIMEDCACHE@,$TIMEDCACHE,;t t
6035 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6036 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6037 s,@MAINT@,$MAINT,;t t
6042 cat >>$CONFIG_STATUS <<\_ACEOF
6043 # Split the substitutions into bite-sized pieces for seds with
6044 # small command number limits, like on Digital OSF/1 and HP-UX.
6046 ac_sed_frag=1 # Number of current file.
6047 ac_beg=1 # First line for current file.
6048 ac_end=$ac_max_sed_lines # Line after last line for current file.
6051 while $ac_more_lines; do
6052 if test $ac_beg -gt 1; then
6053 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6055 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6057 if test ! -s $tmp/subs.frag; then
6060 # The purpose of the label and of the branching condition is to
6061 # speed up the sed processing (if there are no `@' at all, there
6062 # is no need to browse any of the substitutions).
6063 # These are the two extra sed commands mentioned above.
6065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6066 if test -z "$ac_sed_cmds"; then
6067 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6069 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6071 ac_sed_frag=`expr $ac_sed_frag + 1`
6073 ac_end=`expr $ac_end + $ac_max_sed_lines`
6076 if test -z "$ac_sed_cmds"; then
6079 fi # test -n "$CONFIG_FILES"
6082 cat >>$CONFIG_STATUS <<\_ACEOF
6083 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6084 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6086 - | *:- | *:-:* ) # input from stdin
6088 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6089 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6090 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6092 * ) ac_file_in=$ac_file.in ;;
6095 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6096 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6098 X"$ac_file" : 'X\(//\)[^/]' \| \
6099 X"$ac_file" : 'X\(//\)$' \| \
6100 X"$ac_file" : 'X\(/\)' \| \
6101 . : '\(.\)' 2>/dev/null ||
6103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6105 /^X\(\/\/\)$/{ s//\1/; q; }
6106 /^X\(\/\).*/{ s//\1/; q; }
6109 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6113 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6114 case $as_mkdir_dir in
6115 # Skip DOS drivespec
6116 ?:) as_incr_dir=$as_mkdir_dir ;;
6118 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6119 test -d "$as_incr_dir" ||
6120 mkdir "$as_incr_dir" ||
6121 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6122 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6123 { (exit 1); exit 1; }; }
6130 if test "$ac_dir" != .; then
6131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6132 # A "../" for each directory in $ac_dir_suffix.
6133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6135 ac_dir_suffix= ac_top_builddir=
6139 .) # No --srcdir option. We are building in place.
6141 if test -z "$ac_top_builddir"; then
6144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6146 [\\/]* | ?:[\\/]* ) # Absolute path.
6147 ac_srcdir=$srcdir$ac_dir_suffix;
6148 ac_top_srcdir=$srcdir ;;
6150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6153 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6155 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6156 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6157 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6158 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6163 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6166 if test x"$ac_file" != x-; then
6167 { echo "$as_me:$LINENO: creating $ac_file" >&5
6168 echo "$as_me: creating $ac_file" >&6;}
6171 # Let's still pretend it is `configure' which instantiates (i.e., don't
6172 # use $as_me), people would be surprised to read:
6173 # /* config.h. Generated by config.status. */
6174 if test x"$ac_file" = x-; then
6177 configure_input="$ac_file. "
6179 configure_input=$configure_input"Generated from `echo $ac_file_in |
6180 sed 's,.*/,,'` by configure."
6182 # First look for the input files in the build tree, otherwise in the
6184 ac_file_inputs=`IFS=:
6185 for f in $ac_file_in; do
6187 -) echo $tmp/stdin ;;
6189 # Absolute (can't be DOS-style, as IFS=:)
6190 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6191 echo "$as_me: error: cannot find input file: $f" >&2;}
6192 { (exit 1); exit 1; }; }
6195 if test -f "$f"; then
6198 elif test -f "$srcdir/$f"; then
6203 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6204 echo "$as_me: error: cannot find input file: $f" >&2;}
6205 { (exit 1); exit 1; }; }
6208 done` || { (exit 1); exit 1; }
6210 cat >>$CONFIG_STATUS <<_ACEOF
6214 cat >>$CONFIG_STATUS <<\_ACEOF
6216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6217 s,@configure_input@,$configure_input,;t t
6218 s,@srcdir@,$ac_srcdir,;t t
6219 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6220 s,@top_srcdir@,$ac_top_srcdir,;t t
6221 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6222 s,@builddir@,$ac_builddir,;t t
6223 s,@abs_builddir@,$ac_abs_builddir,;t t
6224 s,@top_builddir@,$ac_top_builddir,;t t
6225 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6226 s,@INSTALL@,$ac_INSTALL,;t t
6227 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6229 if test x"$ac_file" != x-; then
6230 mv $tmp/out $ac_file
6238 cat >>$CONFIG_STATUS <<\_ACEOF
6241 # CONFIG_HEADER section.
6244 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6245 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6247 # ac_d sets the value in "#define NAME VALUE" lines.
6248 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6249 ac_dB='[ ].*$,\1#\2'
6252 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6253 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6254 ac_uB='$,\1#\2define\3'
6258 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6259 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6261 - | *:- | *:-:* ) # input from stdin
6263 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6265 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6267 * ) ac_file_in=$ac_file.in ;;
6270 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6271 echo "$as_me: creating $ac_file" >&6;}
6273 # First look for the input files in the build tree, otherwise in the
6275 ac_file_inputs=`IFS=:
6276 for f in $ac_file_in; do
6278 -) echo $tmp/stdin ;;
6280 # Absolute (can't be DOS-style, as IFS=:)
6281 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6282 echo "$as_me: error: cannot find input file: $f" >&2;}
6283 { (exit 1); exit 1; }; }
6286 if test -f "$f"; then
6289 elif test -f "$srcdir/$f"; then
6294 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6295 echo "$as_me: error: cannot find input file: $f" >&2;}
6296 { (exit 1); exit 1; }; }
6299 done` || { (exit 1); exit 1; }
6300 # Remove the trailing spaces.
6301 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6305 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6306 # `conftest.undefs', that substitutes the proper values into
6307 # config.h.in to produce config.h. The first handles `#define'
6308 # templates, and the second `#undef' templates.
6309 # And first: Protect against being on the right side of a sed subst in
6310 # config.status. Protect against being in an unquoted here document
6312 rm -f conftest.defines conftest.undefs
6313 # Using a here document instead of a string reduces the quoting nightmare.
6314 # Putting comments in sed scripts is not portable.
6316 # `end' is used to avoid that the second main sed command (meant for
6317 # 0-ary CPP macros) applies to n-ary macro definitions.
6318 # See the Autoconf documentation for `clear'.
6319 cat >confdef2sed.sed <<\_ACEOF
6324 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6326 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6329 # If some macros were called several times there might be several times
6330 # the same #defines, which is useless. Nevertheless, we may not want to
6331 # sort them, since we want the *last* AC-DEFINE to be honored.
6332 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6333 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6334 rm -f confdef2sed.sed
6336 # This sed command replaces #undef with comments. This is necessary, for
6337 # example, in the case of _POSIX_SOURCE, which is predefined and required
6338 # on some systems where configure will not decide to define it.
6339 cat >>conftest.undefs <<\_ACEOF
6340 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6343 # Break up conftest.defines because some shells have a limit on the size
6344 # of here documents, and old seds have small limits too (100 cmds).
6345 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6346 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6347 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6348 echo ' :' >>$CONFIG_STATUS
6350 while grep . conftest.defines >/dev/null
6352 # Write a limited-size here document to $tmp/defines.sed.
6353 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6354 # Speed up: don't consider the non `#define' lines.
6355 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6356 # Work around the forget-to-reset-the-flag bug.
6357 echo 't clr' >>$CONFIG_STATUS
6358 echo ': clr' >>$CONFIG_STATUS
6359 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6361 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6365 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6366 rm -f conftest.defines
6367 mv conftest.tail conftest.defines
6369 rm -f conftest.defines
6370 echo ' fi # egrep' >>$CONFIG_STATUS
6371 echo >>$CONFIG_STATUS
6373 # Break up conftest.undefs because some shells have a limit on the size
6374 # of here documents, and old seds have small limits too (100 cmds).
6375 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6377 while grep . conftest.undefs >/dev/null
6379 # Write a limited-size here document to $tmp/undefs.sed.
6380 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6381 # Speed up: don't consider the non `#undef'
6382 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6383 # Work around the forget-to-reset-the-flag bug.
6384 echo 't clr' >>$CONFIG_STATUS
6385 echo ': clr' >>$CONFIG_STATUS
6386 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6388 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6392 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6393 rm -f conftest.undefs
6394 mv conftest.tail conftest.undefs
6396 rm -f conftest.undefs
6398 cat >>$CONFIG_STATUS <<\_ACEOF
6399 # Let's still pretend it is `configure' which instantiates (i.e., don't
6400 # use $as_me), people would be surprised to read:
6401 # /* config.h. Generated by config.status. */
6402 if test x"$ac_file" = x-; then
6403 echo "/* Generated by configure. */" >$tmp/config.h
6405 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6407 cat $tmp/in >>$tmp/config.h
6409 if test x"$ac_file" != x-; then
6410 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6411 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6412 echo "$as_me: $ac_file is unchanged" >&6;}
6414 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6416 X"$ac_file" : 'X\(//\)[^/]' \| \
6417 X"$ac_file" : 'X\(//\)$' \| \
6418 X"$ac_file" : 'X\(/\)' \| \
6419 . : '\(.\)' 2>/dev/null ||
6421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6423 /^X\(\/\/\)$/{ s//\1/; q; }
6424 /^X\(\/\).*/{ s//\1/; q; }
6427 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6431 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6432 case $as_mkdir_dir in
6433 # Skip DOS drivespec
6434 ?:) as_incr_dir=$as_mkdir_dir ;;
6436 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6437 test -d "$as_incr_dir" ||
6438 mkdir "$as_incr_dir" ||
6439 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6440 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6441 { (exit 1); exit 1; }; }
6447 mv $tmp/config.h $ac_file
6455 cat >>$CONFIG_STATUS <<\_ACEOF
6458 # CONFIG_COMMANDS section.
6460 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6461 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6462 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6463 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6464 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6465 X"$ac_dest" : 'X\(//\)[^/]' \| \
6466 X"$ac_dest" : 'X\(//\)$' \| \
6467 X"$ac_dest" : 'X\(/\)' \| \
6468 . : '\(.\)' 2>/dev/null ||
6470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6472 /^X\(\/\/\)$/{ s//\1/; q; }
6473 /^X\(\/\).*/{ s//\1/; q; }
6477 if test "$ac_dir" != .; then
6478 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6479 # A "../" for each directory in $ac_dir_suffix.
6480 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6482 ac_dir_suffix= ac_top_builddir=
6486 .) # No --srcdir option. We are building in place.
6488 if test -z "$ac_top_builddir"; then
6491 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6493 [\\/]* | ?:[\\/]* ) # Absolute path.
6494 ac_srcdir=$srcdir$ac_dir_suffix;
6495 ac_top_srcdir=$srcdir ;;
6497 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6498 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6500 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6502 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6503 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6504 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6505 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6508 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6509 echo "$as_me: executing $ac_dest commands" >&6;}
6511 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
6516 cat >>$CONFIG_STATUS <<\_ACEOF
6518 { (exit 0); exit 0; }
6520 chmod +x $CONFIG_STATUS
6521 ac_clean_files=$ac_clean_files_save
6524 # configure is writing to config.log, and then calls config.status.
6525 # config.status does its own redirection, appending to config.log.
6526 # Unfortunately, on DOS this fails, as config.log is still kept open
6527 # by configure, so config.status won't be able to write to it; its
6528 # output is simply discarded. So we exec the FD to /dev/null,
6529 # effectively closing config.log, so it can be properly (re)opened and
6530 # appended to by config.status. When coming back to configure, we
6531 # need to make the FD available again.
6532 if test "$no_create" != yes; then
6535 $SHELL $CONFIG_STATUS || ac_cs_success=false
6537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6538 # would make configure fail if this is the last instruction.
6539 $ac_cs_success || { (exit 1); exit 1; }