2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for QComicBook 0.3.4.
5 # Report bugs to <pawel.stolowski@wp.pl>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='QComicBook'
561 PACKAGE_TARNAME='qcomicbook'
562 PACKAGE_VERSION='0.3.4'
563 PACKAGE_STRING='QComicBook 0.3.4'
564 PACKAGE_BUGREPORT='pawel.stolowski@wp.pl'
566 ac_default_prefix=/usr/local
576 program_transform_name
617 INSTALL_STRIP_PROGRAM
664 ac_precious_vars='build_alias
681 # Initialize some variables set by options.
683 ac_init_version=false
684 # The variables have the same names as the options, with
685 # dashes changed to underlines.
693 program_transform_name=s,x,x,
701 # Installation directory options.
702 # These are left unexpanded so users can "make install exec_prefix=/foo"
703 # and all the variables that are supposed to be based on exec_prefix
704 # by default will actually change.
705 # Use braces instead of parens because sh, perl, etc. also accept them.
706 # (The list follows the same order as the GNU Coding Standards.)
707 bindir='${exec_prefix}/bin'
708 sbindir='${exec_prefix}/sbin'
709 libexecdir='${exec_prefix}/libexec'
710 datarootdir='${prefix}/share'
711 datadir='${datarootdir}'
712 sysconfdir='${prefix}/etc'
713 sharedstatedir='${prefix}/com'
714 localstatedir='${prefix}/var'
715 includedir='${prefix}/include'
716 oldincludedir='/usr/include'
717 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
718 infodir='${datarootdir}/info'
723 libdir='${exec_prefix}/lib'
724 localedir='${datarootdir}/locale'
725 mandir='${datarootdir}/man'
731 # If the previous option needs an argument, assign it.
732 if test -n "$ac_prev"; then
733 eval $ac_prev=\$ac_option
739 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
743 # Accept the important Cygnus configure options, so we can diagnose typos.
745 case $ac_dashdash$ac_option in
749 -bindir | --bindir | --bindi | --bind | --bin | --bi)
751 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
754 -build | --build | --buil | --bui | --bu)
755 ac_prev=build_alias ;;
756 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
757 build_alias=$ac_optarg ;;
759 -cache-file | --cache-file | --cache-fil | --cache-fi \
760 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
761 ac_prev=cache_file ;;
762 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
763 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
764 cache_file=$ac_optarg ;;
767 cache_file=config.cache ;;
769 -datadir | --datadir | --datadi | --datad)
771 -datadir=* | --datadir=* | --datadi=* | --datad=*)
772 datadir=$ac_optarg ;;
774 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
775 | --dataroo | --dataro | --datar)
776 ac_prev=datarootdir ;;
777 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
778 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
779 datarootdir=$ac_optarg ;;
781 -disable-* | --disable-*)
782 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
786 { (exit 1); exit 1; }; }
787 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
788 eval enable_$ac_feature=no ;;
790 -docdir | --docdir | --docdi | --doc | --do)
792 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
795 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
797 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
800 -enable-* | --enable-*)
801 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
804 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805 { (exit 1); exit 1; }; }
806 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
807 eval enable_$ac_feature=\$ac_optarg ;;
809 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
810 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
811 | --exec | --exe | --ex)
812 ac_prev=exec_prefix ;;
813 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
814 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
815 | --exec=* | --exe=* | --ex=*)
816 exec_prefix=$ac_optarg ;;
818 -gas | --gas | --ga | --g)
819 # Obsolete; use --with-gas.
822 -help | --help | --hel | --he | -h)
824 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
825 ac_init_help=recursive ;;
826 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
827 ac_init_help=short ;;
829 -host | --host | --hos | --ho)
830 ac_prev=host_alias ;;
831 -host=* | --host=* | --hos=* | --ho=*)
832 host_alias=$ac_optarg ;;
834 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
836 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
838 htmldir=$ac_optarg ;;
840 -includedir | --includedir | --includedi | --included | --include \
841 | --includ | --inclu | --incl | --inc)
842 ac_prev=includedir ;;
843 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
844 | --includ=* | --inclu=* | --incl=* | --inc=*)
845 includedir=$ac_optarg ;;
847 -infodir | --infodir | --infodi | --infod | --info | --inf)
849 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
850 infodir=$ac_optarg ;;
852 -libdir | --libdir | --libdi | --libd)
854 -libdir=* | --libdir=* | --libdi=* | --libd=*)
857 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
858 | --libexe | --libex | --libe)
859 ac_prev=libexecdir ;;
860 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
861 | --libexe=* | --libex=* | --libe=*)
862 libexecdir=$ac_optarg ;;
864 -localedir | --localedir | --localedi | --localed | --locale)
866 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
867 localedir=$ac_optarg ;;
869 -localstatedir | --localstatedir | --localstatedi | --localstated \
870 | --localstate | --localstat | --localsta | --localst | --locals)
871 ac_prev=localstatedir ;;
872 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
873 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
874 localstatedir=$ac_optarg ;;
876 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
878 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
882 # Obsolete; use --without-fp.
885 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
886 | --no-cr | --no-c | -n)
889 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
890 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
893 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
894 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
895 | --oldin | --oldi | --old | --ol | --o)
896 ac_prev=oldincludedir ;;
897 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
898 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
899 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
900 oldincludedir=$ac_optarg ;;
902 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
904 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
907 -program-prefix | --program-prefix | --program-prefi | --program-pref \
908 | --program-pre | --program-pr | --program-p)
909 ac_prev=program_prefix ;;
910 -program-prefix=* | --program-prefix=* | --program-prefi=* \
911 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
912 program_prefix=$ac_optarg ;;
914 -program-suffix | --program-suffix | --program-suffi | --program-suff \
915 | --program-suf | --program-su | --program-s)
916 ac_prev=program_suffix ;;
917 -program-suffix=* | --program-suffix=* | --program-suffi=* \
918 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
919 program_suffix=$ac_optarg ;;
921 -program-transform-name | --program-transform-name \
922 | --program-transform-nam | --program-transform-na \
923 | --program-transform-n | --program-transform- \
924 | --program-transform | --program-transfor \
925 | --program-transfo | --program-transf \
926 | --program-trans | --program-tran \
927 | --progr-tra | --program-tr | --program-t)
928 ac_prev=program_transform_name ;;
929 -program-transform-name=* | --program-transform-name=* \
930 | --program-transform-nam=* | --program-transform-na=* \
931 | --program-transform-n=* | --program-transform-=* \
932 | --program-transform=* | --program-transfor=* \
933 | --program-transfo=* | --program-transf=* \
934 | --program-trans=* | --program-tran=* \
935 | --progr-tra=* | --program-tr=* | --program-t=*)
936 program_transform_name=$ac_optarg ;;
938 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
940 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
943 -psdir | --psdir | --psdi | --psd | --ps)
945 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
949 | -silent | --silent | --silen | --sile | --sil)
952 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
954 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
956 sbindir=$ac_optarg ;;
958 -sharedstatedir | --sharedstatedir | --sharedstatedi \
959 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
960 | --sharedst | --shareds | --shared | --share | --shar \
962 ac_prev=sharedstatedir ;;
963 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
964 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
965 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
967 sharedstatedir=$ac_optarg ;;
969 -site | --site | --sit)
971 -site=* | --site=* | --sit=*)
974 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
976 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
980 | --syscon | --sysco | --sysc | --sys | --sy)
981 ac_prev=sysconfdir ;;
982 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
983 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
984 sysconfdir=$ac_optarg ;;
986 -target | --target | --targe | --targ | --tar | --ta | --t)
987 ac_prev=target_alias ;;
988 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
989 target_alias=$ac_optarg ;;
991 -v | -verbose | --verbose | --verbos | --verbo | --verb)
994 -version | --version | --versio | --versi | --vers | -V)
998 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid package name: $ac_package" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_package=`echo $ac_package| sed 's/-/_/g'`
1004 eval with_$ac_package=\$ac_optarg ;;
1006 -without-* | --without-*)
1007 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1010 { echo "$as_me: error: invalid package name: $ac_package" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_package=`echo $ac_package | sed 's/-/_/g'`
1013 eval with_$ac_package=no ;;
1016 # Obsolete; use --with-x.
1019 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1020 | --x-incl | --x-inc | --x-in | --x-i)
1021 ac_prev=x_includes ;;
1022 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1023 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1024 x_includes=$ac_optarg ;;
1026 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1027 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1028 ac_prev=x_libraries ;;
1029 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1030 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1031 x_libraries=$ac_optarg ;;
1033 -*) { echo "$as_me: error: unrecognized option: $ac_option
1034 Try \`$0 --help' for more information." >&2
1035 { (exit 1); exit 1; }; }
1039 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1043 { (exit 1); exit 1; }; }
1044 eval $ac_envvar=\$ac_optarg
1045 export $ac_envvar ;;
1048 # FIXME: should be removed in autoconf 3.0.
1049 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1050 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1052 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1058 if test -n "$ac_prev"; then
1059 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1060 { echo "$as_me: error: missing argument to $ac_option" >&2
1061 { (exit 1); exit 1; }; }
1064 # Be sure to have absolute directory names.
1065 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1066 datadir sysconfdir sharedstatedir localstatedir includedir \
1067 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1068 libdir localedir mandir
1070 eval ac_val=\$$ac_var
1072 [\\/$]* | ?:[\\/]* ) continue;;
1073 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1075 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1076 { (exit 1); exit 1; }; }
1079 # There might be people who depend on the old broken behavior: `$host'
1080 # used to hold the argument of --host etc.
1081 # FIXME: To remove some day.
1084 target=$target_alias
1086 # FIXME: To remove some day.
1087 if test "x$host_alias" != x; then
1088 if test "x$build_alias" = x; then
1089 cross_compiling=maybe
1090 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1091 If a cross compiler is detected then cross compile mode will be used." >&2
1092 elif test "x$build_alias" != "x$host_alias"; then
1098 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1100 test "$silent" = yes && exec 6>/dev/null
1103 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1104 ac_ls_di=`ls -di .` &&
1105 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1106 { echo "$as_me: error: Working directory cannot be determined" >&2
1107 { (exit 1); exit 1; }; }
1108 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1109 { echo "$as_me: error: pwd does not report name of working directory" >&2
1110 { (exit 1); exit 1; }; }
1113 # Find the source files, if location was not specified.
1114 if test -z "$srcdir"; then
1115 ac_srcdir_defaulted=yes
1116 # Try the directory containing this script, then the parent directory.
1117 ac_confdir=`$as_dirname -- "$0" ||
1118 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1119 X"$0" : 'X\(//\)[^/]' \| \
1120 X"$0" : 'X\(//\)$' \| \
1121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1141 if test ! -r "$srcdir/$ac_unique_file"; then
1145 ac_srcdir_defaulted=no
1147 if test ! -r "$srcdir/$ac_unique_file"; then
1148 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1149 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1150 { (exit 1); exit 1; }; }
1152 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1154 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1155 { (exit 1); exit 1; }; }
1157 # When building in place, set srcdir=.
1158 if test "$ac_abs_confdir" = "$ac_pwd"; then
1161 # Remove unnecessary trailing slashes from srcdir.
1162 # Double slashes in file names in object file debugging info
1163 # mess up M-x gdb in Emacs.
1165 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1167 for ac_var in $ac_precious_vars; do
1168 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1169 eval ac_env_${ac_var}_value=\$${ac_var}
1170 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1171 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1175 # Report the --help message.
1177 if test "$ac_init_help" = "long"; then
1178 # Omit some internal or obsolete options to make the list less imposing.
1179 # This message is too long to be a string in the A/UX 3.1 sh.
1181 \`configure' configures QComicBook 0.3.4 to adapt to many kinds of systems.
1183 Usage: $0 [OPTION]... [VAR=VALUE]...
1185 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1186 VAR=VALUE. See below for descriptions of some of the useful variables.
1188 Defaults for the options are specified in brackets.
1191 -h, --help display this help and exit
1192 --help=short display options specific to this package
1193 --help=recursive display the short help of all the included packages
1194 -V, --version display version information and exit
1195 -q, --quiet, --silent do not print \`checking...' messages
1196 --cache-file=FILE cache test results in FILE [disabled]
1197 -C, --config-cache alias for \`--cache-file=config.cache'
1198 -n, --no-create do not create output files
1199 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1201 Installation directories:
1202 --prefix=PREFIX install architecture-independent files in PREFIX
1203 [$ac_default_prefix]
1204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1207 By default, \`make install' will install all the files in
1208 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1209 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1210 for instance \`--prefix=\$HOME'.
1212 For better control, use the options below.
1214 Fine tuning of the installation directories:
1215 --bindir=DIR user executables [EPREFIX/bin]
1216 --sbindir=DIR system admin executables [EPREFIX/sbin]
1217 --libexecdir=DIR program executables [EPREFIX/libexec]
1218 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1219 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1220 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1221 --libdir=DIR object code libraries [EPREFIX/lib]
1222 --includedir=DIR C header files [PREFIX/include]
1223 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1224 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1225 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1226 --infodir=DIR info documentation [DATAROOTDIR/info]
1227 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1228 --mandir=DIR man documentation [DATAROOTDIR/man]
1229 --docdir=DIR documentation root [DATAROOTDIR/doc/qcomicbook]
1230 --htmldir=DIR html documentation [DOCDIR]
1231 --dvidir=DIR dvi documentation [DOCDIR]
1232 --pdfdir=DIR pdf documentation [DOCDIR]
1233 --psdir=DIR ps documentation [DOCDIR]
1239 --program-prefix=PREFIX prepend PREFIX to installed program names
1240 --program-suffix=SUFFIX append SUFFIX to installed program names
1241 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1244 --x-includes=DIR X include files are in DIR
1245 --x-libraries=DIR X library files are in DIR
1249 if test -n "$ac_init_help"; then
1250 case $ac_init_help in
1251 short | recursive ) echo "Configuration of QComicBook 0.3.4:";;
1256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1258 --disable-dependency-tracking speeds up one-time build
1259 --enable-dependency-tracking do not reject slow dependency extractors
1262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1264 --with-x use the X Window System
1265 --with-Qt-dir=DIR DIR is equal to $QTDIR if you have followed the
1266 installation instructions of Trolltech. Header
1267 files are in DIR/include, binary utilities are
1268 in DIR/bin. The library is in DIR/lib, unless
1269 --with-Qt-lib-dir is also set.
1270 --with-Qt-include-dir=DIR
1271 Qt header files are in DIR
1272 --with-Qt-bin-dir=DIR Qt utilities such as moc and uic are in DIR
1273 --with-Qt-lib-dir=DIR The Qt library is in DIR
1274 --with-Qt-lib=LIB Use -lLIB to link with the Qt library
1276 Some influential environment variables:
1277 CXX C++ compiler command
1278 CXXFLAGS C++ compiler flags
1279 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1280 nonstandard directory <lib dir>
1281 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1282 you have headers in a nonstandard directory <include dir>
1283 CC C compiler command
1284 CFLAGS C compiler flags
1285 XMKMF Path to xmkmf, Makefile generator for X Window System
1287 PKG_CONFIG path to pkg-config utility
1289 C compiler flags for Imlib2, overriding pkg-config
1290 Imlib2_LIBS linker flags for Imlib2, overriding pkg-config
1292 Use these variables to override the choices made by `configure' or to help
1293 it to find libraries and programs with nonstandard names/locations.
1295 Report bugs to <pawel.stolowski@wp.pl>.
1300 if test "$ac_init_help" = "recursive"; then
1301 # If there are subdirs, report their specific --help.
1302 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1303 test -d "$ac_dir" || continue
1307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1309 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1310 # A ".." for each directory in $ac_dir_suffix.
1311 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1312 case $ac_top_builddir_sub in
1313 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1314 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1317 ac_abs_top_builddir=$ac_pwd
1318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1319 # for backward compatibility:
1320 ac_top_builddir=$ac_top_build_prefix
1323 .) # We are building in place.
1325 ac_top_srcdir=$ac_top_builddir_sub
1326 ac_abs_top_srcdir=$ac_pwd ;;
1327 [\\/]* | ?:[\\/]* ) # Absolute name.
1328 ac_srcdir=$srcdir$ac_dir_suffix;
1329 ac_top_srcdir=$srcdir
1330 ac_abs_top_srcdir=$srcdir ;;
1332 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1333 ac_top_srcdir=$ac_top_build_prefix$srcdir
1334 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1338 cd "$ac_dir" || { ac_status=$?; continue; }
1339 # Check for guested configure.
1340 if test -f "$ac_srcdir/configure.gnu"; then
1342 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1343 elif test -f "$ac_srcdir/configure"; then
1345 $SHELL "$ac_srcdir/configure" --help=recursive
1347 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1349 cd "$ac_pwd" || { ac_status=$?; break; }
1353 test -n "$ac_init_help" && exit $ac_status
1354 if $ac_init_version; then
1356 QComicBook configure 0.3.4
1357 generated by GNU Autoconf 2.60
1359 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1360 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1361 This configure script is free software; the Free Software Foundation
1362 gives unlimited permission to copy, distribute and modify it.
1366 cat >config.log <<_ACEOF
1367 This file contains any messages produced by compilers while
1368 running configure, to aid debugging if configure makes a mistake.
1370 It was created by QComicBook $as_me 0.3.4, which was
1371 generated by GNU Autoconf 2.60. Invocation command line was
1383 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1384 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1385 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1386 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1387 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1389 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1390 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1392 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1393 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1394 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1395 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1396 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1397 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1398 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 test -z "$as_dir" && as_dir=.
1407 echo "PATH: $as_dir"
1423 # Keep a trace of the command line.
1424 # Strip out --no-create and --no-recursion so they do not pile up.
1425 # Strip out --silent because we don't want to record it for future runs.
1426 # Also quote any args containing shell meta-characters.
1427 # Make two passes to allow for proper duplicate-argument suppression.
1431 ac_must_keep_next=false
1437 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1439 | -silent | --silent | --silen | --sile | --sil)
1442 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1447 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1448 if test $ac_must_keep_next = true; then
1449 ac_must_keep_next=false # Got value, back to normal.
1452 *=* | --config-cache | -C | -disable-* | --disable-* \
1453 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1454 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1455 | -with-* | --with-* | -without-* | --without-* | --x)
1456 case "$ac_configure_args0 " in
1457 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1460 -* ) ac_must_keep_next=true ;;
1463 ac_configure_args="$ac_configure_args '$ac_arg'"
1468 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1469 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1471 # When interrupted or exit'd, cleanup temporary files, and complete
1472 # config.log. We remove comments because anyway the quotes in there
1473 # would cause problems or look ugly.
1474 # WARNING: Use '\'' to represent an apostrophe within the trap.
1475 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1476 trap 'exit_status=$?
1477 # Save into config.log some information that might help in debugging.
1482 ## ---------------- ##
1483 ## Cache variables. ##
1484 ## ---------------- ##
1487 # The following way of writing the cache mishandles newlines in values,
1489 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1490 eval ac_val=\$$ac_var
1494 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1495 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1498 _ | IFS | as_nl) ;; #(
1499 *) $as_unset $ac_var ;;
1504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1505 *${as_nl}ac_space=\ *)
1507 "s/'\''/'\''\\\\'\'''\''/g;
1508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1519 ## ----------------- ##
1520 ## Output variables. ##
1521 ## ----------------- ##
1524 for ac_var in $ac_subst_vars
1526 eval ac_val=\$$ac_var
1528 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1530 echo "$ac_var='\''$ac_val'\''"
1534 if test -n "$ac_subst_files"; then
1536 ## ------------------- ##
1537 ## File substitutions. ##
1538 ## ------------------- ##
1541 for ac_var in $ac_subst_files
1543 eval ac_val=\$$ac_var
1545 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1547 echo "$ac_var='\''$ac_val'\''"
1552 if test -s confdefs.h; then
1562 test "$ac_signal" != 0 &&
1563 echo "$as_me: caught signal $ac_signal"
1564 echo "$as_me: exit $exit_status"
1566 rm -f core *.core core.conftest.* &&
1567 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1570 for ac_signal in 1 2 13 15; do
1571 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1576 rm -f -r conftest* confdefs.h
1578 # Predefined preprocessor variables.
1580 cat >>confdefs.h <<_ACEOF
1581 #define PACKAGE_NAME "$PACKAGE_NAME"
1585 cat >>confdefs.h <<_ACEOF
1586 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_STRING "$PACKAGE_STRING"
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1605 # Let the site file select an alternate cache file if it wants to.
1606 # Prefer explicitly selected file to automatically selected ones.
1607 if test -n "$CONFIG_SITE"; then
1608 set x "$CONFIG_SITE"
1609 elif test "x$prefix" != xNONE; then
1610 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1612 set x "$ac_default_prefix/share/config.site" \
1613 "$ac_default_prefix/etc/config.site"
1618 if test -r "$ac_site_file"; then
1619 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1620 echo "$as_me: loading site script $ac_site_file" >&6;}
1621 sed 's/^/| /' "$ac_site_file" >&5
1626 if test -r "$cache_file"; then
1627 # Some versions of bash will fail to source /dev/null (special
1628 # files actually), so we avoid doing that.
1629 if test -f "$cache_file"; then
1630 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1631 echo "$as_me: loading cache $cache_file" >&6;}
1633 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1634 *) . "./$cache_file";;
1638 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1639 echo "$as_me: creating cache $cache_file" >&6;}
1643 # Check that the precious variables saved in the cache have kept the same
1645 ac_cache_corrupted=false
1646 for ac_var in $ac_precious_vars; do
1647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1648 eval ac_new_set=\$ac_env_${ac_var}_set
1649 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1650 eval ac_new_val=\$ac_env_${ac_var}_value
1651 case $ac_old_set,$ac_new_set in
1653 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1654 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1655 ac_cache_corrupted=: ;;
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1659 ac_cache_corrupted=: ;;
1662 if test "x$ac_old_val" != "x$ac_new_val"; then
1663 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1664 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1665 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1666 echo "$as_me: former value: $ac_old_val" >&2;}
1667 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1668 echo "$as_me: current value: $ac_new_val" >&2;}
1669 ac_cache_corrupted=:
1672 # Pass precious variables to config.status.
1673 if test "$ac_new_set" = set; then
1675 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1676 *) ac_arg=$ac_var=$ac_new_val ;;
1678 case " $ac_configure_args " in
1679 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1680 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1684 if $ac_cache_corrupted; then
1685 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1686 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1687 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1688 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1689 { (exit 1); exit 1; }; }
1717 ac_cpp='$CPP $CPPFLAGS'
1718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1723 am__api_version="1.9"
1725 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1726 if test -f "$ac_dir/install-sh"; then
1728 ac_install_sh="$ac_aux_dir/install-sh -c"
1730 elif test -f "$ac_dir/install.sh"; then
1732 ac_install_sh="$ac_aux_dir/install.sh -c"
1734 elif test -f "$ac_dir/shtool"; then
1736 ac_install_sh="$ac_aux_dir/shtool install -c"
1740 if test -z "$ac_aux_dir"; then
1741 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1742 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1743 { (exit 1); exit 1; }; }
1746 # These three variables are undocumented and unsupported,
1747 # and are intended to be withdrawn in a future Autoconf release.
1748 # They can cause serious problems if a builder's source tree is in a directory
1749 # whose full name contains unusual characters.
1750 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1751 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1752 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1755 # Find a good install program. We prefer a C program (faster),
1756 # so one script is as good as another. But avoid the broken or
1757 # incompatible versions:
1758 # SysV /etc/install, /usr/sbin/install
1759 # SunOS /usr/etc/install
1760 # IRIX /sbin/install
1762 # AmigaOS /C/install, which installs bootblocks on floppy discs
1763 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1764 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1765 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1766 # OS/2's system install, which has a completely different semantic
1767 # ./install, which can be erroneously created by make from ./install.sh.
1768 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1769 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1770 if test -z "$INSTALL"; then
1771 if test "${ac_cv_path_install+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 # Account for people who put trailing slashes in PATH elements.
1781 ./ | .// | /cC/* | \
1782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1783 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1786 # OSF1 and SCO ODT 3.0 have their own names for install.
1787 # Don't use installbsd from OSF since it installs stuff as root
1789 for ac_prog in ginstall scoinst install; do
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1792 if test $ac_prog = install &&
1793 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1794 # AIX install. It has an incompatible calling convention.
1796 elif test $ac_prog = install &&
1797 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1798 # program-specific install script used by HP pwplus--don't use.
1801 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1814 if test "${ac_cv_path_install+set}" = set; then
1815 INSTALL=$ac_cv_path_install
1817 # As a last resort, use the slow shell script. Don't cache a
1818 # value for INSTALL within a source directory, because that will
1819 # break other packages using the cache if that directory is
1820 # removed, or if the value is a relative name.
1821 INSTALL=$ac_install_sh
1824 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1825 echo "${ECHO_T}$INSTALL" >&6; }
1827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1828 # It thinks the first close brace ends the variable substitution.
1829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1835 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1836 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1839 echo timestamp > conftest.file
1840 # Do `set' in a subshell so we don't clobber the current shell's
1841 # arguments. Must try -L first in case configure is actually a
1842 # symlink; some systems play weird games with the mod time of symlinks
1843 # (eg FreeBSD returns the mod time of the symlink's containing
1846 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1847 if test "$*" = "X"; then
1849 set X `ls -t $srcdir/configure conftest.file`
1852 if test "$*" != "X $srcdir/configure conftest.file" \
1853 && test "$*" != "X conftest.file $srcdir/configure"; then
1855 # If neither matched, then we have a broken ls. This can happen
1856 # if, for instance, CONFIG_SHELL is bash and it inherits a
1857 # broken ls alias from the environment. This has actually
1858 # happened. Such a system could not be considered "sane".
1859 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1860 alias in your environment" >&5
1861 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1862 alias in your environment" >&2;}
1863 { (exit 1); exit 1; }; }
1866 test "$2" = conftest.file
1872 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1873 Check your system clock" >&5
1874 echo "$as_me: error: newly created file is older than distributed files!
1875 Check your system clock" >&2;}
1876 { (exit 1); exit 1; }; }
1878 { echo "$as_me:$LINENO: result: yes" >&5
1879 echo "${ECHO_T}yes" >&6; }
1880 test "$program_prefix" != NONE &&
1881 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1882 # Use a double $ so make ignores it.
1883 test "$program_suffix" != NONE &&
1884 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1885 # Double any \ or $. echo might interpret backslashes.
1886 # By default was `s,x,x', remove it if useless.
1887 cat <<\_ACEOF >conftest.sed
1888 s/[\\$]/&&/g;s/;s,x,x,$//
1890 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1893 # expand $ac_aux_dir to an absolute path
1894 am_aux_dir=`cd $ac_aux_dir && pwd`
1896 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1897 # Use eval to expand $SHELL
1898 if eval "$MISSING --run true"; then
1899 am_missing_run="$MISSING --run "
1902 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1903 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1906 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1907 # We used to keeping the `.' as first argument, in order to
1908 # allow $(mkdir_p) to be used without argument. As in
1909 # $(mkdir_p) $(somedir)
1910 # where $(somedir) is conditionally defined. However this is wrong
1912 # 1. if the package is installed by a user who cannot write `.'
1913 # make install will fail,
1914 # 2. the above comment should most certainly read
1915 # $(mkdir_p) $(DESTDIR)$(somedir)
1916 # so it does not work when $(somedir) is undefined and
1917 # $(DESTDIR) is not.
1918 # To support the latter case, we have to write
1919 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1920 # so the `.' trick is pointless.
1921 mkdir_p='mkdir -p --'
1923 # On NextStep and OpenStep, the `mkdir' command does not
1924 # recognize any option. It will interpret all options as
1925 # directories to create, and then abort because `.' already
1927 for d in ./-p ./--version;
1929 test -d $d && rmdir $d
1931 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1932 if test -f "$ac_aux_dir/mkinstalldirs"; then
1933 mkdir_p='$(mkinstalldirs)'
1935 mkdir_p='$(install_sh) -d'
1939 for ac_prog in gawk mawk nawk awk
1941 # Extract the first word of "$ac_prog", so it can be a program name with args.
1942 set dummy $ac_prog; ac_word=$2
1943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1945 if test "${ac_cv_prog_AWK+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 if test -n "$AWK"; then
1949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1958 ac_cv_prog_AWK="$ac_prog"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 if test -n "$AWK"; then
1970 { echo "$as_me:$LINENO: result: $AWK" >&5
1971 echo "${ECHO_T}$AWK" >&6; }
1973 { echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6; }
1978 test -n "$AWK" && break
1981 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1982 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1983 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 cat >conftest.make <<\_ACEOF
1990 @echo '@@@%%%=$(MAKE)=@@@%%%'
1992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1995 eval ac_cv_prog_make_${ac_make}_set=yes;;
1997 eval ac_cv_prog_make_${ac_make}_set=no;;
2001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2002 { echo "$as_me:$LINENO: result: yes" >&5
2003 echo "${ECHO_T}yes" >&6; }
2006 { echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6; }
2008 SET_MAKE="MAKE=${MAKE-make}"
2011 rm -rf .tst 2>/dev/null
2012 mkdir .tst 2>/dev/null
2013 if test -d .tst; then
2018 rmdir .tst 2>/dev/null
2020 # test to see if srcdir already configured
2021 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2022 test -f $srcdir/config.status; then
2023 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2024 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2025 { (exit 1); exit 1; }; }
2028 # test whether we have cygpath
2029 if test -z "$CYGPATH_W"; then
2030 if (cygpath --version) >/dev/null 2>/dev/null; then
2031 CYGPATH_W='cygpath -w'
2038 # Define the identity of the package.
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE "$PACKAGE"
2048 cat >>confdefs.h <<_ACEOF
2049 #define VERSION "$VERSION"
2052 # Some tools Automake needs.
2054 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2057 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2060 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2063 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2066 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2068 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2070 # Installed binaries are usually stripped using `strip' when the user
2071 # run `make install-strip'. However `strip' might not be the right
2072 # tool to use in cross-compilation environments, therefore Automake
2073 # will honor the `STRIP' environment variable to overrule this program.
2074 if test "$cross_compiling" != no; then
2075 if test -n "$ac_tool_prefix"; then
2076 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}strip; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_prog_STRIP+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$STRIP"; then
2084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 STRIP=$ac_cv_prog_STRIP
2104 if test -n "$STRIP"; then
2105 { echo "$as_me:$LINENO: result: $STRIP" >&5
2106 echo "${ECHO_T}$STRIP" >&6; }
2108 { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2114 if test -z "$ac_cv_prog_STRIP"; then
2116 # Extract the first word of "strip", so it can be a program name with args.
2117 set dummy strip; ac_word=$2
2118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2120 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$ac_ct_STRIP"; then
2124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2133 ac_cv_prog_ac_ct_STRIP="strip"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2144 if test -n "$ac_ct_STRIP"; then
2145 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2146 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2148 { echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6; }
2152 if test "x$ac_ct_STRIP" = x; then
2155 case $cross_compiling:$ac_tool_warned in
2157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2158 whose name does not start with the host triplet. If you think this
2159 configuration is useful to you, please write to autoconf@gnu.org." >&5
2160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2161 whose name does not start with the host triplet. If you think this
2162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2163 ac_tool_warned=yes ;;
2168 STRIP="$ac_cv_prog_STRIP"
2172 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2174 # We need awk for the "check" target. The system "awk" is bad on
2176 # Always define AMTAR for backward compatibility.
2178 AMTAR=${AMTAR-"${am_missing_run}tar"}
2180 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2186 ac_config_headers="$ac_config_headers src/config.h"
2190 # Checks for programs.
2192 ac_cpp='$CXXCPP $CPPFLAGS'
2193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2196 if test -z "$CXX"; then
2197 if test -n "$CCC"; then
2200 if test -n "$ac_tool_prefix"; then
2201 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2207 if test "${ac_cv_prog_CXX+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test -n "$CXX"; then
2211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 if test -n "$CXX"; then
2232 { echo "$as_me:$LINENO: result: $CXX" >&5
2233 echo "${ECHO_T}$CXX" >&6; }
2235 { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2240 test -n "$CXX" && break
2243 if test -z "$CXX"; then
2245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 if test -n "$ac_ct_CXX"; then
2255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 ac_cv_prog_ac_ct_CXX="$ac_prog"
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2275 if test -n "$ac_ct_CXX"; then
2276 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2277 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2284 test -n "$ac_ct_CXX" && break
2287 if test "x$ac_ct_CXX" = x; then
2290 case $cross_compiling:$ac_tool_warned in
2292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2293 whose name does not start with the host triplet. If you think this
2294 configuration is useful to you, please write to autoconf@gnu.org." >&5
2295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2296 whose name does not start with the host triplet. If you think this
2297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2298 ac_tool_warned=yes ;;
2306 # Provide some information about the compiler.
2307 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2308 ac_compiler=`set X $ac_compile; echo $2`
2309 { (ac_try="$ac_compiler --version >&5"
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315 (eval "$ac_compiler --version >&5") 2>&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }
2319 { (ac_try="$ac_compiler -v >&5"
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325 (eval "$ac_compiler -v >&5") 2>&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2329 { (ac_try="$ac_compiler -V >&5"
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2335 (eval "$ac_compiler -V >&5") 2>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2355 ac_clean_files_save=$ac_clean_files
2356 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2357 # Try to create an executable without -o first, disregard a.out.
2358 # It will help us diagnose broken compilers, and finding out an intuition
2360 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2361 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2362 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2364 # List of possible output files, starting from the most likely.
2365 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2366 # only as a last resort. b.out is created by i960 compilers.
2367 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2369 # The IRIX 6 linker writes into existing files which may not be
2370 # executable, retaining their permissions. Remove them first so a
2371 # subsequent execution test works.
2373 for ac_file in $ac_files
2376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2377 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2382 if { (ac_try="$ac_link_default"
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388 (eval "$ac_link_default") 2>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; then
2392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2395 # so that the user can short-circuit this test for compilers unknown to
2397 for ac_file in $ac_files
2399 test -f "$ac_file" || continue
2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2404 # We found the default executable, but exeext='' is most
2408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2412 # We set ac_cv_exeext here because the later test for it is not
2413 # safe: cross compilers may not add the suffix if given an `-o'
2414 # argument, so we may need to know it at that point already.
2415 # Even if this section looks crufty: it has the advantage of
2422 test "$ac_cv_exeext" = no && ac_cv_exeext=
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2428 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2429 See \`config.log' for more details." >&5
2430 echo "$as_me: error: C++ compiler cannot create executables
2431 See \`config.log' for more details." >&2;}
2432 { (exit 77); exit 77; }; }
2435 ac_exeext=$ac_cv_exeext
2436 { echo "$as_me:$LINENO: result: $ac_file" >&5
2437 echo "${ECHO_T}$ac_file" >&6; }
2439 # Check that the compiler produces executables we can run. If not, either
2440 # the compiler is broken, or we cross compile.
2441 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2442 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2443 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2444 # If not cross compiling, check that we can run a simple program.
2445 if test "$cross_compiling" != yes; then
2446 if { ac_try='./$ac_file'
2447 { (case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_try") 2>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 if test "$cross_compiling" = maybe; then
2461 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2462 If you meant to cross compile, use \`--host'.
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot run C++ compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&2;}
2467 { (exit 1); exit 1; }; }
2471 { echo "$as_me:$LINENO: result: yes" >&5
2472 echo "${ECHO_T}yes" >&6; }
2474 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2475 ac_clean_files=$ac_clean_files_save
2476 # Check that the compiler produces executables we can run. If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2479 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2480 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2481 echo "${ECHO_T}$cross_compiling" >&6; }
2483 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2484 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2485 if { (ac_try="$ac_link"
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_link") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; then
2495 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2496 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2497 # work properly (i.e., refer to `conftest.exe'), while it won't with
2499 for ac_file in conftest.exe conftest conftest.*; do
2500 test -f "$ac_file" || continue
2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&2;}
2513 { (exit 1); exit 1; }; }
2516 rm -f conftest$ac_cv_exeext
2517 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2520 rm -f conftest.$ac_ext
2521 EXEEXT=$ac_cv_exeext
2523 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2525 if test "${ac_cv_objext+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 cat >conftest.$ac_ext <<_ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 rm -f conftest.o conftest.obj
2544 if { (ac_try="$ac_compile"
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compile") 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 for ac_file in conftest.o conftest.obj conftest.*; do
2555 test -f "$ac_file" || continue;
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6; }
2577 OBJEXT=$ac_cv_objext
2579 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2581 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 cat >conftest.$ac_ext <<_ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2602 rm -f conftest.$ac_objext
2603 if { (ac_try="$ac_compile"
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_compile") 2>conftest.er1
2611 grep -v '^ *+' conftest.er1 >conftest.err
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2617 { (case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_try") 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632 (eval "$ac_try") 2>&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2648 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2649 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2650 GXX=`test $ac_compiler_gnu = yes && echo yes`
2651 ac_test_CXXFLAGS=${CXXFLAGS+set}
2652 ac_save_CXXFLAGS=$CXXFLAGS
2653 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2654 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_cxx_g+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2659 ac_cxx_werror_flag=yes
2662 cat >conftest.$ac_ext <<_ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2677 rm -f conftest.$ac_objext
2678 if { (ac_try="$ac_compile"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compile") 2>conftest.er1
2686 grep -v '^ *+' conftest.er1 >conftest.err
2688 cat conftest.err >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2692 { (case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_try") 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_try") 2>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 ac_cv_prog_cxx_g=yes
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2717 cat >conftest.$ac_ext <<_ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2732 rm -f conftest.$ac_objext
2733 if { (ac_try="$ac_compile"
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2741 grep -v '^ *+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2747 { (case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_try") 2>&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_try") 2>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2773 cat >conftest.$ac_ext <<_ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2788 rm -f conftest.$ac_objext
2789 if { (ac_try="$ac_compile"
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compile") 2>conftest.er1
2797 grep -v '^ *+' conftest.er1 >conftest.err
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2803 { (case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_try") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; } &&
2812 { ac_try='test -s conftest.$ac_objext'
2813 { (case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_try") 2>&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 ac_cv_prog_cxx_g=yes
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2839 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2840 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2841 if test "$ac_test_CXXFLAGS" = set; then
2842 CXXFLAGS=$ac_save_CXXFLAGS
2843 elif test $ac_cv_prog_cxx_g = yes; then
2844 if test "$GXX" = yes; then
2850 if test "$GXX" = yes; then
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861 DEPDIR="${am__leading_dot}deps"
2863 ac_config_commands="$ac_config_commands depfiles"
2866 am_make=${MAKE-make}
2867 cat > confinc << 'END'
2872 # If we don't find an include directive, just comment out the code.
2873 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2874 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2878 # First try GNU make style include.
2879 echo "include confinc" > confmf
2880 # We grep out `Entering directory' and `Leaving directory'
2881 # messages which can occur if `w' ends up in MAKEFLAGS.
2882 # In particular we don't look at `^make:' because GNU make might
2883 # be invoked under some other name (usually "gmake"), in which
2884 # case it prints its new name instead of `make'.
2885 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2890 # Now try BSD make style include.
2891 if test "$am__include" = "#"; then
2892 echo '.include "confinc"' > confmf
2893 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2894 am__include=.include
2901 { echo "$as_me:$LINENO: result: $_am_result" >&5
2902 echo "${ECHO_T}$_am_result" >&6; }
2903 rm -f confinc confmf
2905 # Check whether --enable-dependency-tracking was given.
2906 if test "${enable_dependency_tracking+set}" = set; then
2907 enableval=$enable_dependency_tracking;
2910 if test "x$enable_dependency_tracking" != xno; then
2911 am_depcomp="$ac_aux_dir/depcomp"
2916 if test "x$enable_dependency_tracking" != xno; then
2927 depcc="$CXX" am_compiler_list=
2929 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2930 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2931 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2935 # We make a subdir and do the tests there. Otherwise we can end up
2936 # making bogus files that we don't know about and never remove. For
2937 # instance it was reported that on HP-UX the gcc test will end up
2938 # making a dummy file named `D' -- because `-MD' means `put the output
2941 # Copy depcomp to subdir because otherwise we won't find it if we're
2942 # using a relative directory.
2943 cp "$am_depcomp" conftest.dir
2945 # We will build objects and dependencies in a subdirectory because
2946 # it helps to detect inapplicable dependency modes. For instance
2947 # both Tru64's cc and ICC support -MD to output dependencies as a
2948 # side effect of compilation, but ICC will put the dependencies in
2949 # the current directory while Tru64 will put them in the object
2953 am_cv_CXX_dependencies_compiler_type=none
2954 if test "$am_compiler_list" = ""; then
2955 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2957 for depmode in $am_compiler_list; do
2958 # Setup a source with many dependencies, because some compilers
2959 # like to wrap large dependency lists on column 80 (with \), and
2960 # we should not choose a depcomp mode which is confused by this.
2962 # We need to recreate these files for each test, as the compiler may
2963 # overwrite some of them when testing with obscure command lines.
2964 # This happens at least with the AIX C compiler.
2966 for i in 1 2 3 4 5 6; do
2967 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2968 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2969 # Solaris 8's {/usr,}/bin/sh.
2970 touch sub/conftst$i.h
2972 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2976 # after this tag, mechanisms are not by side-effect, so they'll
2977 # only be used when explicitly requested
2978 if test "x$enable_dependency_tracking" = xyes; then
2986 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2987 # mode. It turns out that the SunPro C++ compiler does not properly
2988 # handle `-M -o', and we need to detect this.
2989 if depmode=$depmode \
2990 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2992 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2993 >/dev/null 2>conftest.err &&
2994 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2995 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2997 # icc doesn't choke on unknown options, it will just issue warnings
2998 # or remarks (even with -Werror). So we grep stderr for any message
2999 # that says an option was ignored or not supported.
3000 # When given -MP, icc 7.0 and 7.1 complain thusly:
3001 # icc: Command line warning: ignoring option '-M'; no argument required
3002 # The diagnosis changed in icc 8.0:
3003 # icc: Command line remark: option '-MP' not supported
3004 if (grep 'ignoring option' conftest.err ||
3005 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3006 am_cv_CXX_dependencies_compiler_type=$depmode
3015 am_cv_CXX_dependencies_compiler_type=none
3019 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3020 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3021 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3026 test "x$enable_dependency_tracking" != xno \
3027 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3028 am__fastdepCXX_TRUE=
3029 am__fastdepCXX_FALSE='#'
3031 am__fastdepCXX_TRUE='#'
3032 am__fastdepCXX_FALSE=
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 if test -n "$CC"; then
3071 { echo "$as_me:$LINENO: result: $CC" >&5
3072 echo "${ECHO_T}$CC" >&6; }
3074 { echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6; }
3080 if test -z "$ac_cv_prog_CC"; then
3082 # Extract the first word of "gcc", so it can be a program name with args.
3083 set dummy gcc; ac_word=$2
3084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 if test -n "$ac_ct_CC"; then
3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3099 ac_cv_prog_ac_ct_CC="gcc"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3110 if test -n "$ac_ct_CC"; then
3111 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3112 echo "${ECHO_T}$ac_ct_CC" >&6; }
3114 { echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6; }
3118 if test "x$ac_ct_CC" = x; then
3121 case $cross_compiling:$ac_tool_warned in
3123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3124 whose name does not start with the host triplet. If you think this
3125 configuration is useful to you, please write to autoconf@gnu.org." >&5
3126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3127 whose name does not start with the host triplet. If you think this
3128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3129 ac_tool_warned=yes ;;
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}cc; ac_word=$2
3141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3143 if test "${ac_cv_prog_CC+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_CC="${ac_tool_prefix}cc"
3157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 if test -n "$CC"; then
3168 { echo "$as_me:$LINENO: result: $CC" >&5
3169 echo "${ECHO_T}$CC" >&6; }
3171 { echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6; }
3178 if test -z "$CC"; then
3179 # Extract the first word of "cc", so it can be a program name with args.
3180 set dummy cc; ac_word=$2
3181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3183 if test "${ac_cv_prog_CC+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3198 ac_prog_rejected=yes
3202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 if test $ac_prog_rejected = yes; then
3210 # We found a bogon in the path, so make sure we never use it.
3211 set dummy $ac_cv_prog_CC
3213 if test $# != 0; then
3214 # We chose a different compiler from the bogus one.
3215 # However, it has the same basename, so the bogon will be chosen
3216 # first if we set CC to just the basename; use the full file name.
3218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3224 if test -n "$CC"; then
3225 { echo "$as_me:$LINENO: result: $CC" >&5
3226 echo "${ECHO_T}$CC" >&6; }
3228 { echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6; }
3234 if test -z "$CC"; then
3235 if test -n "$ac_tool_prefix"; then
3236 for ac_prog in cl.exe
3238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3242 if test "${ac_cv_prog_CC+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 if test -n "$CC"; then
3246 ac_cv_prog_CC="$CC" # Let the user override the test.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 if test -n "$CC"; then
3267 { echo "$as_me:$LINENO: result: $CC" >&5
3268 echo "${ECHO_T}$CC" >&6; }
3270 { echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6; }
3275 test -n "$CC" && break
3278 if test -z "$CC"; then
3280 for ac_prog in cl.exe
3282 # Extract the first word of "$ac_prog", so it can be a program name with args.
3283 set dummy $ac_prog; ac_word=$2
3284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_prog_ac_ct_CC="$ac_prog"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3312 echo "${ECHO_T}$ac_ct_CC" >&6; }
3314 { echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6; }
3319 test -n "$ac_ct_CC" && break
3322 if test "x$ac_ct_CC" = x; then
3325 case $cross_compiling:$ac_tool_warned in
3327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3328 whose name does not start with the host triplet. If you think this
3329 configuration is useful to you, please write to autoconf@gnu.org." >&5
3330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3331 whose name does not start with the host triplet. If you think this
3332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3333 ac_tool_warned=yes ;;
3342 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details." >&5
3344 echo "$as_me: error: no acceptable C compiler found in \$PATH
3345 See \`config.log' for more details." >&2;}
3346 { (exit 1); exit 1; }; }
3348 # Provide some information about the compiler.
3349 echo "$as_me:$LINENO: checking for C compiler version" >&5
3350 ac_compiler=`set X $ac_compile; echo $2`
3351 { (ac_try="$ac_compiler --version >&5"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_compiler --version >&5") 2>&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3361 { (ac_try="$ac_compiler -v >&5"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compiler -v >&5") 2>&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }
3371 { (ac_try="$ac_compiler -V >&5"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_compiler -V >&5") 2>&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }
3382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3405 rm -f conftest.$ac_objext
3406 if { (ac_try="$ac_compile"
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_compile") 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3420 { (case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_try") 2>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; } &&
3429 { ac_try='test -s conftest.$ac_objext'
3430 { (case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_try") 2>&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3453 GCC=`test $ac_compiler_gnu = yes && echo yes`
3454 ac_test_CFLAGS=${CFLAGS+set}
3455 ac_save_CFLAGS=$CFLAGS
3456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3458 if test "${ac_cv_prog_cc_g+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 ac_save_c_werror_flag=$ac_c_werror_flag
3462 ac_c_werror_flag=yes
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3495 { (case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500 (eval "$ac_try") 2>&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_try") 2>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_compile") 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } &&
3549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3550 { (case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_try") 2>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; } &&
3559 { ac_try='test -s conftest.$ac_objext'
3560 { (case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_try") 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3591 rm -f conftest.$ac_objext
3592 if { (ac_try="$ac_compile"
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compile") 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3606 { (case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_try") 2>&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_try") 2>&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 ac_c_werror_flag=$ac_save_c_werror_flag
3642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3644 if test "$ac_test_CFLAGS" = set; then
3645 CFLAGS=$ac_save_CFLAGS
3646 elif test $ac_cv_prog_cc_g = yes; then
3647 if test "$GCC" = yes; then
3653 if test "$GCC" = yes; then
3659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3661 if test "${ac_cv_prog_cc_c89+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 ac_cv_prog_cc_c89=no
3666 cat >conftest.$ac_ext <<_ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3674 #include <sys/types.h>
3675 #include <sys/stat.h>
3676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3677 struct buf { int x; };
3678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3679 static char *e (p, i)
3685 static char *f (char * (*g) (char **, int), char **p, ...)
3690 s = g (p, va_arg (v,int));
3695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3696 function prototypes and stuff, but not '\xHH' hex character constants.
3697 These don't provoke an error unfortunately, instead are silently treated
3698 as 'x'. The following induces an error, until -std is added to get
3699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3700 array size at least. It's necessary to write '\x00'==0 to get something
3701 that's true only with -std. */
3702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3705 inside strings and character constants. */
3707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3709 int test (int i, double x);
3710 struct s1 {int (*f) (int a);};
3711 struct s2 {int (*f) (double a);};
3712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3726 CC="$ac_save_CC $ac_arg"
3727 rm -f conftest.$ac_objext
3728 if { (ac_try="$ac_compile"
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_compile") 2>conftest.er1
3736 grep -v '^ *+' conftest.er1 >conftest.err
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } &&
3741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3742 { (case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_try") 2>&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_try") 2>&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 ac_cv_prog_cc_c89=$ac_arg
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3769 rm -f core conftest.err conftest.$ac_objext
3770 test "x$ac_cv_prog_cc_c89" != "xno" && break
3772 rm -f conftest.$ac_ext
3777 case "x$ac_cv_prog_cc_c89" in
3779 { echo "$as_me:$LINENO: result: none needed" >&5
3780 echo "${ECHO_T}none needed" >&6; } ;;
3782 { echo "$as_me:$LINENO: result: unsupported" >&5
3783 echo "${ECHO_T}unsupported" >&6; } ;;
3785 CC="$CC $ac_cv_prog_cc_c89"
3786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 depcc="$CC" am_compiler_list=
3799 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3800 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3801 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3805 # We make a subdir and do the tests there. Otherwise we can end up
3806 # making bogus files that we don't know about and never remove. For
3807 # instance it was reported that on HP-UX the gcc test will end up
3808 # making a dummy file named `D' -- because `-MD' means `put the output
3811 # Copy depcomp to subdir because otherwise we won't find it if we're
3812 # using a relative directory.
3813 cp "$am_depcomp" conftest.dir
3815 # We will build objects and dependencies in a subdirectory because
3816 # it helps to detect inapplicable dependency modes. For instance
3817 # both Tru64's cc and ICC support -MD to output dependencies as a
3818 # side effect of compilation, but ICC will put the dependencies in
3819 # the current directory while Tru64 will put them in the object
3823 am_cv_CC_dependencies_compiler_type=none
3824 if test "$am_compiler_list" = ""; then
3825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3827 for depmode in $am_compiler_list; do
3828 # Setup a source with many dependencies, because some compilers
3829 # like to wrap large dependency lists on column 80 (with \), and
3830 # we should not choose a depcomp mode which is confused by this.
3832 # We need to recreate these files for each test, as the compiler may
3833 # overwrite some of them when testing with obscure command lines.
3834 # This happens at least with the AIX C compiler.
3836 for i in 1 2 3 4 5 6; do
3837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3838 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3839 # Solaris 8's {/usr,}/bin/sh.
3840 touch sub/conftst$i.h
3842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3846 # after this tag, mechanisms are not by side-effect, so they'll
3847 # only be used when explicitly requested
3848 if test "x$enable_dependency_tracking" = xyes; then
3856 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3857 # mode. It turns out that the SunPro C++ compiler does not properly
3858 # handle `-M -o', and we need to detect this.
3859 if depmode=$depmode \
3860 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3861 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3862 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3863 >/dev/null 2>conftest.err &&
3864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3865 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3867 # icc doesn't choke on unknown options, it will just issue warnings
3868 # or remarks (even with -Werror). So we grep stderr for any message
3869 # that says an option was ignored or not supported.
3870 # When given -MP, icc 7.0 and 7.1 complain thusly:
3871 # icc: Command line warning: ignoring option '-M'; no argument required
3872 # The diagnosis changed in icc 8.0:
3873 # icc: Command line remark: option '-MP' not supported
3874 if (grep 'ignoring option' conftest.err ||
3875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3876 am_cv_CC_dependencies_compiler_type=$depmode
3885 am_cv_CC_dependencies_compiler_type=none
3889 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3890 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3891 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3896 test "x$enable_dependency_tracking" != xno \
3897 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3899 am__fastdepCC_FALSE='#'
3901 am__fastdepCC_TRUE='#'
3902 am__fastdepCC_FALSE=
3907 # Checks for libraries.
3909 # Checks for header files.
3912 # Checks for typedefs, structures, and compiler characteristics.
3914 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3915 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3916 if test "${ac_cv_c_const+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3929 /* FIXME: Include the comments suggested by Paul. */
3931 /* Ultrix mips cc rejects this. */
3932 typedef int charset[2];
3934 /* SunOS 4.1.1 cc rejects this. */
3935 char const *const *ccp;
3937 /* NEC SVR4.0.2 mips cc rejects this. */
3938 struct point {int x, y;};
3939 static struct point const zero = {0,0};
3940 /* AIX XL C 1.02.0.0 rejects this.
3941 It does not let you subtract one const X* pointer from another in
3942 an arm of an if-expression whose if-part is not a constant
3944 const char *g = "string";
3945 ccp = &g + (g ? g-g : 0);
3946 /* HPUX 7.0 cc rejects these. */
3949 ccp = (char const *const *) p;
3950 { /* SCO 3.2v4 cc rejects this. */
3952 char const *s = 0 ? (char *) 0 : (char const *) 0;
3957 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3959 const int *foo = &x[0];
3962 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3963 typedef const int *iptr;
3967 { /* AIX XL C 1.02.0.0 rejects this saying
3968 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3969 struct s { int j; const int *ap[3]; };
3970 struct s *b; b->j = 5;
3972 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3976 return !x[0] && !zero.x;
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_compile") 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3998 { (case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_try") 2>&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_try") 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4028 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4029 if test $ac_cv_c_const = no; then
4031 cat >>confdefs.h <<\_ACEOF
4038 # Checks for library functions.
4039 #AC_PROG_GCC_TRADITIONAL
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4047 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4048 # On Suns, sometimes $CPP names a directory.
4049 if test -n "$CPP" && test -d "$CPP"; then
4052 if test -z "$CPP"; then
4053 if test "${ac_cv_prog_CPP+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 # Double quotes because CPP needs to be expanded
4057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4060 for ac_c_preproc_warn_flag in '' yes
4062 # Use a header file that comes with gcc, so configuring glibc
4063 # with a fresh cross-compiler works.
4064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4065 # <limits.h> exists even on freestanding compilers.
4066 # On the NeXT, cc -E runs the code through the compiler's parser,
4067 # not just through cpp. "Syntax error" is here to catch this case.
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4075 # include <limits.h>
4077 # include <assert.h>
4081 if { (ac_try="$ac_cpp conftest.$ac_ext"
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } >/dev/null; then
4094 if test -s conftest.err; then
4095 ac_cpp_err=$ac_c_preproc_warn_flag
4096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4103 if test -z "$ac_cpp_err"; then
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 # Broken: fails on valid input.
4113 rm -f conftest.err conftest.$ac_ext
4115 # OK, works on sane cases. Now check whether nonexistent headers
4116 # can be detected and how.
4117 cat >conftest.$ac_ext <<_ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 #include <ac_nonexistent.h>
4125 if { (ac_try="$ac_cpp conftest.$ac_ext"
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4133 grep -v '^ *+' conftest.er1 >conftest.err
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } >/dev/null; then
4138 if test -s conftest.err; then
4139 ac_cpp_err=$ac_c_preproc_warn_flag
4140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4147 if test -z "$ac_cpp_err"; then
4148 # Broken: success on invalid input.
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 # Passes both tests.
4159 rm -f conftest.err conftest.$ac_ext
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then
4176 { echo "$as_me:$LINENO: result: $CPP" >&5
4177 echo "${ECHO_T}$CPP" >&6; }
4179 for ac_c_preproc_warn_flag in '' yes
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error" is here to catch this case.
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4194 # include <limits.h>
4196 # include <assert.h>
4200 if { (ac_try="$ac_cpp conftest.$ac_ext"
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4208 grep -v '^ *+' conftest.er1 >conftest.err
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } >/dev/null; then
4213 if test -s conftest.err; then
4214 ac_cpp_err=$ac_c_preproc_warn_flag
4215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4222 if test -z "$ac_cpp_err"; then
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 # Broken: fails on valid input.
4232 rm -f conftest.err conftest.$ac_ext
4234 # OK, works on sane cases. Now check whether nonexistent headers
4235 # can be detected and how.
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 #include <ac_nonexistent.h>
4244 if { (ac_try="$ac_cpp conftest.$ac_ext"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null; then
4257 if test -s conftest.err; then
4258 ac_cpp_err=$ac_c_preproc_warn_flag
4259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4266 if test -z "$ac_cpp_err"; then
4267 # Broken: success on invalid input.
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 # Passes both tests.
4278 rm -f conftest.err conftest.$ac_ext
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.err conftest.$ac_ext
4283 if $ac_preproc_ok; then
4286 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4287 See \`config.log' for more details." >&5
4288 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4289 See \`config.log' for more details." >&2;}
4290 { (exit 1); exit 1; }; }
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300 { echo "$as_me:$LINENO: checking for X" >&5
4301 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4304 # Check whether --with-x was given.
4305 if test "${with_x+set}" = set; then
4309 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4310 if test "x$with_x" = xno; then
4311 # The user explicitly disabled X.
4314 case $x_includes,$x_libraries in #(
4315 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4316 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4317 { (exit 1); exit 1; }; };; #(
4318 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 # One or both of the vars are not set, and there is no cached value.
4322 ac_x_includes=no ac_x_libraries=no
4323 rm -f -r conftest.dir
4324 if mkdir conftest.dir; then
4326 cat >Imakefile <<'_ACEOF'
4328 @echo incroot='${INCROOT}'
4330 @echo usrlibdir='${USRLIBDIR}'
4332 @echo libdir='${LIBDIR}'
4334 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4336 for ac_var in incroot usrlibdir libdir; do
4337 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4339 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4340 for ac_extension in a so sl; do
4341 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4342 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4343 ac_im_usrlibdir=$ac_im_libdir; break
4346 # Screen out bogus values from the imake configuration. They are
4347 # bogus both because they are the default anyway, and because
4348 # using them would break gcc on systems where it needs fixed includes.
4349 case $ac_im_incroot in
4350 /usr/include) ac_x_includes= ;;
4351 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4353 case $ac_im_usrlibdir in
4355 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4359 rm -f -r conftest.dir
4362 # Standard set of common directories for X headers.
4363 # Check X11 before X11Rn because it is often a symlink to the current release.
4375 /usr/local/X11/include
4376 /usr/local/X11R6/include
4377 /usr/local/X11R5/include
4378 /usr/local/X11R4/include
4380 /usr/local/include/X11
4381 /usr/local/include/X11R6
4382 /usr/local/include/X11R5
4383 /usr/local/include/X11R4
4387 /usr/XFree86/include/X11
4391 /usr/unsupported/include
4393 /usr/local/x11r5/include
4394 /usr/lpp/Xamples/include
4396 /usr/openwin/include
4397 /usr/openwin/share/include'
4399 if test "$ac_x_includes" = no; then
4400 # Guess where to find include files, by looking for Xlib.h.
4401 # First, try using that file with no special directory specified.
4402 cat >conftest.$ac_ext <<_ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 #include <X11/Xlib.h>
4410 if { (ac_try="$ac_cpp conftest.$ac_ext"
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4418 grep -v '^ *+' conftest.er1 >conftest.err
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } >/dev/null; then
4423 if test -s conftest.err; then
4424 ac_cpp_err=$ac_c_preproc_warn_flag
4425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4432 if test -z "$ac_cpp_err"; then
4433 # We can compile using X headers with no special include directory.
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 for ac_dir in $ac_x_header_dirs; do
4440 if test -r "$ac_dir/X11/Xlib.h"; then
4441 ac_x_includes=$ac_dir
4447 rm -f conftest.err conftest.$ac_ext
4448 fi # $ac_x_includes = no
4450 if test "$ac_x_libraries" = no; then
4451 # Check for the libraries.
4452 # See if we find them without any special options.
4453 # Don't add to $LIBS permanently.
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <X11/Xlib.h>
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (ac_try="$ac_link"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_link") 2>conftest.er1
4480 grep -v '^ *+' conftest.er1 >conftest.err
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4486 { (case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_try") 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; } &&
4495 { ac_try='test -s conftest$ac_exeext'
4496 { (case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_try") 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4506 # We can link X programs with no special library path.
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4513 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4515 # Don't even attempt the hair of trying to link an X program!
4516 for ac_extension in a so sl; do
4517 if test -r "$ac_dir/libXt.$ac_extension"; then
4518 ac_x_libraries=$ac_dir
4525 rm -f core conftest.err conftest.$ac_objext \
4526 conftest$ac_exeext conftest.$ac_ext
4527 fi # $ac_x_libraries = no
4529 case $ac_x_includes,$ac_x_libraries in #(
4531 # Didn't find X, or a directory has "'" in its name.
4532 ac_cv_have_x="have_x=no";; #(
4534 # Record where we found X for the cache.
4535 ac_cv_have_x="have_x=yes\
4536 ac_x_includes='$ac_x_includes'\
4537 ac_x_libraries='$ac_x_libraries'"
4543 eval "$ac_cv_have_x"
4546 if test "$have_x" != yes; then
4547 { echo "$as_me:$LINENO: result: $have_x" >&5
4548 echo "${ECHO_T}$have_x" >&6; }
4551 # If each of the values was on the command line, it overrides each guess.
4552 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4553 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4554 # Update the cache value to reflect the command line values.
4555 ac_cv_have_x="have_x=yes\
4556 ac_x_includes='$x_includes'\
4557 ac_x_libraries='$x_libraries'"
4558 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4559 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4562 if test "$no_x" = yes; then
4563 # Not all programs may use this symbol, but it does not hurt to define it.
4565 cat >>confdefs.h <<\_ACEOF
4566 #define X_DISPLAY_MISSING 1
4569 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4571 if test -n "$x_includes"; then
4572 X_CFLAGS="$X_CFLAGS -I$x_includes"
4575 # It would also be nice to do this for all -L options, not just this one.
4576 if test -n "$x_libraries"; then
4577 X_LIBS="$X_LIBS -L$x_libraries"
4578 # For Solaris; some versions of Sun CC require a space after -R and
4579 # others require no space. Words are not sufficient . . . .
4580 case `(uname -sr) 2>/dev/null` in
4582 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4583 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4584 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4585 cat >conftest.$ac_ext <<_ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4600 rm -f conftest.$ac_objext conftest$ac_exeext
4601 if { (ac_try="$ac_link"
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_link") 2>conftest.er1
4609 grep -v '^ *+' conftest.er1 >conftest.err
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try='test -s conftest$ac_exeext'
4625 { (case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_try") 2>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4642 rm -f core conftest.err conftest.$ac_objext \
4643 conftest$ac_exeext conftest.$ac_ext
4644 if test $ac_R_nospace = yes; then
4645 { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4647 X_LIBS="$X_LIBS -R$x_libraries"
4649 LIBS="$ac_xsave_LIBS -R $x_libraries"
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (ac_try="$ac_link"
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_link") 2>conftest.er1
4674 grep -v '^ *+' conftest.er1 >conftest.err
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4680 { (case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685 (eval "$ac_try") 2>&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; } &&
4689 { ac_try='test -s conftest$ac_exeext'
4690 { (case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_try") 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4707 rm -f core conftest.err conftest.$ac_objext \
4708 conftest$ac_exeext conftest.$ac_ext
4709 if test $ac_R_space = yes; then
4710 { echo "$as_me:$LINENO: result: yes" >&5
4711 echo "${ECHO_T}yes" >&6; }
4712 X_LIBS="$X_LIBS -R $x_libraries"
4714 { echo "$as_me:$LINENO: result: neither works" >&5
4715 echo "${ECHO_T}neither works" >&6; }
4722 # Check for system-dependent libraries X programs must link with.
4723 # Do this before checking for the system-independent R6 libraries
4724 # (-lICE), since we may need -lsocket or whatever for X linking.
4726 if test "$ISC" = yes; then
4727 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4729 # Martyn Johnson says this is needed for Ultrix, if the X
4730 # libraries were built with DECnet support. And Karl Berry says
4731 # the Alpha needs dnet_stub (dnet does not exist).
4732 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4733 cat >conftest.$ac_ext <<_ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4740 /* Override any GCC internal prototype to avoid an error.
4741 Use char because int might match the return type of a GCC
4742 builtin and then its argument prototype would still apply. */
4746 char XOpenDisplay ();
4750 return XOpenDisplay ();
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_link") 2>conftest.er1
4764 grep -v '^ *+' conftest.er1 >conftest.err
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4770 { (case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_try") 2>&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest$ac_exeext'
4780 { (case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785 (eval "$ac_try") 2>&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4795 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4796 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 ac_check_lib_save_LIBS=$LIBS
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4808 /* Override any GCC internal prototype to avoid an error.
4809 Use char because int might match the return type of a GCC
4810 builtin and then its argument prototype would still apply. */
4818 return dnet_ntoa ();
4823 rm -f conftest.$ac_objext conftest$ac_exeext
4824 if { (ac_try="$ac_link"
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_link") 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4838 { (case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_try") 2>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest$ac_exeext'
4848 { (case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_try") 2>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 ac_cv_lib_dnet_dnet_ntoa=yes
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4862 ac_cv_lib_dnet_dnet_ntoa=no
4865 rm -f core conftest.err conftest.$ac_objext \
4866 conftest$ac_exeext conftest.$ac_ext
4867 LIBS=$ac_check_lib_save_LIBS
4869 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4870 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4871 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4872 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4875 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4876 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4877 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4878 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 ac_check_lib_save_LIBS=$LIBS
4882 LIBS="-ldnet_stub $LIBS"
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4890 /* Override any GCC internal prototype to avoid an error.
4891 Use char because int might match the return type of a GCC
4892 builtin and then its argument prototype would still apply. */
4900 return dnet_ntoa ();
4905 rm -f conftest.$ac_objext conftest$ac_exeext
4906 if { (ac_try="$ac_link"
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_link") 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4920 { (case "(($ac_try" in
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925 (eval "$ac_try") 2>&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; } &&
4929 { ac_try='test -s conftest$ac_exeext'
4930 { (case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_try") 2>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 ac_cv_lib_dnet_stub_dnet_ntoa=no
4947 rm -f core conftest.err conftest.$ac_objext \
4948 conftest$ac_exeext conftest.$ac_ext
4949 LIBS=$ac_check_lib_save_LIBS
4951 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4952 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4953 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4954 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4960 rm -f core conftest.err conftest.$ac_objext \
4961 conftest$ac_exeext conftest.$ac_ext
4962 LIBS="$ac_xsave_LIBS"
4964 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4965 # to get the SysV transport functions.
4966 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4968 # The nsl library prevents programs from opening the X display
4969 # on Irix 5.2, according to T.E. Dickey.
4970 # The functions gethostbyname, getservbyname, and inet_addr are
4971 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4972 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4973 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4974 if test "${ac_cv_func_gethostbyname+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 cat >conftest.$ac_ext <<_ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4985 #define gethostbyname innocuous_gethostbyname
4987 /* System header to define __stub macros and hopefully few prototypes,
4988 which can conflict with char gethostbyname (); below.
4989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4990 <limits.h> exists even on freestanding compilers. */
4993 # include <limits.h>
4995 # include <assert.h>
4998 #undef gethostbyname
5000 /* Override any GCC internal prototype to avoid an error.
5001 Use char because int might match the return type of a GCC
5002 builtin and then its argument prototype would still apply. */
5006 char gethostbyname ();
5007 /* The GNU C library defines this for functions which it implements
5008 to always fail with ENOSYS. Some functions are actually named
5009 something starting with __ and the normal name is an alias. */
5010 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5017 return gethostbyname ();
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_link") 2>conftest.er1
5031 grep -v '^ *+' conftest.er1 >conftest.err
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5037 { (case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_try") 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest$ac_exeext'
5047 { (case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_try") 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; }; then
5056 ac_cv_func_gethostbyname=yes
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 ac_cv_func_gethostbyname=no
5064 rm -f core conftest.err conftest.$ac_objext \
5065 conftest$ac_exeext conftest.$ac_ext
5067 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5068 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5070 if test $ac_cv_func_gethostbyname = no; then
5071 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5072 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5073 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 ac_check_lib_save_LIBS=$LIBS
5078 cat >conftest.$ac_ext <<_ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5085 /* Override any GCC internal prototype to avoid an error.
5086 Use char because int might match the return type of a GCC
5087 builtin and then its argument prototype would still apply. */
5091 char gethostbyname ();
5095 return gethostbyname ();
5100 rm -f conftest.$ac_objext conftest$ac_exeext
5101 if { (ac_try="$ac_link"
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_link") 2>conftest.er1
5109 grep -v '^ *+' conftest.er1 >conftest.err
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } &&
5114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5115 { (case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5120 (eval "$ac_try") 2>&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest$ac_exeext'
5125 { (case "(($ac_try" in
5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127 *) ac_try_echo=$ac_try;;
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130 (eval "$ac_try") 2>&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_lib_nsl_gethostbyname=yes
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 ac_cv_lib_nsl_gethostbyname=no
5142 rm -f core conftest.err conftest.$ac_objext \
5143 conftest$ac_exeext conftest.$ac_ext
5144 LIBS=$ac_check_lib_save_LIBS
5146 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5147 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5148 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5149 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5152 if test $ac_cv_lib_nsl_gethostbyname = no; then
5153 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5154 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5155 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 ac_check_lib_save_LIBS=$LIBS
5160 cat >conftest.$ac_ext <<_ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5167 /* Override any GCC internal prototype to avoid an error.
5168 Use char because int might match the return type of a GCC
5169 builtin and then its argument prototype would still apply. */
5173 char gethostbyname ();
5177 return gethostbyname ();
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (ac_try="$ac_link"
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189 (eval "$ac_link") 2>conftest.er1
5191 grep -v '^ *+' conftest.er1 >conftest.err
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5197 { (case "(($ac_try" in
5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199 *) ac_try_echo=$ac_try;;
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202 (eval "$ac_try") 2>&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest$ac_exeext'
5207 { (case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_try") 2>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_lib_bsd_gethostbyname=yes
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_cv_lib_bsd_gethostbyname=no
5224 rm -f core conftest.err conftest.$ac_objext \
5225 conftest$ac_exeext conftest.$ac_ext
5226 LIBS=$ac_check_lib_save_LIBS
5228 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5229 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5230 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5231 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5237 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5238 # socket/setsockopt and other routines are undefined under SCO ODT
5239 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5240 # on later versions), says Simon Leinen: it contains gethostby*
5241 # variants that don't use the name server (or something). -lsocket
5242 # must be given before -lnsl if both are needed. We assume that
5243 # if connect needs -lnsl, so does gethostbyname.
5244 { echo "$as_me:$LINENO: checking for connect" >&5
5245 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5246 if test "${ac_cv_func_connect+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 cat >conftest.$ac_ext <<_ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5257 #define connect innocuous_connect
5259 /* System header to define __stub macros and hopefully few prototypes,
5260 which can conflict with char connect (); below.
5261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5262 <limits.h> exists even on freestanding compilers. */
5265 # include <limits.h>
5267 # include <assert.h>
5272 /* Override any GCC internal prototype to avoid an error.
5273 Use char because int might match the return type of a GCC
5274 builtin and then its argument prototype would still apply. */
5279 /* The GNU C library defines this for functions which it implements
5280 to always fail with ENOSYS. Some functions are actually named
5281 something starting with __ and the normal name is an alias. */
5282 #if defined __stub_connect || defined __stub___connect
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (ac_try="$ac_link"
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_link") 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5309 { (case "(($ac_try" in
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_try") 2>&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; } &&
5318 { ac_try='test -s conftest$ac_exeext'
5319 { (case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_try") 2>&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
5328 ac_cv_func_connect=yes
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 ac_cv_func_connect=no
5336 rm -f core conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext conftest.$ac_ext
5339 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5340 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5342 if test $ac_cv_func_connect = no; then
5343 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5344 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5345 if test "${ac_cv_lib_socket_connect+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 ac_check_lib_save_LIBS=$LIBS
5349 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5350 cat >conftest.$ac_ext <<_ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5357 /* Override any GCC internal prototype to avoid an error.
5358 Use char because int might match the return type of a GCC
5359 builtin and then its argument prototype would still apply. */
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (ac_try="$ac_link"
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_link") 2>conftest.er1
5381 grep -v '^ *+' conftest.er1 >conftest.err
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5387 { (case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_try") 2>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; } &&
5396 { ac_try='test -s conftest$ac_exeext'
5397 { (case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_try") 2>&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_cv_lib_socket_connect=yes
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 ac_cv_lib_socket_connect=no
5414 rm -f core conftest.err conftest.$ac_objext \
5415 conftest$ac_exeext conftest.$ac_ext
5416 LIBS=$ac_check_lib_save_LIBS
5418 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5419 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5420 if test $ac_cv_lib_socket_connect = yes; then
5421 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5426 # Guillermo Gomez says -lposix is necessary on A/UX.
5427 { echo "$as_me:$LINENO: checking for remove" >&5
5428 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5429 if test "${ac_cv_func_remove+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5440 #define remove innocuous_remove
5442 /* System header to define __stub macros and hopefully few prototypes,
5443 which can conflict with char remove (); below.
5444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 <limits.h> exists even on freestanding compilers. */
5448 # include <limits.h>
5450 # include <assert.h>
5455 /* Override any GCC internal prototype to avoid an error.
5456 Use char because int might match the return type of a GCC
5457 builtin and then its argument prototype would still apply. */
5462 /* The GNU C library defines this for functions which it implements
5463 to always fail with ENOSYS. Some functions are actually named
5464 something starting with __ and the normal name is an alias. */
5465 #if defined __stub_remove || defined __stub___remove
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (ac_try="$ac_link"
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484 (eval "$ac_link") 2>conftest.er1
5486 grep -v '^ *+' conftest.er1 >conftest.err
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5492 { (case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_try") 2>&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try='test -s conftest$ac_exeext'
5502 { (case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_try") 2>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_cv_func_remove=yes
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5516 ac_cv_func_remove=no
5519 rm -f core conftest.err conftest.$ac_objext \
5520 conftest$ac_exeext conftest.$ac_ext
5522 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5523 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5525 if test $ac_cv_func_remove = no; then
5526 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5527 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5528 if test "${ac_cv_lib_posix_remove+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 ac_check_lib_save_LIBS=$LIBS
5532 LIBS="-lposix $LIBS"
5533 cat >conftest.$ac_ext <<_ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5540 /* Override any GCC internal prototype to avoid an error.
5541 Use char because int might match the return type of a GCC
5542 builtin and then its argument prototype would still apply. */
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (ac_try="$ac_link"
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_link") 2>conftest.er1
5564 grep -v '^ *+' conftest.er1 >conftest.err
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5570 { (case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_try") 2>&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; } &&
5579 { ac_try='test -s conftest$ac_exeext'
5580 { (case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_try") 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_cv_lib_posix_remove=yes
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 ac_cv_lib_posix_remove=no
5597 rm -f core conftest.err conftest.$ac_objext \
5598 conftest$ac_exeext conftest.$ac_ext
5599 LIBS=$ac_check_lib_save_LIBS
5601 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5602 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5603 if test $ac_cv_lib_posix_remove = yes; then
5604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5609 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5610 { echo "$as_me:$LINENO: checking for shmat" >&5
5611 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5612 if test "${ac_cv_func_shmat+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5623 #define shmat innocuous_shmat
5625 /* System header to define __stub macros and hopefully few prototypes,
5626 which can conflict with char shmat (); below.
5627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 <limits.h> exists even on freestanding compilers. */
5631 # include <limits.h>
5633 # include <assert.h>
5638 /* Override any GCC internal prototype to avoid an error.
5639 Use char because int might match the return type of a GCC
5640 builtin and then its argument prototype would still apply. */
5645 /* The GNU C library defines this for functions which it implements
5646 to always fail with ENOSYS. Some functions are actually named
5647 something starting with __ and the normal name is an alias. */
5648 #if defined __stub_shmat || defined __stub___shmat
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (ac_try="$ac_link"
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_link") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5675 { (case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_try") 2>&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try='test -s conftest$ac_exeext'
5685 { (case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_try") 2>&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_func_shmat=yes
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5702 rm -f core conftest.err conftest.$ac_objext \
5703 conftest$ac_exeext conftest.$ac_ext
5705 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5706 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5708 if test $ac_cv_func_shmat = no; then
5709 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5710 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5711 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 ac_check_lib_save_LIBS=$LIBS
5716 cat >conftest.$ac_ext <<_ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5723 /* Override any GCC internal prototype to avoid an error.
5724 Use char because int might match the return type of a GCC
5725 builtin and then its argument prototype would still apply. */
5738 rm -f conftest.$ac_objext conftest$ac_exeext
5739 if { (ac_try="$ac_link"
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_link") 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5753 { (case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_try") 2>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; } &&
5762 { ac_try='test -s conftest$ac_exeext'
5763 { (case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_try") 2>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5772 ac_cv_lib_ipc_shmat=yes
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 ac_cv_lib_ipc_shmat=no
5780 rm -f core conftest.err conftest.$ac_objext \
5781 conftest$ac_exeext conftest.$ac_ext
5782 LIBS=$ac_check_lib_save_LIBS
5784 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5785 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5786 if test $ac_cv_lib_ipc_shmat = yes; then
5787 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5793 # Check for libraries that X11R6 Xt/Xaw programs need.
5794 ac_save_LDFLAGS=$LDFLAGS
5795 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5796 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5797 # check for ICE first), but we must link in the order -lSM -lICE or
5798 # we get undefined symbols. So assume we have SM if we have ICE.
5799 # These have to be linked with before -lX11, unlike the other
5800 # libraries we check for below, so use a different variable.
5801 # John Interrante, Karl Berry
5802 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5803 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5804 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 ac_check_lib_save_LIBS=$LIBS
5808 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5809 cat >conftest.$ac_ext <<_ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5816 /* Override any GCC internal prototype to avoid an error.
5817 Use char because int might match the return type of a GCC
5818 builtin and then its argument prototype would still apply. */
5822 char IceConnectionNumber ();
5826 return IceConnectionNumber ();
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (ac_try="$ac_link"
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_link") 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5846 { (case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_try") 2>&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest$ac_exeext'
5856 { (case "(($ac_try" in
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_try") 2>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 ac_cv_lib_ICE_IceConnectionNumber=yes
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 ac_cv_lib_ICE_IceConnectionNumber=no
5873 rm -f core conftest.err conftest.$ac_objext \
5874 conftest$ac_exeext conftest.$ac_ext
5875 LIBS=$ac_check_lib_save_LIBS
5877 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5878 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5879 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5880 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5883 LDFLAGS=$ac_save_LDFLAGS
5892 { echo "$as_me:$LINENO: checking for Qt" >&5
5893 echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
5896 # Check whether --with-Qt-dir was given.
5897 if test "${with_Qt_dir+set}" = set; then
5898 withval=$with_Qt_dir;
5902 # Check whether --with-Qt-include-dir was given.
5903 if test "${with_Qt_include_dir+set}" = set; then
5904 withval=$with_Qt_include_dir;
5908 # Check whether --with-Qt-bin-dir was given.
5909 if test "${with_Qt_bin_dir+set}" = set; then
5910 withval=$with_Qt_bin_dir;
5914 # Check whether --with-Qt-lib-dir was given.
5915 if test "${with_Qt_lib_dir+set}" = set; then
5916 withval=$with_Qt_lib_dir;
5920 # Check whether --with-Qt-lib was given.
5921 if test "${with_Qt_lib+set}" = set; then
5922 withval=$with_Qt_lib;
5925 if test x"$with_Qt_dir" = x"no" ||
5926 test x"$with_Qt_include-dir" = x"no" ||
5927 test x"$with_Qt_bin_dir" = x"no" ||
5928 test x"$with_Qt_lib_dir" = x"no" ||
5929 test x"$with_Qt_lib" = x"no"; then
5930 # user disabled Qt. Leave cache alone.
5931 have_qt="User disabled Qt."
5933 # "yes" is a bogus option
5934 if test x"$with_Qt_dir" = xyes; then
5937 if test x"$with_Qt_include_dir" = xyes; then
5938 with_Qt_include_dir=
5940 if test x"$with_Qt_bin_dir" = xyes; then
5943 if test x"$with_Qt_lib_dir" = xyes; then
5946 if test x"$with_Qt_lib" = xyes; then
5949 # No Qt unless we discover otherwise
5951 # Check whether we are requested to link with a specific version
5952 if test x"$with_Qt_lib" != x; then
5953 bnv_qt_lib="$with_Qt_lib"
5955 # Check whether we were supplied with an answer already
5956 if test x"$with_Qt_dir" != x; then
5958 bnv_qt_dir="$with_Qt_dir"
5959 bnv_qt_include_dir="$with_Qt_dir/include"
5960 bnv_qt_bin_dir="$with_Qt_dir/bin"
5961 bnv_qt_lib_dir="$with_Qt_dir/lib"
5962 # Only search for the lib if the user did not define one already
5963 if test x"$bnv_qt_lib" = x; then
5964 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
5965 sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
5967 bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
5969 # Use cached value or do search, starting with suggestions from
5971 if test "${bnv_cv_have_qt+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 # We are not given a solution and there is no cached value.
5977 bnv_qt_include_dir=NO
5979 if test x"$bnv_qt_lib" = x; then
5983 ## Binary utilities ##
5984 if test x"$with_Qt_bin_dir" != x; then
5985 bnv_qt_bin_dir=$with_Qt_bin_dir
5987 ## Look for header files ##
5988 if test x"$with_Qt_include_dir" != x; then
5989 bnv_qt_include_dir="$with_Qt_include_dir"
5991 # The following header file is expected to define QT_VERSION.
5992 qt_direct_test_header=qglobal.h
5993 # Look for the header file in a standard set of common directories.
5994 bnv_include_path_list="
5996 `ls -dr ${QTDIR}/include 2>/dev/null`
5997 `ls -dr /usr/include/qt* 2>/dev/null`
5998 `ls -dr /usr/lib/qt*/include 2>/dev/null`
5999 `ls -dr /usr/local/qt*/include 2>/dev/null`
6000 `ls -dr /opt/qt*/include 2>/dev/null`
6001 `ls -dr /Developer/qt*/include 2>/dev/null`
6003 for bnv_dir in $bnv_include_path_list; do
6004 if test -r "$bnv_dir/$qt_direct_test_header"; then
6005 bnv_dirs="$bnv_dirs $bnv_dir"
6008 # Now look for the newest in this list
6010 for bnv_dir in $bnv_dirs; do
6011 bnv_this_ver=`egrep -w '#define QT_VERSION' $bnv_dir/$qt_direct_test_header | sed s/'#define QT_VERSION'//`
6012 if expr $bnv_this_ver '>' $bnv_prev_ver > /dev/null; then
6013 bnv_qt_include_dir=$bnv_dir
6014 bnv_prev_ver=$bnv_this_ver
6018 # Are these headers located in a traditional Trolltech installation?
6019 # That would be $bnv_qt_include_dir stripped from its last element:
6020 bnv_possible_qt_dir=`dirname $bnv_qt_include_dir`
6021 if (test -x $bnv_possible_qt_dir/bin/moc) &&
6022 ((ls $bnv_possible_qt_dir/lib/libqt* > /dev/null 2>/dev/null) ||
6023 (ls $bnv_possible_qt_dir/lib64/libqt* > /dev/null 2>/dev/null)); then
6024 # Then the rest is a piece of cake
6025 bnv_qt_dir=$bnv_possible_qt_dir
6026 bnv_qt_bin_dir="$bnv_qt_dir/bin"
6027 if test x"$with_Qt_lib_dir" != x; then
6028 bnv_qt_lib_dir="$with_Qt_lib_dir"
6030 if (test -d $bnv_qt_dir/lib64); then
6031 bnv_qt_lib_dir="$bnv_qt_dir/lib64"
6033 bnv_qt_lib_dir="$bnv_qt_dir/lib"
6036 # Only look for lib if the user did not supply it already
6037 if test x"$bnv_qt_lib" = xNO; then
6038 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
6039 sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
6041 bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6043 # There is no valid definition for $QTDIR as Trolltech likes to see it
6045 ## Look for Qt library ##
6046 if test x"$with_Qt_lib_dir" != x; then
6047 bnv_qt_lib_dir="$with_Qt_lib_dir"
6048 # Only look for lib if the user did not supply it already
6049 if test x"$bnv_qt_lib" = xNO; then
6050 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
6051 sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
6053 bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6055 # Normally, when there is no traditional Trolltech installation,
6056 # the library is installed in a place where the linker finds it
6058 # If the user did not define the library name, try with qt
6059 if test x"$bnv_qt_lib" = xNO; then
6062 qt_direct_test_header=qapplication.h
6063 qt_direct_test_main="
6066 QApplication app(argc,argv);
6068 # See if we find the library without any special options.
6069 # Don't add top $LIBS permanently yet
6070 bnv_save_LIBS="$LIBS"
6071 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6073 bnv_save_CXXFLAGS="$CXXFLAGS"
6074 CXXFLAGS="-I$bnv_qt_include_dir"
6075 cat >conftest.$ac_ext <<_ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 #include <$qt_direct_test_header>
6085 $qt_direct_test_main
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (ac_try="$ac_link"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_link") 2>conftest.er1
6099 grep -v '^ *+' conftest.er1 >conftest.err
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6105 { (case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_try") 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_try") 2>&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6126 # We can link with no special library directory.
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6134 # That did not work. Try the multi-threaded version
6135 echo "Non-critical error, please neglect the above." >&5
6137 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <$qt_direct_test_header>
6148 $qt_direct_test_main
6153 rm -f conftest.$ac_objext conftest$ac_exeext
6154 if { (ac_try="$ac_link"
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_link") 2>conftest.er1
6162 grep -v '^ *+' conftest.er1 >conftest.err
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6168 { (case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_try") 2>&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; } &&
6177 { ac_try='test -s conftest$ac_exeext'
6178 { (case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_try") 2>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6189 # We can link with no special library directory.
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6197 # That did not work. Try the OpenGL version
6198 echo "Non-critical error, please neglect the above." >&5
6200 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 #include <$qt_direct_test_header>
6211 $qt_direct_test_main
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (ac_try="$ac_link"
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_link") 2>conftest.er1
6225 grep -v '^ *+' conftest.er1 >conftest.err
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6231 { (case "(($ac_try" in
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_try") 2>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; } &&
6240 { ac_try='test -s conftest$ac_exeext'
6241 { (case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_try") 2>&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6252 # We can link with no special library directory.
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6260 # That did not work. Maybe a library version I don't know about?
6261 echo "Non-critical error, please neglect the above." >&5
6262 # Look for some Qt lib in a standard set of common directories.
6264 `echo $bnv_qt_includes | sed ss/includess`
6272 `ls -dr /usr/lib64/qt* 2>/dev/null`
6273 `ls -dr /usr/lib64/qt*/lib64 2>/dev/null`
6274 `ls -dr /usr/lib/qt* 2>/dev/null`
6275 `ls -dr /usr/local/qt* 2>/dev/null`
6276 `ls -dr /opt/qt* 2>/dev/null`
6278 for bnv_dir in $bnv_dir_list; do
6279 if ls $bnv_dir/libqt* >/dev/null 2>/dev/null; then
6280 # Gamble that it's the first one...
6281 bnv_qt_lib="`ls $bnv_dir/libqt* | sed -n 1p |
6282 sed s@$bnv_dir/lib@@ | sed s/[.].*//`"
6283 bnv_qt_lib_dir="$bnv_dir"
6288 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6289 cat >conftest.$ac_ext <<_ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295 #include <$qt_direct_test_header>
6299 $qt_direct_test_main
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (ac_try="$ac_link"
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_link") 2>conftest.er1
6313 grep -v '^ *+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } &&
6318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6319 { (case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_try") 2>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; } &&
6328 { ac_try='test -s conftest$ac_exeext'
6329 { (case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_try") 2>&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6340 # We can link with no special library directory.
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6348 # Leave bnv_qt_lib_dir defined
6352 rm -f core conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
6357 rm -f core conftest.err conftest.$ac_objext \
6358 conftest$ac_exeext conftest.$ac_ext
6362 rm -f core conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6367 rm -f core conftest.err conftest.$ac_objext \
6368 conftest$ac_exeext conftest.$ac_ext
6369 if test x"$bnv_qt_lib_dir" != x; then
6370 bnv_qt_LIBS="-L$bnv_qt_lib_dir $LIBS"
6374 LIBS="$bnv_save_LIBS"
6375 CXXFLAGS="$bnv_save_CXXFLAGS"
6377 if test "$bnv_qt_dir" = NO ||
6378 test "$bnv_qt_include_dir" = NO ||
6379 test "$bnv_qt_lib_dir" = NO ||
6380 test "$bnv_qt_lib" = NO; then
6381 # Problem with finding complete Qt. Cache the known absence of Qt.
6382 bnv_cv_have_qt="have_qt=no"
6384 # Record where we found Qt for the cache.
6385 bnv_cv_have_qt="have_qt=yes \
6386 bnv_qt_dir=$bnv_qt_dir \
6387 bnv_qt_include_dir=$bnv_qt_include_dir \
6388 bnv_qt_bin_dir=$bnv_qt_bin_dir \
6389 bnv_qt_LIBS=\"$bnv_qt_LIBS\""
6393 eval "$bnv_cv_have_qt"
6394 fi # all $bnv_qt_* are set
6395 fi # $have_qt reflects the system status
6396 if test x"$have_qt" = xyes; then
6397 QT_CXXFLAGS="-I$bnv_qt_include_dir"
6398 if test x"$bnv_qt_lib" = xqt-mt; then
6399 QT_CXXFLAGS="$QT_CXXFLAGS -DQT_THREAD_SUPPORT"
6401 QT_DIR="$bnv_qt_dir"
6402 QT_LIBS="$bnv_qt_LIBS"
6403 # If bnv_qt_dir is defined, utilities are expected to be in the
6405 if test x"$bnv_qt_dir" != x; then
6406 if test -x "$bnv_qt_dir/bin/uic"; then
6407 QT_UIC="$bnv_qt_dir/bin/uic"
6409 # Old versions of Qt don't have uic
6412 QT_MOC="$bnv_qt_dir/bin/moc"
6414 # Or maybe we are told where to look for the utilities
6415 if test x"$bnv_qt_bin_dir" != x; then
6416 if test -x "$bnv_qt_bin_dir/uic"; then
6417 QT_UIC="$bnv_qt_bin_dir/uic"
6419 # Old versions of Qt don't have uic
6422 QT_MOC="$bnv_qt_bin_dir/moc"
6424 # Last possibility is that they are in $PATH
6425 QT_UIC="`which uic`"
6426 QT_MOC="`which moc`"
6429 # All variables are defined, report the result
6430 { echo "$as_me:$LINENO: result: $have_qt:
6431 QT_CXXFLAGS=$QT_CXXFLAGS
6436 echo "${ECHO_T}$have_qt:
6437 QT_CXXFLAGS=$QT_CXXFLAGS
6441 QT_MOC=$QT_MOC" >&6; }
6449 { echo "$as_me:$LINENO: result: $have_qt" >&5
6450 echo "${ECHO_T}$have_qt" >&6; }
6458 #### Being paranoid:
6459 if test x"$have_qt" = xyes; then
6460 { echo "$as_me:$LINENO: checking correct functioning of Qt installation" >&5
6461 echo $ECHO_N "checking correct functioning of Qt installation... $ECHO_C" >&6; }
6462 if test "${bnv_cv_qt_test_result+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 cat > bnv_qt_test.h << EOF
6467 #include <qobject.h>
6468 class Test : public QObject
6481 cat > bnv_qt_main.$ac_ext << EOF
6482 #include "bnv_qt_test.h"
6483 #include <qapplication.h>
6484 int main( int argc, char **argv )
6486 QApplication app( argc, argv );
6488 QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) );
6492 bnv_cv_qt_test_result="failure"
6493 bnv_try_1="$QT_MOC bnv_qt_test.h -o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null"
6494 { (eval echo "$as_me:$LINENO: \"$bnv_try_1\"") >&5
6495 (eval $bnv_try_1) 2>&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }
6499 if test x"$ac_status" != x0; then
6500 echo "$bnv_err_1" >&5
6501 echo "configure: could not run $QT_MOC on:" >&5
6502 cat bnv_qt_test.h >&5
6504 bnv_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_bnv_qt_test.o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null"
6505 { (eval echo "$as_me:$LINENO: \"$bnv_try_2\"") >&5
6506 (eval $bnv_try_2) 2>&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }
6510 if test x"$ac_status" != x0; then
6511 echo "$bnv_err_2" >&5
6512 echo "configure: could not compile:" >&5
6513 cat moc_bnv_qt_test.$ac_ext >&5
6515 bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o bnv_qt_main.o bnv_qt_main.$ac_ext >/dev/null 2>/dev/null"
6516 { (eval echo "$as_me:$LINENO: \"$bnv_try_3\"") >&5
6517 (eval $bnv_try_3) 2>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }
6521 if test x"$ac_status" != x0; then
6522 echo "$bnv_err_3" >&5
6523 echo "configure: could not compile:" >&5
6524 cat bnv_qt_main.$ac_ext >&5
6526 bnv_try_4="$CXX $QT_LIBS $LIBS -o bnv_qt_main bnv_qt_main.o moc_bnv_qt_test.o >/dev/null 2>/dev/null"
6527 { (eval echo "$as_me:$LINENO: \"$bnv_try_4\"") >&5
6528 (eval $bnv_try_4) 2>&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }
6532 if test x"$ac_status" != x0; then
6533 echo "$bnv_err_4" >&5
6535 bnv_cv_qt_test_result="success"
6542 { echo "$as_me:$LINENO: result: $bnv_cv_qt_test_result" >&5
6543 echo "${ECHO_T}$bnv_cv_qt_test_result" >&6; };
6544 if test x"$bnv_cv_qt_test_result" = "xfailure"; then
6545 { { echo "$as_me:$LINENO: error: Failed to find matching components of a complete
6546 Qt installation. Try using more options,
6547 see ./configure --help." >&5
6548 echo "$as_me: error: Failed to find matching components of a complete
6549 Qt installation. Try using more options,
6550 see ./configure --help." >&2;}
6551 { (exit 1); exit 1; }; }
6554 rm -f bnv_qt_test.h moc_bnv_qt_test.$ac_ext moc_bnv_qt_test.o \
6555 bnv_qt_main.$ac_ext bnv_qt_main.o bnv_qt_main
6558 if test "x$have_qt" = "xno"
6560 { { echo "$as_me:$LINENO: error: \"Qt library is required to compile QComicBook!\"" >&5
6561 echo "$as_me: error: \"Qt library is required to compile QComicBook!\"" >&2;}
6562 { (exit 1); exit 1; }; }
6566 # custom test for correct Qt version
6568 ac_cpp='$CXXCPP $CPPFLAGS'
6569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6573 #save_CPPFLAGS="$CPPFLAGS"
6574 #CPPFLAGS="$CPPFLAGS $QT_CXXFLAGS $QT_LIBS"
6575 #AC_MSG_CHECKING([for correct version of Qt (>=3.3.1)])
6577 # [AC_LANG_PROGRAM([[#include <qglobal.h> #include <stdlib.h>]],[[exit(QT_VERSION<0x030301);]])],
6578 # [AC_MSG_RESULT(yes)], [AC_MSG_ERROR(Too old!)],[])
6579 #CPPFLAGS="$save_CPPFLAGS"
6583 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6616 if test -n "$PKG_CONFIG"; then
6617 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6618 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6620 { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6626 if test -z "$ac_cv_path_PKG_CONFIG"; then
6627 ac_pt_PKG_CONFIG=$PKG_CONFIG
6628 # Extract the first word of "pkg-config", so it can be a program name with args.
6629 set dummy pkg-config; ac_word=$2
6630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 case $ac_pt_PKG_CONFIG in
6637 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6659 if test -n "$ac_pt_PKG_CONFIG"; then
6660 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6661 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
6663 { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6667 if test "x$ac_pt_PKG_CONFIG" = x; then
6670 case $cross_compiling:$ac_tool_warned in
6672 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6673 whose name does not start with the host triplet. If you think this
6674 configuration is useful to you, please write to autoconf@gnu.org." >&5
6675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6676 whose name does not start with the host triplet. If you think this
6677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6678 ac_tool_warned=yes ;;
6680 PKG_CONFIG=$ac_pt_PKG_CONFIG
6683 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6687 if test -n "$PKG_CONFIG"; then
6688 _pkg_min_version=0.9.0
6689 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6690 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
6691 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6692 { echo "$as_me:$LINENO: result: yes" >&5
6693 echo "${ECHO_T}yes" >&6; }
6695 { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6703 { echo "$as_me:$LINENO: checking for Imlib2" >&5
6704 echo $ECHO_N "checking for Imlib2... $ECHO_C" >&6; }
6706 if test -n "$PKG_CONFIG"; then
6707 if test -n "$Imlib2_CFLAGS"; then
6708 pkg_cv_Imlib2_CFLAGS="$Imlib2_CFLAGS"
6710 if test -n "$PKG_CONFIG" && \
6711 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
6712 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; then
6716 pkg_cv_Imlib2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
6724 if test -n "$PKG_CONFIG"; then
6725 if test -n "$Imlib2_LIBS"; then
6726 pkg_cv_Imlib2_LIBS="$Imlib2_LIBS"
6728 if test -n "$PKG_CONFIG" && \
6729 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
6730 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; then
6734 pkg_cv_Imlib2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
6745 if test $pkg_failed = yes; then
6747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6748 _pkg_short_errors_supported=yes
6750 _pkg_short_errors_supported=no
6752 if test $_pkg_short_errors_supported = yes; then
6753 Imlib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
6755 Imlib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
6757 # Put the nasty error message in config.log where it belongs
6758 echo "$Imlib2_PKG_ERRORS" >&5
6761 elif test $pkg_failed = untried; then
6764 Imlib2_CFLAGS=$pkg_cv_Imlib2_CFLAGS
6765 Imlib2_LIBS=$pkg_cv_Imlib2_LIBS
6766 { echo "$as_me:$LINENO: result: yes" >&5
6767 echo "${ECHO_T}yes" >&6; }
6770 if test "x$ac_imlib" = "xno"
6772 { { echo "$as_me:$LINENO: error: \"Imlib2 not found!\"" >&5
6773 echo "$as_me: error: \"Imlib2 not found!\"" >&2;}
6774 { (exit 1); exit 1; }; }
6779 ac_config_files="$ac_config_files Makefile src/Makefile icons/Makefile help/Makefile help/en/Makefile"
6781 cat >confcache <<\_ACEOF
6782 # This file is a shell script that caches the results of configure
6783 # tests run on this system so they can be shared between configure
6784 # scripts and configure runs, see configure's option --config-cache.
6785 # It is not useful on other systems. If it contains results you don't
6786 # want to keep, you may remove or edit it.
6788 # config.status only pays attention to the cache file if you give it
6789 # the --recheck option to rerun configure.
6791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6797 # The following way of writing the cache mishandles newlines in values,
6798 # but we know of no workaround that is simple, portable, and efficient.
6799 # So, we kill variables containing newlines.
6800 # Ultrix sh set writes to stderr and can't be redirected directly,
6801 # and sets the high bit in the cache file unless we assign to the vars.
6803 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6804 eval ac_val=\$$ac_var
6808 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6809 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6812 _ | IFS | as_nl) ;; #(
6813 *) $as_unset $ac_var ;;
6819 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6820 *${as_nl}ac_space=\ *)
6821 # `set' does not quote correctly, so add quotes (double-quote
6822 # substitution turns \\\\ into \\, and sed turns \\ into \).
6825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6828 # `set' quotes correctly as required by POSIX, so do not add quotes.
6829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6838 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6840 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6842 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6843 if test -w "$cache_file"; then
6844 test "x$cache_file" != "x/dev/null" &&
6845 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6846 echo "$as_me: updating cache $cache_file" >&6;}
6847 cat confcache >$cache_file
6849 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6850 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6855 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6856 # Let make expand exec_prefix.
6857 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6859 DEFS=-DHAVE_CONFIG_H
6863 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6864 # 1. Remove the extension, and $U if already installed.
6865 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6866 ac_i=`echo "$ac_i" | sed "$ac_script"`
6867 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6868 # will be set to the directory where LIBOBJS objects are built.
6869 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6870 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6874 LTLIBOBJS=$ac_ltlibobjs
6877 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6878 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6879 Usually this means the macro was only invoked conditionally." >&5
6880 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6881 Usually this means the macro was only invoked conditionally." >&2;}
6882 { (exit 1); exit 1; }; }
6884 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6885 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6886 Usually this means the macro was only invoked conditionally." >&5
6887 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6888 Usually this means the macro was only invoked conditionally." >&2;}
6889 { (exit 1); exit 1; }; }
6891 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6892 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6893 Usually this means the macro was only invoked conditionally." >&5
6894 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6895 Usually this means the macro was only invoked conditionally." >&2;}
6896 { (exit 1); exit 1; }; }
6899 : ${CONFIG_STATUS=./config.status}
6900 ac_clean_files_save=$ac_clean_files
6901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6902 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6903 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6904 cat >$CONFIG_STATUS <<_ACEOF
6906 # Generated by $as_me.
6907 # Run this file to recreate the current configuration.
6908 # Compiler output produced by configure, useful for debugging
6909 # configure, is in config.log if it exists.
6914 SHELL=\${CONFIG_SHELL-$SHELL}
6917 cat >>$CONFIG_STATUS <<\_ACEOF
6918 ## --------------------- ##
6919 ## M4sh Initialization. ##
6920 ## --------------------- ##
6922 # Be Bourne compatible
6923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6926 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6927 # is contrary to our usage. Disable this feature.
6928 alias -g '${1+"$@"}'='"$@"'
6929 setopt NO_GLOB_SUBST
6931 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6933 BIN_SH=xpg4; export BIN_SH # for Tru64
6934 DUALCASE=1; export DUALCASE # for MKS sh
6938 # Avoid depending upon Character Ranges.
6939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6942 as_cr_digits='0123456789'
6943 as_cr_alnum=$as_cr_Letters$as_cr_digits
6945 # The user is always right.
6946 if test "${PATH_SEPARATOR+set}" != set; then
6947 echo "#! /bin/sh" >conf$$.sh
6948 echo "exit 0" >>conf$$.sh
6950 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6958 # Support unset when possible.
6959 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6967 # We need space, tab and new line, in precisely that order. Quoting is
6968 # there to prevent editors from complaining about space-tab.
6969 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6970 # splitting by setting IFS to empty value.)
6975 # Find who we are. Look in the path if we contain no directory separator.
6977 *[\\/]* ) as_myself=$0 ;;
6978 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir=.
6983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6989 # We did not find ourselves, most probably we were run as `sh COMMAND'
6990 # in which case we are not to be found in the path.
6991 if test "x$as_myself" = x; then
6994 if test ! -f "$as_myself"; then
6995 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6996 { (exit 1); exit 1; }
6999 # Work around bugs in pre-3.0 UWIN ksh.
7000 for as_var in ENV MAIL MAILPATH
7001 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7009 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7010 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7011 LC_TELEPHONE LC_TIME
7013 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7014 eval $as_var=C; export $as_var
7016 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7020 # Required to use basename.
7021 if expr a : '\(a\)' >/dev/null 2>&1 &&
7022 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7028 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7029 as_basename=basename
7035 # Name of the executable.
7036 as_me=`$as_basename -- "$0" ||
7037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7038 X"$0" : 'X\(//\)$' \| \
7039 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7041 sed '/^.*\/\([^/][^/]*\)\/*$/{
7062 test "x$as_lineno_1" != "x$as_lineno_2" &&
7063 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7065 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7066 # uniformly replaced by the line number. The first 'sed' inserts a
7067 # line-number line after each line using $LINENO; the second 'sed'
7068 # does the real work. The second script uses 'N' to pair each
7069 # line-number line with the line containing $LINENO, and appends
7070 # trailing '-' during substitution so that $LINENO is not a special
7072 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7073 # scripts with optimization help from Paolo Bonzini. Blame Lee
7074 # E. McMahon (1931-1989) for sed's syntax. :-)
7086 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7090 chmod +x "$as_me.lineno" ||
7091 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7092 { (exit 1); exit 1; }; }
7094 # Don't try to exec as it changes $[0], causing all sort of problems
7095 # (the dirname of $[0] is not the place where we might find the
7096 # original and so on. Autoconf is especially sensitive to this).
7098 # Exit status is that of the last command.
7103 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7109 ECHO_C= ECHO_N= ECHO_T=
7112 case `echo 'x\c'` in
7113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7120 if expr a : '\(a\)' >/dev/null 2>&1 &&
7121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7127 rm -f conf$$ conf$$.exe conf$$.file
7128 if test -d conf$$.dir; then
7129 rm -f conf$$.dir/conf$$.file
7135 if ln -s conf$$.file conf$$ 2>/dev/null; then
7137 # ... but there are two gotchas:
7138 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7139 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7140 # In both cases, we have to default to `cp -p'.
7141 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7143 elif ln conf$$.file conf$$ 2>/dev/null; then
7148 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7149 rmdir conf$$.dir 2>/dev/null
7151 if mkdir -p . 2>/dev/null; then
7154 test -d ./-p && rmdir ./-p
7158 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
7159 # systems may use methods other than mode bits to determine executability.
7160 cat >conf$$.file <<_ASEOF
7164 chmod +x conf$$.file
7165 if test -x conf$$.file >/dev/null 2>&1; then
7166 as_executable_p="test -x"
7172 # Sed expression to map a string onto a valid CPP name.
7173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7175 # Sed expression to map a string onto a valid variable name.
7176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7181 # Save the log message, to keep $[0] and so on meaningful, and to
7182 # report actual input values of CONFIG_FILES etc. instead of their
7183 # values after options handling.
7185 This file was extended by QComicBook $as_me 0.3.4, which was
7186 generated by GNU Autoconf 2.60. Invocation command line was
7188 CONFIG_FILES = $CONFIG_FILES
7189 CONFIG_HEADERS = $CONFIG_HEADERS
7190 CONFIG_LINKS = $CONFIG_LINKS
7191 CONFIG_COMMANDS = $CONFIG_COMMANDS
7194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7199 cat >>$CONFIG_STATUS <<_ACEOF
7200 # Files that config.status was made for.
7201 config_files="$ac_config_files"
7202 config_headers="$ac_config_headers"
7203 config_commands="$ac_config_commands"
7207 cat >>$CONFIG_STATUS <<\_ACEOF
7209 \`$as_me' instantiates files from templates according to the
7210 current configuration.
7212 Usage: $0 [OPTIONS] [FILE]...
7214 -h, --help print this help, then exit
7215 -V, --version print version number, then exit
7216 -q, --quiet do not print progress messages
7217 -d, --debug don't remove temporary files
7218 --recheck update $as_me by reconfiguring in the same conditions
7219 --file=FILE[:TEMPLATE]
7220 instantiate the configuration file FILE
7221 --header=FILE[:TEMPLATE]
7222 instantiate the configuration header FILE
7224 Configuration files:
7227 Configuration headers:
7230 Configuration commands:
7233 Report bugs to <bug-autoconf@gnu.org>."
7236 cat >>$CONFIG_STATUS <<_ACEOF
7238 QComicBook config.status 0.3.4
7239 configured by $0, generated by GNU Autoconf 2.60,
7240 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7242 Copyright (C) 2006 Free Software Foundation, Inc.
7243 This config.status script is free software; the Free Software Foundation
7244 gives unlimited permission to copy, distribute and modify it."
7251 cat >>$CONFIG_STATUS <<\_ACEOF
7252 # If no file are specified by the user, then we need to provide default
7253 # value. By we need to know if files were specified by the user.
7259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7271 # Handling of the options.
7272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7274 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7275 echo "$ac_cs_version"; exit ;;
7276 --debug | --debu | --deb | --de | --d | -d )
7278 --file | --fil | --fi | --f )
7280 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7281 ac_need_defaults=false;;
7282 --header | --heade | --head | --hea )
7284 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7285 ac_need_defaults=false;;
7287 # Conflict between --help and --header
7288 { echo "$as_me: error: ambiguous option: $1
7289 Try \`$0 --help' for more information." >&2
7290 { (exit 1); exit 1; }; };;
7291 --help | --hel | -h )
7292 echo "$ac_cs_usage"; exit ;;
7293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7294 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7298 -*) { echo "$as_me: error: unrecognized option: $1
7299 Try \`$0 --help' for more information." >&2
7300 { (exit 1); exit 1; }; } ;;
7302 *) ac_config_targets="$ac_config_targets $1"
7303 ac_need_defaults=false ;;
7309 ac_configure_extra_args=
7311 if $ac_cs_silent; then
7313 ac_configure_extra_args="$ac_configure_extra_args --silent"
7317 cat >>$CONFIG_STATUS <<_ACEOF
7318 if \$ac_cs_recheck; then
7319 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7322 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7326 cat >>$CONFIG_STATUS <<\_ACEOF
7330 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7331 ## Running $as_me. ##
7337 cat >>$CONFIG_STATUS <<_ACEOF
7341 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7345 cat >>$CONFIG_STATUS <<\_ACEOF
7347 # Handling of arguments.
7348 for ac_config_target in $ac_config_targets
7350 case $ac_config_target in
7351 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
7352 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7353 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7354 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7355 "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
7356 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
7357 "help/en/Makefile") CONFIG_FILES="$CONFIG_FILES help/en/Makefile" ;;
7359 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7360 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7361 { (exit 1); exit 1; }; };;
7366 # If the user did not use the arguments to specify the items to instantiate,
7367 # then the envvar interface is used. Set only those that are not.
7368 # We use the long form for the default assignment because of an extremely
7369 # bizarre bug on SunOS 4.1.3.
7370 if $ac_need_defaults; then
7371 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7372 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7373 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7376 # Have a temporary directory for convenience. Make it in the build tree
7377 # simply because there is no reason against having it here, and in addition,
7378 # creating and moving files from /tmp can sometimes cause problems.
7379 # Hook for its removal unless debugging.
7380 # Note that there is a small window in which the directory will not be cleaned:
7381 # after its creation but before its name has been assigned to `$tmp'.
7385 trap 'exit_status=$?
7386 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7388 trap '{ (exit 1); exit 1; }' 1 2 13 15
7390 # Create a (secure) tmp directory for tmp files.
7393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7394 test -n "$tmp" && test -d "$tmp"
7397 tmp=./conf$$-$RANDOM
7398 (umask 077 && mkdir "$tmp")
7401 echo "$me: cannot create a temporary directory in ." >&2
7402 { (exit 1); exit 1; }
7406 # Set up the sed scripts for CONFIG_FILES section.
7409 # No need to generate the scripts if there are no CONFIG_FILES.
7410 # This happens for instance when ./config.status config.h
7411 if test -n "$CONFIG_FILES"; then
7418 for ac_last_try in false false false false false :; do
7419 cat >conf$$subs.sed <<_ACEOF
7420 SHELL!$SHELL$ac_delim
7421 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7422 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7423 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7424 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7425 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7426 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7427 exec_prefix!$exec_prefix$ac_delim
7428 prefix!$prefix$ac_delim
7429 program_transform_name!$program_transform_name$ac_delim
7430 bindir!$bindir$ac_delim
7431 sbindir!$sbindir$ac_delim
7432 libexecdir!$libexecdir$ac_delim
7433 datarootdir!$datarootdir$ac_delim
7434 datadir!$datadir$ac_delim
7435 sysconfdir!$sysconfdir$ac_delim
7436 sharedstatedir!$sharedstatedir$ac_delim
7437 localstatedir!$localstatedir$ac_delim
7438 includedir!$includedir$ac_delim
7439 oldincludedir!$oldincludedir$ac_delim
7440 docdir!$docdir$ac_delim
7441 infodir!$infodir$ac_delim
7442 htmldir!$htmldir$ac_delim
7443 dvidir!$dvidir$ac_delim
7444 pdfdir!$pdfdir$ac_delim
7445 psdir!$psdir$ac_delim
7446 libdir!$libdir$ac_delim
7447 localedir!$localedir$ac_delim
7448 mandir!$mandir$ac_delim
7450 ECHO_C!$ECHO_C$ac_delim
7451 ECHO_N!$ECHO_N$ac_delim
7452 ECHO_T!$ECHO_T$ac_delim
7454 build_alias!$build_alias$ac_delim
7455 host_alias!$host_alias$ac_delim
7456 target_alias!$target_alias$ac_delim
7457 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7458 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7459 INSTALL_DATA!$INSTALL_DATA$ac_delim
7460 CYGPATH_W!$CYGPATH_W$ac_delim
7461 PACKAGE!$PACKAGE$ac_delim
7462 VERSION!$VERSION$ac_delim
7463 ACLOCAL!$ACLOCAL$ac_delim
7464 AUTOCONF!$AUTOCONF$ac_delim
7465 AUTOMAKE!$AUTOMAKE$ac_delim
7466 AUTOHEADER!$AUTOHEADER$ac_delim
7467 MAKEINFO!$MAKEINFO$ac_delim
7468 install_sh!$install_sh$ac_delim
7469 STRIP!$STRIP$ac_delim
7470 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7471 mkdir_p!$mkdir_p$ac_delim
7473 SET_MAKE!$SET_MAKE$ac_delim
7474 am__leading_dot!$am__leading_dot$ac_delim
7475 AMTAR!$AMTAR$ac_delim
7476 am__tar!$am__tar$ac_delim
7477 am__untar!$am__untar$ac_delim
7479 CXXFLAGS!$CXXFLAGS$ac_delim
7480 LDFLAGS!$LDFLAGS$ac_delim
7481 CPPFLAGS!$CPPFLAGS$ac_delim
7482 ac_ct_CXX!$ac_ct_CXX$ac_delim
7483 EXEEXT!$EXEEXT$ac_delim
7484 OBJEXT!$OBJEXT$ac_delim
7485 DEPDIR!$DEPDIR$ac_delim
7486 am__include!$am__include$ac_delim
7487 am__quote!$am__quote$ac_delim
7488 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7489 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7490 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7491 CXXDEPMODE!$CXXDEPMODE$ac_delim
7492 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
7493 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
7495 CFLAGS!$CFLAGS$ac_delim
7496 ac_ct_CC!$ac_ct_CC$ac_delim
7497 CCDEPMODE!$CCDEPMODE$ac_delim
7498 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7499 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7500 XMKMF!$XMKMF$ac_delim
7502 X_CFLAGS!$X_CFLAGS$ac_delim
7503 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
7504 X_LIBS!$X_LIBS$ac_delim
7505 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
7506 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
7507 QT_DIR!$QT_DIR$ac_delim
7508 QT_LIBS!$QT_LIBS$ac_delim
7509 QT_UIC!$QT_UIC$ac_delim
7510 QT_MOC!$QT_MOC$ac_delim
7511 PKG_CONFIG!$PKG_CONFIG$ac_delim
7512 Imlib2_CFLAGS!$Imlib2_CFLAGS$ac_delim
7513 Imlib2_LIBS!$Imlib2_LIBS$ac_delim
7514 LIBOBJS!$LIBOBJS$ac_delim
7515 LTLIBOBJS!$LTLIBOBJS$ac_delim
7518 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
7520 elif $ac_last_try; then
7521 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7522 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7523 { (exit 1); exit 1; }; }
7525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7529 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7530 if test -n "$ac_eof"; then
7531 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7532 ac_eof=`expr $ac_eof + 1`
7535 cat >>$CONFIG_STATUS <<_ACEOF
7536 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7540 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7541 s/^/s,@/; s/!/@,|#_!!_#|/
7544 s/'"$ac_delim"'$/,g/; t
7546 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7547 ' >>$CONFIG_STATUS <conf$$subs.sed
7548 rm -f conf$$subs.sed
7549 cat >>$CONFIG_STATUS <<_ACEOF
7554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7556 # trailing colons and then remove the whole line if VPATH becomes empty
7557 # (actually we leave an empty line to preserve line numbers).
7558 if test "x$srcdir" = x.; then
7559 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7563 s/^\([^=]*=[ ]*\):*/\1/
7569 cat >>$CONFIG_STATUS <<\_ACEOF
7570 fi # test -n "$CONFIG_FILES"
7573 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
7576 :[FHLC]) ac_mode=$ac_tag; continue;;
7578 case $ac_mode$ac_tag in
7580 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7581 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7582 { (exit 1); exit 1; }; };;
7583 :[FH]-) ac_tag=-:-;;
7584 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7601 -) ac_f="$tmp/stdin";;
7602 *) # Look for the file first in the build tree, then in the source tree
7603 # (if the path is not absolute). The absolute path cannot be DOS-style,
7604 # because $ac_f cannot contain `:'.
7608 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7610 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7611 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7612 { (exit 1); exit 1; }; };;
7614 ac_file_inputs="$ac_file_inputs $ac_f"
7617 # Let's still pretend it is `configure' which instantiates (i.e., don't
7618 # use $as_me), people would be surprised to read:
7619 # /* config.h. Generated by config.status. */
7620 configure_input="Generated from "`IFS=:
7621 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7622 if test x"$ac_file" != x-; then
7623 configure_input="$ac_file. $configure_input"
7624 { echo "$as_me:$LINENO: creating $ac_file" >&5
7625 echo "$as_me: creating $ac_file" >&6;}
7629 *:-:* | *:-) cat >"$tmp/stdin";;
7634 ac_dir=`$as_dirname -- "$ac_file" ||
7635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7636 X"$ac_file" : 'X\(//\)[^/]' \| \
7637 X"$ac_file" : 'X\(//\)$' \| \
7638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7659 -*) as_dir=./$as_dir;;
7661 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7665 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7666 *) as_qdir=$as_dir;;
7668 as_dirs="'$as_qdir' $as_dirs"
7669 as_dir=`$as_dirname -- "$as_dir" ||
7670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7671 X"$as_dir" : 'X\(//\)[^/]' \| \
7672 X"$as_dir" : 'X\(//\)$' \| \
7673 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7692 test -d "$as_dir" && break
7694 test -z "$as_dirs" || eval "mkdir $as_dirs"
7695 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7696 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7697 { (exit 1); exit 1; }; }; }
7701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7703 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7704 # A ".." for each directory in $ac_dir_suffix.
7705 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7706 case $ac_top_builddir_sub in
7707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7711 ac_abs_top_builddir=$ac_pwd
7712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7713 # for backward compatibility:
7714 ac_top_builddir=$ac_top_build_prefix
7717 .) # We are building in place.
7719 ac_top_srcdir=$ac_top_builddir_sub
7720 ac_abs_top_srcdir=$ac_pwd ;;
7721 [\\/]* | ?:[\\/]* ) # Absolute name.
7722 ac_srcdir=$srcdir$ac_dir_suffix;
7723 ac_top_srcdir=$srcdir
7724 ac_abs_top_srcdir=$srcdir ;;
7726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7727 ac_top_srcdir=$ac_top_build_prefix$srcdir
7728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7741 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7745 cat >>$CONFIG_STATUS <<\_ACEOF
7746 # If the template does not know about datarootdir, expand it.
7747 # FIXME: This hack should be removed a few years after 2.60.
7748 ac_datarootdir_hack=; ac_datarootdir_seen=
7750 case `sed -n '/datarootdir/ {
7759 ' $ac_file_inputs` in
7760 *datarootdir*) ac_datarootdir_seen=yes;;
7761 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7762 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7763 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7765 cat >>$CONFIG_STATUS <<_ACEOF
7766 ac_datarootdir_hack='
7767 s&@datadir@&$datadir&g
7768 s&@docdir@&$docdir&g
7769 s&@infodir@&$infodir&g
7770 s&@localedir@&$localedir&g
7771 s&@mandir@&$mandir&g
7772 s&\\\${datarootdir}&$datarootdir&g' ;;
7776 # Neutralize VPATH when `$srcdir' = `.'.
7777 # Shell code in configure.ac might set extrasub.
7778 # FIXME: do we really want to maintain this feature?
7779 cat >>$CONFIG_STATUS <<_ACEOF
7783 cat >>$CONFIG_STATUS <<\_ACEOF
7785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7786 s&@configure_input@&$configure_input&;t t
7787 s&@top_builddir@&$ac_top_builddir_sub&;t t
7788 s&@srcdir@&$ac_srcdir&;t t
7789 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7790 s&@top_srcdir@&$ac_top_srcdir&;t t
7791 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7792 s&@builddir@&$ac_builddir&;t t
7793 s&@abs_builddir@&$ac_abs_builddir&;t t
7794 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7795 s&@INSTALL@&$ac_INSTALL&;t t
7796 $ac_datarootdir_hack
7797 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
7799 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7800 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7801 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7802 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7803 which seems to be undefined. Please make sure it is defined." >&5
7804 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7805 which seems to be undefined. Please make sure it is defined." >&2;}
7809 -) cat "$tmp/out"; rm -f "$tmp/out";;
7810 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7819 # Transform confdefs.h into a sed script `conftest.defines', that
7820 # substitutes the proper values into config.h.in to produce config.h.
7821 rm -f conftest.defines conftest.tail
7822 # First, append a space to every undef/define line, to ease matching.
7823 echo 's/$/ /' >conftest.defines
7824 # Then, protect against being on the right side of a sed subst, or in
7825 # an unquoted here document, in config.status. If some macros were
7826 # called several times there might be several #defines for the same
7827 # symbol, which is useless. But do not sort them, since the last
7828 # AC_DEFINE must be honored.
7829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7830 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7831 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7832 # PARAMS is the parameter list in the macro definition--in most cases, it's
7833 # just an empty string.
7834 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7835 ac_dB='\\)[ (].*,\\1define\\2'
7843 s/^[ ]*#[ ]*define[ ][ ]*//
7848 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7849 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7850 ' >>conftest.defines
7852 # Remove the space that was appended to ease matching.
7853 # Then replace #undef with comments. This is necessary, for
7854 # example, in the case of _POSIX_SOURCE, which is predefined and required
7855 # on some systems where configure will not decide to define it.
7856 # (The regexp can be short, since the line contains either #define or #undef.)
7858 s,^[ #]*u.*,/* & */,' >>conftest.defines
7860 # Break up conftest.defines:
7863 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7864 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7865 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7867 ac_in='$ac_file_inputs'
7868 ac_out='"$tmp/out1"'
7869 ac_nxt='"$tmp/out2"'
7873 # Write a here document:
7874 cat >>$CONFIG_STATUS <<_ACEOF
7875 # First, check the format of the line:
7876 cat >"\$tmp/defines.sed" <<\\CEOF
7877 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7878 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7882 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7884 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7885 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7886 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7887 grep . conftest.tail >/dev/null || break
7888 rm -f conftest.defines
7889 mv conftest.tail conftest.defines
7891 rm -f conftest.defines conftest.tail
7893 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7894 cat >>$CONFIG_STATUS <<\_ACEOF
7895 if test x"$ac_file" != x-; then
7896 echo "/* $configure_input */" >"$tmp/config.h"
7897 cat "$ac_result" >>"$tmp/config.h"
7898 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7899 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7900 echo "$as_me: $ac_file is unchanged" >&6;}
7903 mv "$tmp/config.h" $ac_file
7906 echo "/* $configure_input */"
7910 # Compute $ac_file's index in $config_headers.
7912 for _am_header in $config_headers :; do
7914 $ac_file | $ac_file:* )
7917 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7920 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
7921 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7922 X$ac_file : 'X\(//\)[^/]' \| \
7923 X$ac_file : 'X\(//\)$' \| \
7924 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
7926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7942 s/.*/./; q'`/stamp-h$_am_stamp_count
7945 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7946 echo "$as_me: executing $ac_file commands" >&6;}
7951 case $ac_file$ac_mode in
7952 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7953 # Strip MF so we end up with the name of the file.
7954 mf=`echo "$mf" | sed -e 's/:.*$//'`
7955 # Check whether this is an Automake generated Makefile or not.
7956 # We used to match only the files named `Makefile.in', but
7957 # some people rename them; so instead we look at the file content.
7958 # Grep'ing the first line is not enough: some people post-process
7959 # each Makefile.in and add a new line on top of each file to say so.
7960 # So let's grep whole file.
7961 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7962 dirpart=`$as_dirname -- "$mf" ||
7963 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7964 X"$mf" : 'X\(//\)[^/]' \| \
7965 X"$mf" : 'X\(//\)$' \| \
7966 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7988 # Extract the definition of DEPDIR, am__include, and am__quote
7989 # from the Makefile without running `make'.
7990 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7991 test -z "$DEPDIR" && continue
7992 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7993 test -z "am__include" && continue
7994 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7995 # When using ansi2knr, U may be empty or an underscore; expand it
7996 U=`sed -n 's/^U = //p' < "$mf"`
7997 # Find all dependency output files, they are included files with
7998 # $(DEPDIR) in their names. We invoke sed twice because it is the
7999 # simplest approach to changing $(DEPDIR) to its actual value in the
8001 for file in `sed -n "
8002 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8003 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8004 # Make sure the directory exists.
8005 test -f "$dirpart/$file" && continue
8006 fdir=`$as_dirname -- "$file" ||
8007 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8008 X"$file" : 'X\(//\)[^/]' \| \
8009 X"$file" : 'X\(//\)$' \| \
8010 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8029 { as_dir=$dirpart/$fdir
8031 -*) as_dir=./$as_dir;;
8033 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8037 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8038 *) as_qdir=$as_dir;;
8040 as_dirs="'$as_qdir' $as_dirs"
8041 as_dir=`$as_dirname -- "$as_dir" ||
8042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8043 X"$as_dir" : 'X\(//\)[^/]' \| \
8044 X"$as_dir" : 'X\(//\)$' \| \
8045 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8064 test -d "$as_dir" && break
8066 test -z "$as_dirs" || eval "mkdir $as_dirs"
8067 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8068 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8069 { (exit 1); exit 1; }; }; }
8070 # echo "creating $dirpart/$file"
8071 echo '# dummy' > "$dirpart/$file"
8080 { (exit 0); exit 0; }
8082 chmod +x $CONFIG_STATUS
8083 ac_clean_files=$ac_clean_files_save
8086 # configure is writing to config.log, and then calls config.status.
8087 # config.status does its own redirection, appending to config.log.
8088 # Unfortunately, on DOS this fails, as config.log is still kept open
8089 # by configure, so config.status won't be able to write to it; its
8090 # output is simply discarded. So we exec the FD to /dev/null,
8091 # effectively closing config.log, so it can be properly (re)opened and
8092 # appended to by config.status. When coming back to configure, we
8093 # need to make the FD available again.
8094 if test "$no_create" != yes; then
8096 ac_config_status_args=
8097 test "$silent" = yes &&
8098 ac_config_status_args="$ac_config_status_args --quiet"
8100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8103 # would make configure fail if this is the last instruction.
8104 $ac_cs_success || { (exit 1); exit 1; }