Rebuild autotool system
[construo.git] / configure
bloba0bf2b856fe65b106c79782b5493fb6ede36bb29
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for construo 0.2.2.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='construo'
596 PACKAGE_TARNAME='construo'
597 PACKAGE_VERSION='0.2.2'
598 PACKAGE_STRING='construo 0.2.2'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="construo.hxx"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 ConstruoTargets
641 freeglut_LIBS
642 glut_LIBS
643 x11_CXXFLAGS
644 x11_LIBS
645 EGREP
646 GREP
647 CXXCPP
648 X_EXTRA_LIBS
649 X_LIBS
650 X_PRE_LIBS
651 X_CFLAGS
653 am__fastdepCC_FALSE
654 am__fastdepCC_TRUE
655 CCDEPMODE
656 ac_ct_CC
657 CFLAGS
659 XMKMF
660 RANLIB
661 am__fastdepCXX_FALSE
662 am__fastdepCXX_TRUE
663 CXXDEPMODE
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__quote
668 am__include
669 DEPDIR
670 OBJEXT
671 EXEEXT
672 ac_ct_CXX
673 CPPFLAGS
674 LDFLAGS
675 CXXFLAGS
677 am__untar
678 am__tar
679 AMTAR
680 am__leading_dot
681 SET_MAKE
683 mkdir_p
684 MKDIR_P
685 INSTALL_STRIP_PROGRAM
686 STRIP
687 install_sh
688 MAKEINFO
689 AUTOHEADER
690 AUTOMAKE
691 AUTOCONF
692 ACLOCAL
693 VERSION
694 PACKAGE
695 CYGPATH_W
696 am__isrc
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files=''
738 ac_user_opts='
739 enable_option_checking
740 enable_dependency_tracking
741 with_x
742 enable_debug
743 enable_gprof
744 enable_fcheck
745 enable_x11
746 enable_glut
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
752 CXXFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
757 XMKMF
759 CFLAGS
761 CXXCPP'
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
812 ac_prev=
813 ac_dashdash=
814 for ac_option
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
823 case $ac_option in
824 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *) ac_optarg=yes ;;
826 esac
828 # Accept the important Cygnus configure options, so we can diagnose typos.
830 case $ac_dashdash$ac_option in
832 ac_dashdash=yes ;;
834 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 ac_prev=bindir ;;
836 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 bindir=$ac_optarg ;;
839 -build | --build | --buil | --bui | --bu)
840 ac_prev=build_alias ;;
841 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842 build_alias=$ac_optarg ;;
844 -cache-file | --cache-file | --cache-fil | --cache-fi \
845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846 ac_prev=cache_file ;;
847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849 cache_file=$ac_optarg ;;
851 --config-cache | -C)
852 cache_file=config.cache ;;
854 -datadir | --datadir | --datadi | --datad)
855 ac_prev=datadir ;;
856 -datadir=* | --datadir=* | --datadi=* | --datad=*)
857 datadir=$ac_optarg ;;
859 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860 | --dataroo | --dataro | --datar)
861 ac_prev=datarootdir ;;
862 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864 datarootdir=$ac_optarg ;;
866 -disable-* | --disable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
871 { (exit 1); exit 1; }; }
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
898 { (exit 1); exit 1; }; }
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=\$ac_optarg ;;
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
921 with_gas=yes ;;
923 -help | --help | --hel | --he | -h)
924 ac_init_help=long ;;
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 ac_prev=htmldir ;;
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 | --ht=*)
939 htmldir=$ac_optarg ;;
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 ac_prev=infodir ;;
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
953 -libdir | --libdir | --libdi | --libd)
954 ac_prev=libdir ;;
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 libdir=$ac_optarg ;;
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
965 -localedir | --localedir | --localedi | --localed | --locale)
966 ac_prev=localedir ;;
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
970 -localstatedir | --localstatedir | --localstatedi | --localstated \
971 | --localstate | --localstat | --localsta | --localst | --locals)
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975 localstatedir=$ac_optarg ;;
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 ac_prev=mandir ;;
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 mandir=$ac_optarg ;;
982 -nfp | --nfp | --nf)
983 # Obsolete; use --without-fp.
984 with_fp=no ;;
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c | -n)
988 no_create=yes ;;
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 no_recursion=yes ;;
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 ac_prev=prefix ;;
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 ac_prev=pdfdir ;;
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1044 -psdir | --psdir | --psdi | --psd | --ps)
1045 ac_prev=psdir ;;
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 psdir=$ac_optarg ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 silent=yes ;;
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 ac_prev=sbindir ;;
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 | --sbi=* | --sb=*)
1057 sbindir=$ac_optarg ;;
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1062 | --sha | --sh)
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 | --sha=* | --sh=*)
1068 sharedstatedir=$ac_optarg ;;
1070 -site | --site | --sit)
1071 ac_prev=site ;;
1072 -site=* | --site=* | --sit=*)
1073 site=$ac_optarg ;;
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 ac_prev=srcdir ;;
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078 srcdir=$ac_optarg ;;
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085 sysconfdir=$ac_optarg ;;
1087 -target | --target | --targe | --targ | --tar | --ta | --t)
1088 ac_prev=target_alias ;;
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090 target_alias=$ac_optarg ;;
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 verbose=yes ;;
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
1098 -with-* | --with-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1120 { (exit 1); exit 1; }; }
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=no ;;
1132 --x)
1133 # Obsolete; use --with-x.
1134 with_x=yes ;;
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1151 Try \`$0 --help' for more information." >&2
1152 { (exit 1); exit 1; }; }
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1159 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1160 { (exit 1); exit 1; }; }
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 esac
1173 done
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1178 { (exit 1); exit 1; }; }
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1185 { (exit 1); exit 1; }; } ;;
1186 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 esac
1190 # Check all directory arguments for consistency.
1191 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192 datadir sysconfdir sharedstatedir localstatedir includedir \
1193 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194 libdir localedir mandir
1196 eval ac_val=\$$ac_var
1197 # Remove trailing slashes.
1198 case $ac_val in
1199 */ )
1200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201 eval $ac_var=\$ac_val;;
1202 esac
1203 # Be sure to have absolute directory names.
1204 case $ac_val in
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207 esac
1208 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1209 { (exit 1); exit 1; }; }
1210 done
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224 If a cross compiler is detected then cross compile mode will be used." >&2
1225 elif test "x$build_alias" != "x$host_alias"; then
1226 cross_compiling=yes
1230 ac_tool_prefix=
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233 test "$silent" = yes && exec 6>/dev/null
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1240 { (exit 1); exit 1; }; }
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1243 { (exit 1); exit 1; }; }
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 s//\1/
1260 /^X\(\/\/\)[^/].*/{
1261 s//\1/
1264 /^X\(\/\/\)$/{
1265 s//\1/
1268 /^X\(\/\).*/{
1269 s//\1/
1272 s/.*/./; q'`
1273 srcdir=$ac_confdir
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 srcdir=..
1277 else
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1283 { (exit 1); exit 1; }; }
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1288 { (exit 1); exit 1; }; }
1289 pwd)`
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 srcdir=.
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1297 case $srcdir in
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 esac
1300 for ac_var in $ac_precious_vars; do
1301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_env_${ac_var}_value=\$${ac_var}
1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 done
1308 # Report the --help message.
1310 if test "$ac_init_help" = "long"; then
1311 # Omit some internal or obsolete options to make the list less imposing.
1312 # This message is too long to be a string in the A/UX 3.1 sh.
1313 cat <<_ACEOF
1314 \`configure' configures construo 0.2.2 to adapt to many kinds of systems.
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE. See below for descriptions of some of the useful variables.
1321 Defaults for the options are specified in brackets.
1323 Configuration:
1324 -h, --help display this help and exit
1325 --help=short display options specific to this package
1326 --help=recursive display the short help of all the included packages
1327 -V, --version display version information and exit
1328 -q, --quiet, --silent do not print \`checking...' messages
1329 --cache-file=FILE cache test results in FILE [disabled]
1330 -C, --config-cache alias for \`--cache-file=config.cache'
1331 -n, --no-create do not create output files
1332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334 Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
1336 [$ac_default_prefix]
1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 [PREFIX]
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1345 For better control, use the options below.
1347 Fine tuning of the installation directories:
1348 --bindir=DIR user executables [EPREFIX/bin]
1349 --sbindir=DIR system admin executables [EPREFIX/sbin]
1350 --libexecdir=DIR program executables [EPREFIX/libexec]
1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/construo]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1367 _ACEOF
1369 cat <<\_ACEOF
1371 Program names:
1372 --program-prefix=PREFIX prepend PREFIX to installed program names
1373 --program-suffix=SUFFIX append SUFFIX to installed program names
1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376 X features:
1377 --x-includes=DIR X include files are in DIR
1378 --x-libraries=DIR X library files are in DIR
1379 _ACEOF
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of construo 0.2.2:";;
1385 esac
1386 cat <<\_ACEOF
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --disable-dependency-tracking speeds up one-time build
1393 --enable-dependency-tracking do not reject slow dependency extractors
1394 --enable-debug enable debug support (default: no)
1395 --enable-gprof enable gprof profiling (default: no)
1396 --enable-fcheck enable fcheck profiling (default: no)
1397 --enable-x11 enable x11 support (default: yes)
1398 --enable-glut enable glut support (default: yes)
1400 Optional Packages:
1401 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1402 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1403 --with-x use the X Window System
1405 Some influential environment variables:
1406 CXX C++ compiler command
1407 CXXFLAGS C++ compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 XMKMF Path to xmkmf, Makefile generator for X Window System
1414 CC C compiler command
1415 CFLAGS C compiler flags
1416 CPP C preprocessor
1417 CXXCPP C++ preprocessor
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1422 _ACEOF
1423 ac_status=$?
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 continue
1432 ac_builddir=.
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1450 case $srcdir in
1451 .) # We are building in place.
1452 ac_srcdir=.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1459 *) # Relative name.
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1474 else
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 fi || ac_status=$?
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1478 done
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483 cat <<\_ACEOF
1484 construo configure 0.2.2
1485 generated by GNU Autoconf 2.63
1487 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1488 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1494 cat >config.log <<_ACEOF
1495 This file contains any messages produced by compilers while
1496 running configure, to aid debugging if configure makes a mistake.
1498 It was created by construo $as_me 0.2.2, which was
1499 generated by GNU Autoconf 2.63. Invocation command line was
1501 $ $0 $@
1503 _ACEOF
1504 exec 5>>config.log
1506 cat <<_ASUNAME
1507 ## --------- ##
1508 ## Platform. ##
1509 ## --------- ##
1511 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1512 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1513 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1514 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1515 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1517 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1518 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1520 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1521 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1522 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1523 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1524 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1525 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1526 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1528 _ASUNAME
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 $as_echo "PATH: $as_dir"
1536 done
1537 IFS=$as_save_IFS
1539 } >&5
1541 cat >&5 <<_ACEOF
1544 ## ----------- ##
1545 ## Core tests. ##
1546 ## ----------- ##
1548 _ACEOF
1551 # Keep a trace of the command line.
1552 # Strip out --no-create and --no-recursion so they do not pile up.
1553 # Strip out --silent because we don't want to record it for future runs.
1554 # Also quote any args containing shell meta-characters.
1555 # Make two passes to allow for proper duplicate-argument suppression.
1556 ac_configure_args=
1557 ac_configure_args0=
1558 ac_configure_args1=
1559 ac_must_keep_next=false
1560 for ac_pass in 1 2
1562 for ac_arg
1564 case $ac_arg in
1565 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1567 | -silent | --silent | --silen | --sile | --sil)
1568 continue ;;
1569 *\'*)
1570 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1571 esac
1572 case $ac_pass in
1573 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1575 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1576 if test $ac_must_keep_next = true; then
1577 ac_must_keep_next=false # Got value, back to normal.
1578 else
1579 case $ac_arg in
1580 *=* | --config-cache | -C | -disable-* | --disable-* \
1581 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1582 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1583 | -with-* | --with-* | -without-* | --without-* | --x)
1584 case "$ac_configure_args0 " in
1585 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1586 esac
1588 -* ) ac_must_keep_next=true ;;
1589 esac
1591 ac_configure_args="$ac_configure_args '$ac_arg'"
1593 esac
1594 done
1595 done
1596 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1597 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1599 # When interrupted or exit'd, cleanup temporary files, and complete
1600 # config.log. We remove comments because anyway the quotes in there
1601 # would cause problems or look ugly.
1602 # WARNING: Use '\'' to represent an apostrophe within the trap.
1603 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1604 trap 'exit_status=$?
1605 # Save into config.log some information that might help in debugging.
1607 echo
1609 cat <<\_ASBOX
1610 ## ---------------- ##
1611 ## Cache variables. ##
1612 ## ---------------- ##
1613 _ASBOX
1614 echo
1615 # The following way of writing the cache mishandles newlines in values,
1617 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1618 eval ac_val=\$$ac_var
1619 case $ac_val in #(
1620 *${as_nl}*)
1621 case $ac_var in #(
1622 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1623 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1624 esac
1625 case $ac_var in #(
1626 _ | IFS | as_nl) ;; #(
1627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1628 *) $as_unset $ac_var ;;
1629 esac ;;
1630 esac
1631 done
1632 (set) 2>&1 |
1633 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1634 *${as_nl}ac_space=\ *)
1635 sed -n \
1636 "s/'\''/'\''\\\\'\'''\''/g;
1637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1638 ;; #(
1640 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1642 esac |
1643 sort
1645 echo
1647 cat <<\_ASBOX
1648 ## ----------------- ##
1649 ## Output variables. ##
1650 ## ----------------- ##
1651 _ASBOX
1652 echo
1653 for ac_var in $ac_subst_vars
1655 eval ac_val=\$$ac_var
1656 case $ac_val in
1657 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1658 esac
1659 $as_echo "$ac_var='\''$ac_val'\''"
1660 done | sort
1661 echo
1663 if test -n "$ac_subst_files"; then
1664 cat <<\_ASBOX
1665 ## ------------------- ##
1666 ## File substitutions. ##
1667 ## ------------------- ##
1668 _ASBOX
1669 echo
1670 for ac_var in $ac_subst_files
1672 eval ac_val=\$$ac_var
1673 case $ac_val in
1674 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1675 esac
1676 $as_echo "$ac_var='\''$ac_val'\''"
1677 done | sort
1678 echo
1681 if test -s confdefs.h; then
1682 cat <<\_ASBOX
1683 ## ----------- ##
1684 ## confdefs.h. ##
1685 ## ----------- ##
1686 _ASBOX
1687 echo
1688 cat confdefs.h
1689 echo
1691 test "$ac_signal" != 0 &&
1692 $as_echo "$as_me: caught signal $ac_signal"
1693 $as_echo "$as_me: exit $exit_status"
1694 } >&5
1695 rm -f core *.core core.conftest.* &&
1696 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1697 exit $exit_status
1699 for ac_signal in 1 2 13 15; do
1700 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1701 done
1702 ac_signal=0
1704 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1705 rm -f -r conftest* confdefs.h
1707 # Predefined preprocessor variables.
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_NAME "$PACKAGE_NAME"
1711 _ACEOF
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1716 _ACEOF
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1721 _ACEOF
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_STRING "$PACKAGE_STRING"
1726 _ACEOF
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1731 _ACEOF
1734 # Let the site file select an alternate cache file if it wants to.
1735 # Prefer an explicitly selected file to automatically selected ones.
1736 ac_site_file1=NONE
1737 ac_site_file2=NONE
1738 if test -n "$CONFIG_SITE"; then
1739 ac_site_file1=$CONFIG_SITE
1740 elif test "x$prefix" != xNONE; then
1741 ac_site_file1=$prefix/share/config.site
1742 ac_site_file2=$prefix/etc/config.site
1743 else
1744 ac_site_file1=$ac_default_prefix/share/config.site
1745 ac_site_file2=$ac_default_prefix/etc/config.site
1747 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1749 test "x$ac_site_file" = xNONE && continue
1750 if test -r "$ac_site_file"; then
1751 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1752 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1753 sed 's/^/| /' "$ac_site_file" >&5
1754 . "$ac_site_file"
1756 done
1758 if test -r "$cache_file"; then
1759 # Some versions of bash will fail to source /dev/null (special
1760 # files actually), so we avoid doing that.
1761 if test -f "$cache_file"; then
1762 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1763 $as_echo "$as_me: loading cache $cache_file" >&6;}
1764 case $cache_file in
1765 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1766 *) . "./$cache_file";;
1767 esac
1769 else
1770 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1771 $as_echo "$as_me: creating cache $cache_file" >&6;}
1772 >$cache_file
1775 # Check that the precious variables saved in the cache have kept the same
1776 # value.
1777 ac_cache_corrupted=false
1778 for ac_var in $ac_precious_vars; do
1779 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1780 eval ac_new_set=\$ac_env_${ac_var}_set
1781 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1782 eval ac_new_val=\$ac_env_${ac_var}_value
1783 case $ac_old_set,$ac_new_set in
1784 set,)
1785 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1786 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1787 ac_cache_corrupted=: ;;
1788 ,set)
1789 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1790 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1791 ac_cache_corrupted=: ;;
1792 ,);;
1794 if test "x$ac_old_val" != "x$ac_new_val"; then
1795 # differences in whitespace do not lead to failure.
1796 ac_old_val_w=`echo x $ac_old_val`
1797 ac_new_val_w=`echo x $ac_new_val`
1798 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1799 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1800 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1801 ac_cache_corrupted=:
1802 else
1803 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1804 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1805 eval $ac_var=\$ac_old_val
1807 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1808 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1809 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1810 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1811 fi;;
1812 esac
1813 # Pass precious variables to config.status.
1814 if test "$ac_new_set" = set; then
1815 case $ac_new_val in
1816 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 *) ac_arg=$ac_var=$ac_new_val ;;
1818 esac
1819 case " $ac_configure_args " in
1820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1821 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1822 esac
1824 done
1825 if $ac_cache_corrupted; then
1826 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1829 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1830 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1831 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1832 { (exit 1); exit 1; }; }
1859 ac_ext=c
1860 ac_cpp='$CPP $CPPFLAGS'
1861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1866 am__api_version='1.10'
1868 ac_aux_dir=
1869 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1870 if test -f "$ac_dir/install-sh"; then
1871 ac_aux_dir=$ac_dir
1872 ac_install_sh="$ac_aux_dir/install-sh -c"
1873 break
1874 elif test -f "$ac_dir/install.sh"; then
1875 ac_aux_dir=$ac_dir
1876 ac_install_sh="$ac_aux_dir/install.sh -c"
1877 break
1878 elif test -f "$ac_dir/shtool"; then
1879 ac_aux_dir=$ac_dir
1880 ac_install_sh="$ac_aux_dir/shtool install -c"
1881 break
1883 done
1884 if test -z "$ac_aux_dir"; then
1885 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1886 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1887 { (exit 1); exit 1; }; }
1890 # These three variables are undocumented and unsupported,
1891 # and are intended to be withdrawn in a future Autoconf release.
1892 # They can cause serious problems if a builder's source tree is in a directory
1893 # whose full name contains unusual characters.
1894 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1895 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1896 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1899 # Find a good install program. We prefer a C program (faster),
1900 # so one script is as good as another. But avoid the broken or
1901 # incompatible versions:
1902 # SysV /etc/install, /usr/sbin/install
1903 # SunOS /usr/etc/install
1904 # IRIX /sbin/install
1905 # AIX /bin/install
1906 # AmigaOS /C/install, which installs bootblocks on floppy discs
1907 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1908 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1909 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1910 # OS/2's system install, which has a completely different semantic
1911 # ./install, which can be erroneously created by make from ./install.sh.
1912 # Reject install programs that cannot install multiple files.
1913 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1914 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1915 if test -z "$INSTALL"; then
1916 if test "${ac_cv_path_install+set}" = set; then
1917 $as_echo_n "(cached) " >&6
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 # Account for people who put trailing slashes in PATH elements.
1925 case $as_dir/ in
1926 ./ | .// | /cC/* | \
1927 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1928 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1929 /usr/ucb/* ) ;;
1931 # OSF1 and SCO ODT 3.0 have their own names for install.
1932 # Don't use installbsd from OSF since it installs stuff as root
1933 # by default.
1934 for ac_prog in ginstall scoinst install; do
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1937 if test $ac_prog = install &&
1938 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1939 # AIX install. It has an incompatible calling convention.
1941 elif test $ac_prog = install &&
1942 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1943 # program-specific install script used by HP pwplus--don't use.
1945 else
1946 rm -rf conftest.one conftest.two conftest.dir
1947 echo one > conftest.one
1948 echo two > conftest.two
1949 mkdir conftest.dir
1950 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1951 test -s conftest.one && test -s conftest.two &&
1952 test -s conftest.dir/conftest.one &&
1953 test -s conftest.dir/conftest.two
1954 then
1955 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1956 break 3
1960 done
1961 done
1963 esac
1965 done
1966 IFS=$as_save_IFS
1968 rm -rf conftest.one conftest.two conftest.dir
1971 if test "${ac_cv_path_install+set}" = set; then
1972 INSTALL=$ac_cv_path_install
1973 else
1974 # As a last resort, use the slow shell script. Don't cache a
1975 # value for INSTALL within a source directory, because that will
1976 # break other packages using the cache if that directory is
1977 # removed, or if the value is a relative name.
1978 INSTALL=$ac_install_sh
1981 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1982 $as_echo "$INSTALL" >&6; }
1984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1985 # It thinks the first close brace ends the variable substitution.
1986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1992 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1993 $as_echo_n "checking whether build environment is sane... " >&6; }
1994 # Just in case
1995 sleep 1
1996 echo timestamp > conftest.file
1997 # Do `set' in a subshell so we don't clobber the current shell's
1998 # arguments. Must try -L first in case configure is actually a
1999 # symlink; some systems play weird games with the mod time of symlinks
2000 # (eg FreeBSD returns the mod time of the symlink's containing
2001 # directory).
2002 if (
2003 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2004 if test "$*" = "X"; then
2005 # -L didn't work.
2006 set X `ls -t $srcdir/configure conftest.file`
2008 rm -f conftest.file
2009 if test "$*" != "X $srcdir/configure conftest.file" \
2010 && test "$*" != "X conftest.file $srcdir/configure"; then
2012 # If neither matched, then we have a broken ls. This can happen
2013 # if, for instance, CONFIG_SHELL is bash and it inherits a
2014 # broken ls alias from the environment. This has actually
2015 # happened. Such a system could not be considered "sane".
2016 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2017 alias in your environment" >&5
2018 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2019 alias in your environment" >&2;}
2020 { (exit 1); exit 1; }; }
2023 test "$2" = conftest.file
2025 then
2026 # Ok.
2028 else
2029 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2030 Check your system clock" >&5
2031 $as_echo "$as_me: error: newly created file is older than distributed files!
2032 Check your system clock" >&2;}
2033 { (exit 1); exit 1; }; }
2035 { $as_echo "$as_me:$LINENO: result: yes" >&5
2036 $as_echo "yes" >&6; }
2037 test "$program_prefix" != NONE &&
2038 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2039 # Use a double $ so make ignores it.
2040 test "$program_suffix" != NONE &&
2041 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2042 # Double any \ or $.
2043 # By default was `s,x,x', remove it if useless.
2044 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2045 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2047 # expand $ac_aux_dir to an absolute path
2048 am_aux_dir=`cd $ac_aux_dir && pwd`
2050 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2051 # Use eval to expand $SHELL
2052 if eval "$MISSING --run true"; then
2053 am_missing_run="$MISSING --run "
2054 else
2055 am_missing_run=
2056 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2057 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2060 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2061 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2062 if test -z "$MKDIR_P"; then
2063 if test "${ac_cv_path_mkdir+set}" = set; then
2064 $as_echo_n "(cached) " >&6
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_prog in mkdir gmkdir; do
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2074 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2075 'mkdir (GNU coreutils) '* | \
2076 'mkdir (coreutils) '* | \
2077 'mkdir (fileutils) '4.1*)
2078 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2079 break 3;;
2080 esac
2081 done
2082 done
2083 done
2084 IFS=$as_save_IFS
2088 if test "${ac_cv_path_mkdir+set}" = set; then
2089 MKDIR_P="$ac_cv_path_mkdir -p"
2090 else
2091 # As a last resort, use the slow shell script. Don't cache a
2092 # value for MKDIR_P within a source directory, because that will
2093 # break other packages using the cache if that directory is
2094 # removed, or if the value is a relative name.
2095 test -d ./--version && rmdir ./--version
2096 MKDIR_P="$ac_install_sh -d"
2099 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2100 $as_echo "$MKDIR_P" >&6; }
2102 mkdir_p="$MKDIR_P"
2103 case $mkdir_p in
2104 [\\/$]* | ?:[\\/]*) ;;
2105 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2106 esac
2108 for ac_prog in gawk mawk nawk awk
2110 # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if test "${ac_cv_prog_AWK+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2116 else
2117 if test -n "$AWK"; then
2118 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_AWK="$ac_prog"
2128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2131 done
2132 done
2133 IFS=$as_save_IFS
2137 AWK=$ac_cv_prog_AWK
2138 if test -n "$AWK"; then
2139 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2140 $as_echo "$AWK" >&6; }
2141 else
2142 { $as_echo "$as_me:$LINENO: result: no" >&5
2143 $as_echo "no" >&6; }
2147 test -n "$AWK" && break
2148 done
2150 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2151 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2152 set x ${MAKE-make}
2153 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2154 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2155 $as_echo_n "(cached) " >&6
2156 else
2157 cat >conftest.make <<\_ACEOF
2158 SHELL = /bin/sh
2159 all:
2160 @echo '@@@%%%=$(MAKE)=@@@%%%'
2161 _ACEOF
2162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2163 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2164 *@@@%%%=?*=@@@%%%*)
2165 eval ac_cv_prog_make_${ac_make}_set=yes;;
2167 eval ac_cv_prog_make_${ac_make}_set=no;;
2168 esac
2169 rm -f conftest.make
2171 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2172 { $as_echo "$as_me:$LINENO: result: yes" >&5
2173 $as_echo "yes" >&6; }
2174 SET_MAKE=
2175 else
2176 { $as_echo "$as_me:$LINENO: result: no" >&5
2177 $as_echo "no" >&6; }
2178 SET_MAKE="MAKE=${MAKE-make}"
2181 rm -rf .tst 2>/dev/null
2182 mkdir .tst 2>/dev/null
2183 if test -d .tst; then
2184 am__leading_dot=.
2185 else
2186 am__leading_dot=_
2188 rmdir .tst 2>/dev/null
2190 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2191 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2192 # is not polluted with repeated "-I."
2193 am__isrc=' -I$(srcdir)'
2194 # test to see if srcdir already configured
2195 if test -f $srcdir/config.status; then
2196 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2197 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2198 { (exit 1); exit 1; }; }
2202 # test whether we have cygpath
2203 if test -z "$CYGPATH_W"; then
2204 if (cygpath --version) >/dev/null 2>/dev/null; then
2205 CYGPATH_W='cygpath -w'
2206 else
2207 CYGPATH_W=echo
2212 # Define the identity of the package.
2213 PACKAGE='construo'
2214 VERSION='0.2.2'
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE "$PACKAGE"
2219 _ACEOF
2222 cat >>confdefs.h <<_ACEOF
2223 #define VERSION "$VERSION"
2224 _ACEOF
2226 # Some tools Automake needs.
2228 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2231 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2234 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2237 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2240 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2242 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2244 # Installed binaries are usually stripped using `strip' when the user
2245 # run `make install-strip'. However `strip' might not be the right
2246 # tool to use in cross-compilation environments, therefore Automake
2247 # will honor the `STRIP' environment variable to overrule this program.
2248 if test "$cross_compiling" != no; then
2249 if test -n "$ac_tool_prefix"; then
2250 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}strip; ac_word=$2
2252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if test "${ac_cv_prog_STRIP+set}" = set; then
2255 $as_echo_n "(cached) " >&6
2256 else
2257 if test -n "$STRIP"; then
2258 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2271 done
2272 done
2273 IFS=$as_save_IFS
2277 STRIP=$ac_cv_prog_STRIP
2278 if test -n "$STRIP"; then
2279 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2280 $as_echo "$STRIP" >&6; }
2281 else
2282 { $as_echo "$as_me:$LINENO: result: no" >&5
2283 $as_echo "no" >&6; }
2288 if test -z "$ac_cv_prog_STRIP"; then
2289 ac_ct_STRIP=$STRIP
2290 # Extract the first word of "strip", so it can be a program name with args.
2291 set dummy strip; ac_word=$2
2292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2295 $as_echo_n "(cached) " >&6
2296 else
2297 if test -n "$ac_ct_STRIP"; then
2298 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_ac_ct_STRIP="strip"
2308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2311 done
2312 done
2313 IFS=$as_save_IFS
2317 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2318 if test -n "$ac_ct_STRIP"; then
2319 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2320 $as_echo "$ac_ct_STRIP" >&6; }
2321 else
2322 { $as_echo "$as_me:$LINENO: result: no" >&5
2323 $as_echo "no" >&6; }
2326 if test "x$ac_ct_STRIP" = x; then
2327 STRIP=":"
2328 else
2329 case $cross_compiling:$ac_tool_warned in
2330 yes:)
2331 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2333 ac_tool_warned=yes ;;
2334 esac
2335 STRIP=$ac_ct_STRIP
2337 else
2338 STRIP="$ac_cv_prog_STRIP"
2342 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2344 # We need awk for the "check" target. The system "awk" is bad on
2345 # some platforms.
2346 # Always define AMTAR for backward compatibility.
2348 AMTAR=${AMTAR-"${am_missing_run}tar"}
2350 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2357 ac_config_headers="$ac_config_headers config.h"
2360 # check for some programs
2361 ac_ext=cpp
2362 ac_cpp='$CXXCPP $CPPFLAGS'
2363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2366 if test -z "$CXX"; then
2367 if test -n "$CCC"; then
2368 CXX=$CCC
2369 else
2370 if test -n "$ac_tool_prefix"; then
2371 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 $as_echo_n "checking for $ac_word... " >&6; }
2377 if test "${ac_cv_prog_CXX+set}" = set; then
2378 $as_echo_n "(cached) " >&6
2379 else
2380 if test -n "$CXX"; then
2381 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2394 done
2395 done
2396 IFS=$as_save_IFS
2400 CXX=$ac_cv_prog_CXX
2401 if test -n "$CXX"; then
2402 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2403 $as_echo "$CXX" >&6; }
2404 else
2405 { $as_echo "$as_me:$LINENO: result: no" >&5
2406 $as_echo "no" >&6; }
2410 test -n "$CXX" && break
2411 done
2413 if test -z "$CXX"; then
2414 ac_ct_CXX=$CXX
2415 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2417 # Extract the first word of "$ac_prog", so it can be a program name with args.
2418 set dummy $ac_prog; ac_word=$2
2419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 $as_echo_n "checking for $ac_word... " >&6; }
2421 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2422 $as_echo_n "(cached) " >&6
2423 else
2424 if test -n "$ac_ct_CXX"; then
2425 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_ac_ct_CXX="$ac_prog"
2435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2438 done
2439 done
2440 IFS=$as_save_IFS
2444 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2445 if test -n "$ac_ct_CXX"; then
2446 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2447 $as_echo "$ac_ct_CXX" >&6; }
2448 else
2449 { $as_echo "$as_me:$LINENO: result: no" >&5
2450 $as_echo "no" >&6; }
2454 test -n "$ac_ct_CXX" && break
2455 done
2457 if test "x$ac_ct_CXX" = x; then
2458 CXX="g++"
2459 else
2460 case $cross_compiling:$ac_tool_warned in
2461 yes:)
2462 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2464 ac_tool_warned=yes ;;
2465 esac
2466 CXX=$ac_ct_CXX
2472 # Provide some information about the compiler.
2473 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2474 set X $ac_compile
2475 ac_compiler=$2
2476 { (ac_try="$ac_compiler --version >&5"
2477 case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2482 $as_echo "$ac_try_echo") >&5
2483 (eval "$ac_compiler --version >&5") 2>&5
2484 ac_status=$?
2485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2487 { (ac_try="$ac_compiler -v >&5"
2488 case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491 esac
2492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2493 $as_echo "$ac_try_echo") >&5
2494 (eval "$ac_compiler -v >&5") 2>&5
2495 ac_status=$?
2496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }
2498 { (ac_try="$ac_compiler -V >&5"
2499 case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502 esac
2503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2504 $as_echo "$ac_try_echo") >&5
2505 (eval "$ac_compiler -V >&5") 2>&5
2506 ac_status=$?
2507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }
2510 cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h. */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2518 main ()
2522 return 0;
2524 _ACEOF
2525 ac_clean_files_save=$ac_clean_files
2526 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2527 # Try to create an executable without -o first, disregard a.out.
2528 # It will help us diagnose broken compilers, and finding out an intuition
2529 # of exeext.
2530 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2531 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2532 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2534 # The possible output files:
2535 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2537 ac_rmfiles=
2538 for ac_file in $ac_files
2540 case $ac_file in
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2542 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2543 esac
2544 done
2545 rm -f $ac_rmfiles
2547 if { (ac_try="$ac_link_default"
2548 case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551 esac
2552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2553 $as_echo "$ac_try_echo") >&5
2554 (eval "$ac_link_default") 2>&5
2555 ac_status=$?
2556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; then
2558 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2559 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2560 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2561 # so that the user can short-circuit this test for compilers unknown to
2562 # Autoconf.
2563 for ac_file in $ac_files ''
2565 test -f "$ac_file" || continue
2566 case $ac_file in
2567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2569 [ab].out )
2570 # We found the default executable, but exeext='' is most
2571 # certainly right.
2572 break;;
2573 *.* )
2574 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2575 then :; else
2576 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578 # We set ac_cv_exeext here because the later test for it is not
2579 # safe: cross compilers may not add the suffix if given an `-o'
2580 # argument, so we may need to know it at that point already.
2581 # Even if this section looks crufty: it has the advantage of
2582 # actually working.
2583 break;;
2585 break;;
2586 esac
2587 done
2588 test "$ac_cv_exeext" = no && ac_cv_exeext=
2590 else
2591 ac_file=''
2594 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2595 $as_echo "$ac_file" >&6; }
2596 if test -z "$ac_file"; then
2597 $as_echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2600 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2603 See \`config.log' for more details." >&5
2604 $as_echo "$as_me: error: C++ compiler cannot create executables
2605 See \`config.log' for more details." >&2;}
2606 { (exit 77); exit 77; }; }; }
2609 ac_exeext=$ac_cv_exeext
2611 # Check that the compiler produces executables we can run. If not, either
2612 # the compiler is broken, or we cross compile.
2613 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2614 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2615 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2616 # If not cross compiling, check that we can run a simple program.
2617 if test "$cross_compiling" != yes; then
2618 if { ac_try='./$ac_file'
2619 { (case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2624 $as_echo "$ac_try_echo") >&5
2625 (eval "$ac_try") 2>&5
2626 ac_status=$?
2627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 cross_compiling=no
2630 else
2631 if test "$cross_compiling" = maybe; then
2632 cross_compiling=yes
2633 else
2634 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2637 If you meant to cross compile, use \`--host'.
2638 See \`config.log' for more details." >&5
2639 $as_echo "$as_me: error: cannot run C++ compiled programs.
2640 If you meant to cross compile, use \`--host'.
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }; }
2646 { $as_echo "$as_me:$LINENO: result: yes" >&5
2647 $as_echo "yes" >&6; }
2649 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2650 ac_clean_files=$ac_clean_files_save
2651 # Check that the compiler produces executables we can run. If not, either
2652 # the compiler is broken, or we cross compile.
2653 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2654 $as_echo_n "checking whether we are cross compiling... " >&6; }
2655 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2656 $as_echo "$cross_compiling" >&6; }
2658 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2659 $as_echo_n "checking for suffix of executables... " >&6; }
2660 if { (ac_try="$ac_link"
2661 case "(($ac_try" in
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2664 esac
2665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2666 $as_echo "$ac_try_echo") >&5
2667 (eval "$ac_link") 2>&5
2668 ac_status=$?
2669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; then
2671 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2672 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2673 # work properly (i.e., refer to `conftest.exe'), while it won't with
2674 # `rm'.
2675 for ac_file in conftest.exe conftest conftest.*; do
2676 test -f "$ac_file" || continue
2677 case $ac_file in
2678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2680 break;;
2681 * ) break;;
2682 esac
2683 done
2684 else
2685 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2687 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2688 See \`config.log' for more details." >&5
2689 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2690 See \`config.log' for more details." >&2;}
2691 { (exit 1); exit 1; }; }; }
2694 rm -f conftest$ac_cv_exeext
2695 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2696 $as_echo "$ac_cv_exeext" >&6; }
2698 rm -f conftest.$ac_ext
2699 EXEEXT=$ac_cv_exeext
2700 ac_exeext=$EXEEXT
2701 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2702 $as_echo_n "checking for suffix of object files... " >&6; }
2703 if test "${ac_cv_objext+set}" = set; then
2704 $as_echo_n "(cached) " >&6
2705 else
2706 cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h. */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2714 main ()
2718 return 0;
2720 _ACEOF
2721 rm -f conftest.o conftest.obj
2722 if { (ac_try="$ac_compile"
2723 case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726 esac
2727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2728 $as_echo "$ac_try_echo") >&5
2729 (eval "$ac_compile") 2>&5
2730 ac_status=$?
2731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; then
2733 for ac_file in conftest.o conftest.obj conftest.*; do
2734 test -f "$ac_file" || continue;
2735 case $ac_file in
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2737 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2738 break;;
2739 esac
2740 done
2741 else
2742 $as_echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2747 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2748 See \`config.log' for more details." >&5
2749 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2750 See \`config.log' for more details." >&2;}
2751 { (exit 1); exit 1; }; }; }
2754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2756 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2757 $as_echo "$ac_cv_objext" >&6; }
2758 OBJEXT=$ac_cv_objext
2759 ac_objext=$OBJEXT
2760 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2761 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2762 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2763 $as_echo_n "(cached) " >&6
2764 else
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2773 main ()
2775 #ifndef __GNUC__
2776 choke me
2777 #endif
2780 return 0;
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (ac_try="$ac_compile"
2785 case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788 esac
2789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2790 $as_echo "$ac_try_echo") >&5
2791 (eval "$ac_compile") 2>conftest.er1
2792 ac_status=$?
2793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } && {
2798 test -z "$ac_cxx_werror_flag" ||
2799 test ! -s conftest.err
2800 } && test -s conftest.$ac_objext; then
2801 ac_compiler_gnu=yes
2802 else
2803 $as_echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 ac_compiler_gnu=no
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2813 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2814 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2815 if test $ac_compiler_gnu = yes; then
2816 GXX=yes
2817 else
2818 GXX=
2820 ac_test_CXXFLAGS=${CXXFLAGS+set}
2821 ac_save_CXXFLAGS=$CXXFLAGS
2822 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2823 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2824 if test "${ac_cv_prog_cxx_g+set}" = set; then
2825 $as_echo_n "(cached) " >&6
2826 else
2827 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2828 ac_cxx_werror_flag=yes
2829 ac_cv_prog_cxx_g=no
2830 CXXFLAGS="-g"
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2839 main ()
2843 return 0;
2845 _ACEOF
2846 rm -f conftest.$ac_objext
2847 if { (ac_try="$ac_compile"
2848 case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851 esac
2852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2853 $as_echo "$ac_try_echo") >&5
2854 (eval "$ac_compile") 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } && {
2861 test -z "$ac_cxx_werror_flag" ||
2862 test ! -s conftest.err
2863 } && test -s conftest.$ac_objext; then
2864 ac_cv_prog_cxx_g=yes
2865 else
2866 $as_echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 CXXFLAGS=""
2870 cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h. */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2878 main ()
2882 return 0;
2884 _ACEOF
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2887 case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892 $as_echo "$ac_try_echo") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_cxx_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2904 else
2905 $as_echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2909 CXXFLAGS="-g"
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2918 main ()
2922 return 0;
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (ac_try="$ac_compile"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932 $as_echo "$ac_try_echo") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_cxx_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
2943 ac_cv_prog_cxx_g=yes
2944 else
2945 $as_echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2960 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2961 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2962 if test "$ac_test_CXXFLAGS" = set; then
2963 CXXFLAGS=$ac_save_CXXFLAGS
2964 elif test $ac_cv_prog_cxx_g = yes; then
2965 if test "$GXX" = yes; then
2966 CXXFLAGS="-g -O2"
2967 else
2968 CXXFLAGS="-g"
2970 else
2971 if test "$GXX" = yes; then
2972 CXXFLAGS="-O2"
2973 else
2974 CXXFLAGS=
2977 ac_ext=c
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 DEPDIR="${am__leading_dot}deps"
2984 ac_config_commands="$ac_config_commands depfiles"
2987 am_make=${MAKE-make}
2988 cat > confinc << 'END'
2989 am__doit:
2990 @echo done
2991 .PHONY: am__doit
2993 # If we don't find an include directive, just comment out the code.
2994 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2995 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2996 am__include="#"
2997 am__quote=
2998 _am_result=none
2999 # First try GNU make style include.
3000 echo "include confinc" > confmf
3001 # We grep out `Entering directory' and `Leaving directory'
3002 # messages which can occur if `w' ends up in MAKEFLAGS.
3003 # In particular we don't look at `^make:' because GNU make might
3004 # be invoked under some other name (usually "gmake"), in which
3005 # case it prints its new name instead of `make'.
3006 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3007 am__include=include
3008 am__quote=
3009 _am_result=GNU
3011 # Now try BSD make style include.
3012 if test "$am__include" = "#"; then
3013 echo '.include "confinc"' > confmf
3014 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3015 am__include=.include
3016 am__quote="\""
3017 _am_result=BSD
3022 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3023 $as_echo "$_am_result" >&6; }
3024 rm -f confinc confmf
3026 # Check whether --enable-dependency-tracking was given.
3027 if test "${enable_dependency_tracking+set}" = set; then
3028 enableval=$enable_dependency_tracking;
3031 if test "x$enable_dependency_tracking" != xno; then
3032 am_depcomp="$ac_aux_dir/depcomp"
3033 AMDEPBACKSLASH='\'
3035 if test "x$enable_dependency_tracking" != xno; then
3036 AMDEP_TRUE=
3037 AMDEP_FALSE='#'
3038 else
3039 AMDEP_TRUE='#'
3040 AMDEP_FALSE=
3045 depcc="$CXX" am_compiler_list=
3047 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3048 $as_echo_n "checking dependency style of $depcc... " >&6; }
3049 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3053 # We make a subdir and do the tests there. Otherwise we can end up
3054 # making bogus files that we don't know about and never remove. For
3055 # instance it was reported that on HP-UX the gcc test will end up
3056 # making a dummy file named `D' -- because `-MD' means `put the output
3057 # in D'.
3058 mkdir conftest.dir
3059 # Copy depcomp to subdir because otherwise we won't find it if we're
3060 # using a relative directory.
3061 cp "$am_depcomp" conftest.dir
3062 cd conftest.dir
3063 # We will build objects and dependencies in a subdirectory because
3064 # it helps to detect inapplicable dependency modes. For instance
3065 # both Tru64's cc and ICC support -MD to output dependencies as a
3066 # side effect of compilation, but ICC will put the dependencies in
3067 # the current directory while Tru64 will put them in the object
3068 # directory.
3069 mkdir sub
3071 am_cv_CXX_dependencies_compiler_type=none
3072 if test "$am_compiler_list" = ""; then
3073 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3075 for depmode in $am_compiler_list; do
3076 # Setup a source with many dependencies, because some compilers
3077 # like to wrap large dependency lists on column 80 (with \), and
3078 # we should not choose a depcomp mode which is confused by this.
3080 # We need to recreate these files for each test, as the compiler may
3081 # overwrite some of them when testing with obscure command lines.
3082 # This happens at least with the AIX C compiler.
3083 : > sub/conftest.c
3084 for i in 1 2 3 4 5 6; do
3085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3087 # Solaris 8's {/usr,}/bin/sh.
3088 touch sub/conftst$i.h
3089 done
3090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3092 case $depmode in
3093 nosideeffect)
3094 # after this tag, mechanisms are not by side-effect, so they'll
3095 # only be used when explicitly requested
3096 if test "x$enable_dependency_tracking" = xyes; then
3097 continue
3098 else
3099 break
3102 none) break ;;
3103 esac
3104 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3105 # mode. It turns out that the SunPro C++ compiler does not properly
3106 # handle `-M -o', and we need to detect this.
3107 if depmode=$depmode \
3108 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3109 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3110 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3111 >/dev/null 2>conftest.err &&
3112 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3113 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3114 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3115 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3116 # icc doesn't choke on unknown options, it will just issue warnings
3117 # or remarks (even with -Werror). So we grep stderr for any message
3118 # that says an option was ignored or not supported.
3119 # When given -MP, icc 7.0 and 7.1 complain thusly:
3120 # icc: Command line warning: ignoring option '-M'; no argument required
3121 # The diagnosis changed in icc 8.0:
3122 # icc: Command line remark: option '-MP' not supported
3123 if (grep 'ignoring option' conftest.err ||
3124 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3125 am_cv_CXX_dependencies_compiler_type=$depmode
3126 break
3129 done
3131 cd ..
3132 rm -rf conftest.dir
3133 else
3134 am_cv_CXX_dependencies_compiler_type=none
3138 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3139 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3140 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3143 test "x$enable_dependency_tracking" != xno \
3144 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3145 am__fastdepCXX_TRUE=
3146 am__fastdepCXX_FALSE='#'
3147 else
3148 am__fastdepCXX_TRUE='#'
3149 am__fastdepCXX_FALSE=
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3156 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if test "${ac_cv_prog_RANLIB+set}" = set; then
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$RANLIB"; then
3162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3175 done
3176 done
3177 IFS=$as_save_IFS
3181 RANLIB=$ac_cv_prog_RANLIB
3182 if test -n "$RANLIB"; then
3183 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3184 $as_echo "$RANLIB" >&6; }
3185 else
3186 { $as_echo "$as_me:$LINENO: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$ac_cv_prog_RANLIB"; then
3193 ac_ct_RANLIB=$RANLIB
3194 # Extract the first word of "ranlib", so it can be a program name with args.
3195 set dummy ranlib; ac_word=$2
3196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$ac_ct_RANLIB"; then
3202 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_ac_ct_RANLIB="ranlib"
3212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3215 done
3216 done
3217 IFS=$as_save_IFS
3221 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3222 if test -n "$ac_ct_RANLIB"; then
3223 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3224 $as_echo "$ac_ct_RANLIB" >&6; }
3225 else
3226 { $as_echo "$as_me:$LINENO: result: no" >&5
3227 $as_echo "no" >&6; }
3230 if test "x$ac_ct_RANLIB" = x; then
3231 RANLIB=":"
3232 else
3233 case $cross_compiling:$ac_tool_warned in
3234 yes:)
3235 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3238 esac
3239 RANLIB=$ac_ct_RANLIB
3241 else
3242 RANLIB="$ac_cv_prog_RANLIB"
3245 # Find a good install program. We prefer a C program (faster),
3246 # so one script is as good as another. But avoid the broken or
3247 # incompatible versions:
3248 # SysV /etc/install, /usr/sbin/install
3249 # SunOS /usr/etc/install
3250 # IRIX /sbin/install
3251 # AIX /bin/install
3252 # AmigaOS /C/install, which installs bootblocks on floppy discs
3253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3256 # OS/2's system install, which has a completely different semantic
3257 # ./install, which can be erroneously created by make from ./install.sh.
3258 # Reject install programs that cannot install multiple files.
3259 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3261 if test -z "$INSTALL"; then
3262 if test "${ac_cv_path_install+set}" = set; then
3263 $as_echo_n "(cached) " >&6
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 # Account for people who put trailing slashes in PATH elements.
3271 case $as_dir/ in
3272 ./ | .// | /cC/* | \
3273 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3274 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3275 /usr/ucb/* ) ;;
3277 # OSF1 and SCO ODT 3.0 have their own names for install.
3278 # Don't use installbsd from OSF since it installs stuff as root
3279 # by default.
3280 for ac_prog in ginstall scoinst install; do
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3283 if test $ac_prog = install &&
3284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3285 # AIX install. It has an incompatible calling convention.
3287 elif test $ac_prog = install &&
3288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289 # program-specific install script used by HP pwplus--don't use.
3291 else
3292 rm -rf conftest.one conftest.two conftest.dir
3293 echo one > conftest.one
3294 echo two > conftest.two
3295 mkdir conftest.dir
3296 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3297 test -s conftest.one && test -s conftest.two &&
3298 test -s conftest.dir/conftest.one &&
3299 test -s conftest.dir/conftest.two
3300 then
3301 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3302 break 3
3306 done
3307 done
3309 esac
3311 done
3312 IFS=$as_save_IFS
3314 rm -rf conftest.one conftest.two conftest.dir
3317 if test "${ac_cv_path_install+set}" = set; then
3318 INSTALL=$ac_cv_path_install
3319 else
3320 # As a last resort, use the slow shell script. Don't cache a
3321 # value for INSTALL within a source directory, because that will
3322 # break other packages using the cache if that directory is
3323 # removed, or if the value is a relative name.
3324 INSTALL=$ac_install_sh
3327 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3328 $as_echo "$INSTALL" >&6; }
3330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3331 # It thinks the first close brace ends the variable substitution.
3332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3346 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if test "${ac_cv_prog_CC+set}" = set; then
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3365 done
3366 done
3367 IFS=$as_save_IFS
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:$LINENO: result: no" >&5
3377 $as_echo "no" >&6; }
3382 if test -z "$ac_cv_prog_CC"; then
3383 ac_ct_CC=$CC
3384 # Extract the first word of "gcc", so it can be a program name with args.
3385 set dummy gcc; ac_word=$2
3386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3389 $as_echo_n "(cached) " >&6
3390 else
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_CC="gcc"
3402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3405 done
3406 done
3407 IFS=$as_save_IFS
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3415 else
3416 { $as_echo "$as_me:$LINENO: result: no" >&5
3417 $as_echo "no" >&6; }
3420 if test "x$ac_ct_CC" = x; then
3421 CC=""
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429 CC=$ac_ct_CC
3431 else
3432 CC="$ac_cv_prog_CC"
3435 if test -z "$CC"; then
3436 if test -n "$ac_tool_prefix"; then
3437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3438 set dummy ${ac_tool_prefix}cc; ac_word=$2
3439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if test "${ac_cv_prog_CC+set}" = set; then
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_CC="${ac_tool_prefix}cc"
3455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3458 done
3459 done
3460 IFS=$as_save_IFS
3464 CC=$ac_cv_prog_CC
3465 if test -n "$CC"; then
3466 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3467 $as_echo "$CC" >&6; }
3468 else
3469 { $as_echo "$as_me:$LINENO: result: no" >&5
3470 $as_echo "no" >&6; }
3476 if test -z "$CC"; then
3477 # Extract the first word of "cc", so it can be a program name with args.
3478 set dummy cc; ac_word=$2
3479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if test "${ac_cv_prog_CC+set}" = set; then
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 ac_prog_rejected=no
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3496 ac_prog_rejected=yes
3497 continue
3499 ac_cv_prog_CC="cc"
3500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3503 done
3504 done
3505 IFS=$as_save_IFS
3507 if test $ac_prog_rejected = yes; then
3508 # We found a bogon in the path, so make sure we never use it.
3509 set dummy $ac_cv_prog_CC
3510 shift
3511 if test $# != 0; then
3512 # We chose a different compiler from the bogus one.
3513 # However, it has the same basename, so the bogon will be chosen
3514 # first if we set CC to just the basename; use the full file name.
3515 shift
3516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526 { $as_echo "$as_me:$LINENO: result: no" >&5
3527 $as_echo "no" >&6; }
3532 if test -z "$CC"; then
3533 if test -n "$ac_tool_prefix"; then
3534 for ac_prog in cl.exe
3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if test "${ac_cv_prog_CC+set}" = set; then
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3557 done
3558 done
3559 IFS=$as_save_IFS
3563 CC=$ac_cv_prog_CC
3564 if test -n "$CC"; then
3565 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3567 else
3568 { $as_echo "$as_me:$LINENO: result: no" >&5
3569 $as_echo "no" >&6; }
3573 test -n "$CC" && break
3574 done
3576 if test -z "$CC"; then
3577 ac_ct_CC=$CC
3578 for ac_prog in cl.exe
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_ac_ct_CC="$ac_prog"
3598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3603 IFS=$as_save_IFS
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3611 else
3612 { $as_echo "$as_me:$LINENO: result: no" >&5
3613 $as_echo "no" >&6; }
3617 test -n "$ac_ct_CC" && break
3618 done
3620 if test "x$ac_ct_CC" = x; then
3621 CC=""
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 CC=$ac_ct_CC
3636 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3639 See \`config.log' for more details." >&5
3640 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3641 See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }; }
3644 # Provide some information about the compiler.
3645 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3646 set X $ac_compile
3647 ac_compiler=$2
3648 { (ac_try="$ac_compiler --version >&5"
3649 case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3654 $as_echo "$ac_try_echo") >&5
3655 (eval "$ac_compiler --version >&5") 2>&5
3656 ac_status=$?
3657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }
3659 { (ac_try="$ac_compiler -v >&5"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3665 $as_echo "$ac_try_echo") >&5
3666 (eval "$ac_compiler -v >&5") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }
3670 { (ac_try="$ac_compiler -V >&5"
3671 case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3676 $as_echo "$ac_try_echo") >&5
3677 (eval "$ac_compiler -V >&5") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }
3682 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3683 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3684 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3685 $as_echo_n "(cached) " >&6
3686 else
3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3695 main ()
3697 #ifndef __GNUC__
3698 choke me
3699 #endif
3702 return 0;
3704 _ACEOF
3705 rm -f conftest.$ac_objext
3706 if { (ac_try="$ac_compile"
3707 case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710 esac
3711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3712 $as_echo "$ac_try_echo") >&5
3713 (eval "$ac_compile") 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } && {
3720 test -z "$ac_c_werror_flag" ||
3721 test ! -s conftest.err
3722 } && test -s conftest.$ac_objext; then
3723 ac_compiler_gnu=yes
3724 else
3725 $as_echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3728 ac_compiler_gnu=no
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3735 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3736 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3737 if test $ac_compiler_gnu = yes; then
3738 GCC=yes
3739 else
3740 GCC=
3742 ac_test_CFLAGS=${CFLAGS+set}
3743 ac_save_CFLAGS=$CFLAGS
3744 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3745 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3746 if test "${ac_cv_prog_cc_g+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3748 else
3749 ac_save_c_werror_flag=$ac_c_werror_flag
3750 ac_c_werror_flag=yes
3751 ac_cv_prog_cc_g=no
3752 CFLAGS="-g"
3753 cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h. */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3761 main ()
3765 return 0;
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (ac_try="$ac_compile"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3775 $as_echo "$ac_try_echo") >&5
3776 (eval "$ac_compile") 2>conftest.er1
3777 ac_status=$?
3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
3781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } && {
3783 test -z "$ac_c_werror_flag" ||
3784 test ! -s conftest.err
3785 } && test -s conftest.$ac_objext; then
3786 ac_cv_prog_cc_g=yes
3787 else
3788 $as_echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3791 CFLAGS=""
3792 cat >conftest.$ac_ext <<_ACEOF
3793 /* confdefs.h. */
3794 _ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3800 main ()
3804 return 0;
3806 _ACEOF
3807 rm -f conftest.$ac_objext
3808 if { (ac_try="$ac_compile"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3814 $as_echo "$ac_try_echo") >&5
3815 (eval "$ac_compile") 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } && {
3822 test -z "$ac_c_werror_flag" ||
3823 test ! -s conftest.err
3824 } && test -s conftest.$ac_objext; then
3826 else
3827 $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 ac_c_werror_flag=$ac_save_c_werror_flag
3831 CFLAGS="-g"
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3840 main ()
3844 return 0;
3846 _ACEOF
3847 rm -f conftest.$ac_objext
3848 if { (ac_try="$ac_compile"
3849 case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852 esac
3853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3854 $as_echo "$ac_try_echo") >&5
3855 (eval "$ac_compile") 2>conftest.er1
3856 ac_status=$?
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } && {
3862 test -z "$ac_c_werror_flag" ||
3863 test ! -s conftest.err
3864 } && test -s conftest.$ac_objext; then
3865 ac_cv_prog_cc_g=yes
3866 else
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 ac_c_werror_flag=$ac_save_c_werror_flag
3882 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3883 $as_echo "$ac_cv_prog_cc_g" >&6; }
3884 if test "$ac_test_CFLAGS" = set; then
3885 CFLAGS=$ac_save_CFLAGS
3886 elif test $ac_cv_prog_cc_g = yes; then
3887 if test "$GCC" = yes; then
3888 CFLAGS="-g -O2"
3889 else
3890 CFLAGS="-g"
3892 else
3893 if test "$GCC" = yes; then
3894 CFLAGS="-O2"
3895 else
3896 CFLAGS=
3899 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3900 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3901 if test "${ac_cv_prog_cc_c89+set}" = set; then
3902 $as_echo_n "(cached) " >&6
3903 else
3904 ac_cv_prog_cc_c89=no
3905 ac_save_CC=$CC
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 #include <stdarg.h>
3913 #include <stdio.h>
3914 #include <sys/types.h>
3915 #include <sys/stat.h>
3916 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3917 struct buf { int x; };
3918 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3919 static char *e (p, i)
3920 char **p;
3921 int i;
3923 return p[i];
3925 static char *f (char * (*g) (char **, int), char **p, ...)
3927 char *s;
3928 va_list v;
3929 va_start (v,p);
3930 s = g (p, va_arg (v,int));
3931 va_end (v);
3932 return s;
3935 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3936 function prototypes and stuff, but not '\xHH' hex character constants.
3937 These don't provoke an error unfortunately, instead are silently treated
3938 as 'x'. The following induces an error, until -std is added to get
3939 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3940 array size at least. It's necessary to write '\x00'==0 to get something
3941 that's true only with -std. */
3942 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3944 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3945 inside strings and character constants. */
3946 #define FOO(x) 'x'
3947 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3949 int test (int i, double x);
3950 struct s1 {int (*f) (int a);};
3951 struct s2 {int (*f) (double a);};
3952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3953 int argc;
3954 char **argv;
3956 main ()
3958 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3960 return 0;
3962 _ACEOF
3963 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3964 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3966 CC="$ac_save_CC $ac_arg"
3967 rm -f conftest.$ac_objext
3968 if { (ac_try="$ac_compile"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3974 $as_echo "$ac_try_echo") >&5
3975 (eval "$ac_compile") 2>conftest.er1
3976 ac_status=$?
3977 grep -v '^ *+' conftest.er1 >conftest.err
3978 rm -f conftest.er1
3979 cat conftest.err >&5
3980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } && {
3982 test -z "$ac_c_werror_flag" ||
3983 test ! -s conftest.err
3984 } && test -s conftest.$ac_objext; then
3985 ac_cv_prog_cc_c89=$ac_arg
3986 else
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3993 rm -f core conftest.err conftest.$ac_objext
3994 test "x$ac_cv_prog_cc_c89" != "xno" && break
3995 done
3996 rm -f conftest.$ac_ext
3997 CC=$ac_save_CC
4000 # AC_CACHE_VAL
4001 case "x$ac_cv_prog_cc_c89" in
4003 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4004 $as_echo "none needed" >&6; } ;;
4005 xno)
4006 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4007 $as_echo "unsupported" >&6; } ;;
4009 CC="$CC $ac_cv_prog_cc_c89"
4010 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4011 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4012 esac
4015 ac_ext=c
4016 ac_cpp='$CPP $CPPFLAGS'
4017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 depcc="$CC" am_compiler_list=
4023 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4024 $as_echo_n "checking dependency style of $depcc... " >&6; }
4025 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4029 # We make a subdir and do the tests there. Otherwise we can end up
4030 # making bogus files that we don't know about and never remove. For
4031 # instance it was reported that on HP-UX the gcc test will end up
4032 # making a dummy file named `D' -- because `-MD' means `put the output
4033 # in D'.
4034 mkdir conftest.dir
4035 # Copy depcomp to subdir because otherwise we won't find it if we're
4036 # using a relative directory.
4037 cp "$am_depcomp" conftest.dir
4038 cd conftest.dir
4039 # We will build objects and dependencies in a subdirectory because
4040 # it helps to detect inapplicable dependency modes. For instance
4041 # both Tru64's cc and ICC support -MD to output dependencies as a
4042 # side effect of compilation, but ICC will put the dependencies in
4043 # the current directory while Tru64 will put them in the object
4044 # directory.
4045 mkdir sub
4047 am_cv_CC_dependencies_compiler_type=none
4048 if test "$am_compiler_list" = ""; then
4049 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4051 for depmode in $am_compiler_list; do
4052 # Setup a source with many dependencies, because some compilers
4053 # like to wrap large dependency lists on column 80 (with \), and
4054 # we should not choose a depcomp mode which is confused by this.
4056 # We need to recreate these files for each test, as the compiler may
4057 # overwrite some of them when testing with obscure command lines.
4058 # This happens at least with the AIX C compiler.
4059 : > sub/conftest.c
4060 for i in 1 2 3 4 5 6; do
4061 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4062 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4063 # Solaris 8's {/usr,}/bin/sh.
4064 touch sub/conftst$i.h
4065 done
4066 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4068 case $depmode in
4069 nosideeffect)
4070 # after this tag, mechanisms are not by side-effect, so they'll
4071 # only be used when explicitly requested
4072 if test "x$enable_dependency_tracking" = xyes; then
4073 continue
4074 else
4075 break
4078 none) break ;;
4079 esac
4080 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4081 # mode. It turns out that the SunPro C++ compiler does not properly
4082 # handle `-M -o', and we need to detect this.
4083 if depmode=$depmode \
4084 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4085 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4086 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4087 >/dev/null 2>conftest.err &&
4088 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4089 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4090 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4091 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4092 # icc doesn't choke on unknown options, it will just issue warnings
4093 # or remarks (even with -Werror). So we grep stderr for any message
4094 # that says an option was ignored or not supported.
4095 # When given -MP, icc 7.0 and 7.1 complain thusly:
4096 # icc: Command line warning: ignoring option '-M'; no argument required
4097 # The diagnosis changed in icc 8.0:
4098 # icc: Command line remark: option '-MP' not supported
4099 if (grep 'ignoring option' conftest.err ||
4100 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4101 am_cv_CC_dependencies_compiler_type=$depmode
4102 break
4105 done
4107 cd ..
4108 rm -rf conftest.dir
4109 else
4110 am_cv_CC_dependencies_compiler_type=none
4114 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4115 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4116 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4119 test "x$enable_dependency_tracking" != xno \
4120 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4121 am__fastdepCC_TRUE=
4122 am__fastdepCC_FALSE='#'
4123 else
4124 am__fastdepCC_TRUE='#'
4125 am__fastdepCC_FALSE=
4130 ac_ext=c
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4136 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4137 # On Suns, sometimes $CPP names a directory.
4138 if test -n "$CPP" && test -d "$CPP"; then
4139 CPP=
4141 if test -z "$CPP"; then
4142 if test "${ac_cv_prog_CPP+set}" = set; then
4143 $as_echo_n "(cached) " >&6
4144 else
4145 # Double quotes because CPP needs to be expanded
4146 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4148 ac_preproc_ok=false
4149 for ac_c_preproc_warn_flag in '' yes
4151 # Use a header file that comes with gcc, so configuring glibc
4152 # with a fresh cross-compiler works.
4153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4154 # <limits.h> exists even on freestanding compilers.
4155 # On the NeXT, cc -E runs the code through the compiler's parser,
4156 # not just through cpp. "Syntax error" is here to catch this case.
4157 cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h. */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4163 #ifdef __STDC__
4164 # include <limits.h>
4165 #else
4166 # include <assert.h>
4167 #endif
4168 Syntax error
4169 _ACEOF
4170 if { (ac_try="$ac_cpp conftest.$ac_ext"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176 $as_echo "$ac_try_echo") >&5
4177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } >/dev/null && {
4184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4185 test ! -s conftest.err
4186 }; then
4188 else
4189 $as_echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 # Broken: fails on valid input.
4193 continue
4196 rm -f conftest.err conftest.$ac_ext
4198 # OK, works on sane cases. Now check whether nonexistent headers
4199 # can be detected and how.
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <ac_nonexistent.h>
4207 _ACEOF
4208 if { (ac_try="$ac_cpp conftest.$ac_ext"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4214 $as_echo "$ac_try_echo") >&5
4215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } >/dev/null && {
4222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4223 test ! -s conftest.err
4224 }; then
4225 # Broken: success on invalid input.
4226 continue
4227 else
4228 $as_echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 # Passes both tests.
4232 ac_preproc_ok=:
4233 break
4236 rm -f conftest.err conftest.$ac_ext
4238 done
4239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4240 rm -f conftest.err conftest.$ac_ext
4241 if $ac_preproc_ok; then
4242 break
4245 done
4246 ac_cv_prog_CPP=$CPP
4249 CPP=$ac_cv_prog_CPP
4250 else
4251 ac_cv_prog_CPP=$CPP
4253 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4254 $as_echo "$CPP" >&6; }
4255 ac_preproc_ok=false
4256 for ac_c_preproc_warn_flag in '' yes
4258 # Use a header file that comes with gcc, so configuring glibc
4259 # with a fresh cross-compiler works.
4260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261 # <limits.h> exists even on freestanding compilers.
4262 # On the NeXT, cc -E runs the code through the compiler's parser,
4263 # not just through cpp. "Syntax error" is here to catch this case.
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #ifdef __STDC__
4271 # include <limits.h>
4272 #else
4273 # include <assert.h>
4274 #endif
4275 Syntax error
4276 _ACEOF
4277 if { (ac_try="$ac_cpp conftest.$ac_ext"
4278 case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283 $as_echo "$ac_try_echo") >&5
4284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } >/dev/null && {
4291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4292 test ! -s conftest.err
4293 }; then
4295 else
4296 $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 # Broken: fails on valid input.
4300 continue
4303 rm -f conftest.err conftest.$ac_ext
4305 # OK, works on sane cases. Now check whether nonexistent headers
4306 # can be detected and how.
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #include <ac_nonexistent.h>
4314 _ACEOF
4315 if { (ac_try="$ac_cpp conftest.$ac_ext"
4316 case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4321 $as_echo "$ac_try_echo") >&5
4322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } >/dev/null && {
4329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4330 test ! -s conftest.err
4331 }; then
4332 # Broken: success on invalid input.
4333 continue
4334 else
4335 $as_echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 # Passes both tests.
4339 ac_preproc_ok=:
4340 break
4343 rm -f conftest.err conftest.$ac_ext
4345 done
4346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4347 rm -f conftest.err conftest.$ac_ext
4348 if $ac_preproc_ok; then
4350 else
4351 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4353 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4354 See \`config.log' for more details." >&5
4355 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4356 See \`config.log' for more details." >&2;}
4357 { (exit 1); exit 1; }; }; }
4360 ac_ext=c
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367 { $as_echo "$as_me:$LINENO: checking for X" >&5
4368 $as_echo_n "checking for X... " >&6; }
4371 # Check whether --with-x was given.
4372 if test "${with_x+set}" = set; then
4373 withval=$with_x;
4376 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4377 if test "x$with_x" = xno; then
4378 # The user explicitly disabled X.
4379 have_x=disabled
4380 else
4381 case $x_includes,$x_libraries in #(
4382 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
4383 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
4384 { (exit 1); exit 1; }; };; #(
4385 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4386 $as_echo_n "(cached) " >&6
4387 else
4388 # One or both of the vars are not set, and there is no cached value.
4389 ac_x_includes=no ac_x_libraries=no
4390 rm -f -r conftest.dir
4391 if mkdir conftest.dir; then
4392 cd conftest.dir
4393 cat >Imakefile <<'_ACEOF'
4394 incroot:
4395 @echo incroot='${INCROOT}'
4396 usrlibdir:
4397 @echo usrlibdir='${USRLIBDIR}'
4398 libdir:
4399 @echo libdir='${LIBDIR}'
4400 _ACEOF
4401 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4402 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4403 for ac_var in incroot usrlibdir libdir; do
4404 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4405 done
4406 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4407 for ac_extension in a so sl dylib la dll; do
4408 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4409 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4410 ac_im_usrlibdir=$ac_im_libdir; break
4412 done
4413 # Screen out bogus values from the imake configuration. They are
4414 # bogus both because they are the default anyway, and because
4415 # using them would break gcc on systems where it needs fixed includes.
4416 case $ac_im_incroot in
4417 /usr/include) ac_x_includes= ;;
4418 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4419 esac
4420 case $ac_im_usrlibdir in
4421 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4422 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4423 esac
4425 cd ..
4426 rm -f -r conftest.dir
4429 # Standard set of common directories for X headers.
4430 # Check X11 before X11Rn because it is often a symlink to the current release.
4431 ac_x_header_dirs='
4432 /usr/X11/include
4433 /usr/X11R6/include
4434 /usr/X11R5/include
4435 /usr/X11R4/include
4437 /usr/include/X11
4438 /usr/include/X11R6
4439 /usr/include/X11R5
4440 /usr/include/X11R4
4442 /usr/local/X11/include
4443 /usr/local/X11R6/include
4444 /usr/local/X11R5/include
4445 /usr/local/X11R4/include
4447 /usr/local/include/X11
4448 /usr/local/include/X11R6
4449 /usr/local/include/X11R5
4450 /usr/local/include/X11R4
4452 /usr/X386/include
4453 /usr/x386/include
4454 /usr/XFree86/include/X11
4456 /usr/include
4457 /usr/local/include
4458 /usr/unsupported/include
4459 /usr/athena/include
4460 /usr/local/x11r5/include
4461 /usr/lpp/Xamples/include
4463 /usr/openwin/include
4464 /usr/openwin/share/include'
4466 if test "$ac_x_includes" = no; then
4467 # Guess where to find include files, by looking for Xlib.h.
4468 # First, try using that file with no special directory specified.
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <X11/Xlib.h>
4476 _ACEOF
4477 if { (ac_try="$ac_cpp conftest.$ac_ext"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } >/dev/null && {
4491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 }; then
4494 # We can compile using X headers with no special include directory.
4495 ac_x_includes=
4496 else
4497 $as_echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 for ac_dir in $ac_x_header_dirs; do
4501 if test -r "$ac_dir/X11/Xlib.h"; then
4502 ac_x_includes=$ac_dir
4503 break
4505 done
4508 rm -f conftest.err conftest.$ac_ext
4509 fi # $ac_x_includes = no
4511 if test "$ac_x_libraries" = no; then
4512 # Check for the libraries.
4513 # See if we find them without any special options.
4514 # Don't add to $LIBS permanently.
4515 ac_save_LIBS=$LIBS
4516 LIBS="-lX11 $LIBS"
4517 cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h. */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 #include <X11/Xlib.h>
4525 main ()
4527 XrmInitialize ()
4529 return 0;
4531 _ACEOF
4532 rm -f conftest.$ac_objext conftest$ac_exeext
4533 if { (ac_try="$ac_link"
4534 case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540 (eval "$ac_link") 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest$ac_exeext && {
4550 test "$cross_compiling" = yes ||
4551 $as_test_x conftest$ac_exeext
4552 }; then
4553 LIBS=$ac_save_LIBS
4554 # We can link X programs with no special library path.
4555 ac_x_libraries=
4556 else
4557 $as_echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4560 LIBS=$ac_save_LIBS
4561 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4563 # Don't even attempt the hair of trying to link an X program!
4564 for ac_extension in a so sl dylib la dll; do
4565 if test -r "$ac_dir/libX11.$ac_extension"; then
4566 ac_x_libraries=$ac_dir
4567 break 2
4569 done
4570 done
4573 rm -rf conftest.dSYM
4574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4575 conftest$ac_exeext conftest.$ac_ext
4576 fi # $ac_x_libraries = no
4578 case $ac_x_includes,$ac_x_libraries in #(
4579 no,* | *,no | *\'*)
4580 # Didn't find X, or a directory has "'" in its name.
4581 ac_cv_have_x="have_x=no";; #(
4583 # Record where we found X for the cache.
4584 ac_cv_have_x="have_x=yes\
4585 ac_x_includes='$ac_x_includes'\
4586 ac_x_libraries='$ac_x_libraries'"
4587 esac
4589 ;; #(
4590 *) have_x=yes;;
4591 esac
4592 eval "$ac_cv_have_x"
4593 fi # $with_x != no
4595 if test "$have_x" != yes; then
4596 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
4597 $as_echo "$have_x" >&6; }
4598 no_x=yes
4599 else
4600 # If each of the values was on the command line, it overrides each guess.
4601 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4602 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4603 # Update the cache value to reflect the command line values.
4604 ac_cv_have_x="have_x=yes\
4605 ac_x_includes='$x_includes'\
4606 ac_x_libraries='$x_libraries'"
4607 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4608 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4611 if test "$no_x" = yes; then
4612 # Not all programs may use this symbol, but it does not hurt to define it.
4614 cat >>confdefs.h <<\_ACEOF
4615 #define X_DISPLAY_MISSING 1
4616 _ACEOF
4618 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4619 else
4620 if test -n "$x_includes"; then
4621 X_CFLAGS="$X_CFLAGS -I$x_includes"
4624 # It would also be nice to do this for all -L options, not just this one.
4625 if test -n "$x_libraries"; then
4626 X_LIBS="$X_LIBS -L$x_libraries"
4627 # For Solaris; some versions of Sun CC require a space after -R and
4628 # others require no space. Words are not sufficient . . . .
4629 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4630 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4631 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4632 ac_xsave_c_werror_flag=$ac_c_werror_flag
4633 ac_c_werror_flag=yes
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4642 main ()
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (ac_try="$ac_link"
4651 case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654 esac
4655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4656 $as_echo "$ac_try_echo") >&5
4657 (eval "$ac_link") 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } && {
4664 test -z "$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 } && test -s conftest$ac_exeext && {
4667 test "$cross_compiling" = yes ||
4668 $as_test_x conftest$ac_exeext
4669 }; then
4670 { $as_echo "$as_me:$LINENO: result: no" >&5
4671 $as_echo "no" >&6; }
4672 X_LIBS="$X_LIBS -R$x_libraries"
4673 else
4674 $as_echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4677 LIBS="$ac_xsave_LIBS -R $x_libraries"
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4686 main ()
4690 return 0;
4692 _ACEOF
4693 rm -f conftest.$ac_objext conftest$ac_exeext
4694 if { (ac_try="$ac_link"
4695 case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4700 $as_echo "$ac_try_echo") >&5
4701 (eval "$ac_link") 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && {
4708 test -z "$ac_c_werror_flag" ||
4709 test ! -s conftest.err
4710 } && test -s conftest$ac_exeext && {
4711 test "$cross_compiling" = yes ||
4712 $as_test_x conftest$ac_exeext
4713 }; then
4714 { $as_echo "$as_me:$LINENO: result: yes" >&5
4715 $as_echo "yes" >&6; }
4716 X_LIBS="$X_LIBS -R $x_libraries"
4717 else
4718 $as_echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 { $as_echo "$as_me:$LINENO: result: neither works" >&5
4722 $as_echo "neither works" >&6; }
4725 rm -rf conftest.dSYM
4726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4727 conftest$ac_exeext conftest.$ac_ext
4730 rm -rf conftest.dSYM
4731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4732 conftest$ac_exeext conftest.$ac_ext
4733 ac_c_werror_flag=$ac_xsave_c_werror_flag
4734 LIBS=$ac_xsave_LIBS
4737 # Check for system-dependent libraries X programs must link with.
4738 # Do this before checking for the system-independent R6 libraries
4739 # (-lICE), since we may need -lsocket or whatever for X linking.
4741 if test "$ISC" = yes; then
4742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4743 else
4744 # Martyn Johnson says this is needed for Ultrix, if the X
4745 # libraries were built with DECnet support. And Karl Berry says
4746 # the Alpha needs dnet_stub (dnet does not exist).
4747 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4755 /* Override any GCC internal prototype to avoid an error.
4756 Use char because int might match the return type of a GCC
4757 builtin and then its argument prototype would still apply. */
4758 #ifdef __cplusplus
4759 extern "C"
4760 #endif
4761 char XOpenDisplay ();
4763 main ()
4765 return XOpenDisplay ();
4767 return 0;
4769 _ACEOF
4770 rm -f conftest.$ac_objext conftest$ac_exeext
4771 if { (ac_try="$ac_link"
4772 case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775 esac
4776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4777 $as_echo "$ac_try_echo") >&5
4778 (eval "$ac_link") 2>conftest.er1
4779 ac_status=$?
4780 grep -v '^ *+' conftest.er1 >conftest.err
4781 rm -f conftest.er1
4782 cat conftest.err >&5
4783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } && {
4785 test -z "$ac_c_werror_flag" ||
4786 test ! -s conftest.err
4787 } && test -s conftest$ac_exeext && {
4788 test "$cross_compiling" = yes ||
4789 $as_test_x conftest$ac_exeext
4790 }; then
4792 else
4793 $as_echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4797 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4798 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4799 $as_echo_n "(cached) " >&6
4800 else
4801 ac_check_lib_save_LIBS=$LIBS
4802 LIBS="-ldnet $LIBS"
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h. */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4810 /* Override any GCC internal prototype to avoid an error.
4811 Use char because int might match the return type of a GCC
4812 builtin and then its argument prototype would still apply. */
4813 #ifdef __cplusplus
4814 extern "C"
4815 #endif
4816 char dnet_ntoa ();
4818 main ()
4820 return dnet_ntoa ();
4822 return 0;
4824 _ACEOF
4825 rm -f conftest.$ac_objext conftest$ac_exeext
4826 if { (ac_try="$ac_link"
4827 case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830 esac
4831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4832 $as_echo "$ac_try_echo") >&5
4833 (eval "$ac_link") 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && {
4840 test -z "$ac_c_werror_flag" ||
4841 test ! -s conftest.err
4842 } && test -s conftest$ac_exeext && {
4843 test "$cross_compiling" = yes ||
4844 $as_test_x conftest$ac_exeext
4845 }; then
4846 ac_cv_lib_dnet_dnet_ntoa=yes
4847 else
4848 $as_echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 ac_cv_lib_dnet_dnet_ntoa=no
4854 rm -rf conftest.dSYM
4855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4856 conftest$ac_exeext conftest.$ac_ext
4857 LIBS=$ac_check_lib_save_LIBS
4859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4860 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4861 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
4862 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4865 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4866 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4867 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4868 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4869 $as_echo_n "(cached) " >&6
4870 else
4871 ac_check_lib_save_LIBS=$LIBS
4872 LIBS="-ldnet_stub $LIBS"
4873 cat >conftest.$ac_ext <<_ACEOF
4874 /* confdefs.h. */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4880 /* Override any GCC internal prototype to avoid an error.
4881 Use char because int might match the return type of a GCC
4882 builtin and then its argument prototype would still apply. */
4883 #ifdef __cplusplus
4884 extern "C"
4885 #endif
4886 char dnet_ntoa ();
4888 main ()
4890 return dnet_ntoa ();
4892 return 0;
4894 _ACEOF
4895 rm -f conftest.$ac_objext conftest$ac_exeext
4896 if { (ac_try="$ac_link"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4902 $as_echo "$ac_try_echo") >&5
4903 (eval "$ac_link") 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest$ac_exeext && {
4913 test "$cross_compiling" = yes ||
4914 $as_test_x conftest$ac_exeext
4915 }; then
4916 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4917 else
4918 $as_echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 ac_cv_lib_dnet_stub_dnet_ntoa=no
4924 rm -rf conftest.dSYM
4925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4926 conftest$ac_exeext conftest.$ac_ext
4927 LIBS=$ac_check_lib_save_LIBS
4929 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4930 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4931 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
4932 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4938 rm -rf conftest.dSYM
4939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4940 conftest$ac_exeext conftest.$ac_ext
4941 LIBS="$ac_xsave_LIBS"
4943 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4944 # to get the SysV transport functions.
4945 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4946 # needs -lnsl.
4947 # The nsl library prevents programs from opening the X display
4948 # on Irix 5.2, according to T.E. Dickey.
4949 # The functions gethostbyname, getservbyname, and inet_addr are
4950 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4951 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
4952 $as_echo_n "checking for gethostbyname... " >&6; }
4953 if test "${ac_cv_func_gethostbyname+set}" = set; then
4954 $as_echo_n "(cached) " >&6
4955 else
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4964 #define gethostbyname innocuous_gethostbyname
4966 /* System header to define __stub macros and hopefully few prototypes,
4967 which can conflict with char gethostbyname (); below.
4968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4969 <limits.h> exists even on freestanding compilers. */
4971 #ifdef __STDC__
4972 # include <limits.h>
4973 #else
4974 # include <assert.h>
4975 #endif
4977 #undef gethostbyname
4979 /* Override any GCC internal prototype to avoid an error.
4980 Use char because int might match the return type of a GCC
4981 builtin and then its argument prototype would still apply. */
4982 #ifdef __cplusplus
4983 extern "C"
4984 #endif
4985 char gethostbyname ();
4986 /* The GNU C library defines this for functions which it implements
4987 to always fail with ENOSYS. Some functions are actually named
4988 something starting with __ and the normal name is an alias. */
4989 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4990 choke me
4991 #endif
4994 main ()
4996 return gethostbyname ();
4998 return 0;
5000 _ACEOF
5001 rm -f conftest.$ac_objext conftest$ac_exeext
5002 if { (ac_try="$ac_link"
5003 case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006 esac
5007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5008 $as_echo "$ac_try_echo") >&5
5009 (eval "$ac_link") 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } && {
5016 test -z "$ac_c_werror_flag" ||
5017 test ! -s conftest.err
5018 } && test -s conftest$ac_exeext && {
5019 test "$cross_compiling" = yes ||
5020 $as_test_x conftest$ac_exeext
5021 }; then
5022 ac_cv_func_gethostbyname=yes
5023 else
5024 $as_echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 ac_cv_func_gethostbyname=no
5030 rm -rf conftest.dSYM
5031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5032 conftest$ac_exeext conftest.$ac_ext
5034 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5035 $as_echo "$ac_cv_func_gethostbyname" >&6; }
5037 if test $ac_cv_func_gethostbyname = no; then
5038 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5039 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5040 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5041 $as_echo_n "(cached) " >&6
5042 else
5043 ac_check_lib_save_LIBS=$LIBS
5044 LIBS="-lnsl $LIBS"
5045 cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5052 /* Override any GCC internal prototype to avoid an error.
5053 Use char because int might match the return type of a GCC
5054 builtin and then its argument prototype would still apply. */
5055 #ifdef __cplusplus
5056 extern "C"
5057 #endif
5058 char gethostbyname ();
5060 main ()
5062 return gethostbyname ();
5064 return 0;
5066 _ACEOF
5067 rm -f conftest.$ac_objext conftest$ac_exeext
5068 if { (ac_try="$ac_link"
5069 case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072 esac
5073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5074 $as_echo "$ac_try_echo") >&5
5075 (eval "$ac_link") 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } && {
5082 test -z "$ac_c_werror_flag" ||
5083 test ! -s conftest.err
5084 } && test -s conftest$ac_exeext && {
5085 test "$cross_compiling" = yes ||
5086 $as_test_x conftest$ac_exeext
5087 }; then
5088 ac_cv_lib_nsl_gethostbyname=yes
5089 else
5090 $as_echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 ac_cv_lib_nsl_gethostbyname=no
5096 rm -rf conftest.dSYM
5097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5098 conftest$ac_exeext conftest.$ac_ext
5099 LIBS=$ac_check_lib_save_LIBS
5101 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5102 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5103 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
5104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5107 if test $ac_cv_lib_nsl_gethostbyname = no; then
5108 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5109 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5110 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5111 $as_echo_n "(cached) " >&6
5112 else
5113 ac_check_lib_save_LIBS=$LIBS
5114 LIBS="-lbsd $LIBS"
5115 cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5122 /* Override any GCC internal prototype to avoid an error.
5123 Use char because int might match the return type of a GCC
5124 builtin and then its argument prototype would still apply. */
5125 #ifdef __cplusplus
5126 extern "C"
5127 #endif
5128 char gethostbyname ();
5130 main ()
5132 return gethostbyname ();
5134 return 0;
5136 _ACEOF
5137 rm -f conftest.$ac_objext conftest$ac_exeext
5138 if { (ac_try="$ac_link"
5139 case "(($ac_try" in
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5142 esac
5143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5144 $as_echo "$ac_try_echo") >&5
5145 (eval "$ac_link") 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest$ac_exeext && {
5155 test "$cross_compiling" = yes ||
5156 $as_test_x conftest$ac_exeext
5157 }; then
5158 ac_cv_lib_bsd_gethostbyname=yes
5159 else
5160 $as_echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 ac_cv_lib_bsd_gethostbyname=no
5166 rm -rf conftest.dSYM
5167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5168 conftest$ac_exeext conftest.$ac_ext
5169 LIBS=$ac_check_lib_save_LIBS
5171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5172 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5173 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
5174 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5180 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5181 # socket/setsockopt and other routines are undefined under SCO ODT
5182 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5183 # on later versions), says Simon Leinen: it contains gethostby*
5184 # variants that don't use the name server (or something). -lsocket
5185 # must be given before -lnsl if both are needed. We assume that
5186 # if connect needs -lnsl, so does gethostbyname.
5187 { $as_echo "$as_me:$LINENO: checking for connect" >&5
5188 $as_echo_n "checking for connect... " >&6; }
5189 if test "${ac_cv_func_connect+set}" = set; then
5190 $as_echo_n "(cached) " >&6
5191 else
5192 cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h. */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5198 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5200 #define connect innocuous_connect
5202 /* System header to define __stub macros and hopefully few prototypes,
5203 which can conflict with char connect (); below.
5204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5205 <limits.h> exists even on freestanding compilers. */
5207 #ifdef __STDC__
5208 # include <limits.h>
5209 #else
5210 # include <assert.h>
5211 #endif
5213 #undef connect
5215 /* Override any GCC internal prototype to avoid an error.
5216 Use char because int might match the return type of a GCC
5217 builtin and then its argument prototype would still apply. */
5218 #ifdef __cplusplus
5219 extern "C"
5220 #endif
5221 char connect ();
5222 /* The GNU C library defines this for functions which it implements
5223 to always fail with ENOSYS. Some functions are actually named
5224 something starting with __ and the normal name is an alias. */
5225 #if defined __stub_connect || defined __stub___connect
5226 choke me
5227 #endif
5230 main ()
5232 return connect ();
5234 return 0;
5236 _ACEOF
5237 rm -f conftest.$ac_objext conftest$ac_exeext
5238 if { (ac_try="$ac_link"
5239 case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5244 $as_echo "$ac_try_echo") >&5
5245 (eval "$ac_link") 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } && {
5252 test -z "$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5254 } && test -s conftest$ac_exeext && {
5255 test "$cross_compiling" = yes ||
5256 $as_test_x conftest$ac_exeext
5257 }; then
5258 ac_cv_func_connect=yes
5259 else
5260 $as_echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 ac_cv_func_connect=no
5266 rm -rf conftest.dSYM
5267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5268 conftest$ac_exeext conftest.$ac_ext
5270 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5271 $as_echo "$ac_cv_func_connect" >&6; }
5273 if test $ac_cv_func_connect = no; then
5274 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5275 $as_echo_n "checking for connect in -lsocket... " >&6; }
5276 if test "${ac_cv_lib_socket_connect+set}" = set; then
5277 $as_echo_n "(cached) " >&6
5278 else
5279 ac_check_lib_save_LIBS=$LIBS
5280 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h. */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5288 /* Override any GCC internal prototype to avoid an error.
5289 Use char because int might match the return type of a GCC
5290 builtin and then its argument prototype would still apply. */
5291 #ifdef __cplusplus
5292 extern "C"
5293 #endif
5294 char connect ();
5296 main ()
5298 return connect ();
5300 return 0;
5302 _ACEOF
5303 rm -f conftest.$ac_objext conftest$ac_exeext
5304 if { (ac_try="$ac_link"
5305 case "(($ac_try" in
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5308 esac
5309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5310 $as_echo "$ac_try_echo") >&5
5311 (eval "$ac_link") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } && {
5318 test -z "$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5320 } && test -s conftest$ac_exeext && {
5321 test "$cross_compiling" = yes ||
5322 $as_test_x conftest$ac_exeext
5323 }; then
5324 ac_cv_lib_socket_connect=yes
5325 else
5326 $as_echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5329 ac_cv_lib_socket_connect=no
5332 rm -rf conftest.dSYM
5333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5334 conftest$ac_exeext conftest.$ac_ext
5335 LIBS=$ac_check_lib_save_LIBS
5337 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5338 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5339 if test "x$ac_cv_lib_socket_connect" = x""yes; then
5340 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5345 # Guillermo Gomez says -lposix is necessary on A/UX.
5346 { $as_echo "$as_me:$LINENO: checking for remove" >&5
5347 $as_echo_n "checking for remove... " >&6; }
5348 if test "${ac_cv_func_remove+set}" = set; then
5349 $as_echo_n "(cached) " >&6
5350 else
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5359 #define remove innocuous_remove
5361 /* System header to define __stub macros and hopefully few prototypes,
5362 which can conflict with char remove (); below.
5363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5364 <limits.h> exists even on freestanding compilers. */
5366 #ifdef __STDC__
5367 # include <limits.h>
5368 #else
5369 # include <assert.h>
5370 #endif
5372 #undef remove
5374 /* Override any GCC internal prototype to avoid an error.
5375 Use char because int might match the return type of a GCC
5376 builtin and then its argument prototype would still apply. */
5377 #ifdef __cplusplus
5378 extern "C"
5379 #endif
5380 char remove ();
5381 /* The GNU C library defines this for functions which it implements
5382 to always fail with ENOSYS. Some functions are actually named
5383 something starting with __ and the normal name is an alias. */
5384 #if defined __stub_remove || defined __stub___remove
5385 choke me
5386 #endif
5389 main ()
5391 return remove ();
5393 return 0;
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (ac_try="$ac_link"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5403 $as_echo "$ac_try_echo") >&5
5404 (eval "$ac_link") 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_c_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest$ac_exeext && {
5414 test "$cross_compiling" = yes ||
5415 $as_test_x conftest$ac_exeext
5416 }; then
5417 ac_cv_func_remove=yes
5418 else
5419 $as_echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 ac_cv_func_remove=no
5425 rm -rf conftest.dSYM
5426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5427 conftest$ac_exeext conftest.$ac_ext
5429 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5430 $as_echo "$ac_cv_func_remove" >&6; }
5432 if test $ac_cv_func_remove = no; then
5433 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5434 $as_echo_n "checking for remove in -lposix... " >&6; }
5435 if test "${ac_cv_lib_posix_remove+set}" = set; then
5436 $as_echo_n "(cached) " >&6
5437 else
5438 ac_check_lib_save_LIBS=$LIBS
5439 LIBS="-lposix $LIBS"
5440 cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5447 /* Override any GCC internal prototype to avoid an error.
5448 Use char because int might match the return type of a GCC
5449 builtin and then its argument prototype would still apply. */
5450 #ifdef __cplusplus
5451 extern "C"
5452 #endif
5453 char remove ();
5455 main ()
5457 return remove ();
5459 return 0;
5461 _ACEOF
5462 rm -f conftest.$ac_objext conftest$ac_exeext
5463 if { (ac_try="$ac_link"
5464 case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467 esac
5468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5469 $as_echo "$ac_try_echo") >&5
5470 (eval "$ac_link") 2>conftest.er1
5471 ac_status=$?
5472 grep -v '^ *+' conftest.er1 >conftest.err
5473 rm -f conftest.er1
5474 cat conftest.err >&5
5475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_c_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest$ac_exeext && {
5480 test "$cross_compiling" = yes ||
5481 $as_test_x conftest$ac_exeext
5482 }; then
5483 ac_cv_lib_posix_remove=yes
5484 else
5485 $as_echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 ac_cv_lib_posix_remove=no
5491 rm -rf conftest.dSYM
5492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5493 conftest$ac_exeext conftest.$ac_ext
5494 LIBS=$ac_check_lib_save_LIBS
5496 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5497 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5498 if test "x$ac_cv_lib_posix_remove" = x""yes; then
5499 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5504 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5505 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
5506 $as_echo_n "checking for shmat... " >&6; }
5507 if test "${ac_cv_func_shmat+set}" = set; then
5508 $as_echo_n "(cached) " >&6
5509 else
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5518 #define shmat innocuous_shmat
5520 /* System header to define __stub macros and hopefully few prototypes,
5521 which can conflict with char shmat (); below.
5522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5523 <limits.h> exists even on freestanding compilers. */
5525 #ifdef __STDC__
5526 # include <limits.h>
5527 #else
5528 # include <assert.h>
5529 #endif
5531 #undef shmat
5533 /* Override any GCC internal prototype to avoid an error.
5534 Use char because int might match the return type of a GCC
5535 builtin and then its argument prototype would still apply. */
5536 #ifdef __cplusplus
5537 extern "C"
5538 #endif
5539 char shmat ();
5540 /* The GNU C library defines this for functions which it implements
5541 to always fail with ENOSYS. Some functions are actually named
5542 something starting with __ and the normal name is an alias. */
5543 #if defined __stub_shmat || defined __stub___shmat
5544 choke me
5545 #endif
5548 main ()
5550 return shmat ();
5552 return 0;
5554 _ACEOF
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (ac_try="$ac_link"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5562 $as_echo "$ac_try_echo") >&5
5563 (eval "$ac_link") 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_c_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest$ac_exeext && {
5573 test "$cross_compiling" = yes ||
5574 $as_test_x conftest$ac_exeext
5575 }; then
5576 ac_cv_func_shmat=yes
5577 else
5578 $as_echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5581 ac_cv_func_shmat=no
5584 rm -rf conftest.dSYM
5585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5586 conftest$ac_exeext conftest.$ac_ext
5588 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5589 $as_echo "$ac_cv_func_shmat" >&6; }
5591 if test $ac_cv_func_shmat = no; then
5592 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5593 $as_echo_n "checking for shmat in -lipc... " >&6; }
5594 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5595 $as_echo_n "(cached) " >&6
5596 else
5597 ac_check_lib_save_LIBS=$LIBS
5598 LIBS="-lipc $LIBS"
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5606 /* Override any GCC internal prototype to avoid an error.
5607 Use char because int might match the return type of a GCC
5608 builtin and then its argument prototype would still apply. */
5609 #ifdef __cplusplus
5610 extern "C"
5611 #endif
5612 char shmat ();
5614 main ()
5616 return shmat ();
5618 return 0;
5620 _ACEOF
5621 rm -f conftest.$ac_objext conftest$ac_exeext
5622 if { (ac_try="$ac_link"
5623 case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5628 $as_echo "$ac_try_echo") >&5
5629 (eval "$ac_link") 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && {
5636 test -z "$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5638 } && test -s conftest$ac_exeext && {
5639 test "$cross_compiling" = yes ||
5640 $as_test_x conftest$ac_exeext
5641 }; then
5642 ac_cv_lib_ipc_shmat=yes
5643 else
5644 $as_echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 ac_cv_lib_ipc_shmat=no
5650 rm -rf conftest.dSYM
5651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5652 conftest$ac_exeext conftest.$ac_ext
5653 LIBS=$ac_check_lib_save_LIBS
5655 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5656 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5657 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
5658 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5664 # Check for libraries that X11R6 Xt/Xaw programs need.
5665 ac_save_LDFLAGS=$LDFLAGS
5666 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5667 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5668 # check for ICE first), but we must link in the order -lSM -lICE or
5669 # we get undefined symbols. So assume we have SM if we have ICE.
5670 # These have to be linked with before -lX11, unlike the other
5671 # libraries we check for below, so use a different variable.
5672 # John Interrante, Karl Berry
5673 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5674 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5675 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5676 $as_echo_n "(cached) " >&6
5677 else
5678 ac_check_lib_save_LIBS=$LIBS
5679 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5687 /* Override any GCC internal prototype to avoid an error.
5688 Use char because int might match the return type of a GCC
5689 builtin and then its argument prototype would still apply. */
5690 #ifdef __cplusplus
5691 extern "C"
5692 #endif
5693 char IceConnectionNumber ();
5695 main ()
5697 return IceConnectionNumber ();
5699 return 0;
5701 _ACEOF
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (ac_try="$ac_link"
5704 case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5709 $as_echo "$ac_try_echo") >&5
5710 (eval "$ac_link") 2>conftest.er1
5711 ac_status=$?
5712 grep -v '^ *+' conftest.er1 >conftest.err
5713 rm -f conftest.er1
5714 cat conftest.err >&5
5715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } && {
5717 test -z "$ac_c_werror_flag" ||
5718 test ! -s conftest.err
5719 } && test -s conftest$ac_exeext && {
5720 test "$cross_compiling" = yes ||
5721 $as_test_x conftest$ac_exeext
5722 }; then
5723 ac_cv_lib_ICE_IceConnectionNumber=yes
5724 else
5725 $as_echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_cv_lib_ICE_IceConnectionNumber=no
5731 rm -rf conftest.dSYM
5732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5733 conftest$ac_exeext conftest.$ac_ext
5734 LIBS=$ac_check_lib_save_LIBS
5736 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5737 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5738 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
5739 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5742 LDFLAGS=$ac_save_LDFLAGS
5746 ac_ext=cpp
5747 ac_cpp='$CXXCPP $CPPFLAGS'
5748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5753 { $as_echo "$as_me:$LINENO: checking whether we are enabling debug-mode" >&5
5754 $as_echo_n "checking whether we are enabling debug-mode... " >&6; }
5755 # Check whether --enable-debug was given.
5756 if test "${enable_debug+set}" = set; then
5757 enableval=$enable_debug;
5758 else
5759 enable_debug=no
5762 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
5763 $as_echo "$enable_debug" >&6; }
5765 if test x$enable_debug = xyes; then
5767 cat >>confdefs.h <<\_ACEOF
5768 #define DEBUG 1
5769 _ACEOF
5771 CXXFLAGS="-g -O0 -Wall -Werror"
5774 { $as_echo "$as_me:$LINENO: checking whether we are enabling gprof profiling-support" >&5
5775 $as_echo_n "checking whether we are enabling gprof profiling-support... " >&6; }
5776 # Check whether --enable-gprof was given.
5777 if test "${enable_gprof+set}" = set; then
5778 enableval=$enable_gprof;
5779 else
5780 enable_gprof=no
5783 { $as_echo "$as_me:$LINENO: result: $enable_gprof" >&5
5784 $as_echo "$enable_gprof" >&6; }
5786 if test x$enable_gprof = xyes; then
5787 CXXFLAGS="$CXXFLAGS -pg"
5790 { $as_echo "$as_me:$LINENO: checking whether we are enabling FunctionCheck profiling" >&5
5791 $as_echo_n "checking whether we are enabling FunctionCheck profiling... " >&6; }
5792 # Check whether --enable-fcheck was given.
5793 if test "${enable_fcheck+set}" = set; then
5794 enableval=$enable_fcheck;
5795 else
5796 enable_fcheck=no
5799 { $as_echo "$as_me:$LINENO: result: $enable_fcheck" >&5
5800 $as_echo "$enable_fcheck" >&6; }
5802 if test x$enable_fcheck = xyes; then
5803 CXXFLAGS="`fc-config --cflags`"
5804 LIBS="$LIBS `fc-config --libs`"
5807 { $as_echo "$as_me:$LINENO: checking whether we want to compile the X11 client" >&5
5808 $as_echo_n "checking whether we want to compile the X11 client... " >&6; }
5809 # Check whether --enable-x11 was given.
5810 if test "${enable_x11+set}" = set; then
5811 enableval=$enable_x11;
5812 else
5813 enable_x11=yes
5816 { $as_echo "$as_me:$LINENO: result: $enable_x11" >&5
5817 $as_echo "$enable_x11" >&6; }
5819 { $as_echo "$as_me:$LINENO: checking whether we want to compile the glut client" >&5
5820 $as_echo_n "checking whether we want to compile the glut client... " >&6; }
5821 # Check whether --enable-glut was given.
5822 if test "${enable_glut+set}" = set; then
5823 enableval=$enable_glut;
5824 else
5825 enable_glut=yes
5828 { $as_echo "$as_me:$LINENO: result: $enable_glut" >&5
5829 $as_echo "$enable_glut" >&6; }
5832 ac_ext=cpp
5833 ac_cpp='$CXXCPP $CPPFLAGS'
5834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5837 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5838 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5839 if test -z "$CXXCPP"; then
5840 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5841 $as_echo_n "(cached) " >&6
5842 else
5843 # Double quotes because CXXCPP needs to be expanded
5844 for CXXCPP in "$CXX -E" "/lib/cpp"
5846 ac_preproc_ok=false
5847 for ac_cxx_preproc_warn_flag in '' yes
5849 # Use a header file that comes with gcc, so configuring glibc
5850 # with a fresh cross-compiler works.
5851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5852 # <limits.h> exists even on freestanding compilers.
5853 # On the NeXT, cc -E runs the code through the compiler's parser,
5854 # not just through cpp. "Syntax error" is here to catch this case.
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #ifdef __STDC__
5862 # include <limits.h>
5863 #else
5864 # include <assert.h>
5865 #endif
5866 Syntax error
5867 _ACEOF
5868 if { (ac_try="$ac_cpp conftest.$ac_ext"
5869 case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872 esac
5873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5874 $as_echo "$ac_try_echo") >&5
5875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev/null && {
5882 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5883 test ! -s conftest.err
5884 }; then
5886 else
5887 $as_echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 # Broken: fails on valid input.
5891 continue
5894 rm -f conftest.err conftest.$ac_ext
5896 # OK, works on sane cases. Now check whether nonexistent headers
5897 # can be detected and how.
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h. */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 #include <ac_nonexistent.h>
5905 _ACEOF
5906 if { (ac_try="$ac_cpp conftest.$ac_ext"
5907 case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910 esac
5911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5912 $as_echo "$ac_try_echo") >&5
5913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } >/dev/null && {
5920 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5921 test ! -s conftest.err
5922 }; then
5923 # Broken: success on invalid input.
5924 continue
5925 else
5926 $as_echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5929 # Passes both tests.
5930 ac_preproc_ok=:
5931 break
5934 rm -f conftest.err conftest.$ac_ext
5936 done
5937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5938 rm -f conftest.err conftest.$ac_ext
5939 if $ac_preproc_ok; then
5940 break
5943 done
5944 ac_cv_prog_CXXCPP=$CXXCPP
5947 CXXCPP=$ac_cv_prog_CXXCPP
5948 else
5949 ac_cv_prog_CXXCPP=$CXXCPP
5951 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5952 $as_echo "$CXXCPP" >&6; }
5953 ac_preproc_ok=false
5954 for ac_cxx_preproc_warn_flag in '' yes
5956 # Use a header file that comes with gcc, so configuring glibc
5957 # with a fresh cross-compiler works.
5958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5959 # <limits.h> exists even on freestanding compilers.
5960 # On the NeXT, cc -E runs the code through the compiler's parser,
5961 # not just through cpp. "Syntax error" is here to catch this case.
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #ifdef __STDC__
5969 # include <limits.h>
5970 #else
5971 # include <assert.h>
5972 #endif
5973 Syntax error
5974 _ACEOF
5975 if { (ac_try="$ac_cpp conftest.$ac_ext"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } >/dev/null && {
5989 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5990 test ! -s conftest.err
5991 }; then
5993 else
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 # Broken: fails on valid input.
5998 continue
6001 rm -f conftest.err conftest.$ac_ext
6003 # OK, works on sane cases. Now check whether nonexistent headers
6004 # can be detected and how.
6005 cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h. */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 #include <ac_nonexistent.h>
6012 _ACEOF
6013 if { (ac_try="$ac_cpp conftest.$ac_ext"
6014 case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017 esac
6018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6019 $as_echo "$ac_try_echo") >&5
6020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } >/dev/null && {
6027 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6028 test ! -s conftest.err
6029 }; then
6030 # Broken: success on invalid input.
6031 continue
6032 else
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 # Passes both tests.
6037 ac_preproc_ok=:
6038 break
6041 rm -f conftest.err conftest.$ac_ext
6043 done
6044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6045 rm -f conftest.err conftest.$ac_ext
6046 if $ac_preproc_ok; then
6048 else
6049 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6051 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6052 See \`config.log' for more details." >&5
6053 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6054 See \`config.log' for more details." >&2;}
6055 { (exit 1); exit 1; }; }; }
6058 ac_ext=cpp
6059 ac_cpp='$CXXCPP $CPPFLAGS'
6060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6065 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6066 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6067 if test "${ac_cv_path_GREP+set}" = set; then
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -z "$GREP"; then
6071 ac_path_GREP_found=false
6072 # Loop through the user's path and test for each of PROGNAME-LIST
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_prog in grep ggrep; do
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6081 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6082 # Check for GNU ac_path_GREP and select it if it is found.
6083 # Check for GNU $ac_path_GREP
6084 case `"$ac_path_GREP" --version 2>&1` in
6085 *GNU*)
6086 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6088 ac_count=0
6089 $as_echo_n 0123456789 >"conftest.in"
6090 while :
6092 cat "conftest.in" "conftest.in" >"conftest.tmp"
6093 mv "conftest.tmp" "conftest.in"
6094 cp "conftest.in" "conftest.nl"
6095 $as_echo 'GREP' >> "conftest.nl"
6096 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6098 ac_count=`expr $ac_count + 1`
6099 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6100 # Best one so far, save it but keep looking for a better one
6101 ac_cv_path_GREP="$ac_path_GREP"
6102 ac_path_GREP_max=$ac_count
6104 # 10*(2^10) chars as input seems more than enough
6105 test $ac_count -gt 10 && break
6106 done
6107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6108 esac
6110 $ac_path_GREP_found && break 3
6111 done
6112 done
6113 done
6114 IFS=$as_save_IFS
6115 if test -z "$ac_cv_path_GREP"; then
6116 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6117 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6118 { (exit 1); exit 1; }; }
6120 else
6121 ac_cv_path_GREP=$GREP
6125 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6126 $as_echo "$ac_cv_path_GREP" >&6; }
6127 GREP="$ac_cv_path_GREP"
6130 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6131 $as_echo_n "checking for egrep... " >&6; }
6132 if test "${ac_cv_path_EGREP+set}" = set; then
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6136 then ac_cv_path_EGREP="$GREP -E"
6137 else
6138 if test -z "$EGREP"; then
6139 ac_path_EGREP_found=false
6140 # Loop through the user's path and test for each of PROGNAME-LIST
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_prog in egrep; do
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6149 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6150 # Check for GNU ac_path_EGREP and select it if it is found.
6151 # Check for GNU $ac_path_EGREP
6152 case `"$ac_path_EGREP" --version 2>&1` in
6153 *GNU*)
6154 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6156 ac_count=0
6157 $as_echo_n 0123456789 >"conftest.in"
6158 while :
6160 cat "conftest.in" "conftest.in" >"conftest.tmp"
6161 mv "conftest.tmp" "conftest.in"
6162 cp "conftest.in" "conftest.nl"
6163 $as_echo 'EGREP' >> "conftest.nl"
6164 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6166 ac_count=`expr $ac_count + 1`
6167 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6168 # Best one so far, save it but keep looking for a better one
6169 ac_cv_path_EGREP="$ac_path_EGREP"
6170 ac_path_EGREP_max=$ac_count
6172 # 10*(2^10) chars as input seems more than enough
6173 test $ac_count -gt 10 && break
6174 done
6175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6176 esac
6178 $ac_path_EGREP_found && break 3
6179 done
6180 done
6181 done
6182 IFS=$as_save_IFS
6183 if test -z "$ac_cv_path_EGREP"; then
6184 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6185 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6186 { (exit 1); exit 1; }; }
6188 else
6189 ac_cv_path_EGREP=$EGREP
6194 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6195 $as_echo "$ac_cv_path_EGREP" >&6; }
6196 EGREP="$ac_cv_path_EGREP"
6199 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6200 $as_echo_n "checking for ANSI C header files... " >&6; }
6201 if test "${ac_cv_header_stdc+set}" = set; then
6202 $as_echo_n "(cached) " >&6
6203 else
6204 cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h. */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 #include <stdlib.h>
6211 #include <stdarg.h>
6212 #include <string.h>
6213 #include <float.h>
6216 main ()
6220 return 0;
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6225 case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228 esac
6229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6230 $as_echo "$ac_try_echo") >&5
6231 (eval "$ac_compile") 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && {
6238 test -z "$ac_cxx_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest.$ac_objext; then
6241 ac_cv_header_stdc=yes
6242 else
6243 $as_echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_header_stdc=no
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 if test $ac_cv_header_stdc = yes; then
6252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 #include <string.h>
6261 _ACEOF
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 $EGREP "memchr" >/dev/null 2>&1; then
6265 else
6266 ac_cv_header_stdc=no
6268 rm -f conftest*
6272 if test $ac_cv_header_stdc = yes; then
6273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6274 cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 #include <stdlib.h>
6282 _ACEOF
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "free" >/dev/null 2>&1; then
6286 else
6287 ac_cv_header_stdc=no
6289 rm -f conftest*
6293 if test $ac_cv_header_stdc = yes; then
6294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6295 if test "$cross_compiling" = yes; then
6297 else
6298 cat >conftest.$ac_ext <<_ACEOF
6299 /* confdefs.h. */
6300 _ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 #include <ctype.h>
6305 #include <stdlib.h>
6306 #if ((' ' & 0x0FF) == 0x020)
6307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6309 #else
6310 # define ISLOWER(c) \
6311 (('a' <= (c) && (c) <= 'i') \
6312 || ('j' <= (c) && (c) <= 'r') \
6313 || ('s' <= (c) && (c) <= 'z'))
6314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6315 #endif
6317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6319 main ()
6321 int i;
6322 for (i = 0; i < 256; i++)
6323 if (XOR (islower (i), ISLOWER (i))
6324 || toupper (i) != TOUPPER (i))
6325 return 2;
6326 return 0;
6328 _ACEOF
6329 rm -f conftest$ac_exeext
6330 if { (ac_try="$ac_link"
6331 case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334 esac
6335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6336 $as_echo "$ac_try_echo") >&5
6337 (eval "$ac_link") 2>&5
6338 ac_status=$?
6339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6341 { (case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344 esac
6345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6346 $as_echo "$ac_try_echo") >&5
6347 (eval "$ac_try") 2>&5
6348 ac_status=$?
6349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6352 else
6353 $as_echo "$as_me: program exited with status $ac_status" >&5
6354 $as_echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ( exit $ac_status )
6358 ac_cv_header_stdc=no
6360 rm -rf conftest.dSYM
6361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6367 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6368 $as_echo "$ac_cv_header_stdc" >&6; }
6369 if test $ac_cv_header_stdc = yes; then
6371 cat >>confdefs.h <<\_ACEOF
6372 #define STDC_HEADERS 1
6373 _ACEOF
6377 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6387 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6388 inttypes.h stdint.h unistd.h
6390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6391 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6392 $as_echo_n "checking for $ac_header... " >&6; }
6393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6394 $as_echo_n "(cached) " >&6
6395 else
6396 cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h. */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 $ac_includes_default
6404 #include <$ac_header>
6405 _ACEOF
6406 rm -f conftest.$ac_objext
6407 if { (ac_try="$ac_compile"
6408 case "(($ac_try" in
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6411 esac
6412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6413 $as_echo "$ac_try_echo") >&5
6414 (eval "$ac_compile") 2>conftest.er1
6415 ac_status=$?
6416 grep -v '^ *+' conftest.er1 >conftest.err
6417 rm -f conftest.er1
6418 cat conftest.err >&5
6419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && {
6421 test -z "$ac_cxx_werror_flag" ||
6422 test ! -s conftest.err
6423 } && test -s conftest.$ac_objext; then
6424 eval "$as_ac_Header=yes"
6425 else
6426 $as_echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 eval "$as_ac_Header=no"
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 ac_res=`eval 'as_val=${'$as_ac_Header'}
6435 $as_echo "$as_val"'`
6436 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6437 $as_echo "$ac_res" >&6; }
6438 as_val=`eval 'as_val=${'$as_ac_Header'}
6439 $as_echo "$as_val"'`
6440 if test "x$as_val" = x""yes; then
6441 cat >>confdefs.h <<_ACEOF
6442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6443 _ACEOF
6447 done
6450 if test "${ac_cv_header_sstream+set}" = set; then
6451 { $as_echo "$as_me:$LINENO: checking for sstream" >&5
6452 $as_echo_n "checking for sstream... " >&6; }
6453 if test "${ac_cv_header_sstream+set}" = set; then
6454 $as_echo_n "(cached) " >&6
6456 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sstream" >&5
6457 $as_echo "$ac_cv_header_sstream" >&6; }
6458 else
6459 # Is the header compilable?
6460 { $as_echo "$as_me:$LINENO: checking sstream usability" >&5
6461 $as_echo_n "checking sstream usability... " >&6; }
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6469 #include <sstream>
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (ac_try="$ac_compile"
6473 case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476 esac
6477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6478 $as_echo "$ac_try_echo") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_cxx_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest.$ac_objext; then
6489 ac_header_compiler=yes
6490 else
6491 $as_echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 ac_header_compiler=no
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6499 $as_echo "$ac_header_compiler" >&6; }
6501 # Is the header present?
6502 { $as_echo "$as_me:$LINENO: checking sstream presence" >&5
6503 $as_echo_n "checking sstream presence... " >&6; }
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 #include <sstream>
6511 _ACEOF
6512 if { (ac_try="$ac_cpp conftest.$ac_ext"
6513 case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516 esac
6517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6518 $as_echo "$ac_try_echo") >&5
6519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6520 ac_status=$?
6521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
6524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } >/dev/null && {
6526 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6527 test ! -s conftest.err
6528 }; then
6529 ac_header_preproc=yes
6530 else
6531 $as_echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6534 ac_header_preproc=no
6537 rm -f conftest.err conftest.$ac_ext
6538 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6539 $as_echo "$ac_header_preproc" >&6; }
6541 # So? What about this header?
6542 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6543 yes:no: )
6544 { $as_echo "$as_me:$LINENO: WARNING: sstream: accepted by the compiler, rejected by the preprocessor!" >&5
6545 $as_echo "$as_me: WARNING: sstream: accepted by the compiler, rejected by the preprocessor!" >&2;}
6546 { $as_echo "$as_me:$LINENO: WARNING: sstream: proceeding with the compiler's result" >&5
6547 $as_echo "$as_me: WARNING: sstream: proceeding with the compiler's result" >&2;}
6548 ac_header_preproc=yes
6550 no:yes:* )
6551 { $as_echo "$as_me:$LINENO: WARNING: sstream: present but cannot be compiled" >&5
6552 $as_echo "$as_me: WARNING: sstream: present but cannot be compiled" >&2;}
6553 { $as_echo "$as_me:$LINENO: WARNING: sstream: check for missing prerequisite headers?" >&5
6554 $as_echo "$as_me: WARNING: sstream: check for missing prerequisite headers?" >&2;}
6555 { $as_echo "$as_me:$LINENO: WARNING: sstream: see the Autoconf documentation" >&5
6556 $as_echo "$as_me: WARNING: sstream: see the Autoconf documentation" >&2;}
6557 { $as_echo "$as_me:$LINENO: WARNING: sstream: section \"Present But Cannot Be Compiled\"" >&5
6558 $as_echo "$as_me: WARNING: sstream: section \"Present But Cannot Be Compiled\"" >&2;}
6559 { $as_echo "$as_me:$LINENO: WARNING: sstream: proceeding with the preprocessor's result" >&5
6560 $as_echo "$as_me: WARNING: sstream: proceeding with the preprocessor's result" >&2;}
6561 { $as_echo "$as_me:$LINENO: WARNING: sstream: in the future, the compiler will take precedence" >&5
6562 $as_echo "$as_me: WARNING: sstream: in the future, the compiler will take precedence" >&2;}
6565 esac
6566 { $as_echo "$as_me:$LINENO: checking for sstream" >&5
6567 $as_echo_n "checking for sstream... " >&6; }
6568 if test "${ac_cv_header_sstream+set}" = set; then
6569 $as_echo_n "(cached) " >&6
6570 else
6571 ac_cv_header_sstream=$ac_header_preproc
6573 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sstream" >&5
6574 $as_echo "$ac_cv_header_sstream" >&6; }
6577 if test "x$ac_cv_header_sstream" = x""yes; then
6579 else
6580 { $as_echo "$as_me:$LINENO: using replacement sstream from compatlib/" >&5
6581 $as_echo "$as_me: using replacement sstream from compatlib/" >&6;}
6582 CXXFLAGS="$CXXFLAGS -Icompatlib/"
6588 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6590 ac_define_dir=`eval echo $datadir`
6591 ac_define_dir=`eval echo $ac_define_dir`
6593 cat >>confdefs.h <<_ACEOF
6594 #define DATADIR "$ac_define_dir"
6595 _ACEOF
6600 { $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
6601 $as_echo_n "checking for gzopen in -lz... " >&6; }
6602 if test "${ac_cv_lib_z_gzopen+set}" = set; then
6603 $as_echo_n "(cached) " >&6
6604 else
6605 ac_check_lib_save_LIBS=$LIBS
6606 LIBS="-lz $LIBS"
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6614 /* Override any GCC internal prototype to avoid an error.
6615 Use char because int might match the return type of a GCC
6616 builtin and then its argument prototype would still apply. */
6617 #ifdef __cplusplus
6618 extern "C"
6619 #endif
6620 char gzopen ();
6622 main ()
6624 return gzopen ();
6626 return 0;
6628 _ACEOF
6629 rm -f conftest.$ac_objext conftest$ac_exeext
6630 if { (ac_try="$ac_link"
6631 case "(($ac_try" in
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6634 esac
6635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6636 $as_echo "$ac_try_echo") >&5
6637 (eval "$ac_link") 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_cxx_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest$ac_exeext && {
6647 test "$cross_compiling" = yes ||
6648 $as_test_x conftest$ac_exeext
6649 }; then
6650 ac_cv_lib_z_gzopen=yes
6651 else
6652 $as_echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6655 ac_cv_lib_z_gzopen=no
6658 rm -rf conftest.dSYM
6659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6660 conftest$ac_exeext conftest.$ac_ext
6661 LIBS=$ac_check_lib_save_LIBS
6663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
6664 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
6665 if test "x$ac_cv_lib_z_gzopen" = x""yes; then
6666 cat >>confdefs.h <<_ACEOF
6667 #define HAVE_LIBZ 1
6668 _ACEOF
6670 LIBS="-lz $LIBS"
6675 ConstruoTargets=""
6677 if test -n "$X_DISPLAY_MISSING"; then
6678 echo ""
6679 echo "### Error: Couldn't find X11 header files, probally x11-devel packages"
6680 echo "### not installed?"
6681 echo ""
6682 else
6683 if test x$enable_x11 = xyes; then
6684 ConstruoTargets="$ConstruoTargets construo.x11"
6686 x11_LIBS="$x11_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11"
6687 x11_CXXFLAGS="$CXXFLAGS $X_CFLAGS"
6690 { $as_echo "$as_me:$LINENO: checking for XMissingExtension in -lXext" >&5
6691 $as_echo_n "checking for XMissingExtension in -lXext... " >&6; }
6692 if test "${ac_cv_lib_Xext_XMissingExtension+set}" = set; then
6693 $as_echo_n "(cached) " >&6
6694 else
6695 ac_check_lib_save_LIBS=$LIBS
6696 LIBS="-lXext $x11_LIBS $LIBS"
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6704 /* Override any GCC internal prototype to avoid an error.
6705 Use char because int might match the return type of a GCC
6706 builtin and then its argument prototype would still apply. */
6707 #ifdef __cplusplus
6708 extern "C"
6709 #endif
6710 char XMissingExtension ();
6712 main ()
6714 return XMissingExtension ();
6716 return 0;
6718 _ACEOF
6719 rm -f conftest.$ac_objext conftest$ac_exeext
6720 if { (ac_try="$ac_link"
6721 case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724 esac
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727 (eval "$ac_link") 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && {
6734 test -z "$ac_cxx_werror_flag" ||
6735 test ! -s conftest.err
6736 } && test -s conftest$ac_exeext && {
6737 test "$cross_compiling" = yes ||
6738 $as_test_x conftest$ac_exeext
6739 }; then
6740 ac_cv_lib_Xext_XMissingExtension=yes
6741 else
6742 $as_echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ac_cv_lib_Xext_XMissingExtension=no
6748 rm -rf conftest.dSYM
6749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6750 conftest$ac_exeext conftest.$ac_ext
6751 LIBS=$ac_check_lib_save_LIBS
6753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XMissingExtension" >&5
6754 $as_echo "$ac_cv_lib_Xext_XMissingExtension" >&6; }
6755 if test "x$ac_cv_lib_Xext_XMissingExtension" = x""yes; then
6756 x11_LIBS="$x11_LIBS -lXext"
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_LIBXEXT 1
6760 _ACEOF
6765 { $as_echo "$as_me:$LINENO: checking for XF86VidModeSwitchToMode in -lXxf86vm" >&5
6766 $as_echo_n "checking for XF86VidModeSwitchToMode in -lXxf86vm... " >&6; }
6767 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode+set}" = set; then
6768 $as_echo_n "(cached) " >&6
6769 else
6770 ac_check_lib_save_LIBS=$LIBS
6771 LIBS="-lXxf86vm $x11_LIBS $LIBS"
6772 cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h. */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6779 /* Override any GCC internal prototype to avoid an error.
6780 Use char because int might match the return type of a GCC
6781 builtin and then its argument prototype would still apply. */
6782 #ifdef __cplusplus
6783 extern "C"
6784 #endif
6785 char XF86VidModeSwitchToMode ();
6787 main ()
6789 return XF86VidModeSwitchToMode ();
6791 return 0;
6793 _ACEOF
6794 rm -f conftest.$ac_objext conftest$ac_exeext
6795 if { (ac_try="$ac_link"
6796 case "(($ac_try" in
6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6799 esac
6800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6801 $as_echo "$ac_try_echo") >&5
6802 (eval "$ac_link") 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_cxx_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest$ac_exeext && {
6812 test "$cross_compiling" = yes ||
6813 $as_test_x conftest$ac_exeext
6814 }; then
6815 ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode=yes
6816 else
6817 $as_echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode=no
6823 rm -rf conftest.dSYM
6824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6825 conftest$ac_exeext conftest.$ac_ext
6826 LIBS=$ac_check_lib_save_LIBS
6828 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode" >&5
6829 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode" >&6; }
6830 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode" = x""yes; then
6831 x11_LIBS="$x11_LIBS -lXxf86vm"
6833 cat >>confdefs.h <<\_ACEOF
6834 #define HAVE_LIBXXF86VM 1
6835 _ACEOF
6843 { $as_echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
6844 $as_echo_n "checking for glutMainLoop in -lglut... " >&6; }
6845 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
6846 $as_echo_n "(cached) " >&6
6847 else
6848 ac_check_lib_save_LIBS=$LIBS
6849 LIBS="-lglut $LIBS"
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6857 /* Override any GCC internal prototype to avoid an error.
6858 Use char because int might match the return type of a GCC
6859 builtin and then its argument prototype would still apply. */
6860 #ifdef __cplusplus
6861 extern "C"
6862 #endif
6863 char glutMainLoop ();
6865 main ()
6867 return glutMainLoop ();
6869 return 0;
6871 _ACEOF
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (ac_try="$ac_link"
6874 case "(($ac_try" in
6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6877 esac
6878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6879 $as_echo "$ac_try_echo") >&5
6880 (eval "$ac_link") 2>conftest.er1
6881 ac_status=$?
6882 grep -v '^ *+' conftest.er1 >conftest.err
6883 rm -f conftest.er1
6884 cat conftest.err >&5
6885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && {
6887 test -z "$ac_cxx_werror_flag" ||
6888 test ! -s conftest.err
6889 } && test -s conftest$ac_exeext && {
6890 test "$cross_compiling" = yes ||
6891 $as_test_x conftest$ac_exeext
6892 }; then
6893 ac_cv_lib_glut_glutMainLoop=yes
6894 else
6895 $as_echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_cv_lib_glut_glutMainLoop=no
6901 rm -rf conftest.dSYM
6902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6903 conftest$ac_exeext conftest.$ac_ext
6904 LIBS=$ac_check_lib_save_LIBS
6906 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
6907 $as_echo "$ac_cv_lib_glut_glutMainLoop" >&6; }
6908 if test "x$ac_cv_lib_glut_glutMainLoop" = x""yes; then
6910 if test x$enable_glut = xyes; then
6911 ConstruoTargets="$ConstruoTargets construo.glut"
6913 glut_LIBS="-lglut"
6919 { $as_echo "$as_me:$LINENO: checking for glutMainLoop in -lfreeglut-1.3" >&5
6920 $as_echo_n "checking for glutMainLoop in -lfreeglut-1.3... " >&6; }
6921 if test "${ac_cv_lib_freeglut_1_3_glutMainLoop+set}" = set; then
6922 $as_echo_n "(cached) " >&6
6923 else
6924 ac_check_lib_save_LIBS=$LIBS
6925 LIBS="-lfreeglut-1.3 $LIBS"
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h. */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6933 /* Override any GCC internal prototype to avoid an error.
6934 Use char because int might match the return type of a GCC
6935 builtin and then its argument prototype would still apply. */
6936 #ifdef __cplusplus
6937 extern "C"
6938 #endif
6939 char glutMainLoop ();
6941 main ()
6943 return glutMainLoop ();
6945 return 0;
6947 _ACEOF
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (ac_try="$ac_link"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955 $as_echo "$ac_try_echo") >&5
6956 (eval "$ac_link") 2>conftest.er1
6957 ac_status=$?
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_cxx_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest$ac_exeext && {
6966 test "$cross_compiling" = yes ||
6967 $as_test_x conftest$ac_exeext
6968 }; then
6969 ac_cv_lib_freeglut_1_3_glutMainLoop=yes
6970 else
6971 $as_echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6974 ac_cv_lib_freeglut_1_3_glutMainLoop=no
6977 rm -rf conftest.dSYM
6978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6979 conftest$ac_exeext conftest.$ac_ext
6980 LIBS=$ac_check_lib_save_LIBS
6982 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freeglut_1_3_glutMainLoop" >&5
6983 $as_echo "$ac_cv_lib_freeglut_1_3_glutMainLoop" >&6; }
6984 if test "x$ac_cv_lib_freeglut_1_3_glutMainLoop" = x""yes; then
6986 if test x$enable_glut = xyes; then
6987 ConstruoTargets="$ConstruoTargets construo.freeglut"
6989 freeglut_LIBS="-lfreeglut-1.3"
6995 if test -z "$ConstruoTargets"; then
6996 echo ""
6997 echo "ERROR: Neither X11 nor Glut could be detected, so Construo is not"
6998 echo "ERROR: buildable. You might need to install the -devel packages for"
6999 echo "ERROR: the libraries or check what else could have gone wrong."
7000 echo "ERROR: The file 'config.log' contains more details on the runed libary"
7001 echo "ERROR: checks and might help you to figure out what went wrong."
7002 echo ""
7003 exit 1
7008 ac_config_files="$ac_config_files Makefile examples/Makefile"
7010 cat >confcache <<\_ACEOF
7011 # This file is a shell script that caches the results of configure
7012 # tests run on this system so they can be shared between configure
7013 # scripts and configure runs, see configure's option --config-cache.
7014 # It is not useful on other systems. If it contains results you don't
7015 # want to keep, you may remove or edit it.
7017 # config.status only pays attention to the cache file if you give it
7018 # the --recheck option to rerun configure.
7020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7022 # following values.
7024 _ACEOF
7026 # The following way of writing the cache mishandles newlines in values,
7027 # but we know of no workaround that is simple, portable, and efficient.
7028 # So, we kill variables containing newlines.
7029 # Ultrix sh set writes to stderr and can't be redirected directly,
7030 # and sets the high bit in the cache file unless we assign to the vars.
7032 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7033 eval ac_val=\$$ac_var
7034 case $ac_val in #(
7035 *${as_nl}*)
7036 case $ac_var in #(
7037 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
7038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7039 esac
7040 case $ac_var in #(
7041 _ | IFS | as_nl) ;; #(
7042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7043 *) $as_unset $ac_var ;;
7044 esac ;;
7045 esac
7046 done
7048 (set) 2>&1 |
7049 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7050 *${as_nl}ac_space=\ *)
7051 # `set' does not quote correctly, so add quotes (double-quote
7052 # substitution turns \\\\ into \\, and sed turns \\ into \).
7053 sed -n \
7054 "s/'/'\\\\''/g;
7055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7056 ;; #(
7058 # `set' quotes correctly as required by POSIX, so do not add quotes.
7059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7061 esac |
7062 sort
7064 sed '
7065 /^ac_cv_env_/b end
7066 t clear
7067 :clear
7068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7069 t end
7070 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7071 :end' >>confcache
7072 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7073 if test -w "$cache_file"; then
7074 test "x$cache_file" != "x/dev/null" &&
7075 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
7076 $as_echo "$as_me: updating cache $cache_file" >&6;}
7077 cat confcache >$cache_file
7078 else
7079 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7080 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7083 rm -f confcache
7085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7086 # Let make expand exec_prefix.
7087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7089 DEFS=-DHAVE_CONFIG_H
7091 ac_libobjs=
7092 ac_ltlibobjs=
7093 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7094 # 1. Remove the extension, and $U if already installed.
7095 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7096 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7097 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7098 # will be set to the directory where LIBOBJS objects are built.
7099 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7100 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7101 done
7102 LIBOBJS=$ac_libobjs
7104 LTLIBOBJS=$ac_ltlibobjs
7107 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7108 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7109 Usually this means the macro was only invoked conditionally." >&5
7110 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
7111 Usually this means the macro was only invoked conditionally." >&2;}
7112 { (exit 1); exit 1; }; }
7114 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7115 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7116 Usually this means the macro was only invoked conditionally." >&5
7117 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7118 Usually this means the macro was only invoked conditionally." >&2;}
7119 { (exit 1); exit 1; }; }
7121 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7122 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7123 Usually this means the macro was only invoked conditionally." >&5
7124 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7125 Usually this means the macro was only invoked conditionally." >&2;}
7126 { (exit 1); exit 1; }; }
7129 : ${CONFIG_STATUS=./config.status}
7130 ac_write_fail=0
7131 ac_clean_files_save=$ac_clean_files
7132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7133 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7134 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7135 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7136 #! $SHELL
7137 # Generated by $as_me.
7138 # Run this file to recreate the current configuration.
7139 # Compiler output produced by configure, useful for debugging
7140 # configure, is in config.log if it exists.
7142 debug=false
7143 ac_cs_recheck=false
7144 ac_cs_silent=false
7145 SHELL=\${CONFIG_SHELL-$SHELL}
7146 _ACEOF
7148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7149 ## --------------------- ##
7150 ## M4sh Initialization. ##
7151 ## --------------------- ##
7153 # Be more Bourne compatible
7154 DUALCASE=1; export DUALCASE # for MKS sh
7155 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7156 emulate sh
7157 NULLCMD=:
7158 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7159 # is contrary to our usage. Disable this feature.
7160 alias -g '${1+"$@"}'='"$@"'
7161 setopt NO_GLOB_SUBST
7162 else
7163 case `(set -o) 2>/dev/null` in
7164 *posix*) set -o posix ;;
7165 esac
7172 # PATH needs CR
7173 # Avoid depending upon Character Ranges.
7174 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7175 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7176 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7177 as_cr_digits='0123456789'
7178 as_cr_alnum=$as_cr_Letters$as_cr_digits
7180 as_nl='
7182 export as_nl
7183 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7184 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7185 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7186 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7187 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7188 as_echo='printf %s\n'
7189 as_echo_n='printf %s'
7190 else
7191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7192 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7193 as_echo_n='/usr/ucb/echo -n'
7194 else
7195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7196 as_echo_n_body='eval
7197 arg=$1;
7198 case $arg in
7199 *"$as_nl"*)
7200 expr "X$arg" : "X\\(.*\\)$as_nl";
7201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7202 esac;
7203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7205 export as_echo_n_body
7206 as_echo_n='sh -c $as_echo_n_body as_echo'
7208 export as_echo_body
7209 as_echo='sh -c $as_echo_body as_echo'
7212 # The user is always right.
7213 if test "${PATH_SEPARATOR+set}" != set; then
7214 PATH_SEPARATOR=:
7215 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7216 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7217 PATH_SEPARATOR=';'
7221 # Support unset when possible.
7222 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7223 as_unset=unset
7224 else
7225 as_unset=false
7229 # IFS
7230 # We need space, tab and new line, in precisely that order. Quoting is
7231 # there to prevent editors from complaining about space-tab.
7232 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7233 # splitting by setting IFS to empty value.)
7234 IFS=" "" $as_nl"
7236 # Find who we are. Look in the path if we contain no directory separator.
7237 case $0 in
7238 *[\\/]* ) as_myself=$0 ;;
7239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7245 done
7246 IFS=$as_save_IFS
7249 esac
7250 # We did not find ourselves, most probably we were run as `sh COMMAND'
7251 # in which case we are not to be found in the path.
7252 if test "x$as_myself" = x; then
7253 as_myself=$0
7255 if test ! -f "$as_myself"; then
7256 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7257 { (exit 1); exit 1; }
7260 # Work around bugs in pre-3.0 UWIN ksh.
7261 for as_var in ENV MAIL MAILPATH
7262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7263 done
7264 PS1='$ '
7265 PS2='> '
7266 PS4='+ '
7268 # NLS nuisances.
7269 LC_ALL=C
7270 export LC_ALL
7271 LANGUAGE=C
7272 export LANGUAGE
7274 # Required to use basename.
7275 if expr a : '\(a\)' >/dev/null 2>&1 &&
7276 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7277 as_expr=expr
7278 else
7279 as_expr=false
7282 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7283 as_basename=basename
7284 else
7285 as_basename=false
7289 # Name of the executable.
7290 as_me=`$as_basename -- "$0" ||
7291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7292 X"$0" : 'X\(//\)$' \| \
7293 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7294 $as_echo X/"$0" |
7295 sed '/^.*\/\([^/][^/]*\)\/*$/{
7296 s//\1/
7299 /^X\/\(\/\/\)$/{
7300 s//\1/
7303 /^X\/\(\/\).*/{
7304 s//\1/
7307 s/.*/./; q'`
7309 # CDPATH.
7310 $as_unset CDPATH
7314 as_lineno_1=$LINENO
7315 as_lineno_2=$LINENO
7316 test "x$as_lineno_1" != "x$as_lineno_2" &&
7317 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7319 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7320 # uniformly replaced by the line number. The first 'sed' inserts a
7321 # line-number line after each line using $LINENO; the second 'sed'
7322 # does the real work. The second script uses 'N' to pair each
7323 # line-number line with the line containing $LINENO, and appends
7324 # trailing '-' during substitution so that $LINENO is not a special
7325 # case at line end.
7326 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7327 # scripts with optimization help from Paolo Bonzini. Blame Lee
7328 # E. McMahon (1931-1989) for sed's syntax. :-)
7329 sed -n '
7331 /[$]LINENO/=
7332 ' <$as_myself |
7333 sed '
7334 s/[$]LINENO.*/&-/
7335 t lineno
7337 :lineno
7339 :loop
7340 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7341 t loop
7342 s/-\n.*//
7343 ' >$as_me.lineno &&
7344 chmod +x "$as_me.lineno" ||
7345 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7346 { (exit 1); exit 1; }; }
7348 # Don't try to exec as it changes $[0], causing all sort of problems
7349 # (the dirname of $[0] is not the place where we might find the
7350 # original and so on. Autoconf is especially sensitive to this).
7351 . "./$as_me.lineno"
7352 # Exit status is that of the last command.
7353 exit
7357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7358 as_dirname=dirname
7359 else
7360 as_dirname=false
7363 ECHO_C= ECHO_N= ECHO_T=
7364 case `echo -n x` in
7365 -n*)
7366 case `echo 'x\c'` in
7367 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7368 *) ECHO_C='\c';;
7369 esac;;
7371 ECHO_N='-n';;
7372 esac
7373 if expr a : '\(a\)' >/dev/null 2>&1 &&
7374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7375 as_expr=expr
7376 else
7377 as_expr=false
7380 rm -f conf$$ conf$$.exe conf$$.file
7381 if test -d conf$$.dir; then
7382 rm -f conf$$.dir/conf$$.file
7383 else
7384 rm -f conf$$.dir
7385 mkdir conf$$.dir 2>/dev/null
7387 if (echo >conf$$.file) 2>/dev/null; then
7388 if ln -s conf$$.file conf$$ 2>/dev/null; then
7389 as_ln_s='ln -s'
7390 # ... but there are two gotchas:
7391 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7392 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7393 # In both cases, we have to default to `cp -p'.
7394 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7395 as_ln_s='cp -p'
7396 elif ln conf$$.file conf$$ 2>/dev/null; then
7397 as_ln_s=ln
7398 else
7399 as_ln_s='cp -p'
7401 else
7402 as_ln_s='cp -p'
7404 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7405 rmdir conf$$.dir 2>/dev/null
7407 if mkdir -p . 2>/dev/null; then
7408 as_mkdir_p=:
7409 else
7410 test -d ./-p && rmdir ./-p
7411 as_mkdir_p=false
7414 if test -x / >/dev/null 2>&1; then
7415 as_test_x='test -x'
7416 else
7417 if ls -dL / >/dev/null 2>&1; then
7418 as_ls_L_option=L
7419 else
7420 as_ls_L_option=
7422 as_test_x='
7423 eval sh -c '\''
7424 if test -d "$1"; then
7425 test -d "$1/.";
7426 else
7427 case $1 in
7428 -*)set "./$1";;
7429 esac;
7430 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7431 ???[sx]*):;;*)false;;esac;fi
7432 '\'' sh
7435 as_executable_p=$as_test_x
7437 # Sed expression to map a string onto a valid CPP name.
7438 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7440 # Sed expression to map a string onto a valid variable name.
7441 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7444 exec 6>&1
7446 # Save the log message, to keep $[0] and so on meaningful, and to
7447 # report actual input values of CONFIG_FILES etc. instead of their
7448 # values after options handling.
7449 ac_log="
7450 This file was extended by construo $as_me 0.2.2, which was
7451 generated by GNU Autoconf 2.63. Invocation command line was
7453 CONFIG_FILES = $CONFIG_FILES
7454 CONFIG_HEADERS = $CONFIG_HEADERS
7455 CONFIG_LINKS = $CONFIG_LINKS
7456 CONFIG_COMMANDS = $CONFIG_COMMANDS
7457 $ $0 $@
7459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7462 _ACEOF
7464 case $ac_config_files in *"
7465 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7466 esac
7468 case $ac_config_headers in *"
7469 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7470 esac
7473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7474 # Files that config.status was made for.
7475 config_files="$ac_config_files"
7476 config_headers="$ac_config_headers"
7477 config_commands="$ac_config_commands"
7479 _ACEOF
7481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7482 ac_cs_usage="\
7483 \`$as_me' instantiates files from templates according to the
7484 current configuration.
7486 Usage: $0 [OPTION]... [FILE]...
7488 -h, --help print this help, then exit
7489 -V, --version print version number and configuration settings, then exit
7490 -q, --quiet, --silent
7491 do not print progress messages
7492 -d, --debug don't remove temporary files
7493 --recheck update $as_me by reconfiguring in the same conditions
7494 --file=FILE[:TEMPLATE]
7495 instantiate the configuration file FILE
7496 --header=FILE[:TEMPLATE]
7497 instantiate the configuration header FILE
7499 Configuration files:
7500 $config_files
7502 Configuration headers:
7503 $config_headers
7505 Configuration commands:
7506 $config_commands
7508 Report bugs to <bug-autoconf@gnu.org>."
7510 _ACEOF
7511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7512 ac_cs_version="\\
7513 construo config.status 0.2.2
7514 configured by $0, generated by GNU Autoconf 2.63,
7515 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7517 Copyright (C) 2008 Free Software Foundation, Inc.
7518 This config.status script is free software; the Free Software Foundation
7519 gives unlimited permission to copy, distribute and modify it."
7521 ac_pwd='$ac_pwd'
7522 srcdir='$srcdir'
7523 INSTALL='$INSTALL'
7524 MKDIR_P='$MKDIR_P'
7525 AWK='$AWK'
7526 test -n "\$AWK" || AWK=awk
7527 _ACEOF
7529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7530 # The default lists apply if the user does not specify any file.
7531 ac_need_defaults=:
7532 while test $# != 0
7534 case $1 in
7535 --*=*)
7536 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7537 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7538 ac_shift=:
7541 ac_option=$1
7542 ac_optarg=$2
7543 ac_shift=shift
7545 esac
7547 case $ac_option in
7548 # Handling of the options.
7549 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7550 ac_cs_recheck=: ;;
7551 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7552 $as_echo "$ac_cs_version"; exit ;;
7553 --debug | --debu | --deb | --de | --d | -d )
7554 debug=: ;;
7555 --file | --fil | --fi | --f )
7556 $ac_shift
7557 case $ac_optarg in
7558 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7559 esac
7560 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
7561 ac_need_defaults=false;;
7562 --header | --heade | --head | --hea )
7563 $ac_shift
7564 case $ac_optarg in
7565 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7566 esac
7567 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
7568 ac_need_defaults=false;;
7569 --he | --h)
7570 # Conflict between --help and --header
7571 { $as_echo "$as_me: error: ambiguous option: $1
7572 Try \`$0 --help' for more information." >&2
7573 { (exit 1); exit 1; }; };;
7574 --help | --hel | -h )
7575 $as_echo "$ac_cs_usage"; exit ;;
7576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7577 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7578 ac_cs_silent=: ;;
7580 # This is an error.
7581 -*) { $as_echo "$as_me: error: unrecognized option: $1
7582 Try \`$0 --help' for more information." >&2
7583 { (exit 1); exit 1; }; } ;;
7585 *) ac_config_targets="$ac_config_targets $1"
7586 ac_need_defaults=false ;;
7588 esac
7589 shift
7590 done
7592 ac_configure_extra_args=
7594 if $ac_cs_silent; then
7595 exec 6>/dev/null
7596 ac_configure_extra_args="$ac_configure_extra_args --silent"
7599 _ACEOF
7600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7601 if \$ac_cs_recheck; then
7602 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7603 shift
7604 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7605 CONFIG_SHELL='$SHELL'
7606 export CONFIG_SHELL
7607 exec "\$@"
7610 _ACEOF
7611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7612 exec 5>>config.log
7614 echo
7615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7616 ## Running $as_me. ##
7617 _ASBOX
7618 $as_echo "$ac_log"
7619 } >&5
7621 _ACEOF
7622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7624 # INIT-COMMANDS
7626 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7628 _ACEOF
7630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7632 # Handling of arguments.
7633 for ac_config_target in $ac_config_targets
7635 case $ac_config_target in
7636 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7637 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7638 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7639 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
7641 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7642 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7643 { (exit 1); exit 1; }; };;
7644 esac
7645 done
7648 # If the user did not use the arguments to specify the items to instantiate,
7649 # then the envvar interface is used. Set only those that are not.
7650 # We use the long form for the default assignment because of an extremely
7651 # bizarre bug on SunOS 4.1.3.
7652 if $ac_need_defaults; then
7653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7658 # Have a temporary directory for convenience. Make it in the build tree
7659 # simply because there is no reason against having it here, and in addition,
7660 # creating and moving files from /tmp can sometimes cause problems.
7661 # Hook for its removal unless debugging.
7662 # Note that there is a small window in which the directory will not be cleaned:
7663 # after its creation but before its name has been assigned to `$tmp'.
7664 $debug ||
7666 tmp=
7667 trap 'exit_status=$?
7668 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7670 trap '{ (exit 1); exit 1; }' 1 2 13 15
7672 # Create a (secure) tmp directory for tmp files.
7675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7676 test -n "$tmp" && test -d "$tmp"
7677 } ||
7679 tmp=./conf$$-$RANDOM
7680 (umask 077 && mkdir "$tmp")
7681 } ||
7683 $as_echo "$as_me: cannot create a temporary directory in ." >&2
7684 { (exit 1); exit 1; }
7687 # Set up the scripts for CONFIG_FILES section.
7688 # No need to generate them if there are no CONFIG_FILES.
7689 # This happens for instance with `./config.status config.h'.
7690 if test -n "$CONFIG_FILES"; then
7693 ac_cr=' '
7694 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7695 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7696 ac_cs_awk_cr='\\r'
7697 else
7698 ac_cs_awk_cr=$ac_cr
7701 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7702 _ACEOF
7706 echo "cat >conf$$subs.awk <<_ACEOF" &&
7707 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7708 echo "_ACEOF"
7709 } >conf$$subs.sh ||
7710 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7711 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7712 { (exit 1); exit 1; }; }
7713 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7714 ac_delim='%!_!# '
7715 for ac_last_try in false false false false false :; do
7716 . ./conf$$subs.sh ||
7717 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7718 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7719 { (exit 1); exit 1; }; }
7721 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7722 if test $ac_delim_n = $ac_delim_num; then
7723 break
7724 elif $ac_last_try; then
7725 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7726 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7727 { (exit 1); exit 1; }; }
7728 else
7729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7731 done
7732 rm -f conf$$subs.sh
7734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7735 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7736 _ACEOF
7737 sed -n '
7739 s/^/S["/; s/!.*/"]=/
7742 s/^[^!]*!//
7743 :repl
7744 t repl
7745 s/'"$ac_delim"'$//
7746 t delim
7749 s/\(.\{148\}\).*/\1/
7750 t more1
7751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7754 b repl
7755 :more1
7756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7759 s/.\{148\}//
7760 t nl
7761 :delim
7763 s/\(.\{148\}\).*/\1/
7764 t more2
7765 s/["\\]/\\&/g; s/^/"/; s/$/"/
7768 :more2
7769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7772 s/.\{148\}//
7773 t delim
7774 ' <conf$$subs.awk | sed '
7775 /^[^""]/{
7777 s/\n//
7779 ' >>$CONFIG_STATUS || ac_write_fail=1
7780 rm -f conf$$subs.awk
7781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7782 _ACAWK
7783 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7784 for (key in S) S_is_set[key] = 1
7785 FS = "\a"
7789 line = $ 0
7790 nfields = split(line, field, "@")
7791 substed = 0
7792 len = length(field[1])
7793 for (i = 2; i < nfields; i++) {
7794 key = field[i]
7795 keylen = length(key)
7796 if (S_is_set[key]) {
7797 value = S[key]
7798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7799 len += length(value) + length(field[++i])
7800 substed = 1
7801 } else
7802 len += 1 + keylen
7805 print line
7808 _ACAWK
7809 _ACEOF
7810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7813 else
7815 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7816 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
7817 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
7818 { (exit 1); exit 1; }; }
7819 _ACEOF
7821 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7822 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7823 # trailing colons and then remove the whole line if VPATH becomes empty
7824 # (actually we leave an empty line to preserve line numbers).
7825 if test "x$srcdir" = x.; then
7826 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7827 s/:*\$(srcdir):*/:/
7828 s/:*\${srcdir}:*/:/
7829 s/:*@srcdir@:*/:/
7830 s/^\([^=]*=[ ]*\):*/\1/
7831 s/:*$//
7832 s/^[^=]*=[ ]*$//
7836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7837 fi # test -n "$CONFIG_FILES"
7839 # Set up the scripts for CONFIG_HEADERS section.
7840 # No need to generate them if there are no CONFIG_HEADERS.
7841 # This happens for instance with `./config.status Makefile'.
7842 if test -n "$CONFIG_HEADERS"; then
7843 cat >"$tmp/defines.awk" <<\_ACAWK ||
7844 BEGIN {
7845 _ACEOF
7847 # Transform confdefs.h into an awk script `defines.awk', embedded as
7848 # here-document in config.status, that substitutes the proper values into
7849 # config.h.in to produce config.h.
7851 # Create a delimiter string that does not exist in confdefs.h, to ease
7852 # handling of long lines.
7853 ac_delim='%!_!# '
7854 for ac_last_try in false false :; do
7855 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7856 if test -z "$ac_t"; then
7857 break
7858 elif $ac_last_try; then
7859 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
7860 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
7861 { (exit 1); exit 1; }; }
7862 else
7863 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7865 done
7867 # For the awk script, D is an array of macro values keyed by name,
7868 # likewise P contains macro parameters if any. Preserve backslash
7869 # newline sequences.
7871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7872 sed -n '
7873 s/.\{148\}/&'"$ac_delim"'/g
7874 t rset
7875 :rset
7876 s/^[ ]*#[ ]*define[ ][ ]*/ /
7877 t def
7879 :def
7880 s/\\$//
7881 t bsnl
7882 s/["\\]/\\&/g
7883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7884 D["\1"]=" \3"/p
7885 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7887 :bsnl
7888 s/["\\]/\\&/g
7889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7890 D["\1"]=" \3\\\\\\n"\\/p
7891 t cont
7892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7893 t cont
7895 :cont
7897 s/.\{148\}/&'"$ac_delim"'/g
7898 t clear
7899 :clear
7900 s/\\$//
7901 t bsnlc
7902 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7904 :bsnlc
7905 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7906 b cont
7907 ' <confdefs.h | sed '
7908 s/'"$ac_delim"'/"\\\
7909 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7912 for (key in D) D_is_set[key] = 1
7913 FS = "\a"
7915 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7916 line = \$ 0
7917 split(line, arg, " ")
7918 if (arg[1] == "#") {
7919 defundef = arg[2]
7920 mac1 = arg[3]
7921 } else {
7922 defundef = substr(arg[1], 2)
7923 mac1 = arg[2]
7925 split(mac1, mac2, "(") #)
7926 macro = mac2[1]
7927 prefix = substr(line, 1, index(line, defundef) - 1)
7928 if (D_is_set[macro]) {
7929 # Preserve the white space surrounding the "#".
7930 print prefix "define", macro P[macro] D[macro]
7931 next
7932 } else {
7933 # Replace #undef with comments. This is necessary, for example,
7934 # in the case of _POSIX_SOURCE, which is predefined and required
7935 # on some systems where configure will not decide to define it.
7936 if (defundef == "undef") {
7937 print "/*", prefix defundef, macro, "*/"
7938 next
7942 { print }
7943 _ACAWK
7944 _ACEOF
7945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7946 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
7947 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
7948 { (exit 1); exit 1; }; }
7949 fi # test -n "$CONFIG_HEADERS"
7952 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7953 shift
7954 for ac_tag
7956 case $ac_tag in
7957 :[FHLC]) ac_mode=$ac_tag; continue;;
7958 esac
7959 case $ac_mode$ac_tag in
7960 :[FHL]*:*);;
7961 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
7962 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7963 { (exit 1); exit 1; }; };;
7964 :[FH]-) ac_tag=-:-;;
7965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7966 esac
7967 ac_save_IFS=$IFS
7968 IFS=:
7969 set x $ac_tag
7970 IFS=$ac_save_IFS
7971 shift
7972 ac_file=$1
7973 shift
7975 case $ac_mode in
7976 :L) ac_source=$1;;
7977 :[FH])
7978 ac_file_inputs=
7979 for ac_f
7981 case $ac_f in
7982 -) ac_f="$tmp/stdin";;
7983 *) # Look for the file first in the build tree, then in the source tree
7984 # (if the path is not absolute). The absolute path cannot be DOS-style,
7985 # because $ac_f cannot contain `:'.
7986 test -f "$ac_f" ||
7987 case $ac_f in
7988 [\\/$]*) false;;
7989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7990 esac ||
7991 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7992 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7993 { (exit 1); exit 1; }; };;
7994 esac
7995 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7996 ac_file_inputs="$ac_file_inputs '$ac_f'"
7997 done
7999 # Let's still pretend it is `configure' which instantiates (i.e., don't
8000 # use $as_me), people would be surprised to read:
8001 # /* config.h. Generated by config.status. */
8002 configure_input='Generated from '`
8003 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8004 `' by configure.'
8005 if test x"$ac_file" != x-; then
8006 configure_input="$ac_file. $configure_input"
8007 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
8008 $as_echo "$as_me: creating $ac_file" >&6;}
8010 # Neutralize special characters interpreted by sed in replacement strings.
8011 case $configure_input in #(
8012 *\&* | *\|* | *\\* )
8013 ac_sed_conf_input=`$as_echo "$configure_input" |
8014 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8015 *) ac_sed_conf_input=$configure_input;;
8016 esac
8018 case $ac_tag in
8019 *:-:* | *:-) cat >"$tmp/stdin" \
8020 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8021 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8022 { (exit 1); exit 1; }; } ;;
8023 esac
8025 esac
8027 ac_dir=`$as_dirname -- "$ac_file" ||
8028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8029 X"$ac_file" : 'X\(//\)[^/]' \| \
8030 X"$ac_file" : 'X\(//\)$' \| \
8031 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8032 $as_echo X"$ac_file" |
8033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8034 s//\1/
8037 /^X\(\/\/\)[^/].*/{
8038 s//\1/
8041 /^X\(\/\/\)$/{
8042 s//\1/
8045 /^X\(\/\).*/{
8046 s//\1/
8049 s/.*/./; q'`
8050 { as_dir="$ac_dir"
8051 case $as_dir in #(
8052 -*) as_dir=./$as_dir;;
8053 esac
8054 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8055 as_dirs=
8056 while :; do
8057 case $as_dir in #(
8058 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8059 *) as_qdir=$as_dir;;
8060 esac
8061 as_dirs="'$as_qdir' $as_dirs"
8062 as_dir=`$as_dirname -- "$as_dir" ||
8063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8064 X"$as_dir" : 'X\(//\)[^/]' \| \
8065 X"$as_dir" : 'X\(//\)$' \| \
8066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8067 $as_echo X"$as_dir" |
8068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8069 s//\1/
8072 /^X\(\/\/\)[^/].*/{
8073 s//\1/
8076 /^X\(\/\/\)$/{
8077 s//\1/
8080 /^X\(\/\).*/{
8081 s//\1/
8084 s/.*/./; q'`
8085 test -d "$as_dir" && break
8086 done
8087 test -z "$as_dirs" || eval "mkdir $as_dirs"
8088 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8089 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8090 { (exit 1); exit 1; }; }; }
8091 ac_builddir=.
8093 case "$ac_dir" in
8094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8097 # A ".." for each directory in $ac_dir_suffix.
8098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8099 case $ac_top_builddir_sub in
8100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8102 esac ;;
8103 esac
8104 ac_abs_top_builddir=$ac_pwd
8105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8106 # for backward compatibility:
8107 ac_top_builddir=$ac_top_build_prefix
8109 case $srcdir in
8110 .) # We are building in place.
8111 ac_srcdir=.
8112 ac_top_srcdir=$ac_top_builddir_sub
8113 ac_abs_top_srcdir=$ac_pwd ;;
8114 [\\/]* | ?:[\\/]* ) # Absolute name.
8115 ac_srcdir=$srcdir$ac_dir_suffix;
8116 ac_top_srcdir=$srcdir
8117 ac_abs_top_srcdir=$srcdir ;;
8118 *) # Relative name.
8119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8120 ac_top_srcdir=$ac_top_build_prefix$srcdir
8121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8122 esac
8123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8126 case $ac_mode in
8129 # CONFIG_FILE
8132 case $INSTALL in
8133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8134 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8135 esac
8136 ac_MKDIR_P=$MKDIR_P
8137 case $MKDIR_P in
8138 [\\/$]* | ?:[\\/]* ) ;;
8139 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8140 esac
8141 _ACEOF
8143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8144 # If the template does not know about datarootdir, expand it.
8145 # FIXME: This hack should be removed a few years after 2.60.
8146 ac_datarootdir_hack=; ac_datarootdir_seen=
8148 ac_sed_dataroot='
8149 /datarootdir/ {
8153 /@datadir@/p
8154 /@docdir@/p
8155 /@infodir@/p
8156 /@localedir@/p
8157 /@mandir@/p
8159 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8160 *datarootdir*) ac_datarootdir_seen=yes;;
8161 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8162 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8163 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8164 _ACEOF
8165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8166 ac_datarootdir_hack='
8167 s&@datadir@&$datadir&g
8168 s&@docdir@&$docdir&g
8169 s&@infodir@&$infodir&g
8170 s&@localedir@&$localedir&g
8171 s&@mandir@&$mandir&g
8172 s&\\\${datarootdir}&$datarootdir&g' ;;
8173 esac
8174 _ACEOF
8176 # Neutralize VPATH when `$srcdir' = `.'.
8177 # Shell code in configure.ac might set extrasub.
8178 # FIXME: do we really want to maintain this feature?
8179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8180 ac_sed_extra="$ac_vpsub
8181 $extrasub
8182 _ACEOF
8183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8186 s|@configure_input@|$ac_sed_conf_input|;t t
8187 s&@top_builddir@&$ac_top_builddir_sub&;t t
8188 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8189 s&@srcdir@&$ac_srcdir&;t t
8190 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8191 s&@top_srcdir@&$ac_top_srcdir&;t t
8192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8193 s&@builddir@&$ac_builddir&;t t
8194 s&@abs_builddir@&$ac_abs_builddir&;t t
8195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8196 s&@INSTALL@&$ac_INSTALL&;t t
8197 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8198 $ac_datarootdir_hack
8200 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8201 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8202 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8203 { (exit 1); exit 1; }; }
8205 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8206 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8208 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8209 which seems to be undefined. Please make sure it is defined." >&5
8210 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8211 which seems to be undefined. Please make sure it is defined." >&2;}
8213 rm -f "$tmp/stdin"
8214 case $ac_file in
8215 -) cat "$tmp/out" && rm -f "$tmp/out";;
8216 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8217 esac \
8218 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8219 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8220 { (exit 1); exit 1; }; }
8224 # CONFIG_HEADER
8226 if test x"$ac_file" != x-; then
8228 $as_echo "/* $configure_input */" \
8229 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8230 } >"$tmp/config.h" \
8231 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8232 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8233 { (exit 1); exit 1; }; }
8234 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8235 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8236 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8237 else
8238 rm -f "$ac_file"
8239 mv "$tmp/config.h" "$ac_file" \
8240 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8241 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8242 { (exit 1); exit 1; }; }
8244 else
8245 $as_echo "/* $configure_input */" \
8246 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8247 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
8248 $as_echo "$as_me: error: could not create -" >&2;}
8249 { (exit 1); exit 1; }; }
8251 # Compute "$ac_file"'s index in $config_headers.
8252 _am_arg="$ac_file"
8253 _am_stamp_count=1
8254 for _am_header in $config_headers :; do
8255 case $_am_header in
8256 $_am_arg | $_am_arg:* )
8257 break ;;
8259 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8260 esac
8261 done
8262 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8263 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8264 X"$_am_arg" : 'X\(//\)[^/]' \| \
8265 X"$_am_arg" : 'X\(//\)$' \| \
8266 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8267 $as_echo X"$_am_arg" |
8268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8269 s//\1/
8272 /^X\(\/\/\)[^/].*/{
8273 s//\1/
8276 /^X\(\/\/\)$/{
8277 s//\1/
8280 /^X\(\/\).*/{
8281 s//\1/
8284 s/.*/./; q'`/stamp-h$_am_stamp_count
8287 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
8288 $as_echo "$as_me: executing $ac_file commands" >&6;}
8290 esac
8293 case $ac_file$ac_mode in
8294 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8295 # Strip MF so we end up with the name of the file.
8296 mf=`echo "$mf" | sed -e 's/:.*$//'`
8297 # Check whether this is an Automake generated Makefile or not.
8298 # We used to match only the files named `Makefile.in', but
8299 # some people rename them; so instead we look at the file content.
8300 # Grep'ing the first line is not enough: some people post-process
8301 # each Makefile.in and add a new line on top of each file to say so.
8302 # Grep'ing the whole file is not good either: AIX grep has a line
8303 # limit of 2048, but all sed's we know have understand at least 4000.
8304 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8305 dirpart=`$as_dirname -- "$mf" ||
8306 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8307 X"$mf" : 'X\(//\)[^/]' \| \
8308 X"$mf" : 'X\(//\)$' \| \
8309 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8310 $as_echo X"$mf" |
8311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8312 s//\1/
8315 /^X\(\/\/\)[^/].*/{
8316 s//\1/
8319 /^X\(\/\/\)$/{
8320 s//\1/
8323 /^X\(\/\).*/{
8324 s//\1/
8327 s/.*/./; q'`
8328 else
8329 continue
8331 # Extract the definition of DEPDIR, am__include, and am__quote
8332 # from the Makefile without running `make'.
8333 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8334 test -z "$DEPDIR" && continue
8335 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8336 test -z "am__include" && continue
8337 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8338 # When using ansi2knr, U may be empty or an underscore; expand it
8339 U=`sed -n 's/^U = //p' < "$mf"`
8340 # Find all dependency output files, they are included files with
8341 # $(DEPDIR) in their names. We invoke sed twice because it is the
8342 # simplest approach to changing $(DEPDIR) to its actual value in the
8343 # expansion.
8344 for file in `sed -n "
8345 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8346 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8347 # Make sure the directory exists.
8348 test -f "$dirpart/$file" && continue
8349 fdir=`$as_dirname -- "$file" ||
8350 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8351 X"$file" : 'X\(//\)[^/]' \| \
8352 X"$file" : 'X\(//\)$' \| \
8353 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8354 $as_echo X"$file" |
8355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8356 s//\1/
8359 /^X\(\/\/\)[^/].*/{
8360 s//\1/
8363 /^X\(\/\/\)$/{
8364 s//\1/
8367 /^X\(\/\).*/{
8368 s//\1/
8371 s/.*/./; q'`
8372 { as_dir=$dirpart/$fdir
8373 case $as_dir in #(
8374 -*) as_dir=./$as_dir;;
8375 esac
8376 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8377 as_dirs=
8378 while :; do
8379 case $as_dir in #(
8380 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8381 *) as_qdir=$as_dir;;
8382 esac
8383 as_dirs="'$as_qdir' $as_dirs"
8384 as_dir=`$as_dirname -- "$as_dir" ||
8385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8386 X"$as_dir" : 'X\(//\)[^/]' \| \
8387 X"$as_dir" : 'X\(//\)$' \| \
8388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8389 $as_echo X"$as_dir" |
8390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8391 s//\1/
8394 /^X\(\/\/\)[^/].*/{
8395 s//\1/
8398 /^X\(\/\/\)$/{
8399 s//\1/
8402 /^X\(\/\).*/{
8403 s//\1/
8406 s/.*/./; q'`
8407 test -d "$as_dir" && break
8408 done
8409 test -z "$as_dirs" || eval "mkdir $as_dirs"
8410 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8411 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8412 { (exit 1); exit 1; }; }; }
8413 # echo "creating $dirpart/$file"
8414 echo '# dummy' > "$dirpart/$file"
8415 done
8416 done
8419 esac
8420 done # for ac_tag
8423 { (exit 0); exit 0; }
8424 _ACEOF
8425 chmod +x $CONFIG_STATUS
8426 ac_clean_files=$ac_clean_files_save
8428 test $ac_write_fail = 0 ||
8429 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
8430 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
8431 { (exit 1); exit 1; }; }
8434 # configure is writing to config.log, and then calls config.status.
8435 # config.status does its own redirection, appending to config.log.
8436 # Unfortunately, on DOS this fails, as config.log is still kept open
8437 # by configure, so config.status won't be able to write to it; its
8438 # output is simply discarded. So we exec the FD to /dev/null,
8439 # effectively closing config.log, so it can be properly (re)opened and
8440 # appended to by config.status. When coming back to configure, we
8441 # need to make the FD available again.
8442 if test "$no_create" != yes; then
8443 ac_cs_success=:
8444 ac_config_status_args=
8445 test "$silent" = yes &&
8446 ac_config_status_args="$ac_config_status_args --quiet"
8447 exec 5>/dev/null
8448 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8449 exec 5>>config.log
8450 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8451 # would make configure fail if this is the last instruction.
8452 $ac_cs_success || { (exit 1); exit 1; }
8454 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8455 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8456 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8460 echo ""
8461 echo " CXXFLAGS = $CXXFLAGS"
8462 echo " LIBS = $LIBS"
8463 echo " Debugging = $enable_debug"
8464 echo " GProf = $enable_gprof"
8465 echo " FunctionCheck = $enable_fcheck"
8466 echo " Targets =$ConstruoTargets"
8467 echo ""
8468 echo "Now type 'make' and everything should work, if not, write a bug reports to:"
8469 echo ""
8470 echo " Ingo Ruhnke <grumbel@gmx.de>"
8471 echo ""
8473 # EOF #