Context sensitive patches
[texmacs.git] / src / configure
blob9bff27d2c89d6b3ae0924ca478ceed8bb6cb81de
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
615 ac_subst_vars='SHELL
616 PATH_SEPARATOR
617 PACKAGE_NAME
618 PACKAGE_TARNAME
619 PACKAGE_VERSION
620 PACKAGE_STRING
621 PACKAGE_BUGREPORT
622 exec_prefix
623 prefix
624 program_transform_name
625 bindir
626 sbindir
627 libexecdir
628 datarootdir
629 datadir
630 sysconfdir
631 sharedstatedir
632 localstatedir
633 includedir
634 oldincludedir
635 docdir
636 infodir
637 htmldir
638 dvidir
639 pdfdir
640 psdir
641 libdir
642 localedir
643 mandir
644 DEFS
645 ECHO_C
646 ECHO_N
647 ECHO_T
648 LIBS
649 build_alias
650 host_alias
651 target_alias
652 PACKAGE
653 DEVEL_VERSION
654 DEVEL_RELEASE
655 STABLE_VERSION
656 STABLE_RELEASE
658 CFLAGS
659 LDFLAGS
660 CPPFLAGS
661 ac_ct_CC
662 EXEEXT
663 OBJEXT
665 CXXFLAGS
666 ac_ct_CXX
667 GUILE_CFLAGS
668 GUILE_LDFLAGS
669 CONFIG_GUILE_SERIAL
670 CXXCPP
671 GREP
672 EGREP
673 XMKMF
674 X_CFLAGS
675 X_PRE_LIBS
676 X_LIBS
677 X_EXTRA_LIBS
678 CONFIG_BDL
680 ICONV_CFLAGS
681 ICONV_LDFLAGS
682 FREETYPE_CFLAGS
683 FREETYPE_LDFLAGS
684 CAIRO_CFLAGS
685 CAIRO_LDFLAGS
686 IMLIB2_CFLAGS
687 IMLIB2_LDFLAGS
688 AXEL_CFLAGS
689 AXEL_LDFLAGS
690 build
691 build_cpu
692 build_vendor
693 build_os
694 host
695 host_cpu
696 host_vendor
697 host_os
698 CONFIG_EXPERIMENTAL
699 CONFIG_MACOS
700 QMAKE
704 QT_PATH
705 TMPDIR
706 QT_VERSION_MAJOR
707 QT_DEFINES
708 QT_CFLAGS
709 QT_CXXFLAGS
710 QT_INCPATH
711 QT_CPPFLAGS
712 QT_LFLAGS
713 QT_LDFLAGS
714 QT_LIBS
715 X11_CFLAGS
716 X11_LDFLAGS
717 COCOA_CFLAGS
718 COCOA_LDFLAGS
719 CONFIG_X11
720 CONFIG_COCOA
721 CONFIG_QT
722 CONFIG_GUI
723 CONFIG_CXXDIALECT
724 CONFIG_OS
725 CONFIG_OS_SUFFIX
726 CONFIG_CXXWARNING
727 CONFIG_CXXTEMPLATE
728 CONFIG_CXXOPTIMIZE
729 CONFIG_CXXDEBUG
730 CONFIG_BFLAGS
731 CONFIG_BSTATIC
732 CONFIG_BSHARED
733 CONFIG_BPATH
734 CONFIG_WORD_LENGTH
735 CONFIG_WORD_LENGTH_INC
736 CONFIG_WORD_MASK
737 CONFIG_MAX_FAST
738 CONFIG_CXXFLAGS
739 CONFIG_STD_SETENV
740 CONFIG_SO
741 CONFIG_LIB_PATH
742 CONFIG_STRIP
743 CONFIG_CHMOD
744 tmorig
745 tmdir
746 tmsrc
747 tmbin
748 tmdata
749 tmtgz
750 tmrpm
751 tmstgz
752 tmsrpm
753 tmwin
754 LIBOBJS
755 LTLIBOBJS'
756 ac_subst_files=''
757 ac_precious_vars='build_alias
758 host_alias
759 target_alias
761 CFLAGS
762 LDFLAGS
763 LIBS
764 CPPFLAGS
766 CXXFLAGS
768 CXXCPP
769 XMKMF
771 TMPDIR'
774 # Initialize some variables set by options.
775 ac_init_help=
776 ac_init_version=false
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
820 ac_prev=
821 ac_dashdash=
822 for ac_option
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
831 case $ac_option in
832 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *) ac_optarg=yes ;;
834 esac
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
840 ac_dashdash=yes ;;
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
859 --config-cache | -C)
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_$ac_feature=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
893 -enable-* | --enable-*)
894 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
897 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
898 { (exit 1); exit 1; }; }
899 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
900 eval enable_$ac_feature=\$ac_optarg ;;
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
913 with_gas=yes ;;
915 -help | --help | --hel | --he | -h)
916 ac_init_help=long ;;
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 ac_prev=htmldir ;;
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 | --ht=*)
931 htmldir=$ac_optarg ;;
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 ac_prev=infodir ;;
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
945 -libdir | --libdir | --libdi | --libd)
946 ac_prev=libdir ;;
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 libdir=$ac_optarg ;;
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
957 -localedir | --localedir | --localedi | --localed | --locale)
958 ac_prev=localedir ;;
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 ac_prev=mandir ;;
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 mandir=$ac_optarg ;;
974 -nfp | --nfp | --nf)
975 # Obsolete; use --without-fp.
976 with_fp=no ;;
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
980 no_create=yes ;;
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 no_recursion=yes ;;
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 ac_prev=prefix ;;
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 prefix=$ac_optarg ;;
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 ac_prev=pdfdir ;;
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1036 -psdir | --psdir | --psdi | --psd | --ps)
1037 ac_prev=psdir ;;
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 psdir=$ac_optarg ;;
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 silent=yes ;;
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 ac_prev=sbindir ;;
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 | --sbi=* | --sb=*)
1049 sbindir=$ac_optarg ;;
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1054 | --sha | --sh)
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059 | --sha=* | --sh=*)
1060 sharedstatedir=$ac_optarg ;;
1062 -site | --site | --sit)
1063 ac_prev=site ;;
1064 -site=* | --site=* | --sit=*)
1065 site=$ac_optarg ;;
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068 ac_prev=srcdir ;;
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 verbose=yes ;;
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1090 -with-* | --with-*)
1091 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid package name: $ac_package" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1097 eval with_$ac_package=\$ac_optarg ;;
1099 -without-* | --without-*)
1100 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid package name: $ac_package" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1106 eval with_$ac_package=no ;;
1108 --x)
1109 # Obsolete; use --with-x.
1110 with_x=yes ;;
1112 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1113 | --x-incl | --x-inc | --x-in | --x-i)
1114 ac_prev=x_includes ;;
1115 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1116 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1117 x_includes=$ac_optarg ;;
1119 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1120 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1121 ac_prev=x_libraries ;;
1122 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1123 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1124 x_libraries=$ac_optarg ;;
1126 -*) { echo "$as_me: error: unrecognized option: $ac_option
1127 Try \`$0 --help' for more information." >&2
1128 { (exit 1); exit 1; }; }
1131 *=*)
1132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1135 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1136 { (exit 1); exit 1; }; }
1137 eval $ac_envvar=\$ac_optarg
1138 export $ac_envvar ;;
1141 # FIXME: should be removed in autoconf 3.0.
1142 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1143 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1145 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1148 esac
1149 done
1151 if test -n "$ac_prev"; then
1152 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1153 { echo "$as_me: error: missing argument to $ac_option" >&2
1154 { (exit 1); exit 1; }; }
1157 # Be sure to have absolute directory names.
1158 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1159 datadir sysconfdir sharedstatedir localstatedir includedir \
1160 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1161 libdir localedir mandir
1163 eval ac_val=\$$ac_var
1164 case $ac_val in
1165 [\\/$]* | ?:[\\/]* ) continue;;
1166 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1167 esac
1168 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1169 { (exit 1); exit 1; }; }
1170 done
1172 # There might be people who depend on the old broken behavior: `$host'
1173 # used to hold the argument of --host etc.
1174 # FIXME: To remove some day.
1175 build=$build_alias
1176 host=$host_alias
1177 target=$target_alias
1179 # FIXME: To remove some day.
1180 if test "x$host_alias" != x; then
1181 if test "x$build_alias" = x; then
1182 cross_compiling=maybe
1183 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1184 If a cross compiler is detected then cross compile mode will be used." >&2
1185 elif test "x$build_alias" != "x$host_alias"; then
1186 cross_compiling=yes
1190 ac_tool_prefix=
1191 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1193 test "$silent" = yes && exec 6>/dev/null
1196 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1197 ac_ls_di=`ls -di .` &&
1198 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1199 { echo "$as_me: error: Working directory cannot be determined" >&2
1200 { (exit 1); exit 1; }; }
1201 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1202 { echo "$as_me: error: pwd does not report name of working directory" >&2
1203 { (exit 1); exit 1; }; }
1206 # Find the source files, if location was not specified.
1207 if test -z "$srcdir"; then
1208 ac_srcdir_defaulted=yes
1209 # Try the directory containing this script, then the parent directory.
1210 ac_confdir=`$as_dirname -- "$0" ||
1211 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212 X"$0" : 'X\(//\)[^/]' \| \
1213 X"$0" : 'X\(//\)$' \| \
1214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1215 echo X"$0" |
1216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217 s//\1/
1220 /^X\(\/\/\)[^/].*/{
1221 s//\1/
1224 /^X\(\/\/\)$/{
1225 s//\1/
1228 /^X\(\/\).*/{
1229 s//\1/
1232 s/.*/./; q'`
1233 srcdir=$ac_confdir
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1235 srcdir=..
1237 else
1238 ac_srcdir_defaulted=no
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1242 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1243 { (exit 1); exit 1; }; }
1245 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246 ac_abs_confdir=`(
1247 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1248 { (exit 1); exit 1; }; }
1249 pwd)`
1250 # When building in place, set srcdir=.
1251 if test "$ac_abs_confdir" = "$ac_pwd"; then
1252 srcdir=.
1254 # Remove unnecessary trailing slashes from srcdir.
1255 # Double slashes in file names in object file debugging info
1256 # mess up M-x gdb in Emacs.
1257 case $srcdir in
1258 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1259 esac
1260 for ac_var in $ac_precious_vars; do
1261 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1262 eval ac_env_${ac_var}_value=\$${ac_var}
1263 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1265 done
1268 # Report the --help message.
1270 if test "$ac_init_help" = "long"; then
1271 # Omit some internal or obsolete options to make the list less imposing.
1272 # This message is too long to be a string in the A/UX 3.1 sh.
1273 cat <<_ACEOF
1274 \`configure' configures this package to adapt to many kinds of systems.
1276 Usage: $0 [OPTION]... [VAR=VALUE]...
1278 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1279 VAR=VALUE. See below for descriptions of some of the useful variables.
1281 Defaults for the options are specified in brackets.
1283 Configuration:
1284 -h, --help display this help and exit
1285 --help=short display options specific to this package
1286 --help=recursive display the short help of all the included packages
1287 -V, --version display version information and exit
1288 -q, --quiet, --silent do not print \`checking...' messages
1289 --cache-file=FILE cache test results in FILE [disabled]
1290 -C, --config-cache alias for \`--cache-file=config.cache'
1291 -n, --no-create do not create output files
1292 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1294 Installation directories:
1295 --prefix=PREFIX install architecture-independent files in PREFIX
1296 [$ac_default_prefix]
1297 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1298 [PREFIX]
1300 By default, \`make install' will install all the files in
1301 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1302 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1303 for instance \`--prefix=\$HOME'.
1305 For better control, use the options below.
1307 Fine tuning of the installation directories:
1308 --bindir=DIR user executables [EPREFIX/bin]
1309 --sbindir=DIR system admin executables [EPREFIX/sbin]
1310 --libexecdir=DIR program executables [EPREFIX/libexec]
1311 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1312 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1313 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1314 --libdir=DIR object code libraries [EPREFIX/lib]
1315 --includedir=DIR C header files [PREFIX/include]
1316 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1317 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1318 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1319 --infodir=DIR info documentation [DATAROOTDIR/info]
1320 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1321 --mandir=DIR man documentation [DATAROOTDIR/man]
1322 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1323 --htmldir=DIR html documentation [DOCDIR]
1324 --dvidir=DIR dvi documentation [DOCDIR]
1325 --pdfdir=DIR pdf documentation [DOCDIR]
1326 --psdir=DIR ps documentation [DOCDIR]
1327 _ACEOF
1329 cat <<\_ACEOF
1331 X features:
1332 --x-includes=DIR X include files are in DIR
1333 --x-libraries=DIR X library files are in DIR
1335 System types:
1336 --build=BUILD configure for building on BUILD [guessed]
1337 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1338 _ACEOF
1341 if test -n "$ac_init_help"; then
1343 cat <<\_ACEOF
1345 Optional Features:
1346 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1347 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1348 --disable-fastalloc omit fast allocator for small objects
1349 --enable-experimental support new style rewriting code
1350 --enable-macosx-extensions support new style rewriting code
1351 --enable-qt replace X11 by Qt interface
1352 --enable-cocoa replace X11 by Cocoa interface
1353 --enable-debug=ARG install a debugging enable executable -ggdb
1354 --enable-assert exit on failed assertions in code
1355 --enable-warnings print warning messages during compilation
1356 --enable-optimize=ARG compile with optimizations guessed
1358 Optional Packages:
1359 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1360 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1361 --with-x use the X Window System
1362 --with-iconv=DIR where to find iconv system
1363 --with-freetype=ARG with freetype support ARG=linked
1364 --with-cairo=ARG with cairo support ARG=no
1365 --with-imlib2=ARG with imlib2 support ARG=no
1366 --with-axel=ARG with axel support ARG=no
1367 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CXX C++ compiler command
1378 CXXFLAGS C++ compiler flags
1379 CXXCPP C++ preprocessor
1380 XMKMF Path to xmkmf, Makefile generator for X Window System
1381 CPP C preprocessor
1382 TMPDIR A temporary directory with write access [/tmp]
1384 Use these variables to override the choices made by `configure' or to help
1385 it to find libraries and programs with nonstandard names/locations.
1387 _ACEOF
1388 ac_status=$?
1391 if test "$ac_init_help" = "recursive"; then
1392 # If there are subdirs, report their specific --help.
1393 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1394 test -d "$ac_dir" || continue
1395 ac_builddir=.
1397 case "$ac_dir" in
1398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1401 # A ".." for each directory in $ac_dir_suffix.
1402 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 esac ;;
1407 esac
1408 ac_abs_top_builddir=$ac_pwd
1409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410 # for backward compatibility:
1411 ac_top_builddir=$ac_top_build_prefix
1413 case $srcdir in
1414 .) # We are building in place.
1415 ac_srcdir=.
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
1419 ac_srcdir=$srcdir$ac_dir_suffix;
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1422 *) # Relative name.
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426 esac
1427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1437 else
1438 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 fi || ac_status=$?
1440 cd "$ac_pwd" || { ac_status=$?; break; }
1441 done
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1446 cat <<\_ACEOF
1447 configure
1448 generated by GNU Autoconf 2.61
1450 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1451 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1452 This configure script is free software; the Free Software Foundation
1453 gives unlimited permission to copy, distribute and modify it.
1454 _ACEOF
1455 exit
1457 cat >config.log <<_ACEOF
1458 This file contains any messages produced by compilers while
1459 running configure, to aid debugging if configure makes a mistake.
1461 It was created by $as_me, which was
1462 generated by GNU Autoconf 2.61. Invocation command line was
1464 $ $0 $@
1466 _ACEOF
1467 exec 5>>config.log
1469 cat <<_ASUNAME
1470 ## --------- ##
1471 ## Platform. ##
1472 ## --------- ##
1474 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1475 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1476 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1477 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1478 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1480 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1481 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1483 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1484 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1485 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1486 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1487 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1488 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1489 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1491 _ASUNAME
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 echo "PATH: $as_dir"
1499 done
1500 IFS=$as_save_IFS
1502 } >&5
1504 cat >&5 <<_ACEOF
1507 ## ----------- ##
1508 ## Core tests. ##
1509 ## ----------- ##
1511 _ACEOF
1514 # Keep a trace of the command line.
1515 # Strip out --no-create and --no-recursion so they do not pile up.
1516 # Strip out --silent because we don't want to record it for future runs.
1517 # Also quote any args containing shell meta-characters.
1518 # Make two passes to allow for proper duplicate-argument suppression.
1519 ac_configure_args=
1520 ac_configure_args0=
1521 ac_configure_args1=
1522 ac_must_keep_next=false
1523 for ac_pass in 1 2
1525 for ac_arg
1527 case $ac_arg in
1528 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1530 | -silent | --silent | --silen | --sile | --sil)
1531 continue ;;
1532 *\'*)
1533 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1534 esac
1535 case $ac_pass in
1536 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1538 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1539 if test $ac_must_keep_next = true; then
1540 ac_must_keep_next=false # Got value, back to normal.
1541 else
1542 case $ac_arg in
1543 *=* | --config-cache | -C | -disable-* | --disable-* \
1544 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1545 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1546 | -with-* | --with-* | -without-* | --without-* | --x)
1547 case "$ac_configure_args0 " in
1548 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1549 esac
1551 -* ) ac_must_keep_next=true ;;
1552 esac
1554 ac_configure_args="$ac_configure_args '$ac_arg'"
1556 esac
1557 done
1558 done
1559 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1560 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1562 # When interrupted or exit'd, cleanup temporary files, and complete
1563 # config.log. We remove comments because anyway the quotes in there
1564 # would cause problems or look ugly.
1565 # WARNING: Use '\'' to represent an apostrophe within the trap.
1566 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1567 trap 'exit_status=$?
1568 # Save into config.log some information that might help in debugging.
1570 echo
1572 cat <<\_ASBOX
1573 ## ---------------- ##
1574 ## Cache variables. ##
1575 ## ---------------- ##
1576 _ASBOX
1577 echo
1578 # The following way of writing the cache mishandles newlines in values,
1580 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1581 eval ac_val=\$$ac_var
1582 case $ac_val in #(
1583 *${as_nl}*)
1584 case $ac_var in #(
1585 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1586 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1587 esac
1588 case $ac_var in #(
1589 _ | IFS | as_nl) ;; #(
1590 *) $as_unset $ac_var ;;
1591 esac ;;
1592 esac
1593 done
1594 (set) 2>&1 |
1595 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1596 *${as_nl}ac_space=\ *)
1597 sed -n \
1598 "s/'\''/'\''\\\\'\'''\''/g;
1599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1600 ;; #(
1602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1604 esac |
1605 sort
1607 echo
1609 cat <<\_ASBOX
1610 ## ----------------- ##
1611 ## Output variables. ##
1612 ## ----------------- ##
1613 _ASBOX
1614 echo
1615 for ac_var in $ac_subst_vars
1617 eval ac_val=\$$ac_var
1618 case $ac_val in
1619 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1620 esac
1621 echo "$ac_var='\''$ac_val'\''"
1622 done | sort
1623 echo
1625 if test -n "$ac_subst_files"; then
1626 cat <<\_ASBOX
1627 ## ------------------- ##
1628 ## File substitutions. ##
1629 ## ------------------- ##
1630 _ASBOX
1631 echo
1632 for ac_var in $ac_subst_files
1634 eval ac_val=\$$ac_var
1635 case $ac_val in
1636 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1637 esac
1638 echo "$ac_var='\''$ac_val'\''"
1639 done | sort
1640 echo
1643 if test -s confdefs.h; then
1644 cat <<\_ASBOX
1645 ## ----------- ##
1646 ## confdefs.h. ##
1647 ## ----------- ##
1648 _ASBOX
1649 echo
1650 cat confdefs.h
1651 echo
1653 test "$ac_signal" != 0 &&
1654 echo "$as_me: caught signal $ac_signal"
1655 echo "$as_me: exit $exit_status"
1656 } >&5
1657 rm -f core *.core core.conftest.* &&
1658 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1659 exit $exit_status
1661 for ac_signal in 1 2 13 15; do
1662 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1663 done
1664 ac_signal=0
1666 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1667 rm -f -r conftest* confdefs.h
1669 # Predefined preprocessor variables.
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_NAME "$PACKAGE_NAME"
1673 _ACEOF
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1678 _ACEOF
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1683 _ACEOF
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_STRING "$PACKAGE_STRING"
1688 _ACEOF
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1693 _ACEOF
1696 # Let the site file select an alternate cache file if it wants to.
1697 # Prefer explicitly selected file to automatically selected ones.
1698 if test -n "$CONFIG_SITE"; then
1699 set x "$CONFIG_SITE"
1700 elif test "x$prefix" != xNONE; then
1701 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1702 else
1703 set x "$ac_default_prefix/share/config.site" \
1704 "$ac_default_prefix/etc/config.site"
1706 shift
1707 for ac_site_file
1709 if test -r "$ac_site_file"; then
1710 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1711 echo "$as_me: loading site script $ac_site_file" >&6;}
1712 sed 's/^/| /' "$ac_site_file" >&5
1713 . "$ac_site_file"
1715 done
1717 if test -r "$cache_file"; then
1718 # Some versions of bash will fail to source /dev/null (special
1719 # files actually), so we avoid doing that.
1720 if test -f "$cache_file"; then
1721 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1722 echo "$as_me: loading cache $cache_file" >&6;}
1723 case $cache_file in
1724 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1725 *) . "./$cache_file";;
1726 esac
1728 else
1729 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1730 echo "$as_me: creating cache $cache_file" >&6;}
1731 >$cache_file
1734 # Check that the precious variables saved in the cache have kept the same
1735 # value.
1736 ac_cache_corrupted=false
1737 for ac_var in $ac_precious_vars; do
1738 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1739 eval ac_new_set=\$ac_env_${ac_var}_set
1740 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1741 eval ac_new_val=\$ac_env_${ac_var}_value
1742 case $ac_old_set,$ac_new_set in
1743 set,)
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1745 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1747 ,set)
1748 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1749 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1750 ac_cache_corrupted=: ;;
1751 ,);;
1753 if test "x$ac_old_val" != "x$ac_new_val"; then
1754 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1755 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1756 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1757 echo "$as_me: former value: $ac_old_val" >&2;}
1758 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1759 echo "$as_me: current value: $ac_new_val" >&2;}
1760 ac_cache_corrupted=:
1761 fi;;
1762 esac
1763 # Pass precious variables to config.status.
1764 if test "$ac_new_set" = set; then
1765 case $ac_new_val in
1766 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1767 *) ac_arg=$ac_var=$ac_new_val ;;
1768 esac
1769 case " $ac_configure_args " in
1770 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1771 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1772 esac
1774 done
1775 if $ac_cache_corrupted; then
1776 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1777 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1778 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1779 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1780 { (exit 1); exit 1; }; }
1799 ac_ext=c
1800 ac_cpp='$CPP $CPPFLAGS'
1801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1809 PACKAGE="TeXmacs"
1810 DEVEL_VERSION="1.0.7.2"
1811 DEVEL_RELEASE="1"
1812 STABLE_VERSION="1.0.7"
1813 STABLE_RELEASE="1"
1814 WINDOWS_VERSION="1.0.5"
1815 WINDOWS_RELEASE="1"
1822 #--------------------------------------------------------------------
1823 # Checks for C++ compiler
1824 #--------------------------------------------------------------------
1826 ac_ext=c
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 if test -n "$ac_tool_prefix"; then
1832 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1833 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1849 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1853 done
1854 done
1855 IFS=$as_save_IFS
1859 CC=$ac_cv_prog_CC
1860 if test -n "$CC"; then
1861 { echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6; }
1863 else
1864 { echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6; }
1870 if test -z "$ac_cv_prog_CC"; then
1871 ac_ct_CC=$CC
1872 # Extract the first word of "gcc", so it can be a program name with args.
1873 set dummy gcc; ac_word=$2
1874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test -n "$ac_ct_CC"; then
1880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1889 ac_cv_prog_ac_ct_CC="gcc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1893 done
1894 done
1895 IFS=$as_save_IFS
1899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900 if test -n "$ac_ct_CC"; then
1901 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902 echo "${ECHO_T}$ac_ct_CC" >&6; }
1903 else
1904 { echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6; }
1908 if test "x$ac_ct_CC" = x; then
1909 CC=""
1910 else
1911 case $cross_compiling:$ac_tool_warned in
1912 yes:)
1913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1914 whose name does not start with the host triplet. If you think this
1915 configuration is useful to you, please write to autoconf@gnu.org." >&5
1916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1917 whose name does not start with the host triplet. If you think this
1918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1919 ac_tool_warned=yes ;;
1920 esac
1921 CC=$ac_ct_CC
1923 else
1924 CC="$ac_cv_prog_CC"
1927 if test -z "$CC"; then
1928 if test -n "$ac_tool_prefix"; then
1929 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1930 set dummy ${ac_tool_prefix}cc; ac_word=$2
1931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1946 ac_cv_prog_CC="${ac_tool_prefix}cc"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 break 2
1950 done
1951 done
1952 IFS=$as_save_IFS
1956 CC=$ac_cv_prog_CC
1957 if test -n "$CC"; then
1958 { echo "$as_me:$LINENO: result: $CC" >&5
1959 echo "${ECHO_T}$CC" >&6; }
1960 else
1961 { echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6; }
1968 if test -z "$CC"; then
1969 # Extract the first word of "cc", so it can be a program name with args.
1970 set dummy cc; ac_word=$2
1971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1978 else
1979 ac_prog_rejected=no
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1987 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988 ac_prog_rejected=yes
1989 continue
1991 ac_cv_prog_CC="cc"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 break 2
1995 done
1996 done
1997 IFS=$as_save_IFS
1999 if test $ac_prog_rejected = yes; then
2000 # We found a bogon in the path, so make sure we never use it.
2001 set dummy $ac_cv_prog_CC
2002 shift
2003 if test $# != 0; then
2004 # We chose a different compiler from the bogus one.
2005 # However, it has the same basename, so the bogon will be chosen
2006 # first if we set CC to just the basename; use the full file name.
2007 shift
2008 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2013 CC=$ac_cv_prog_CC
2014 if test -n "$CC"; then
2015 { echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6; }
2017 else
2018 { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2024 if test -z "$CC"; then
2025 if test -n "$ac_tool_prefix"; then
2026 for ac_prog in cl.exe
2028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 if test -n "$CC"; then
2036 ac_cv_prog_CC="$CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2045 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2049 done
2050 done
2051 IFS=$as_save_IFS
2055 CC=$ac_cv_prog_CC
2056 if test -n "$CC"; then
2057 { echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6; }
2059 else
2060 { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2065 test -n "$CC" && break
2066 done
2068 if test -z "$CC"; then
2069 ac_ct_CC=$CC
2070 for ac_prog in cl.exe
2072 # Extract the first word of "$ac_prog", so it can be a program name with args.
2073 set dummy $ac_prog; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_prog_ac_ct_CC="$ac_prog"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2093 done
2094 done
2095 IFS=$as_save_IFS
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6; }
2103 else
2104 { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2109 test -n "$ac_ct_CC" && break
2110 done
2112 if test "x$ac_ct_CC" = x; then
2113 CC=""
2114 else
2115 case $cross_compiling:$ac_tool_warned in
2116 yes:)
2117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet. If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&5
2120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2121 whose name does not start with the host triplet. If you think this
2122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2123 ac_tool_warned=yes ;;
2124 esac
2125 CC=$ac_ct_CC
2132 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2138 # Provide some information about the compiler.
2139 echo "$as_me:$LINENO: checking for C compiler version" >&5
2140 ac_compiler=`set X $ac_compile; echo $2`
2141 { (ac_try="$ac_compiler --version >&5"
2142 case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2147 (eval "$ac_compiler --version >&5") 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2151 { (ac_try="$ac_compiler -v >&5"
2152 case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2155 esac
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157 (eval "$ac_compiler -v >&5") 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }
2161 { (ac_try="$ac_compiler -V >&5"
2162 case "(($ac_try" in
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2165 esac
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167 (eval "$ac_compiler -V >&5") 2>&5
2168 ac_status=$?
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }
2172 cat >conftest.$ac_ext <<_ACEOF
2173 /* confdefs.h. */
2174 _ACEOF
2175 cat confdefs.h >>conftest.$ac_ext
2176 cat >>conftest.$ac_ext <<_ACEOF
2177 /* end confdefs.h. */
2180 main ()
2184 return 0;
2186 _ACEOF
2187 ac_clean_files_save=$ac_clean_files
2188 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2189 # Try to create an executable without -o first, disregard a.out.
2190 # It will help us diagnose broken compilers, and finding out an intuition
2191 # of exeext.
2192 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2193 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2194 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2196 # List of possible output files, starting from the most likely.
2197 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2198 # only as a last resort. b.out is created by i960 compilers.
2199 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2201 # The IRIX 6 linker writes into existing files which may not be
2202 # executable, retaining their permissions. Remove them first so a
2203 # subsequent execution test works.
2204 ac_rmfiles=
2205 for ac_file in $ac_files
2207 case $ac_file in
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2209 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2210 esac
2211 done
2212 rm -f $ac_rmfiles
2214 if { (ac_try="$ac_link_default"
2215 case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218 esac
2219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2220 (eval "$ac_link_default") 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; then
2224 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2225 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2226 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2227 # so that the user can short-circuit this test for compilers unknown to
2228 # Autoconf.
2229 for ac_file in $ac_files ''
2231 test -f "$ac_file" || continue
2232 case $ac_file in
2233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2235 [ab].out )
2236 # We found the default executable, but exeext='' is most
2237 # certainly right.
2238 break;;
2239 *.* )
2240 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2241 then :; else
2242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244 # We set ac_cv_exeext here because the later test for it is not
2245 # safe: cross compilers may not add the suffix if given an `-o'
2246 # argument, so we may need to know it at that point already.
2247 # Even if this section looks crufty: it has the advantage of
2248 # actually working.
2249 break;;
2251 break;;
2252 esac
2253 done
2254 test "$ac_cv_exeext" = no && ac_cv_exeext=
2256 else
2257 ac_file=''
2260 { echo "$as_me:$LINENO: result: $ac_file" >&5
2261 echo "${ECHO_T}$ac_file" >&6; }
2262 if test -z "$ac_file"; then
2263 echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2266 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: C compiler cannot create executables
2269 See \`config.log' for more details." >&2;}
2270 { (exit 77); exit 77; }; }
2273 ac_exeext=$ac_cv_exeext
2275 # Check that the compiler produces executables we can run. If not, either
2276 # the compiler is broken, or we cross compile.
2277 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2278 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2279 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2280 # If not cross compiling, check that we can run a simple program.
2281 if test "$cross_compiling" != yes; then
2282 if { ac_try='./$ac_file'
2283 { (case "(($ac_try" in
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2286 esac
2287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2288 (eval "$ac_try") 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 cross_compiling=no
2293 else
2294 if test "$cross_compiling" = maybe; then
2295 cross_compiling=yes
2296 else
2297 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'.
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: cannot run C compiled programs.
2301 If you meant to cross compile, use \`--host'.
2302 See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2307 { echo "$as_me:$LINENO: result: yes" >&5
2308 echo "${ECHO_T}yes" >&6; }
2310 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2311 ac_clean_files=$ac_clean_files_save
2312 # Check that the compiler produces executables we can run. If not, either
2313 # the compiler is broken, or we cross compile.
2314 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2315 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2316 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2317 echo "${ECHO_T}$cross_compiling" >&6; }
2319 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2320 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2321 if { (ac_try="$ac_link"
2322 case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2325 esac
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_link") 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; then
2331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2333 # work properly (i.e., refer to `conftest.exe'), while it won't with
2334 # `rm'.
2335 for ac_file in conftest.exe conftest conftest.*; do
2336 test -f "$ac_file" || continue
2337 case $ac_file in
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340 break;;
2341 * ) break;;
2342 esac
2343 done
2344 else
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest$ac_cv_exeext
2353 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2354 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2356 rm -f conftest.$ac_ext
2357 EXEEXT=$ac_cv_exeext
2358 ac_exeext=$EXEEXT
2359 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2360 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2361 if test "${ac_cv_objext+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h. */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2372 main ()
2376 return 0;
2378 _ACEOF
2379 rm -f conftest.o conftest.obj
2380 if { (ac_try="$ac_compile"
2381 case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_compile") 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; then
2390 for ac_file in conftest.o conftest.obj conftest.*; do
2391 test -f "$ac_file" || continue;
2392 case $ac_file in
2393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2394 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2395 break;;
2396 esac
2397 done
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2405 See \`config.log' for more details." >&2;}
2406 { (exit 1); exit 1; }; }
2409 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2411 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2412 echo "${ECHO_T}$ac_cv_objext" >&6; }
2413 OBJEXT=$ac_cv_objext
2414 ac_objext=$OBJEXT
2415 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2416 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2417 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420 cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h. */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2428 main ()
2430 #ifndef __GNUC__
2431 choke me
2432 #endif
2435 return 0;
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2440 case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest.$ac_objext; then
2455 ac_compiler_gnu=yes
2456 else
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2460 ac_compiler_gnu=no
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2467 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2469 GCC=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS=${CFLAGS+set}
2471 ac_save_CFLAGS=$CFLAGS
2472 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2473 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_cc_g+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 ac_save_c_werror_flag=$ac_c_werror_flag
2478 ac_c_werror_flag=yes
2479 ac_cv_prog_cc_g=no
2480 CFLAGS="-g"
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2489 main ()
2493 return 0;
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2498 case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } && {
2510 test -z "$ac_c_werror_flag" ||
2511 test ! -s conftest.err
2512 } && test -s conftest.$ac_objext; then
2513 ac_cv_prog_cc_g=yes
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2518 CFLAGS=""
2519 cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h. */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2527 main ()
2531 return 0;
2533 _ACEOF
2534 rm -f conftest.$ac_objext
2535 if { (ac_try="$ac_compile"
2536 case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_compile") 2>conftest.er1
2542 ac_status=$?
2543 grep -v '^ *+' conftest.er1 >conftest.err
2544 rm -f conftest.er1
2545 cat conftest.err >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } && {
2548 test -z "$ac_c_werror_flag" ||
2549 test ! -s conftest.err
2550 } && test -s conftest.$ac_objext; then
2552 else
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2556 ac_c_werror_flag=$ac_save_c_werror_flag
2557 CFLAGS="-g"
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2566 main ()
2570 return 0;
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (ac_try="$ac_compile"
2575 case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compile") 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } && {
2587 test -z "$ac_c_werror_flag" ||
2588 test ! -s conftest.err
2589 } && test -s conftest.$ac_objext; then
2590 ac_cv_prog_cc_g=yes
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 ac_c_werror_flag=$ac_save_c_werror_flag
2607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2608 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2609 if test "$ac_test_CFLAGS" = set; then
2610 CFLAGS=$ac_save_CFLAGS
2611 elif test $ac_cv_prog_cc_g = yes; then
2612 if test "$GCC" = yes; then
2613 CFLAGS="-g -O2"
2614 else
2615 CFLAGS="-g"
2617 else
2618 if test "$GCC" = yes; then
2619 CFLAGS="-O2"
2620 else
2621 CFLAGS=
2624 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2625 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2626 if test "${ac_cv_prog_cc_c89+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629 ac_cv_prog_cc_c89=no
2630 ac_save_CC=$CC
2631 cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h. */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2637 #include <stdarg.h>
2638 #include <stdio.h>
2639 #include <sys/types.h>
2640 #include <sys/stat.h>
2641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2642 struct buf { int x; };
2643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2644 static char *e (p, i)
2645 char **p;
2646 int i;
2648 return p[i];
2650 static char *f (char * (*g) (char **, int), char **p, ...)
2652 char *s;
2653 va_list v;
2654 va_start (v,p);
2655 s = g (p, va_arg (v,int));
2656 va_end (v);
2657 return s;
2660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2661 function prototypes and stuff, but not '\xHH' hex character constants.
2662 These don't provoke an error unfortunately, instead are silently treated
2663 as 'x'. The following induces an error, until -std is added to get
2664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2665 array size at least. It's necessary to write '\x00'==0 to get something
2666 that's true only with -std. */
2667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2670 inside strings and character constants. */
2671 #define FOO(x) 'x'
2672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2674 int test (int i, double x);
2675 struct s1 {int (*f) (int a);};
2676 struct s2 {int (*f) (double a);};
2677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2678 int argc;
2679 char **argv;
2681 main ()
2683 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2685 return 0;
2687 _ACEOF
2688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2689 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2691 CC="$ac_save_CC $ac_arg"
2692 rm -f conftest.$ac_objext
2693 if { (ac_try="$ac_compile"
2694 case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697 esac
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compile") 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } && {
2706 test -z "$ac_c_werror_flag" ||
2707 test ! -s conftest.err
2708 } && test -s conftest.$ac_objext; then
2709 ac_cv_prog_cc_c89=$ac_arg
2710 else
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2717 rm -f core conftest.err conftest.$ac_objext
2718 test "x$ac_cv_prog_cc_c89" != "xno" && break
2719 done
2720 rm -f conftest.$ac_ext
2721 CC=$ac_save_CC
2724 # AC_CACHE_VAL
2725 case "x$ac_cv_prog_cc_c89" in
2727 { echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6; } ;;
2729 xno)
2730 { echo "$as_me:$LINENO: result: unsupported" >&5
2731 echo "${ECHO_T}unsupported" >&6; } ;;
2733 CC="$CC $ac_cv_prog_cc_c89"
2734 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2735 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2736 esac
2739 ac_ext=c
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745 ac_ext=cpp
2746 ac_cpp='$CXXCPP $CPPFLAGS'
2747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2750 if test -z "$CXX"; then
2751 if test -n "$CCC"; then
2752 CXX=$CCC
2753 else
2754 if test -n "$ac_tool_prefix"; then
2755 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2761 if test "${ac_cv_prog_CXX+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 if test -n "$CXX"; then
2765 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2778 done
2779 done
2780 IFS=$as_save_IFS
2784 CXX=$ac_cv_prog_CXX
2785 if test -n "$CXX"; then
2786 { echo "$as_me:$LINENO: result: $CXX" >&5
2787 echo "${ECHO_T}$CXX" >&6; }
2788 else
2789 { echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6; }
2794 test -n "$CXX" && break
2795 done
2797 if test -z "$CXX"; then
2798 ac_ct_CXX=$CXX
2799 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2801 # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy $ac_prog; ac_word=$2
2803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2805 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808 if test -n "$ac_ct_CXX"; then
2809 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_ac_ct_CXX="$ac_prog"
2819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2822 done
2823 done
2824 IFS=$as_save_IFS
2828 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2829 if test -n "$ac_ct_CXX"; then
2830 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2831 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2832 else
2833 { echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6; }
2838 test -n "$ac_ct_CXX" && break
2839 done
2841 if test "x$ac_ct_CXX" = x; then
2842 CXX="g++"
2843 else
2844 case $cross_compiling:$ac_tool_warned in
2845 yes:)
2846 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2847 whose name does not start with the host triplet. If you think this
2848 configuration is useful to you, please write to autoconf@gnu.org." >&5
2849 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2850 whose name does not start with the host triplet. If you think this
2851 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2852 ac_tool_warned=yes ;;
2853 esac
2854 CXX=$ac_ct_CXX
2860 # Provide some information about the compiler.
2861 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2862 ac_compiler=`set X $ac_compile; echo $2`
2863 { (ac_try="$ac_compiler --version >&5"
2864 case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867 esac
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compiler --version >&5") 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873 { (ac_try="$ac_compiler -v >&5"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler -v >&5") 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -V >&5"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -V >&5") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2894 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2895 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2896 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899 cat >conftest.$ac_ext <<_ACEOF
2900 /* confdefs.h. */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2907 main ()
2909 #ifndef __GNUC__
2910 choke me
2911 #endif
2914 return 0;
2916 _ACEOF
2917 rm -f conftest.$ac_objext
2918 if { (ac_try="$ac_compile"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compile") 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } && {
2931 test -z "$ac_cxx_werror_flag" ||
2932 test ! -s conftest.err
2933 } && test -s conftest.$ac_objext; then
2934 ac_compiler_gnu=yes
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2939 ac_compiler_gnu=no
2942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2946 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2947 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2948 GXX=`test $ac_compiler_gnu = yes && echo yes`
2949 ac_test_CXXFLAGS=${CXXFLAGS+set}
2950 ac_save_CXXFLAGS=$CXXFLAGS
2951 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2952 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_cxx_g+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2957 ac_cxx_werror_flag=yes
2958 ac_cv_prog_cxx_g=no
2959 CXXFLAGS="-g"
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2968 main ()
2972 return 0;
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (ac_try="$ac_compile"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_cxx_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2992 ac_cv_prog_cxx_g=yes
2993 else
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 CXXFLAGS=""
2998 cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h. */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3006 main ()
3010 return 0;
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3015 case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } && {
3027 test -z "$ac_cxx_werror_flag" ||
3028 test ! -s conftest.err
3029 } && test -s conftest.$ac_objext; then
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3036 CXXFLAGS="-g"
3037 cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h. */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3045 main ()
3049 return 0;
3051 _ACEOF
3052 rm -f conftest.$ac_objext
3053 if { (ac_try="$ac_compile"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compile") 2>conftest.er1
3060 ac_status=$?
3061 grep -v '^ *+' conftest.er1 >conftest.err
3062 rm -f conftest.er1
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } && {
3066 test -z "$ac_cxx_werror_flag" ||
3067 test ! -s conftest.err
3068 } && test -s conftest.$ac_objext; then
3069 ac_cv_prog_cxx_g=yes
3070 else
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3086 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3087 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3088 if test "$ac_test_CXXFLAGS" = set; then
3089 CXXFLAGS=$ac_save_CXXFLAGS
3090 elif test $ac_cv_prog_cxx_g = yes; then
3091 if test "$GXX" = yes; then
3092 CXXFLAGS="-g -O2"
3093 else
3094 CXXFLAGS="-g"
3096 else
3097 if test "$GXX" = yes; then
3098 CXXFLAGS="-O2"
3099 else
3100 CXXFLAGS=
3103 ac_ext=c
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 ac_ext=cpp
3110 ac_cpp='$CXXCPP $CPPFLAGS'
3111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3117 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3118 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3119 case "$GXX" in
3120 yes )
3121 GCC_VERSION=`$CC -dumpversion`
3122 GXX_VERSION=`$CXX -dumpversion`
3123 { echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6; }
3125 { echo "$as_me:$LINENO: checking version of gcc" >&5
3126 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3127 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3128 echo "${ECHO_T}$GCC_VERSION" >&6; }
3129 { echo "$as_me:$LINENO: checking version of g++" >&5
3130 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3131 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3132 echo "${ECHO_T}$GXX_VERSION" >&6; }
3133 case "$GXX_VERSION" in
3134 0* | 1* | 2*)
3135 echo "old style GNU compiler"
3136 cat >>confdefs.h <<\_ACEOF
3137 #define OLD_GNU_COMPILER
3138 _ACEOF
3141 esac
3144 GCC_VERSION="none"
3145 GXX_VERSION="none"
3146 { echo "$as_me:$LINENO: result: no" >&5
3147 echo "${ECHO_T}no" >&6; }
3148 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3149 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3151 esac
3153 #--------------------------------------------------------------------
3154 # Checks for Guile
3155 #--------------------------------------------------------------------
3158 ## The GUILE_FLAGS macro.
3159 ## First, let's just see if we can find Guile at all.
3160 { echo "$as_me:$LINENO: checking for Guile" >&5
3161 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3162 guile-config link > /dev/null || {
3163 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3164 exit 1
3166 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
3167 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3168 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3169 GUILE_LDFLAGS="`guile-config link`"
3170 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3173 { echo "$as_me:$LINENO: result: yes" >&5
3174 echo "${ECHO_T}yes" >&6; }
3176 { echo "$as_me:$LINENO: checking version of guile" >&5
3177 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3178 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3179 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3180 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3182 case "$GUILE_VERSION" in
3183 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3184 CONFIG_GUILE_SERIAL="A"
3186 1.6* | 1.7*)
3187 CONFIG_GUILE_SERIAL="B"
3190 CONFIG_GUILE_SERIAL="C"
3192 esac
3195 #--------------------------------------------------------------------
3196 # Checks for standard functionality
3197 #--------------------------------------------------------------------
3201 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3202 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3203 ac_save_cppflags="$CPPFLAGS"
3204 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3205 cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3211 #include <X11/Xlib.h>
3212 #include <X11/Xutil.h>
3214 main ()
3218 return 0;
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } && {
3235 test -z "$ac_cxx_werror_flag" ||
3236 test ! -s conftest.err
3237 } && test -s conftest.$ac_objext; then
3238 echo yes
3239 else
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 rm -rf X11
3244 mkdir X11
3245 for ac_dir in \
3246 /usr/X11/include \
3247 /usr/X11R6/include \
3248 /usr/X11R5/include \
3249 /usr/X11R4/include \
3251 /usr/include/X11 \
3252 /usr/include/X11R6 \
3253 /usr/include/X11R5 \
3254 /usr/include/X11R4 \
3256 /usr/local/X11/include \
3257 /usr/local/X11R6/include \
3258 /usr/local/X11R5/include \
3259 /usr/local/X11R4/include \
3261 /usr/local/include/X11 \
3262 /usr/local/include/X11R6 \
3263 /usr/local/include/X11R5 \
3264 /usr/local/include/X11R4 \
3266 /usr/X386/include \
3267 /usr/x386/include \
3268 /usr/XFree86/include/X11 \
3270 /usr/include \
3271 /usr/local/include \
3272 /usr/unsupported/include \
3273 /usr/athena/include \
3274 /usr/local/x11r5/include \
3275 /usr/lpp/Xamples/include \
3277 /usr/openwin/include \
3278 /usr/openwin/share/include \
3281 if test -r "$ac_dir/X11/Xlib.h"; then
3282 tm_x_includes=$ac_dir
3283 break
3285 done
3286 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3287 < "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
3288 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3289 < "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
3290 X_CFLAGS="-I.. $X_CFLAGS"
3291 echo "no; fixing"
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 CPPFLAGS="$ac_save_cppflags"
3297 ac_ext=cpp
3298 ac_cpp='$CXXCPP $CPPFLAGS'
3299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3302 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3303 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3304 if test -z "$CXXCPP"; then
3305 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 # Double quotes because CXXCPP needs to be expanded
3309 for CXXCPP in "$CXX -E" "/lib/cpp"
3311 ac_preproc_ok=false
3312 for ac_cxx_preproc_warn_flag in '' yes
3314 # Use a header file that comes with gcc, so configuring glibc
3315 # with a fresh cross-compiler works.
3316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317 # <limits.h> exists even on freestanding compilers.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326 #ifdef __STDC__
3327 # include <limits.h>
3328 #else
3329 # include <assert.h>
3330 #endif
3331 Syntax error
3332 _ACEOF
3333 if { (ac_try="$ac_cpp conftest.$ac_ext"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null && {
3346 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3347 test ! -s conftest.err
3348 }; then
3350 else
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 # Broken: fails on valid input.
3355 continue
3358 rm -f conftest.err conftest.$ac_ext
3360 # OK, works on sane cases. Now check whether nonexistent headers
3361 # can be detected and how.
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #include <ac_nonexistent.h>
3369 _ACEOF
3370 if { (ac_try="$ac_cpp conftest.$ac_ext"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } >/dev/null && {
3383 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3384 test ! -s conftest.err
3385 }; then
3386 # Broken: success on invalid input.
3387 continue
3388 else
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 # Passes both tests.
3393 ac_preproc_ok=:
3394 break
3397 rm -f conftest.err conftest.$ac_ext
3399 done
3400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3401 rm -f conftest.err conftest.$ac_ext
3402 if $ac_preproc_ok; then
3403 break
3406 done
3407 ac_cv_prog_CXXCPP=$CXXCPP
3410 CXXCPP=$ac_cv_prog_CXXCPP
3411 else
3412 ac_cv_prog_CXXCPP=$CXXCPP
3414 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3415 echo "${ECHO_T}$CXXCPP" >&6; }
3416 ac_preproc_ok=false
3417 for ac_cxx_preproc_warn_flag in '' yes
3419 # Use a header file that comes with gcc, so configuring glibc
3420 # with a fresh cross-compiler works.
3421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3422 # <limits.h> exists even on freestanding compilers.
3423 # On the NeXT, cc -E runs the code through the compiler's parser,
3424 # not just through cpp. "Syntax error" is here to catch this case.
3425 cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h. */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #ifdef __STDC__
3432 # include <limits.h>
3433 #else
3434 # include <assert.h>
3435 #endif
3436 Syntax error
3437 _ACEOF
3438 if { (ac_try="$ac_cpp conftest.$ac_ext"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } >/dev/null && {
3451 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3452 test ! -s conftest.err
3453 }; then
3455 else
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 # Broken: fails on valid input.
3460 continue
3463 rm -f conftest.err conftest.$ac_ext
3465 # OK, works on sane cases. Now check whether nonexistent headers
3466 # can be detected and how.
3467 cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h. */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #include <ac_nonexistent.h>
3474 _ACEOF
3475 if { (ac_try="$ac_cpp conftest.$ac_ext"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null && {
3488 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3489 test ! -s conftest.err
3490 }; then
3491 # Broken: success on invalid input.
3492 continue
3493 else
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 # Passes both tests.
3498 ac_preproc_ok=:
3499 break
3502 rm -f conftest.err conftest.$ac_ext
3504 done
3505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506 rm -f conftest.err conftest.$ac_ext
3507 if $ac_preproc_ok; then
3509 else
3510 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3511 See \`config.log' for more details." >&5
3512 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3513 See \`config.log' for more details." >&2;}
3514 { (exit 1); exit 1; }; }
3517 ac_ext=cpp
3518 ac_cpp='$CXXCPP $CPPFLAGS'
3519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3524 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3525 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3526 if test "${ac_cv_path_GREP+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 # Extract the first word of "grep ggrep" to use in msg output
3530 if test -z "$GREP"; then
3531 set dummy grep ggrep; ac_prog_name=$2
3532 if test "${ac_cv_path_GREP+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535 ac_path_GREP_found=false
3536 # Loop through the user's path and test for each of PROGNAME-LIST
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_prog in grep ggrep; do
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3545 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3546 # Check for GNU ac_path_GREP and select it if it is found.
3547 # Check for GNU $ac_path_GREP
3548 case `"$ac_path_GREP" --version 2>&1` in
3549 *GNU*)
3550 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3552 ac_count=0
3553 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3554 while :
3556 cat "conftest.in" "conftest.in" >"conftest.tmp"
3557 mv "conftest.tmp" "conftest.in"
3558 cp "conftest.in" "conftest.nl"
3559 echo 'GREP' >> "conftest.nl"
3560 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3562 ac_count=`expr $ac_count + 1`
3563 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3564 # Best one so far, save it but keep looking for a better one
3565 ac_cv_path_GREP="$ac_path_GREP"
3566 ac_path_GREP_max=$ac_count
3568 # 10*(2^10) chars as input seems more than enough
3569 test $ac_count -gt 10 && break
3570 done
3571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3572 esac
3575 $ac_path_GREP_found && break 3
3576 done
3577 done
3579 done
3580 IFS=$as_save_IFS
3585 GREP="$ac_cv_path_GREP"
3586 if test -z "$GREP"; then
3587 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3588 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3589 { (exit 1); exit 1; }; }
3592 else
3593 ac_cv_path_GREP=$GREP
3598 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3599 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3600 GREP="$ac_cv_path_GREP"
3603 { echo "$as_me:$LINENO: checking for egrep" >&5
3604 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3605 if test "${ac_cv_path_EGREP+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3609 then ac_cv_path_EGREP="$GREP -E"
3610 else
3611 # Extract the first word of "egrep" to use in msg output
3612 if test -z "$EGREP"; then
3613 set dummy egrep; ac_prog_name=$2
3614 if test "${ac_cv_path_EGREP+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 ac_path_EGREP_found=false
3618 # Loop through the user's path and test for each of PROGNAME-LIST
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_prog in egrep; do
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3627 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3628 # Check for GNU ac_path_EGREP and select it if it is found.
3629 # Check for GNU $ac_path_EGREP
3630 case `"$ac_path_EGREP" --version 2>&1` in
3631 *GNU*)
3632 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3634 ac_count=0
3635 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3636 while :
3638 cat "conftest.in" "conftest.in" >"conftest.tmp"
3639 mv "conftest.tmp" "conftest.in"
3640 cp "conftest.in" "conftest.nl"
3641 echo 'EGREP' >> "conftest.nl"
3642 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3644 ac_count=`expr $ac_count + 1`
3645 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3646 # Best one so far, save it but keep looking for a better one
3647 ac_cv_path_EGREP="$ac_path_EGREP"
3648 ac_path_EGREP_max=$ac_count
3650 # 10*(2^10) chars as input seems more than enough
3651 test $ac_count -gt 10 && break
3652 done
3653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3654 esac
3657 $ac_path_EGREP_found && break 3
3658 done
3659 done
3661 done
3662 IFS=$as_save_IFS
3667 EGREP="$ac_cv_path_EGREP"
3668 if test -z "$EGREP"; then
3669 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3670 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3671 { (exit 1); exit 1; }; }
3674 else
3675 ac_cv_path_EGREP=$EGREP
3681 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3682 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3683 EGREP="$ac_cv_path_EGREP"
3686 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3687 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3688 if test "${ac_cv_header_stdc+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 #include <stdlib.h>
3698 #include <stdarg.h>
3699 #include <string.h>
3700 #include <float.h>
3703 main ()
3707 return 0;
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (ac_try="$ac_compile"
3712 case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_compile") 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } && {
3724 test -z "$ac_cxx_werror_flag" ||
3725 test ! -s conftest.err
3726 } && test -s conftest.$ac_objext; then
3727 ac_cv_header_stdc=yes
3728 else
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3732 ac_cv_header_stdc=no
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 if test $ac_cv_header_stdc = yes; then
3738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 #include <string.h>
3747 _ACEOF
3748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3749 $EGREP "memchr" >/dev/null 2>&1; then
3751 else
3752 ac_cv_header_stdc=no
3754 rm -f conftest*
3758 if test $ac_cv_header_stdc = yes; then
3759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3760 cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 #include <stdlib.h>
3768 _ACEOF
3769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3770 $EGREP "free" >/dev/null 2>&1; then
3772 else
3773 ac_cv_header_stdc=no
3775 rm -f conftest*
3779 if test $ac_cv_header_stdc = yes; then
3780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3781 if test "$cross_compiling" = yes; then
3783 else
3784 cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h. */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 #include <ctype.h>
3791 #include <stdlib.h>
3792 #if ((' ' & 0x0FF) == 0x020)
3793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3795 #else
3796 # define ISLOWER(c) \
3797 (('a' <= (c) && (c) <= 'i') \
3798 || ('j' <= (c) && (c) <= 'r') \
3799 || ('s' <= (c) && (c) <= 'z'))
3800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3801 #endif
3803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3805 main ()
3807 int i;
3808 for (i = 0; i < 256; i++)
3809 if (XOR (islower (i), ISLOWER (i))
3810 || toupper (i) != TOUPPER (i))
3811 return 2;
3812 return 0;
3814 _ACEOF
3815 rm -f conftest$ac_exeext
3816 if { (ac_try="$ac_link"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_link") 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3826 { (case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_try") 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3836 else
3837 echo "$as_me: program exited with status $ac_status" >&5
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ( exit $ac_status )
3842 ac_cv_header_stdc=no
3844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3850 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3851 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3852 if test $ac_cv_header_stdc = yes; then
3854 cat >>confdefs.h <<\_ACEOF
3855 #define STDC_HEADERS 1
3856 _ACEOF
3860 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3870 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3871 inttypes.h stdint.h unistd.h
3873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h. */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 $ac_includes_default
3887 #include <$ac_header>
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_cxx_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3906 eval "$as_ac_Header=yes"
3907 else
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 eval "$as_ac_Header=no"
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 ac_res=`eval echo '${'$as_ac_Header'}'`
3917 { echo "$as_me:$LINENO: result: $ac_res" >&5
3918 echo "${ECHO_T}$ac_res" >&6; }
3919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3920 cat >>confdefs.h <<_ACEOF
3921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3922 _ACEOF
3926 done
3929 { echo "$as_me:$LINENO: checking for FILE" >&5
3930 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
3931 if test "${ac_cv_type_FILE+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 $ac_includes_default
3941 typedef FILE ac__type_new_;
3943 main ()
3945 if ((ac__type_new_ *) 0)
3946 return 0;
3947 if (sizeof (ac__type_new_))
3948 return 0;
3950 return 0;
3952 _ACEOF
3953 rm -f conftest.$ac_objext
3954 if { (ac_try="$ac_compile"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_compile") 2>conftest.er1
3961 ac_status=$?
3962 grep -v '^ *+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } && {
3967 test -z "$ac_cxx_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest.$ac_objext; then
3970 ac_cv_type_FILE=yes
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 ac_cv_type_FILE=no
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
3981 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
3982 if test $ac_cv_type_FILE = yes; then
3984 cat >>confdefs.h <<_ACEOF
3985 #define HAVE_FILE 1
3986 _ACEOF
3991 { echo "$as_me:$LINENO: checking for intptr_t" >&5
3992 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
3993 if test "${ac_cv_type_intptr_t+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4002 $ac_includes_default
4003 typedef intptr_t ac__type_new_;
4005 main ()
4007 if ((ac__type_new_ *) 0)
4008 return 0;
4009 if (sizeof (ac__type_new_))
4010 return 0;
4012 return 0;
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_cxx_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4032 ac_cv_type_intptr_t=yes
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 ac_cv_type_intptr_t=no
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4043 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4044 if test $ac_cv_type_intptr_t = yes; then
4046 cat >>confdefs.h <<_ACEOF
4047 #define HAVE_INTPTR_T 1
4048 _ACEOF
4053 { echo "$as_me:$LINENO: checking for time_t" >&5
4054 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4055 if test "${ac_cv_type_time_t+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 $ac_includes_default
4065 typedef time_t ac__type_new_;
4067 main ()
4069 if ((ac__type_new_ *) 0)
4070 return 0;
4071 if (sizeof (ac__type_new_))
4072 return 0;
4074 return 0;
4076 _ACEOF
4077 rm -f conftest.$ac_objext
4078 if { (ac_try="$ac_compile"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_compile") 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } && {
4091 test -z "$ac_cxx_werror_flag" ||
4092 test ! -s conftest.err
4093 } && test -s conftest.$ac_objext; then
4094 ac_cv_type_time_t=yes
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 ac_cv_type_time_t=no
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4105 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4106 if test $ac_cv_type_time_t = yes; then
4108 cat >>confdefs.h <<_ACEOF
4109 #define HAVE_TIME_T 1
4110 _ACEOF
4115 { echo "$as_me:$LINENO: checking for X" >&5
4116 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4119 # Check whether --with-x was given.
4120 if test "${with_x+set}" = set; then
4121 withval=$with_x;
4124 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4125 if test "x$with_x" = xno; then
4126 # The user explicitly disabled X.
4127 have_x=disabled
4128 else
4129 case $x_includes,$x_libraries in #(
4130 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4131 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4132 { (exit 1); exit 1; }; };; #(
4133 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 # One or both of the vars are not set, and there is no cached value.
4137 ac_x_includes=no ac_x_libraries=no
4138 rm -f -r conftest.dir
4139 if mkdir conftest.dir; then
4140 cd conftest.dir
4141 cat >Imakefile <<'_ACEOF'
4142 incroot:
4143 @echo incroot='${INCROOT}'
4144 usrlibdir:
4145 @echo usrlibdir='${USRLIBDIR}'
4146 libdir:
4147 @echo libdir='${LIBDIR}'
4148 _ACEOF
4149 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4150 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4151 for ac_var in incroot usrlibdir libdir; do
4152 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4153 done
4154 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4155 for ac_extension in a so sl; do
4156 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4157 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4158 ac_im_usrlibdir=$ac_im_libdir; break
4160 done
4161 # Screen out bogus values from the imake configuration. They are
4162 # bogus both because they are the default anyway, and because
4163 # using them would break gcc on systems where it needs fixed includes.
4164 case $ac_im_incroot in
4165 /usr/include) ac_x_includes= ;;
4166 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4167 esac
4168 case $ac_im_usrlibdir in
4169 /usr/lib | /lib) ;;
4170 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4171 esac
4173 cd ..
4174 rm -f -r conftest.dir
4177 # Standard set of common directories for X headers.
4178 # Check X11 before X11Rn because it is often a symlink to the current release.
4179 ac_x_header_dirs='
4180 /usr/X11/include
4181 /usr/X11R6/include
4182 /usr/X11R5/include
4183 /usr/X11R4/include
4185 /usr/include/X11
4186 /usr/include/X11R6
4187 /usr/include/X11R5
4188 /usr/include/X11R4
4190 /usr/local/X11/include
4191 /usr/local/X11R6/include
4192 /usr/local/X11R5/include
4193 /usr/local/X11R4/include
4195 /usr/local/include/X11
4196 /usr/local/include/X11R6
4197 /usr/local/include/X11R5
4198 /usr/local/include/X11R4
4200 /usr/X386/include
4201 /usr/x386/include
4202 /usr/XFree86/include/X11
4204 /usr/include
4205 /usr/local/include
4206 /usr/unsupported/include
4207 /usr/athena/include
4208 /usr/local/x11r5/include
4209 /usr/lpp/Xamples/include
4211 /usr/openwin/include
4212 /usr/openwin/share/include'
4214 if test "$ac_x_includes" = no; then
4215 # Guess where to find include files, by looking for Xlib.h.
4216 # First, try using that file with no special directory specified.
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <X11/Xlib.h>
4224 _ACEOF
4225 if { (ac_try="$ac_cpp conftest.$ac_ext"
4226 case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229 esac
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev/null && {
4238 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4239 test ! -s conftest.err
4240 }; then
4241 # We can compile using X headers with no special include directory.
4242 ac_x_includes=
4243 else
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 for ac_dir in $ac_x_header_dirs; do
4248 if test -r "$ac_dir/X11/Xlib.h"; then
4249 ac_x_includes=$ac_dir
4250 break
4252 done
4255 rm -f conftest.err conftest.$ac_ext
4256 fi # $ac_x_includes = no
4258 if test "$ac_x_libraries" = no; then
4259 # Check for the libraries.
4260 # See if we find them without any special options.
4261 # Don't add to $LIBS permanently.
4262 ac_save_LIBS=$LIBS
4263 LIBS="-lX11 $LIBS"
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <X11/Xlib.h>
4272 main ()
4274 XrmInitialize ()
4276 return 0;
4278 _ACEOF
4279 rm -f conftest.$ac_objext conftest$ac_exeext
4280 if { (ac_try="$ac_link"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_link") 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && {
4293 test -z "$ac_cxx_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest$ac_exeext &&
4296 $as_test_x conftest$ac_exeext; then
4297 LIBS=$ac_save_LIBS
4298 # We can link X programs with no special library path.
4299 ac_x_libraries=
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 LIBS=$ac_save_LIBS
4305 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4307 # Don't even attempt the hair of trying to link an X program!
4308 for ac_extension in a so sl; do
4309 if test -r "$ac_dir/libX11.$ac_extension"; then
4310 ac_x_libraries=$ac_dir
4311 break 2
4313 done
4314 done
4317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4318 conftest$ac_exeext conftest.$ac_ext
4319 fi # $ac_x_libraries = no
4321 case $ac_x_includes,$ac_x_libraries in #(
4322 no,* | *,no | *\'*)
4323 # Didn't find X, or a directory has "'" in its name.
4324 ac_cv_have_x="have_x=no";; #(
4326 # Record where we found X for the cache.
4327 ac_cv_have_x="have_x=yes\
4328 ac_x_includes='$ac_x_includes'\
4329 ac_x_libraries='$ac_x_libraries'"
4330 esac
4332 ;; #(
4333 *) have_x=yes;;
4334 esac
4335 eval "$ac_cv_have_x"
4336 fi # $with_x != no
4338 if test "$have_x" != yes; then
4339 { echo "$as_me:$LINENO: result: $have_x" >&5
4340 echo "${ECHO_T}$have_x" >&6; }
4341 no_x=yes
4342 else
4343 # If each of the values was on the command line, it overrides each guess.
4344 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4345 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4346 # Update the cache value to reflect the command line values.
4347 ac_cv_have_x="have_x=yes\
4348 ac_x_includes='$x_includes'\
4349 ac_x_libraries='$x_libraries'"
4350 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4351 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4354 if test "$no_x" = yes; then
4355 # Not all programs may use this symbol, but it does not hurt to define it.
4357 cat >>confdefs.h <<\_ACEOF
4358 #define X_DISPLAY_MISSING 1
4359 _ACEOF
4361 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4362 else
4363 if test -n "$x_includes"; then
4364 X_CFLAGS="$X_CFLAGS -I$x_includes"
4367 # It would also be nice to do this for all -L options, not just this one.
4368 if test -n "$x_libraries"; then
4369 X_LIBS="$X_LIBS -L$x_libraries"
4370 # For Solaris; some versions of Sun CC require a space after -R and
4371 # others require no space. Words are not sufficient . . . .
4372 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4373 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4374 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4375 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4376 ac_cxx_werror_flag=yes
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h. */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4385 main ()
4389 return 0;
4391 _ACEOF
4392 rm -f conftest.$ac_objext conftest$ac_exeext
4393 if { (ac_try="$ac_link"
4394 case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_link") 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } && {
4406 test -z "$ac_cxx_werror_flag" ||
4407 test ! -s conftest.err
4408 } && test -s conftest$ac_exeext &&
4409 $as_test_x conftest$ac_exeext; then
4410 { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4412 X_LIBS="$X_LIBS -R$x_libraries"
4413 else
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 LIBS="$ac_xsave_LIBS -R $x_libraries"
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4426 main ()
4430 return 0;
4432 _ACEOF
4433 rm -f conftest.$ac_objext conftest$ac_exeext
4434 if { (ac_try="$ac_link"
4435 case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438 esac
4439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440 (eval "$ac_link") 2>conftest.er1
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } && {
4447 test -z "$ac_cxx_werror_flag" ||
4448 test ! -s conftest.err
4449 } && test -s conftest$ac_exeext &&
4450 $as_test_x conftest$ac_exeext; then
4451 { echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6; }
4453 X_LIBS="$X_LIBS -R $x_libraries"
4454 else
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 { echo "$as_me:$LINENO: result: neither works" >&5
4459 echo "${ECHO_T}neither works" >&6; }
4462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4463 conftest$ac_exeext conftest.$ac_ext
4466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4467 conftest$ac_exeext conftest.$ac_ext
4468 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4469 LIBS=$ac_xsave_LIBS
4472 # Check for system-dependent libraries X programs must link with.
4473 # Do this before checking for the system-independent R6 libraries
4474 # (-lICE), since we may need -lsocket or whatever for X linking.
4476 if test "$ISC" = yes; then
4477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4478 else
4479 # Martyn Johnson says this is needed for Ultrix, if the X
4480 # libraries were built with DECnet support. And Karl Berry says
4481 # the Alpha needs dnet_stub (dnet does not exist).
4482 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h. */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4490 /* Override any GCC internal prototype to avoid an error.
4491 Use char because int might match the return type of a GCC
4492 builtin and then its argument prototype would still apply. */
4493 #ifdef __cplusplus
4494 extern "C"
4495 #endif
4496 char XOpenDisplay ();
4498 main ()
4500 return XOpenDisplay ();
4502 return 0;
4504 _ACEOF
4505 rm -f conftest.$ac_objext conftest$ac_exeext
4506 if { (ac_try="$ac_link"
4507 case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510 esac
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_link") 2>conftest.er1
4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } && {
4519 test -z "$ac_cxx_werror_flag" ||
4520 test ! -s conftest.err
4521 } && test -s conftest$ac_exeext &&
4522 $as_test_x conftest$ac_exeext; then
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4529 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4530 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 ac_check_lib_save_LIBS=$LIBS
4534 LIBS="-ldnet $LIBS"
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4542 /* Override any GCC internal prototype to avoid an error.
4543 Use char because int might match the return type of a GCC
4544 builtin and then its argument prototype would still apply. */
4545 #ifdef __cplusplus
4546 extern "C"
4547 #endif
4548 char dnet_ntoa ();
4550 main ()
4552 return dnet_ntoa ();
4554 return 0;
4556 _ACEOF
4557 rm -f conftest.$ac_objext conftest$ac_exeext
4558 if { (ac_try="$ac_link"
4559 case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562 esac
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_link") 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } && {
4571 test -z "$ac_cxx_werror_flag" ||
4572 test ! -s conftest.err
4573 } && test -s conftest$ac_exeext &&
4574 $as_test_x conftest$ac_exeext; then
4575 ac_cv_lib_dnet_dnet_ntoa=yes
4576 else
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580 ac_cv_lib_dnet_dnet_ntoa=no
4583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4584 conftest$ac_exeext conftest.$ac_ext
4585 LIBS=$ac_check_lib_save_LIBS
4587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4588 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4589 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4590 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4593 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4594 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4595 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4596 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599 ac_check_lib_save_LIBS=$LIBS
4600 LIBS="-ldnet_stub $LIBS"
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h. */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4608 /* Override any GCC internal prototype to avoid an error.
4609 Use char because int might match the return type of a GCC
4610 builtin and then its argument prototype would still apply. */
4611 #ifdef __cplusplus
4612 extern "C"
4613 #endif
4614 char dnet_ntoa ();
4616 main ()
4618 return dnet_ntoa ();
4620 return 0;
4622 _ACEOF
4623 rm -f conftest.$ac_objext conftest$ac_exeext
4624 if { (ac_try="$ac_link"
4625 case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_link") 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && {
4637 test -z "$ac_cxx_werror_flag" ||
4638 test ! -s conftest.err
4639 } && test -s conftest$ac_exeext &&
4640 $as_test_x conftest$ac_exeext; then
4641 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4642 else
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 ac_cv_lib_dnet_stub_dnet_ntoa=no
4649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4650 conftest$ac_exeext conftest.$ac_ext
4651 LIBS=$ac_check_lib_save_LIBS
4653 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4654 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4655 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4656 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4663 conftest$ac_exeext conftest.$ac_ext
4664 LIBS="$ac_xsave_LIBS"
4666 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4667 # to get the SysV transport functions.
4668 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4669 # needs -lnsl.
4670 # The nsl library prevents programs from opening the X display
4671 # on Irix 5.2, according to T.E. Dickey.
4672 # The functions gethostbyname, getservbyname, and inet_addr are
4673 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4674 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4675 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4676 if test "${ac_cv_func_gethostbyname+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4687 #define gethostbyname innocuous_gethostbyname
4689 /* System header to define __stub macros and hopefully few prototypes,
4690 which can conflict with char gethostbyname (); below.
4691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692 <limits.h> exists even on freestanding compilers. */
4694 #ifdef __STDC__
4695 # include <limits.h>
4696 #else
4697 # include <assert.h>
4698 #endif
4700 #undef gethostbyname
4702 /* Override any GCC internal prototype to avoid an error.
4703 Use char because int might match the return type of a GCC
4704 builtin and then its argument prototype would still apply. */
4705 #ifdef __cplusplus
4706 extern "C"
4707 #endif
4708 char gethostbyname ();
4709 /* The GNU C library defines this for functions which it implements
4710 to always fail with ENOSYS. Some functions are actually named
4711 something starting with __ and the normal name is an alias. */
4712 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4713 choke me
4714 #endif
4717 main ()
4719 return gethostbyname ();
4721 return 0;
4723 _ACEOF
4724 rm -f conftest.$ac_objext conftest$ac_exeext
4725 if { (ac_try="$ac_link"
4726 case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_link") 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && {
4738 test -z "$ac_cxx_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest$ac_exeext &&
4741 $as_test_x conftest$ac_exeext; then
4742 ac_cv_func_gethostbyname=yes
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 ac_cv_func_gethostbyname=no
4750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4751 conftest$ac_exeext conftest.$ac_ext
4753 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4754 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4756 if test $ac_cv_func_gethostbyname = no; then
4757 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4758 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4759 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 ac_check_lib_save_LIBS=$LIBS
4763 LIBS="-lnsl $LIBS"
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h. */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4771 /* Override any GCC internal prototype to avoid an error.
4772 Use char because int might match the return type of a GCC
4773 builtin and then its argument prototype would still apply. */
4774 #ifdef __cplusplus
4775 extern "C"
4776 #endif
4777 char gethostbyname ();
4779 main ()
4781 return gethostbyname ();
4783 return 0;
4785 _ACEOF
4786 rm -f conftest.$ac_objext conftest$ac_exeext
4787 if { (ac_try="$ac_link"
4788 case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791 esac
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_link") 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } && {
4800 test -z "$ac_cxx_werror_flag" ||
4801 test ! -s conftest.err
4802 } && test -s conftest$ac_exeext &&
4803 $as_test_x conftest$ac_exeext; then
4804 ac_cv_lib_nsl_gethostbyname=yes
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 ac_cv_lib_nsl_gethostbyname=no
4812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4813 conftest$ac_exeext conftest.$ac_ext
4814 LIBS=$ac_check_lib_save_LIBS
4816 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4817 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4818 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4819 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4822 if test $ac_cv_lib_nsl_gethostbyname = no; then
4823 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4824 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4825 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828 ac_check_lib_save_LIBS=$LIBS
4829 LIBS="-lbsd $LIBS"
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4837 /* Override any GCC internal prototype to avoid an error.
4838 Use char because int might match the return type of a GCC
4839 builtin and then its argument prototype would still apply. */
4840 #ifdef __cplusplus
4841 extern "C"
4842 #endif
4843 char gethostbyname ();
4845 main ()
4847 return gethostbyname ();
4849 return 0;
4851 _ACEOF
4852 rm -f conftest.$ac_objext conftest$ac_exeext
4853 if { (ac_try="$ac_link"
4854 case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4857 esac
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_link") 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_cxx_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest$ac_exeext &&
4869 $as_test_x conftest$ac_exeext; then
4870 ac_cv_lib_bsd_gethostbyname=yes
4871 else
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_cv_lib_bsd_gethostbyname=no
4878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4879 conftest$ac_exeext conftest.$ac_ext
4880 LIBS=$ac_check_lib_save_LIBS
4882 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4883 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4884 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4885 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4891 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4892 # socket/setsockopt and other routines are undefined under SCO ODT
4893 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4894 # on later versions), says Simon Leinen: it contains gethostby*
4895 # variants that don't use the name server (or something). -lsocket
4896 # must be given before -lnsl if both are needed. We assume that
4897 # if connect needs -lnsl, so does gethostbyname.
4898 { echo "$as_me:$LINENO: checking for connect" >&5
4899 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4900 if test "${ac_cv_func_connect+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4911 #define connect innocuous_connect
4913 /* System header to define __stub macros and hopefully few prototypes,
4914 which can conflict with char connect (); below.
4915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4916 <limits.h> exists even on freestanding compilers. */
4918 #ifdef __STDC__
4919 # include <limits.h>
4920 #else
4921 # include <assert.h>
4922 #endif
4924 #undef connect
4926 /* Override any GCC internal prototype to avoid an error.
4927 Use char because int might match the return type of a GCC
4928 builtin and then its argument prototype would still apply. */
4929 #ifdef __cplusplus
4930 extern "C"
4931 #endif
4932 char connect ();
4933 /* The GNU C library defines this for functions which it implements
4934 to always fail with ENOSYS. Some functions are actually named
4935 something starting with __ and the normal name is an alias. */
4936 #if defined __stub_connect || defined __stub___connect
4937 choke me
4938 #endif
4941 main ()
4943 return connect ();
4945 return 0;
4947 _ACEOF
4948 rm -f conftest.$ac_objext conftest$ac_exeext
4949 if { (ac_try="$ac_link"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_link") 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_cxx_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest$ac_exeext &&
4965 $as_test_x conftest$ac_exeext; then
4966 ac_cv_func_connect=yes
4967 else
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 ac_cv_func_connect=no
4974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4975 conftest$ac_exeext conftest.$ac_ext
4977 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4978 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4980 if test $ac_cv_func_connect = no; then
4981 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4982 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4983 if test "${ac_cv_lib_socket_connect+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986 ac_check_lib_save_LIBS=$LIBS
4987 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4995 /* Override any GCC internal prototype to avoid an error.
4996 Use char because int might match the return type of a GCC
4997 builtin and then its argument prototype would still apply. */
4998 #ifdef __cplusplus
4999 extern "C"
5000 #endif
5001 char connect ();
5003 main ()
5005 return connect ();
5007 return 0;
5009 _ACEOF
5010 rm -f conftest.$ac_objext conftest$ac_exeext
5011 if { (ac_try="$ac_link"
5012 case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015 esac
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_link") 2>conftest.er1
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } && {
5024 test -z "$ac_cxx_werror_flag" ||
5025 test ! -s conftest.err
5026 } && test -s conftest$ac_exeext &&
5027 $as_test_x conftest$ac_exeext; then
5028 ac_cv_lib_socket_connect=yes
5029 else
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5033 ac_cv_lib_socket_connect=no
5036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5037 conftest$ac_exeext conftest.$ac_ext
5038 LIBS=$ac_check_lib_save_LIBS
5040 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5041 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5042 if test $ac_cv_lib_socket_connect = yes; then
5043 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5048 # Guillermo Gomez says -lposix is necessary on A/UX.
5049 { echo "$as_me:$LINENO: checking for remove" >&5
5050 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5051 if test "${ac_cv_func_remove+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5062 #define remove innocuous_remove
5064 /* System header to define __stub macros and hopefully few prototypes,
5065 which can conflict with char remove (); below.
5066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5067 <limits.h> exists even on freestanding compilers. */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5075 #undef remove
5077 /* Override any GCC internal prototype to avoid an error.
5078 Use char because int might match the return type of a GCC
5079 builtin and then its argument prototype would still apply. */
5080 #ifdef __cplusplus
5081 extern "C"
5082 #endif
5083 char remove ();
5084 /* The GNU C library defines this for functions which it implements
5085 to always fail with ENOSYS. Some functions are actually named
5086 something starting with __ and the normal name is an alias. */
5087 #if defined __stub_remove || defined __stub___remove
5088 choke me
5089 #endif
5092 main ()
5094 return remove ();
5096 return 0;
5098 _ACEOF
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (ac_try="$ac_link"
5101 case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_link") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_cxx_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest$ac_exeext &&
5116 $as_test_x conftest$ac_exeext; then
5117 ac_cv_func_remove=yes
5118 else
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 ac_cv_func_remove=no
5125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5126 conftest$ac_exeext conftest.$ac_ext
5128 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5129 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5131 if test $ac_cv_func_remove = no; then
5132 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5133 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5134 if test "${ac_cv_lib_posix_remove+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 ac_check_lib_save_LIBS=$LIBS
5138 LIBS="-lposix $LIBS"
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5146 /* Override any GCC internal prototype to avoid an error.
5147 Use char because int might match the return type of a GCC
5148 builtin and then its argument prototype would still apply. */
5149 #ifdef __cplusplus
5150 extern "C"
5151 #endif
5152 char remove ();
5154 main ()
5156 return remove ();
5158 return 0;
5160 _ACEOF
5161 rm -f conftest.$ac_objext conftest$ac_exeext
5162 if { (ac_try="$ac_link"
5163 case "(($ac_try" in
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5166 esac
5167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168 (eval "$ac_link") 2>conftest.er1
5169 ac_status=$?
5170 grep -v '^ *+' conftest.er1 >conftest.err
5171 rm -f conftest.er1
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } && {
5175 test -z "$ac_cxx_werror_flag" ||
5176 test ! -s conftest.err
5177 } && test -s conftest$ac_exeext &&
5178 $as_test_x conftest$ac_exeext; then
5179 ac_cv_lib_posix_remove=yes
5180 else
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 ac_cv_lib_posix_remove=no
5187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5188 conftest$ac_exeext conftest.$ac_ext
5189 LIBS=$ac_check_lib_save_LIBS
5191 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5192 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5193 if test $ac_cv_lib_posix_remove = yes; then
5194 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5199 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5200 { echo "$as_me:$LINENO: checking for shmat" >&5
5201 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5202 if test "${ac_cv_func_shmat+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5213 #define shmat innocuous_shmat
5215 /* System header to define __stub macros and hopefully few prototypes,
5216 which can conflict with char shmat (); below.
5217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5218 <limits.h> exists even on freestanding compilers. */
5220 #ifdef __STDC__
5221 # include <limits.h>
5222 #else
5223 # include <assert.h>
5224 #endif
5226 #undef shmat
5228 /* Override any GCC internal prototype to avoid an error.
5229 Use char because int might match the return type of a GCC
5230 builtin and then its argument prototype would still apply. */
5231 #ifdef __cplusplus
5232 extern "C"
5233 #endif
5234 char shmat ();
5235 /* The GNU C library defines this for functions which it implements
5236 to always fail with ENOSYS. Some functions are actually named
5237 something starting with __ and the normal name is an alias. */
5238 #if defined __stub_shmat || defined __stub___shmat
5239 choke me
5240 #endif
5243 main ()
5245 return shmat ();
5247 return 0;
5249 _ACEOF
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (ac_try="$ac_link"
5252 case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_link") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_cxx_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest$ac_exeext &&
5267 $as_test_x conftest$ac_exeext; then
5268 ac_cv_func_shmat=yes
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_cv_func_shmat=no
5276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5277 conftest$ac_exeext conftest.$ac_ext
5279 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5280 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5282 if test $ac_cv_func_shmat = no; then
5283 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5284 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5285 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 ac_check_lib_save_LIBS=$LIBS
5289 LIBS="-lipc $LIBS"
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5297 /* Override any GCC internal prototype to avoid an error.
5298 Use char because int might match the return type of a GCC
5299 builtin and then its argument prototype would still apply. */
5300 #ifdef __cplusplus
5301 extern "C"
5302 #endif
5303 char shmat ();
5305 main ()
5307 return shmat ();
5309 return 0;
5311 _ACEOF
5312 rm -f conftest.$ac_objext conftest$ac_exeext
5313 if { (ac_try="$ac_link"
5314 case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317 esac
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_link") 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } && {
5326 test -z "$ac_cxx_werror_flag" ||
5327 test ! -s conftest.err
5328 } && test -s conftest$ac_exeext &&
5329 $as_test_x conftest$ac_exeext; then
5330 ac_cv_lib_ipc_shmat=yes
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_cv_lib_ipc_shmat=no
5338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5339 conftest$ac_exeext conftest.$ac_ext
5340 LIBS=$ac_check_lib_save_LIBS
5342 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5343 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5344 if test $ac_cv_lib_ipc_shmat = yes; then
5345 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5351 # Check for libraries that X11R6 Xt/Xaw programs need.
5352 ac_save_LDFLAGS=$LDFLAGS
5353 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5354 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5355 # check for ICE first), but we must link in the order -lSM -lICE or
5356 # we get undefined symbols. So assume we have SM if we have ICE.
5357 # These have to be linked with before -lX11, unlike the other
5358 # libraries we check for below, so use a different variable.
5359 # John Interrante, Karl Berry
5360 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5361 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5362 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 ac_check_lib_save_LIBS=$LIBS
5366 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5374 /* Override any GCC internal prototype to avoid an error.
5375 Use char because int might match the return type of a GCC
5376 builtin and then its argument prototype would still apply. */
5377 #ifdef __cplusplus
5378 extern "C"
5379 #endif
5380 char IceConnectionNumber ();
5382 main ()
5384 return IceConnectionNumber ();
5386 return 0;
5388 _ACEOF
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (ac_try="$ac_link"
5391 case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394 esac
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_link") 2>conftest.er1
5397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && {
5403 test -z "$ac_cxx_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest$ac_exeext &&
5406 $as_test_x conftest$ac_exeext; then
5407 ac_cv_lib_ICE_IceConnectionNumber=yes
5408 else
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 ac_cv_lib_ICE_IceConnectionNumber=no
5415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5416 conftest$ac_exeext conftest.$ac_ext
5417 LIBS=$ac_check_lib_save_LIBS
5419 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5420 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5421 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5422 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5425 LDFLAGS=$ac_save_LDFLAGS
5431 for ac_header in pty.h util.h
5433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 ac_res=`eval echo '${'$as_ac_Header'}'`
5441 { echo "$as_me:$LINENO: result: $ac_res" >&5
5442 echo "${ECHO_T}$ac_res" >&6; }
5443 else
5444 # Is the header compilable?
5445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 $ac_includes_default
5454 #include <$ac_header>
5455 _ACEOF
5456 rm -f conftest.$ac_objext
5457 if { (ac_try="$ac_compile"
5458 case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5461 esac
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_compile") 2>conftest.er1
5464 ac_status=$?
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && {
5470 test -z "$ac_cxx_werror_flag" ||
5471 test ! -s conftest.err
5472 } && test -s conftest.$ac_objext; then
5473 ac_header_compiler=yes
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_header_compiler=no
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5483 echo "${ECHO_T}$ac_header_compiler" >&6; }
5485 # Is the header present?
5486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5488 cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h. */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 #include <$ac_header>
5495 _ACEOF
5496 if { (ac_try="$ac_cpp conftest.$ac_ext"
5497 case "(($ac_try" in
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5500 esac
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } >/dev/null && {
5509 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5510 test ! -s conftest.err
5511 }; then
5512 ac_header_preproc=yes
5513 else
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5517 ac_header_preproc=no
5520 rm -f conftest.err conftest.$ac_ext
5521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5522 echo "${ECHO_T}$ac_header_preproc" >&6; }
5524 # So? What about this header?
5525 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5526 yes:no: )
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5531 ac_header_preproc=yes
5533 no:yes:* )
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5548 esac
5549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 eval "$as_ac_Header=\$ac_header_preproc"
5556 ac_res=`eval echo '${'$as_ac_Header'}'`
5557 { echo "$as_me:$LINENO: result: $ac_res" >&5
5558 echo "${ECHO_T}$ac_res" >&6; }
5561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5562 cat >>confdefs.h <<_ACEOF
5563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5564 _ACEOF
5568 done
5571 for ac_func in gettimeofday
5573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5587 #define $ac_func innocuous_$ac_func
5589 /* System header to define __stub macros and hopefully few prototypes,
5590 which can conflict with char $ac_func (); below.
5591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5592 <limits.h> exists even on freestanding compilers. */
5594 #ifdef __STDC__
5595 # include <limits.h>
5596 #else
5597 # include <assert.h>
5598 #endif
5600 #undef $ac_func
5602 /* Override any GCC internal prototype to avoid an error.
5603 Use char because int might match the return type of a GCC
5604 builtin and then its argument prototype would still apply. */
5605 #ifdef __cplusplus
5606 extern "C"
5607 #endif
5608 char $ac_func ();
5609 /* The GNU C library defines this for functions which it implements
5610 to always fail with ENOSYS. Some functions are actually named
5611 something starting with __ and the normal name is an alias. */
5612 #if defined __stub_$ac_func || defined __stub___$ac_func
5613 choke me
5614 #endif
5617 main ()
5619 return $ac_func ();
5621 return 0;
5623 _ACEOF
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (ac_try="$ac_link"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_link") 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && {
5638 test -z "$ac_cxx_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest$ac_exeext &&
5641 $as_test_x conftest$ac_exeext; then
5642 eval "$as_ac_var=yes"
5643 else
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 eval "$as_ac_var=no"
5650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5651 conftest$ac_exeext conftest.$ac_ext
5653 ac_res=`eval echo '${'$as_ac_var'}'`
5654 { echo "$as_me:$LINENO: result: $ac_res" >&5
5655 echo "${ECHO_T}$ac_res" >&6; }
5656 if test `eval echo '${'$as_ac_var'}'` = yes; then
5657 cat >>confdefs.h <<_ACEOF
5658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5659 _ACEOF
5662 done
5665 #--------------------------------------------------------------------
5666 # Checks for dl library
5667 #--------------------------------------------------------------------
5669 { echo "$as_me:$LINENO: checking for dlopen" >&5
5670 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5671 if test "${ac_cv_func_dlopen+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5682 #define dlopen innocuous_dlopen
5684 /* System header to define __stub macros and hopefully few prototypes,
5685 which can conflict with char dlopen (); below.
5686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687 <limits.h> exists even on freestanding compilers. */
5689 #ifdef __STDC__
5690 # include <limits.h>
5691 #else
5692 # include <assert.h>
5693 #endif
5695 #undef dlopen
5697 /* Override any GCC internal prototype to avoid an error.
5698 Use char because int might match the return type of a GCC
5699 builtin and then its argument prototype would still apply. */
5700 #ifdef __cplusplus
5701 extern "C"
5702 #endif
5703 char dlopen ();
5704 /* The GNU C library defines this for functions which it implements
5705 to always fail with ENOSYS. Some functions are actually named
5706 something starting with __ and the normal name is an alias. */
5707 #if defined __stub_dlopen || defined __stub___dlopen
5708 choke me
5709 #endif
5712 main ()
5714 return dlopen ();
5716 return 0;
5718 _ACEOF
5719 rm -f conftest.$ac_objext conftest$ac_exeext
5720 if { (ac_try="$ac_link"
5721 case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_link") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_cxx_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest$ac_exeext &&
5736 $as_test_x conftest$ac_exeext; then
5737 ac_cv_func_dlopen=yes
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 ac_cv_func_dlopen=no
5745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5746 conftest$ac_exeext conftest.$ac_ext
5748 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5749 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5751 if test "$ac_cv_func_dl" = "yes"; then
5753 cat >>confdefs.h <<\_ACEOF
5754 #define DYNAMIC_LINKING 1
5755 _ACEOF
5757 else
5759 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 ac_check_lib_save_LIBS=$LIBS
5765 LIBS="-ldl $LIBS"
5766 cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5773 /* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
5776 #ifdef __cplusplus
5777 extern "C"
5778 #endif
5779 char dlopen ();
5781 main ()
5783 return dlopen ();
5785 return 0;
5787 _ACEOF
5788 rm -f conftest.$ac_objext conftest$ac_exeext
5789 if { (ac_try="$ac_link"
5790 case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_link") 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_cxx_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest$ac_exeext &&
5805 $as_test_x conftest$ac_exeext; then
5806 ac_cv_lib_dl_dlopen=yes
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_cv_lib_dl_dlopen=no
5814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5815 conftest$ac_exeext conftest.$ac_ext
5816 LIBS=$ac_check_lib_save_LIBS
5818 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5819 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5820 if test $ac_cv_lib_dl_dlopen = yes; then
5821 cat >>confdefs.h <<_ACEOF
5822 #define HAVE_LIBDL 1
5823 _ACEOF
5825 LIBS="-ldl $LIBS"
5829 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5831 for ac_func in dlopen
5833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5847 #define $ac_func innocuous_$ac_func
5849 /* System header to define __stub macros and hopefully few prototypes,
5850 which can conflict with char $ac_func (); below.
5851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5852 <limits.h> exists even on freestanding compilers. */
5854 #ifdef __STDC__
5855 # include <limits.h>
5856 #else
5857 # include <assert.h>
5858 #endif
5860 #undef $ac_func
5862 /* Override any GCC internal prototype to avoid an error.
5863 Use char because int might match the return type of a GCC
5864 builtin and then its argument prototype would still apply. */
5865 #ifdef __cplusplus
5866 extern "C"
5867 #endif
5868 char $ac_func ();
5869 /* The GNU C library defines this for functions which it implements
5870 to always fail with ENOSYS. Some functions are actually named
5871 something starting with __ and the normal name is an alias. */
5872 #if defined __stub_$ac_func || defined __stub___$ac_func
5873 choke me
5874 #endif
5877 main ()
5879 return $ac_func ();
5881 return 0;
5883 _ACEOF
5884 rm -f conftest.$ac_objext conftest$ac_exeext
5885 if { (ac_try="$ac_link"
5886 case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_link") 2>conftest.er1
5892 ac_status=$?
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } && {
5898 test -z "$ac_cxx_werror_flag" ||
5899 test ! -s conftest.err
5900 } && test -s conftest$ac_exeext &&
5901 $as_test_x conftest$ac_exeext; then
5902 eval "$as_ac_var=yes"
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 eval "$as_ac_var=no"
5910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5911 conftest$ac_exeext conftest.$ac_ext
5913 ac_res=`eval echo '${'$as_ac_var'}'`
5914 { echo "$as_me:$LINENO: result: $ac_res" >&5
5915 echo "${ECHO_T}$ac_res" >&6; }
5916 if test `eval echo '${'$as_ac_var'}'` = yes; then
5917 cat >>confdefs.h <<_ACEOF
5918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5919 _ACEOF
5922 done
5924 CONFIG_BDL="-ldl"
5926 cat >>confdefs.h <<\_ACEOF
5927 #define DYNAMIC_LINKING 1
5928 _ACEOF
5930 else
5932 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
5933 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
5934 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937 ac_check_lib_save_LIBS=$LIBS
5938 LIBS="-ldld $LIBS"
5939 cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h. */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5946 /* Override any GCC internal prototype to avoid an error.
5947 Use char because int might match the return type of a GCC
5948 builtin and then its argument prototype would still apply. */
5949 #ifdef __cplusplus
5950 extern "C"
5951 #endif
5952 char dld_link ();
5954 main ()
5956 return dld_link ();
5958 return 0;
5960 _ACEOF
5961 rm -f conftest.$ac_objext conftest$ac_exeext
5962 if { (ac_try="$ac_link"
5963 case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_link") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_cxx_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest$ac_exeext &&
5978 $as_test_x conftest$ac_exeext; then
5979 ac_cv_lib_dld_dld_link=yes
5980 else
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 ac_cv_lib_dld_dld_link=no
5987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5988 conftest$ac_exeext conftest.$ac_ext
5989 LIBS=$ac_check_lib_save_LIBS
5991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
5992 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
5993 if test $ac_cv_lib_dld_dld_link = yes; then
5994 cat >>confdefs.h <<_ACEOF
5995 #define HAVE_LIBDLD 1
5996 _ACEOF
5998 LIBS="-ldld $LIBS"
6002 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6003 CONFIG_BDL="-ldl"
6005 cat >>confdefs.h <<\_ACEOF
6006 #define DYNAMIC_LINKING 1
6007 _ACEOF
6009 else
6011 for ac_func in shl_load
6013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h. */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6027 #define $ac_func innocuous_$ac_func
6029 /* System header to define __stub macros and hopefully few prototypes,
6030 which can conflict with char $ac_func (); below.
6031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6032 <limits.h> exists even on freestanding compilers. */
6034 #ifdef __STDC__
6035 # include <limits.h>
6036 #else
6037 # include <assert.h>
6038 #endif
6040 #undef $ac_func
6042 /* Override any GCC internal prototype to avoid an error.
6043 Use char because int might match the return type of a GCC
6044 builtin and then its argument prototype would still apply. */
6045 #ifdef __cplusplus
6046 extern "C"
6047 #endif
6048 char $ac_func ();
6049 /* The GNU C library defines this for functions which it implements
6050 to always fail with ENOSYS. Some functions are actually named
6051 something starting with __ and the normal name is an alias. */
6052 #if defined __stub_$ac_func || defined __stub___$ac_func
6053 choke me
6054 #endif
6057 main ()
6059 return $ac_func ();
6061 return 0;
6063 _ACEOF
6064 rm -f conftest.$ac_objext conftest$ac_exeext
6065 if { (ac_try="$ac_link"
6066 case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069 esac
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_link") 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } && {
6078 test -z "$ac_cxx_werror_flag" ||
6079 test ! -s conftest.err
6080 } && test -s conftest$ac_exeext &&
6081 $as_test_x conftest$ac_exeext; then
6082 eval "$as_ac_var=yes"
6083 else
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 eval "$as_ac_var=no"
6090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6091 conftest$ac_exeext conftest.$ac_ext
6093 ac_res=`eval echo '${'$as_ac_var'}'`
6094 { echo "$as_me:$LINENO: result: $ac_res" >&5
6095 echo "${ECHO_T}$ac_res" >&6; }
6096 if test `eval echo '${'$as_ac_var'}'` = yes; then
6097 cat >>confdefs.h <<_ACEOF
6098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6099 _ACEOF
6102 done
6104 if test "$ac_cv_func_shl_load" = "yes"; then
6105 CONFIG_BDL="-ldl"
6107 cat >>confdefs.h <<\_ACEOF
6108 #define DYNAMIC_LINKING 1
6109 _ACEOF
6111 else
6113 for ac_func in dlopen
6115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6129 #define $ac_func innocuous_$ac_func
6131 /* System header to define __stub macros and hopefully few prototypes,
6132 which can conflict with char $ac_func (); below.
6133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6134 <limits.h> exists even on freestanding compilers. */
6136 #ifdef __STDC__
6137 # include <limits.h>
6138 #else
6139 # include <assert.h>
6140 #endif
6142 #undef $ac_func
6144 /* Override any GCC internal prototype to avoid an error.
6145 Use char because int might match the return type of a GCC
6146 builtin and then its argument prototype would still apply. */
6147 #ifdef __cplusplus
6148 extern "C"
6149 #endif
6150 char $ac_func ();
6151 /* The GNU C library defines this for functions which it implements
6152 to always fail with ENOSYS. Some functions are actually named
6153 something starting with __ and the normal name is an alias. */
6154 #if defined __stub_$ac_func || defined __stub___$ac_func
6155 choke me
6156 #endif
6159 main ()
6161 return $ac_func ();
6163 return 0;
6165 _ACEOF
6166 rm -f conftest.$ac_objext conftest$ac_exeext
6167 if { (ac_try="$ac_link"
6168 case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_link") 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } && {
6180 test -z "$ac_cxx_werror_flag" ||
6181 test ! -s conftest.err
6182 } && test -s conftest$ac_exeext &&
6183 $as_test_x conftest$ac_exeext; then
6184 eval "$as_ac_var=yes"
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 eval "$as_ac_var=no"
6192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6193 conftest$ac_exeext conftest.$ac_ext
6195 ac_res=`eval echo '${'$as_ac_var'}'`
6196 { echo "$as_me:$LINENO: result: $ac_res" >&5
6197 echo "${ECHO_T}$ac_res" >&6; }
6198 if test `eval echo '${'$as_ac_var'}'` = yes; then
6199 cat >>confdefs.h <<_ACEOF
6200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6201 _ACEOF
6204 done
6206 if test "$ac_cv_func_dlopen" = "yes"; then
6208 cat >>confdefs.h <<\_ACEOF
6209 #define DYNAMIC_LINKING 1
6210 _ACEOF
6219 #--------------------------------------------------------------------
6220 # Checks for iconv library
6221 #--------------------------------------------------------------------
6224 # Check whether --with-iconv was given.
6225 if test "${with_iconv+set}" = set; then
6226 withval=$with_iconv;
6230 # Check for iconv
6231 # Modified from GNOME's libxml2 configure.in
6233 ac_ext=c
6234 ac_cpp='$CPP $CPPFLAGS'
6235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6238 # compile C to avoid the 'const char**' problem
6239 SAVE_CPPFLAGS="$CPPFLAGS"
6240 SAVE_LDFLAGS="$LDFLAGS"
6241 SAVE_LIBS="$LIBS"
6242 if test "$with_iconv" = "no" ; then
6243 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6244 echo "${ECHO_T}disabling iconv support" >&6; }
6245 else
6246 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6247 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6248 ICONV_CFLAGS="-I$with_iconv/include"
6249 ICONV_LDFLAGS="-L$with_iconv/lib"
6252 ac_ext=c
6253 ac_cpp='$CPP $CPPFLAGS'
6254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6258 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6259 # On Suns, sometimes $CPP names a directory.
6260 if test -n "$CPP" && test -d "$CPP"; then
6261 CPP=
6263 if test -z "$CPP"; then
6264 if test "${ac_cv_prog_CPP+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 # Double quotes because CPP needs to be expanded
6268 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6270 ac_preproc_ok=false
6271 for ac_c_preproc_warn_flag in '' yes
6273 # Use a header file that comes with gcc, so configuring glibc
6274 # with a fresh cross-compiler works.
6275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6276 # <limits.h> exists even on freestanding compilers.
6277 # On the NeXT, cc -E runs the code through the compiler's parser,
6278 # not just through cpp. "Syntax error" is here to catch this case.
6279 cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h. */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 #ifdef __STDC__
6286 # include <limits.h>
6287 #else
6288 # include <assert.h>
6289 #endif
6290 Syntax error
6291 _ACEOF
6292 if { (ac_try="$ac_cpp conftest.$ac_ext"
6293 case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } >/dev/null && {
6305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 }; then
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 # Broken: fails on valid input.
6314 continue
6317 rm -f conftest.err conftest.$ac_ext
6319 # OK, works on sane cases. Now check whether nonexistent headers
6320 # can be detected and how.
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 #include <ac_nonexistent.h>
6328 _ACEOF
6329 if { (ac_try="$ac_cpp conftest.$ac_ext"
6330 case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } >/dev/null && {
6342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 }; then
6345 # Broken: success on invalid input.
6346 continue
6347 else
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6351 # Passes both tests.
6352 ac_preproc_ok=:
6353 break
6356 rm -f conftest.err conftest.$ac_ext
6358 done
6359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6360 rm -f conftest.err conftest.$ac_ext
6361 if $ac_preproc_ok; then
6362 break
6365 done
6366 ac_cv_prog_CPP=$CPP
6369 CPP=$ac_cv_prog_CPP
6370 else
6371 ac_cv_prog_CPP=$CPP
6373 { echo "$as_me:$LINENO: result: $CPP" >&5
6374 echo "${ECHO_T}$CPP" >&6; }
6375 ac_preproc_ok=false
6376 for ac_c_preproc_warn_flag in '' yes
6378 # Use a header file that comes with gcc, so configuring glibc
6379 # with a fresh cross-compiler works.
6380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6381 # <limits.h> exists even on freestanding compilers.
6382 # On the NeXT, cc -E runs the code through the compiler's parser,
6383 # not just through cpp. "Syntax error" is here to catch this case.
6384 cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h. */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6390 #ifdef __STDC__
6391 # include <limits.h>
6392 #else
6393 # include <assert.h>
6394 #endif
6395 Syntax error
6396 _ACEOF
6397 if { (ac_try="$ac_cpp conftest.$ac_ext"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } >/dev/null && {
6410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6412 }; then
6414 else
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 # Broken: fails on valid input.
6419 continue
6422 rm -f conftest.err conftest.$ac_ext
6424 # OK, works on sane cases. Now check whether nonexistent headers
6425 # can be detected and how.
6426 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 #include <ac_nonexistent.h>
6433 _ACEOF
6434 if { (ac_try="$ac_cpp conftest.$ac_ext"
6435 case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438 esac
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } >/dev/null && {
6447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6448 test ! -s conftest.err
6449 }; then
6450 # Broken: success on invalid input.
6451 continue
6452 else
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6456 # Passes both tests.
6457 ac_preproc_ok=:
6458 break
6461 rm -f conftest.err conftest.$ac_ext
6463 done
6464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6465 rm -f conftest.err conftest.$ac_ext
6466 if $ac_preproc_ok; then
6468 else
6469 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6470 See \`config.log' for more details." >&5
6471 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6472 See \`config.log' for more details." >&2;}
6473 { (exit 1); exit 1; }; }
6476 ac_ext=c
6477 ac_cpp='$CPP $CPPFLAGS'
6478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6483 if test "${ac_cv_header_iconv_h+set}" = set; then
6484 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6485 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6486 if test "${ac_cv_header_iconv_h+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6490 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6491 else
6492 # Is the header compilable?
6493 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6494 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6495 cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h. */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6501 $ac_includes_default
6502 #include <iconv.h>
6503 _ACEOF
6504 rm -f conftest.$ac_objext
6505 if { (ac_try="$ac_compile"
6506 case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest.$ac_objext; then
6521 ac_header_compiler=yes
6522 else
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 ac_header_compiler=no
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6531 echo "${ECHO_T}$ac_header_compiler" >&6; }
6533 # Is the header present?
6534 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6535 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 #include <iconv.h>
6543 _ACEOF
6544 if { (ac_try="$ac_cpp conftest.$ac_ext"
6545 case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } >/dev/null && {
6557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6559 }; then
6560 ac_header_preproc=yes
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 ac_header_preproc=no
6568 rm -f conftest.err conftest.$ac_ext
6569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6570 echo "${ECHO_T}$ac_header_preproc" >&6; }
6572 # So? What about this header?
6573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6574 yes:no: )
6575 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6576 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6578 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6579 ac_header_preproc=yes
6581 no:yes:* )
6582 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6583 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6584 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6585 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6587 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6588 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6589 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6591 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6593 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6596 esac
6597 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6598 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6599 if test "${ac_cv_header_iconv_h+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602 ac_cv_header_iconv_h=$ac_header_preproc
6604 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6605 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6608 if test $ac_cv_header_iconv_h = yes; then
6609 { echo "$as_me:$LINENO: checking for iconv" >&5
6610 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6619 #include <stdlib.h>
6620 #include <iconv.h>
6623 main ()
6626 iconv_t cd = iconv_open ("","");
6627 iconv (cd, NULL, NULL, NULL, NULL);
6630 return 0;
6632 _ACEOF
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (ac_try="$ac_link"
6635 case "(($ac_try" in
6636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637 *) ac_try_echo=$ac_try;;
6638 esac
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640 (eval "$ac_link") 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && {
6647 test -z "$ac_c_werror_flag" ||
6648 test ! -s conftest.err
6649 } && test -s conftest$ac_exeext &&
6650 $as_test_x conftest$ac_exeext; then
6652 { echo "$as_me:$LINENO: result: yes" >&5
6653 echo "${ECHO_T}yes" >&6; }
6655 cat >>confdefs.h <<\_ACEOF
6656 #define USE_ICONV 1
6657 _ACEOF
6660 else
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6665 { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6667 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6668 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6669 LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6670 LIBS="-liconv" # for AC_TRY_LINK
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6678 #include <stdlib.h>
6679 #include <iconv.h>
6682 main ()
6685 iconv_t cd = iconv_open ("","");
6686 iconv (cd, NULL, NULL, NULL, NULL);
6689 return 0;
6691 _ACEOF
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (ac_try="$ac_link"
6694 case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6697 esac
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_link") 2>conftest.er1
6700 ac_status=$?
6701 grep -v '^ *+' conftest.er1 >conftest.err
6702 rm -f conftest.er1
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && {
6706 test -z "$ac_c_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest$ac_exeext &&
6709 $as_test_x conftest$ac_exeext; then
6711 { echo "$as_me:$LINENO: result: yes" >&5
6712 echo "${ECHO_T}yes" >&6; }
6714 cat >>confdefs.h <<\_ACEOF
6715 #define USE_ICONV 1
6716 _ACEOF
6718 ICONV_LDFLAGS="${ICONV_LDFLAGS} -liconv"
6720 else
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6727 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6728 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6733 conftest$ac_exeext conftest.$ac_ext
6736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6737 conftest$ac_exeext conftest.$ac_ext
6743 CPPFLAGS="$SAVE_CPPFLAGS"
6744 LDFLAGS="$SAVE_LDFLAGS"
6745 LIBS="$SAVE_LIBS"
6746 ac_ext=cpp
6747 ac_cpp='$CXXCPP $CPPFLAGS'
6748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6751 # restore C++ language
6756 #--------------------------------------------------------------------
6757 # Checks for freetype library
6758 #--------------------------------------------------------------------
6761 # Check whether --with-freetype was given.
6762 if test "${with_freetype+set}" = set; then
6763 withval=$with_freetype;
6767 SAVE_CPPFLAGS="$CPPFLAGS"
6768 SAVE_LDFLAGS="$LDFLAGS"
6769 SAVE_LIBS="$LIBS"
6770 if test "$with_freetype" = "no" ; then
6771 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6772 echo "${ECHO_T}disabling freetype support" >&6; }
6773 else
6774 CPPFLAGS=`freetype-config --cflags`
6775 LIBS=`freetype-config --libs`
6776 if test "${ac_cv_header_ft2build_h+set}" = set; then
6777 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6778 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6779 if test "${ac_cv_header_ft2build_h+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6783 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6784 else
6785 # Is the header compilable?
6786 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6787 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6795 #include <ft2build.h>
6796 _ACEOF
6797 rm -f conftest.$ac_objext
6798 if { (ac_try="$ac_compile"
6799 case "(($ac_try" in
6800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801 *) ac_try_echo=$ac_try;;
6802 esac
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804 (eval "$ac_compile") 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && {
6811 test -z "$ac_cxx_werror_flag" ||
6812 test ! -s conftest.err
6813 } && test -s conftest.$ac_objext; then
6814 ac_header_compiler=yes
6815 else
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6819 ac_header_compiler=no
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6824 echo "${ECHO_T}$ac_header_compiler" >&6; }
6826 # Is the header present?
6827 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6828 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <ft2build.h>
6836 _ACEOF
6837 if { (ac_try="$ac_cpp conftest.$ac_ext"
6838 case "(($ac_try" in
6839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840 *) ac_try_echo=$ac_try;;
6841 esac
6842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6844 ac_status=$?
6845 grep -v '^ *+' conftest.er1 >conftest.err
6846 rm -f conftest.er1
6847 cat conftest.err >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } >/dev/null && {
6850 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6851 test ! -s conftest.err
6852 }; then
6853 ac_header_preproc=yes
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 ac_header_preproc=no
6861 rm -f conftest.err conftest.$ac_ext
6862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6863 echo "${ECHO_T}$ac_header_preproc" >&6; }
6865 # So? What about this header?
6866 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6867 yes:no: )
6868 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
6869 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6870 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
6871 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
6872 ac_header_preproc=yes
6874 no:yes:* )
6875 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
6876 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
6877 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
6878 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
6880 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
6882 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
6883 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
6884 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
6885 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
6886 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
6889 esac
6890 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6891 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6892 if test "${ac_cv_header_ft2build_h+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 ac_cv_header_ft2build_h=$ac_header_preproc
6897 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6898 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6901 if test $ac_cv_header_ft2build_h = yes; then
6902 { echo "$as_me:$LINENO: checking for freetype" >&5
6903 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
6904 cat >conftest.$ac_ext <<_ACEOF
6905 /* confdefs.h. */
6906 _ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6911 #include <ft2build.h>
6912 #include FT_FREETYPE_H
6915 main ()
6918 FT_Library ft_library;
6919 (void) FT_Init_FreeType (&ft_library);
6922 return 0;
6924 _ACEOF
6925 rm -f conftest.$ac_objext conftest$ac_exeext
6926 if { (ac_try="$ac_link"
6927 case "(($ac_try" in
6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6929 *) ac_try_echo=$ac_try;;
6930 esac
6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932 (eval "$ac_link") 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && {
6939 test -z "$ac_cxx_werror_flag" ||
6940 test ! -s conftest.err
6941 } && test -s conftest$ac_exeext &&
6942 $as_test_x conftest$ac_exeext; then
6944 { echo "$as_me:$LINENO: result: yes" >&5
6945 echo "${ECHO_T}yes" >&6; }
6947 cat >>confdefs.h <<\_ACEOF
6948 #define USE_FREETYPE 1
6949 _ACEOF
6951 FREETYPE_CFLAGS="$CPPFLAGS"
6952 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
6953 FREETYPE_LDFLAGS="$LIBS"
6955 cat >>confdefs.h <<\_ACEOF
6956 #define LINKED_FREETYPE 1
6957 _ACEOF
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6966 { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6971 conftest$ac_exeext conftest.$ac_ext
6977 CPPFLAGS="$SAVE_CPPFLAGS"
6978 LDFLAGS="$SAVE_LDFLAGS"
6979 LIBS="$SAVE_LIBS"
6984 #--------------------------------------------------------------------
6985 # Checks for Cairo library
6986 #--------------------------------------------------------------------
6989 # Check whether --with-cairo was given.
6990 if test "${with_cairo+set}" = set; then
6991 withval=$with_cairo;
6995 SAVE_CPPFLAGS="$CPPFLAGS"
6996 SAVE_LDFLAGS="$LDFLAGS"
6997 SAVE_LIBS="$LIBS"
6998 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
6999 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7000 echo "${ECHO_T}disabling cairo support" >&6; }
7001 else
7002 CPPFLAGS=`pkg-config --cflags cairo`
7003 LIBS=`pkg-config --libs cairo`
7004 if test "${ac_cv_header_cairo_h+set}" = set; then
7005 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7006 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7007 if test "${ac_cv_header_cairo_h+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7011 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7012 else
7013 # Is the header compilable?
7014 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7015 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 $ac_includes_default
7023 #include <cairo.h>
7024 _ACEOF
7025 rm -f conftest.$ac_objext
7026 if { (ac_try="$ac_compile"
7027 case "(($ac_try" in
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7030 esac
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032 (eval "$ac_compile") 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && {
7039 test -z "$ac_cxx_werror_flag" ||
7040 test ! -s conftest.err
7041 } && test -s conftest.$ac_objext; then
7042 ac_header_compiler=yes
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_header_compiler=no
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7052 echo "${ECHO_T}$ac_header_compiler" >&6; }
7054 # Is the header present?
7055 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7056 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 #include <cairo.h>
7064 _ACEOF
7065 if { (ac_try="$ac_cpp conftest.$ac_ext"
7066 case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069 esac
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } >/dev/null && {
7078 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7079 test ! -s conftest.err
7080 }; then
7081 ac_header_preproc=yes
7082 else
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_header_preproc=no
7089 rm -f conftest.err conftest.$ac_ext
7090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7091 echo "${ECHO_T}$ac_header_preproc" >&6; }
7093 # So? What about this header?
7094 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7095 yes:no: )
7096 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7097 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7098 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7099 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7100 ac_header_preproc=yes
7102 no:yes:* )
7103 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7104 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7105 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7106 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7107 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7108 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7109 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7110 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7111 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7112 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7113 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7114 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7117 esac
7118 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7119 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7120 if test "${ac_cv_header_cairo_h+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 ac_cv_header_cairo_h=$ac_header_preproc
7125 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7126 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7129 if test $ac_cv_header_cairo_h = yes; then
7130 { echo "$as_me:$LINENO: checking for cairo" >&5
7131 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7139 #include <cairo.h>
7142 main ()
7145 cairo_surface_t *surface;
7146 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7149 return 0;
7151 _ACEOF
7152 rm -f conftest.$ac_objext conftest$ac_exeext
7153 if { (ac_try="$ac_link"
7154 case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_link") 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_cxx_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest$ac_exeext &&
7169 $as_test_x conftest$ac_exeext; then
7171 { echo "$as_me:$LINENO: result: yes" >&5
7172 echo "${ECHO_T}yes" >&6; }
7174 cat >>confdefs.h <<\_ACEOF
7175 #define USE_CAIRO 1
7176 _ACEOF
7178 CAIRO_CFLAGS="$CPPFLAGS"
7179 if test "$with_cairo" = "linked" ; then
7180 CAIRO_LDFLAGS="$LIBS"
7182 cat >>confdefs.h <<\_ACEOF
7183 #define LINKED_CAIRO 1
7184 _ACEOF
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7198 conftest$ac_exeext conftest.$ac_ext
7204 CPPFLAGS="$SAVE_CPPFLAGS"
7205 LDFLAGS="$SAVE_LDFLAGS"
7206 LIBS="$SAVE_LIBS"
7211 #--------------------------------------------------------------------
7212 # Checks for Imlib2 library
7213 #--------------------------------------------------------------------
7216 # Check whether --with-imlib2 was given.
7217 if test "${with_imlib2+set}" = set; then
7218 withval=$with_imlib2;
7222 SAVE_CPPFLAGS="$CPPFLAGS"
7223 SAVE_LDFLAGS="$LDFLAGS"
7224 SAVE_LIBS="$LIBS"
7225 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7226 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7227 echo "${ECHO_T}disabling imlib2 support" >&6; }
7228 else
7229 CPPFLAGS=`imlib2-config --cflags`
7230 LIBS=`imlib2-config --libs`
7231 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7232 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7233 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7234 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7238 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7239 else
7240 # Is the header compilable?
7241 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7242 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 $ac_includes_default
7250 #include <Imlib2.h>
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7254 case "(($ac_try" in
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7257 esac
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_cxx_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_header_compiler=yes
7270 else
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_header_compiler=no
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7279 echo "${ECHO_T}$ac_header_compiler" >&6; }
7281 # Is the header present?
7282 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7283 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 #include <Imlib2.h>
7291 _ACEOF
7292 if { (ac_try="$ac_cpp conftest.$ac_ext"
7293 case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296 esac
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } >/dev/null && {
7305 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7306 test ! -s conftest.err
7307 }; then
7308 ac_header_preproc=yes
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 ac_header_preproc=no
7316 rm -f conftest.err conftest.$ac_ext
7317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7318 echo "${ECHO_T}$ac_header_preproc" >&6; }
7320 # So? What about this header?
7321 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7322 yes:no: )
7323 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7324 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7326 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7327 ac_header_preproc=yes
7329 no:yes:* )
7330 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7331 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7333 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7334 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7335 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7336 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7337 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7338 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7339 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7340 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7341 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7344 esac
7345 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7346 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7347 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350 ac_cv_header_Imlib2_h=$ac_header_preproc
7352 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7353 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7356 if test $ac_cv_header_Imlib2_h = yes; then
7357 { echo "$as_me:$LINENO: checking for imlib2" >&5
7358 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h. */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7366 #include <X11/Xlib.h>
7367 #include <Imlib2.h>
7368 #include <stdio.h>
7369 #include <string.h>
7372 main ()
7375 Imlib_Image image= imlib_load_image("");
7378 return 0;
7380 _ACEOF
7381 rm -f conftest.$ac_objext conftest$ac_exeext
7382 if { (ac_try="$ac_link"
7383 case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_link") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_cxx_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest$ac_exeext &&
7398 $as_test_x conftest$ac_exeext; then
7400 { echo "$as_me:$LINENO: result: yes" >&5
7401 echo "${ECHO_T}yes" >&6; }
7403 cat >>confdefs.h <<\_ACEOF
7404 #define USE_IMLIB2 1
7405 _ACEOF
7407 IMLIB2_CFLAGS="$CPPFLAGS"
7408 if test "$with_imlib2" = "linked" ; then
7409 IMLIB2_LDFLAGS="$LIBS"
7411 cat >>confdefs.h <<\_ACEOF
7412 #define LINKED_IMLIB2 1
7413 _ACEOF
7417 else
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7422 { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7427 conftest$ac_exeext conftest.$ac_ext
7433 CPPFLAGS="$SAVE_CPPFLAGS"
7434 LDFLAGS="$SAVE_LDFLAGS"
7435 LIBS="$SAVE_LIBS"
7440 #--------------------------------------------------------------------
7441 # Checks for Axel library
7442 #--------------------------------------------------------------------
7445 # Check whether --with-axel was given.
7446 if test "${with_axel+set}" = set; then
7447 withval=$with_axel;
7451 SAVE_CPPFLAGS="$CPPFLAGS"
7452 SAVE_LDFLAGS="$LDFLAGS"
7453 SAVE_LIBS="$LIBS"
7454 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7455 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7456 echo "${ECHO_T}disabling axel support" >&6; }
7457 else
7458 CPPFLAGS=`axel-config --cflags`
7459 LIBS=`axel-config --libs`
7460 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7461 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7462 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7463 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7467 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7468 else
7469 # Is the header compilable?
7470 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7471 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7472 cat >conftest.$ac_ext <<_ACEOF
7473 /* confdefs.h. */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 $ac_includes_default
7479 #include <QGui/Viewer.h>
7480 _ACEOF
7481 rm -f conftest.$ac_objext
7482 if { (ac_try="$ac_compile"
7483 case "(($ac_try" in
7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7486 esac
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7489 ac_status=$?
7490 grep -v '^ *+' conftest.er1 >conftest.err
7491 rm -f conftest.er1
7492 cat conftest.err >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_cxx_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.$ac_objext; then
7498 ac_header_compiler=yes
7499 else
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 ac_header_compiler=no
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7508 echo "${ECHO_T}$ac_header_compiler" >&6; }
7510 # Is the header present?
7511 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7512 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 #include <QGui/Viewer.h>
7520 _ACEOF
7521 if { (ac_try="$ac_cpp conftest.$ac_ext"
7522 case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525 esac
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } >/dev/null && {
7534 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7535 test ! -s conftest.err
7536 }; then
7537 ac_header_preproc=yes
7538 else
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7542 ac_header_preproc=no
7545 rm -f conftest.err conftest.$ac_ext
7546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7547 echo "${ECHO_T}$ac_header_preproc" >&6; }
7549 # So? What about this header?
7550 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7551 yes:no: )
7552 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7553 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7555 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7556 ac_header_preproc=yes
7558 no:yes:* )
7559 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7560 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7561 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7562 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7564 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7565 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7566 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7567 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7568 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7570 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7573 esac
7574 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7575 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7576 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7581 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7582 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7585 if test $ac_cv_header_QGui_Viewer_h = yes; then
7586 { echo "$as_me:$LINENO: checking for axel" >&5
7587 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7595 #include <QGui/Viewer.h>
7598 main ()
7601 Viewer viewer(0);
7604 return 0;
7606 _ACEOF
7607 rm -f conftest.$ac_objext conftest$ac_exeext
7608 if { (ac_try="$ac_link"
7609 case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612 esac
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_link") 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_cxx_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest$ac_exeext &&
7624 $as_test_x conftest$ac_exeext; then
7626 { echo "$as_me:$LINENO: result: yes" >&5
7627 echo "${ECHO_T}yes" >&6; }
7629 cat >>confdefs.h <<\_ACEOF
7630 #define USE_AXEL 1
7631 _ACEOF
7633 AXEL_CFLAGS="$CPPFLAGS"
7634 if test "$with_axel" = "linked" ; then
7635 AXEL_LDFLAGS="$LIBS"
7637 cat >>confdefs.h <<\_ACEOF
7638 #define LINKED_AXEL 1
7639 _ACEOF
7643 else
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7648 { echo "$as_me:$LINENO: result: no" >&5
7649 echo "${ECHO_T}no" >&6; }
7652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7653 conftest$ac_exeext conftest.$ac_ext
7659 CPPFLAGS="$SAVE_CPPFLAGS"
7660 LDFLAGS="$SAVE_LDFLAGS"
7661 LIBS="$SAVE_LIBS"
7666 #--------------------------------------------------------------------
7667 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7668 #--------------------------------------------------------------------
7670 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7671 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7672 CXXFLAGS="`guile-config compile`"
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7680 #include <guile/gh.h>
7681 #include <libguile.h>
7682 typedef SCM (*FN)(...);
7683 static SCM identity (SCM x) { return x; }
7684 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7687 main ()
7692 return 0;
7694 _ACEOF
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7697 case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700 esac
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_cxx_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7714 cat >>confdefs.h <<\_ACEOF
7715 #define DOTS_OK 1
7716 _ACEOF
7718 { echo "$as_me:$LINENO: result: yes" >&5
7719 echo "${ECHO_T}yes" >&6; }
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7726 { echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6; }
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 CXXFLAGS=""
7734 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
7735 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
7736 CXXFLAGS="`guile-config compile`"
7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7744 #include <guile/gh.h>
7745 #include <libguile.h>
7746 void print_string (SCM s) {
7747 int len_r;
7748 char* r= gh_scm2newstr (s, &len_r); }
7751 main ()
7756 return 0;
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (ac_try="$ac_compile"
7761 case "(($ac_try" in
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7764 esac
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_compile") 2>conftest.er1
7767 ac_status=$?
7768 grep -v '^ *+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_cxx_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest.$ac_objext; then
7778 cat >>confdefs.h <<\_ACEOF
7779 #define guile_str_size_t int
7780 _ACEOF
7782 { echo "$as_me:$LINENO: result: int" >&5
7783 echo "${ECHO_T}int" >&6; }
7785 else
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7791 cat >>confdefs.h <<\_ACEOF
7792 #define guile_str_size_t size_t
7793 _ACEOF
7795 { echo "$as_me:$LINENO: result: size_t" >&5
7796 echo "${ECHO_T}size_t" >&6; }
7800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801 CXXFLAGS=""
7803 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
7804 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
7805 CPPFLAGS="$GUILE_CFLAGS"
7806 LDFLAGS="-static"
7807 LIBS="$GUILE_LDFLAGS"
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7815 #include <guile/gh.h>
7816 $CONFIG_DOTS
7819 main ()
7822 struct dummy {
7823 static void my_main (int argc, char** argv) {}
7824 static void install_guile () {
7825 #ifdef DOTS_OK
7826 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7827 #else
7828 gh_enter (0, NULL, my_main);
7829 #endif
7832 dummy::install_guile ();
7835 return 0;
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (ac_try="$ac_link"
7840 case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_link") 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && {
7852 test -z "$ac_cxx_werror_flag" ||
7853 test ! -s conftest.err
7854 } && test -s conftest$ac_exeext &&
7855 $as_test_x conftest$ac_exeext; then
7856 tm_link_guile_static="yes"
7857 else
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 tm_link_guile_static="no"
7864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7865 conftest$ac_exeext conftest.$ac_ext
7867 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
7868 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
7869 if test "$tm_link_guile_static" = "no" ; then
7870 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
7871 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
7872 LIBS="$GUILE_LDFLAGS -lltdl"
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h. */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7880 #include <guile/gh.h>
7881 $CONFIG_DOTS
7884 main ()
7887 struct dummy {
7888 static void my_main (int argc, char** argv) {}
7889 static void install_guile () {
7890 #ifdef DOTS_OK
7891 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7892 #else
7893 gh_enter (0, NULL, my_main);
7894 #endif
7897 dummy::install_guile ();
7900 return 0;
7902 _ACEOF
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (ac_try="$ac_link"
7905 case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7908 esac
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_link") 2>conftest.er1
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_cxx_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest$ac_exeext &&
7920 $as_test_x conftest$ac_exeext; then
7921 tm_link_guile_static_ltdl="yes"
7922 else
7923 echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7926 tm_link_guile_static_ltdl="no"
7929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7930 conftest$ac_exeext conftest.$ac_ext
7932 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
7933 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
7934 if test "$tm_link_guile_static_ltdl" = "yes" ; then
7935 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
7936 else
7937 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
7938 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
7939 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7947 #include <guile/gh.h>
7948 $CONFIG_DOTS
7951 main ()
7954 struct dummy {
7955 static void my_main (int argc, char** argv) {}
7956 static void install_guile () {
7957 #ifdef DOTS_OK
7958 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7959 #else
7960 gh_enter (0, NULL, my_main);
7961 #endif
7964 dummy::install_guile ();
7967 return 0;
7969 _ACEOF
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (ac_try="$ac_link"
7972 case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_link") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_cxx_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest$ac_exeext &&
7987 $as_test_x conftest$ac_exeext; then
7988 tm_link_guile_static_ltdl_ldl="yes"
7989 else
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 tm_link_guile_static_ltdl_ldl="no"
7996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7997 conftest$ac_exeext conftest.$ac_ext
7999 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8000 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8001 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8002 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8003 else
8004 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8005 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8009 CPPFLAGS=""
8010 LDFLAGS=""
8011 LIBS=""
8013 #--------------------------------------------------------------------
8014 # Handle different systems case by case
8015 #--------------------------------------------------------------------
8017 CONFIG_OS="GNU_LINUX"
8018 CONFIG_OS_SUFFIX="gnu-linux"
8019 CONFIG_MACOS=""
8020 CONFIG_CXXFLAGS=""
8021 CONFIG_CXXTEMPLATE=""
8022 CONFIG_STD_SETENV="#define STD_SETENV"
8023 CONFIG_SO="so"
8024 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8025 CONFIG_CHMOD="chmod -f"
8026 CONFIG_CXXOPTIMIZE="-O2"
8027 CONFIG_BSTATIC="-Wl,-Bstatic"
8028 CONFIG_BSHARED="-Wl,-Bdynamic"
8029 CONFIG_BFLAGS=""
8030 CONFIG_BPATH="-Wl,-rpath,"
8031 CONFIG_WORD_LENGTH="4"
8032 CONFIG_WORD_LENGTH_INC="3"
8033 CONFIG_WORD_MASK="0xfffffffc"
8034 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8036 X11_CFLAGS="$X_CFLAGS"
8037 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8039 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8040 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8041 if test "$cross_compiling" = yes; then
8042 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8043 See \`config.log' for more details." >&5
8044 echo "$as_me: error: cannot run test program while cross compiling
8045 See \`config.log' for more details." >&2;}
8046 { (exit 1); exit 1; }; }
8047 else
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8056 main ()
8058 return(sizeof(void*))
8060 return 0;
8062 _ACEOF
8063 rm -f conftest$ac_exeext
8064 if { (ac_try="$ac_link"
8065 case "(($ac_try" in
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_link") 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 void_size=0
8084 else
8085 echo "$as_me: program exited with status $ac_status" >&5
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8089 ( exit $ac_status )
8090 void_size=$?
8092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8096 if test "$void_size" = "8"; then
8097 { echo "$as_me:$LINENO: result: yes" >&5
8098 echo "${ECHO_T}yes" >&6; }
8099 CONFIG_WORD_LENGTH="8"
8100 CONFIG_WORD_LENGTH_INC="7"
8101 CONFIG_WORD_MASK="0xfffffffffffffff8"
8102 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8103 else
8104 { echo "$as_me:$LINENO: result: no" >&5
8105 echo "${ECHO_T}no" >&6; }
8108 ac_aux_dir=
8109 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8110 if test -f "$ac_dir/install-sh"; then
8111 ac_aux_dir=$ac_dir
8112 ac_install_sh="$ac_aux_dir/install-sh -c"
8113 break
8114 elif test -f "$ac_dir/install.sh"; then
8115 ac_aux_dir=$ac_dir
8116 ac_install_sh="$ac_aux_dir/install.sh -c"
8117 break
8118 elif test -f "$ac_dir/shtool"; then
8119 ac_aux_dir=$ac_dir
8120 ac_install_sh="$ac_aux_dir/shtool install -c"
8121 break
8123 done
8124 if test -z "$ac_aux_dir"; then
8125 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
8126 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
8127 { (exit 1); exit 1; }; }
8130 # These three variables are undocumented and unsupported,
8131 # and are intended to be withdrawn in a future Autoconf release.
8132 # They can cause serious problems if a builder's source tree is in a directory
8133 # whose full name contains unusual characters.
8134 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8135 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8136 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8139 # Make sure we can run config.sub.
8140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8141 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8142 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8143 { (exit 1); exit 1; }; }
8145 { echo "$as_me:$LINENO: checking build system type" >&5
8146 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
8147 if test "${ac_cv_build+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150 ac_build_alias=$build_alias
8151 test "x$ac_build_alias" = x &&
8152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8153 test "x$ac_build_alias" = x &&
8154 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8155 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8156 { (exit 1); exit 1; }; }
8157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8160 { (exit 1); exit 1; }; }
8163 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8164 echo "${ECHO_T}$ac_cv_build" >&6; }
8165 case $ac_cv_build in
8166 *-*-*) ;;
8167 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8168 echo "$as_me: error: invalid value of canonical build" >&2;}
8169 { (exit 1); exit 1; }; };;
8170 esac
8171 build=$ac_cv_build
8172 ac_save_IFS=$IFS; IFS='-'
8173 set x $ac_cv_build
8174 shift
8175 build_cpu=$1
8176 build_vendor=$2
8177 shift; shift
8178 # Remember, the first character of IFS is used to create $*,
8179 # except with old shells:
8180 build_os=$*
8181 IFS=$ac_save_IFS
8182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8185 { echo "$as_me:$LINENO: checking host system type" >&5
8186 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8187 if test "${ac_cv_host+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190 if test "x$host_alias" = x; then
8191 ac_cv_host=$ac_cv_build
8192 else
8193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8194 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8195 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8196 { (exit 1); exit 1; }; }
8200 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8201 echo "${ECHO_T}$ac_cv_host" >&6; }
8202 case $ac_cv_host in
8203 *-*-*) ;;
8204 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8205 echo "$as_me: error: invalid value of canonical host" >&2;}
8206 { (exit 1); exit 1; }; };;
8207 esac
8208 host=$ac_cv_host
8209 ac_save_IFS=$IFS; IFS='-'
8210 set x $ac_cv_host
8211 shift
8212 host_cpu=$1
8213 host_vendor=$2
8214 shift; shift
8215 # Remember, the first character of IFS is used to create $*,
8216 # except with old shells:
8217 host_os=$*
8218 IFS=$ac_save_IFS
8219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8222 case "${host}" in
8223 i*86-*-linux* | x86_64-*-linux*)
8224 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8225 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8226 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8228 i*86-*-freebsd* | x86_64-*-freebsd*)
8229 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8230 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8231 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8233 i*86-*-solaris*)
8234 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8235 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8236 CONFIG_CXXOPTIMIZE="-O3"
8237 CONFIG_BPATH="-Wl,-R,"
8238 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8240 *-*-cygwin)
8241 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8242 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8243 CONFIG_OS="CYGWIN"
8244 CONFIG_BFLAGS="-Wl,-stack,8388608"
8245 # CXX="export CYGWIN=check_case:strict; $CXX"
8246 # AC_SUBST(CXX)
8248 *apple*darwin*)
8249 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8250 CONFIG_OS="MACOS"
8251 CONFIG_CXXFLAGS="-I${prefix}/include"
8252 CONFIG_BSHARED=""
8253 CONFIG_BFLAGS="-framework Cocoa"
8254 CONFIG_BPATH=""
8255 CONFIG_SO="dylib"
8256 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8258 *darwin*)
8259 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8260 CONFIG_CXXFLAGS="-I${prefix}/include"
8261 CONFIG_BSHARED=""
8262 CONFIG_BPATH=""
8263 CONFIG_SO="dylib"
8264 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8266 powerpc-*-linux*)
8267 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8268 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8269 CONFIG_OS="POWERPC_GNU_LINUX"
8270 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8272 *sun*)
8273 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8274 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8275 CONFIG_OS="SUN"
8276 CONFIG_OS_SUFFIX="sun"
8277 CONFIG_BSTATIC=""
8278 CONFIG_BSHARED=""
8279 CONFIG_BPATH="-Wl,-R,"
8280 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8281 CONFIG_WORD_LENGTH="8"
8282 CONFIG_WORD_LENGTH_INC="7"
8283 CONFIG_WORD_MASK="0xfffffff8"
8284 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8285 CONFIG_STD_SETENV=""
8287 sparc*-*-linux*)
8288 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8289 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8290 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8291 CONFIG_WORD_LENGTH="8"
8292 CONFIG_WORD_LENGTH_INC="7"
8293 CONFIG_WORD_MASK="0xfffffff8"
8294 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8295 CONFIG_STD_SETENV=""
8297 *dec*)
8298 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8299 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8300 CONFIG_BSTATIC=""
8301 CONFIG_BSHARED="-shared"
8302 CONFIG_STD_SETENV=""
8304 *alpha*-*-linux*)
8305 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8306 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8307 CONFIG_BSTATIC=""
8308 CONFIG_BSHARED="-shared"
8310 s390-*-linux*)
8311 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8312 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8313 CONFIG_STD_SETENV=""
8315 ia64-*-linux*)
8316 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8317 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8318 CONFIG_BSTATIC=""
8319 CONFIG_BSHARED="-shared"
8321 hppa*-*-linux*)
8322 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8323 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8324 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
8325 CONFIG_BSTATIC=""
8326 CONFIG_BSHARED="-shared"
8328 *sgi-irix*)
8329 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8330 CONFIG_OS="IRIX"
8331 CONFIG_CXXFLAGS=""
8332 X_LIBS=-L/usr/lib32
8333 CONFIG_BSTATIC=""
8334 CONFIG_BSHARED=""
8335 CONFIG_BPATH=""
8336 X11_LDFLAGS="$X_LIBS -lX11"
8337 CONFIG_WORD_MASK="0xfffffff8"
8338 CONFIG_STD_SETENV=""
8339 CONFIG_CHMOD="chmod"
8340 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
8342 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
8343 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8344 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8346 *-linux*)
8347 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8348 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8351 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8352 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8354 esac
8356 #--------------------------------------------------------------------
8357 # Temporary fix for link problem
8358 #--------------------------------------------------------------------
8360 case "$GXX_VERSION" in
8361 3.* | 4.*)
8362 CONFIG_BSTATIC="-static"
8363 CONFIG_BSHARED="-dynamic"
8365 esac
8367 #--------------------------------------------------------------------
8368 # Memory allocation options
8369 #--------------------------------------------------------------------
8371 # Check whether --enable-fastalloc was given.
8372 if test "${enable_fastalloc+set}" = set; then
8373 enableval=$enable_fastalloc;
8374 else
8375 enable_fastalloc="yes"
8378 case "$enable_fastalloc" in
8379 yes)
8382 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8383 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8385 cat >>confdefs.h <<\_ACEOF
8386 #define NO_FAST_ALLOC 1
8387 _ACEOF
8391 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8392 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8393 { (exit 1); exit 1; }; }
8395 esac
8397 #--------------------------------------------------------------------
8398 # Experimental options
8399 #--------------------------------------------------------------------
8401 # Check whether --enable-experimental was given.
8402 if test "${enable_experimental+set}" = set; then
8403 enableval=$enable_experimental;
8404 else
8405 enable_experimental="no"
8408 case "$enable_experimental" in
8409 yes)
8410 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8411 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8413 cat >>confdefs.h <<\_ACEOF
8414 #define EXPERIMENTAL 1
8415 _ACEOF
8417 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
8420 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8421 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8422 CONFIG_EXPERIMENTAL=""
8425 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8426 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8427 { (exit 1); exit 1; }; }
8429 esac
8432 #--------------------------------------------------------------------
8433 # MacOS X extensions (spellchecker, image loading)
8434 #--------------------------------------------------------------------
8436 # Check whether --enable-macosx-extensions was given.
8437 if test "${enable_macosx_extensions+set}" = set; then
8438 enableval=$enable_macosx_extensions;
8439 else
8440 enable_macosx_extensions="no"
8443 case "$enable_macosx_extensions" in
8444 yes)
8445 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
8446 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
8448 cat >>confdefs.h <<\_ACEOF
8449 #define MACOSX_EXTENSIONS 1
8450 _ACEOF
8452 CONFIG_MACOS="MacOS"
8455 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
8456 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
8457 CONFIG_MACOS=""
8460 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
8461 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
8462 { (exit 1); exit 1; }; }
8464 esac
8467 #--------------------------------------------------------------------
8468 # Gui selection
8469 #--------------------------------------------------------------------
8471 CONFIG_X11=""
8472 CONFIG_COCOA=""
8473 CONFIG_GUI="X11"
8475 # Check whether --enable-qt was given.
8476 if test "${enable_qt+set}" = set; then
8477 enableval=$enable_qt;
8478 else
8479 enable_qt="no"
8483 case "$enable_qt" in
8484 yes)
8486 if test -r "/c/Qt"; then
8487 MOC="`which moc`"
8488 qt_bin="`dirname $MOC`"
8489 qt_home="`dirname $qt_bin`"
8490 qt_version="`basename $qt_home`"
8491 qt_parent="`dirname $qt_home`"
8492 QT_CPPFLAGS="-I$qt_home/mkspecs/macx-g++ -I$qt_home/include/QtCore -I$qt_home/include/QtGui -I$qt_home/include -I/$qt_home/include/ActiveQt -I."
8493 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
8494 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
8495 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
8496 if test "$qt_parent" != "/c/Qt"; then
8497 at_cv_qt_build="ko"
8499 else
8504 test x"$TROLL" != x && echo 'ViM rox emacs.'
8507 # Check whether --with-qt was given.
8508 if test "${with_qt+set}" = set; then
8509 withval=$with_qt; QT_PATH=$withval
8510 else
8511 QT_PATH=
8515 # Find Qt.
8516 if test -d /usr/local/Trolltech; then
8517 # Try to find the latest version.
8518 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
8519 | xargs | sed 's/ */:/g'`
8522 # Find qmake.
8523 for ac_prog in qmake
8525 # Extract the first word of "$ac_prog", so it can be a program name with args.
8526 set dummy $ac_prog; ac_word=$2
8527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8529 if test "${ac_cv_path_QMAKE+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532 case $QMAKE in
8533 [\\/]* | ?:[\\/]*)
8534 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
8539 for as_dir in $as_dummy
8541 IFS=$as_save_IFS
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8545 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
8546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 break 2
8549 done
8550 done
8551 IFS=$as_save_IFS
8554 esac
8556 QMAKE=$ac_cv_path_QMAKE
8557 if test -n "$QMAKE"; then
8558 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8559 echo "${ECHO_T}$QMAKE" >&6; }
8560 else
8561 { echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6; }
8566 test -n "$QMAKE" && break
8567 done
8568 test -n "$QMAKE" || QMAKE="missing"
8570 if test x"$QMAKE" = xmissing; then
8571 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
8572 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
8573 { (exit 1); exit 1; }; }
8576 # Find moc (Meta Object Compiler).
8577 for ac_prog in moc
8579 # Extract the first word of "$ac_prog", so it can be a program name with args.
8580 set dummy $ac_prog; ac_word=$2
8581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8583 if test "${ac_cv_path_MOC+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 case $MOC in
8587 [\\/]* | ?:[\\/]*)
8588 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
8593 for as_dir in $as_dummy
8595 IFS=$as_save_IFS
8596 test -z "$as_dir" && as_dir=.
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
8600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8601 break 2
8603 done
8604 done
8605 IFS=$as_save_IFS
8608 esac
8610 MOC=$ac_cv_path_MOC
8611 if test -n "$MOC"; then
8612 { echo "$as_me:$LINENO: result: $MOC" >&5
8613 echo "${ECHO_T}$MOC" >&6; }
8614 else
8615 { echo "$as_me:$LINENO: result: no" >&5
8616 echo "${ECHO_T}no" >&6; }
8620 test -n "$MOC" && break
8621 done
8622 test -n "$MOC" || MOC="missing"
8624 if test x"$MOC" = xmissing; then
8625 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
8626 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
8627 { (exit 1); exit 1; }; }
8630 # Find uic (User Interface Compiler).
8631 for ac_prog in uic
8633 # Extract the first word of "$ac_prog", so it can be a program name with args.
8634 set dummy $ac_prog; ac_word=$2
8635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8637 if test "${ac_cv_path_UIC+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 case $UIC in
8641 [\\/]* | ?:[\\/]*)
8642 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
8647 for as_dir in $as_dummy
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
8654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8657 done
8658 done
8659 IFS=$as_save_IFS
8662 esac
8664 UIC=$ac_cv_path_UIC
8665 if test -n "$UIC"; then
8666 { echo "$as_me:$LINENO: result: $UIC" >&5
8667 echo "${ECHO_T}$UIC" >&6; }
8668 else
8669 { echo "$as_me:$LINENO: result: no" >&5
8670 echo "${ECHO_T}no" >&6; }
8674 test -n "$UIC" && break
8675 done
8676 test -n "$UIC" || UIC="missing"
8678 if test x"$UIC" = xmissing; then
8679 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
8680 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
8681 { (exit 1); exit 1; }; }
8684 # Find rcc (Qt Resource Compiler).
8685 for ac_prog in rcc
8687 # Extract the first word of "$ac_prog", so it can be a program name with args.
8688 set dummy $ac_prog; ac_word=$2
8689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8691 if test "${ac_cv_path_RCC+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694 case $RCC in
8695 [\\/]* | ?:[\\/]*)
8696 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
8701 for as_dir in $as_dummy
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
8708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8716 esac
8718 RCC=$ac_cv_path_RCC
8719 if test -n "$RCC"; then
8720 { echo "$as_me:$LINENO: result: $RCC" >&5
8721 echo "${ECHO_T}$RCC" >&6; }
8722 else
8723 { echo "$as_me:$LINENO: result: no" >&5
8724 echo "${ECHO_T}no" >&6; }
8728 test -n "$RCC" && break
8729 done
8730 test -n "$RCC" || RCC="false"
8732 if test x"$UIC" = xfalse; then
8733 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
8734 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
8737 # If we don't know the path to Qt, guess it from the path to qmake.
8738 if test x"$QT_PATH" = x; then
8739 QT_PATH=`dirname "$QMAKE"`
8741 if test x"$QT_PATH" = x; then
8742 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
8743 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
8744 { (exit 1); exit 1; }; }
8748 # Get ready to build a test-app with Qt.
8750 # Look for a writable temporary directory.
8752 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
8753 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
8755 for i in /tmp /var/tmp; do
8756 if test -d "$i" && test -w "$i"; then
8757 TMPDIR=$i
8758 export TMPDIR
8759 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
8760 break
8762 done
8765 # Kludge!! QMake has a very strange behavior. For instance, if you
8766 # install Qt under your $HOME and run QMake somewhere else under your
8767 # $HOME, it will try to be clever and produce Makefiles with relative
8768 # include paths. In order to avoid this, we will test QMake from a
8769 # temporary directory (usually /tmp). Note that this problem was only
8770 # observed with Qt 4.
8771 my_configure_pwd=`pwd`
8772 my_tmpdir="$TMPDIR/conftest$$.dir"
8773 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
8774 if test -w "$my_tmpdir" && cd "$my_tmpdir"
8775 then
8777 else
8778 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
8779 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
8780 { (exit 1); exit 1; }; }
8782 cat >conftest.h <<_ASEOF
8783 #include <QObject>
8785 class Foo: public QObject
8787 Q_OBJECT;
8788 public:
8789 Foo();
8790 ~Foo() {}
8791 public slots:
8792 void setValue(int value);
8793 signals:
8794 void valueChanged(int newValue);
8795 private:
8796 int value_;
8798 _ASEOF
8800 cat >conftest.cpp <<_ASEOF
8801 #include "conftest.h"
8802 Foo::Foo()
8803 : value_ (42)
8805 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
8808 void Foo::setValue(int value)
8810 value_ = value;
8813 int main()
8815 Foo f;
8817 _ASEOF
8818 if $QMAKE -project; then :; else
8819 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
8820 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
8821 { (exit 1); exit 1; }; }
8824 # Find the .pro file generated by qmake.
8825 pro_file='conftest.dir.pro'
8826 test -f $pro_file || pro_file=`echo *.pro`
8827 if test -f "$pro_file"; then :; else
8828 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
8829 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
8830 { (exit 1); exit 1; }; }
8839 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
8840 sed 's/^/| /' "$pro_file" >&5
8842 additional_qmake_flags=""
8843 case $host_os in
8844 darwin*)
8845 additional_qmake_flags="-spec macx-g++"
8847 esac
8849 if $QMAKE ${additional_qmake_flags} ; then :; else
8850 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
8851 echo "$as_me: error: Calling $QMAKE failed." >&2;}
8852 { (exit 1); exit 1; }; }
8854 # Try to compile a simple Qt app.
8855 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
8856 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
8857 if test "${at_cv_qt_build+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 at_cv_qt_build=ko
8861 : ${MAKE=make}
8863 if $MAKE >&5 2>&1; then
8864 at_cv_qt_build='ok, looks like Qt 4'
8865 else
8866 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
8867 instead" >&5
8868 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
8869 if $MAKE >&5 2>&1; then
8870 at_cv_qt_build='ok, looks like Qt 3'
8871 else
8872 # Sometimes (such as on Debian) build will fail because Qt hasn't been
8873 # installed in debug mode and qmake tries (by default) to build apps in
8874 # debug mode => Try again in release mode.
8875 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
8878 # Tweak the value of CONFIG in the .pro file for +release.
8880 qt_conf=''
8881 for at_mod in +release; do
8882 at_mod=`echo "$at_mod" | sed 's/^-//; tough
8883 s/^+//; beef
8884 :ough
8885 s/^/CONFIG -= /;n
8886 :eef
8887 s/^/CONFIG += /'`
8888 qt_conf="$qt_conf
8889 $at_mod"
8890 done
8891 echo "$qt_conf" | sed 1d >>"$pro_file"
8894 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
8895 if $MAKE >&5 2>&1; then
8896 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
8897 else
8898 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
8899 instead" >&5
8900 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
8901 if $MAKE >&5 2>&1; then
8902 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
8903 else
8904 at_cv_qt_build=ko
8905 echo "$as_me:$LINENO: failed program was:" >&5
8906 sed 's/^/| /' conftest.h >&5
8907 echo "$as_me:$LINENO: failed program was:" >&5
8908 sed 's/^/| /' conftest.cpp >&5
8909 fi # if make with Qt3-style #include and release mode forced.
8910 fi # if make with Qt4-style #include and release mode forced.
8911 fi # if make with Qt3-style #include.
8912 fi # if make with Qt4-style #include.
8915 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
8916 echo "${ECHO_T}$at_cv_qt_build" >&6; }
8917 if test x"$at_cv_qt_build" = xko; then
8918 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
8919 echo "$as_me: error: Cannot build a test Qt program" >&2;}
8920 { (exit 1); exit 1; }; }
8922 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
8925 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
8926 # It starts by removing the beginning of the line, removing references to
8927 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
8928 # all variable uses by QT_.
8929 qt_sed_filter='s///;
8930 s/$(SUBLIBS)//g;
8931 s/^ *//;
8932 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
8934 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
8935 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
8936 # Makefile.Release. The reason is that the main difference is that release
8937 # uses -Os and debug -g. We can override -Os by passing another -O but we
8938 # usually don't override -g.
8939 if test -f Makefile.Release; then
8940 at_mfile='Makefile.Release'
8941 else
8942 at_mfile='Makefile'
8944 if test -f $at_mfile; then :; else
8945 cd "$my_configure_pwd"
8946 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
8947 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
8948 { (exit 1); exit 1; }; }
8951 # Find the DEFINES of Qt (should have been named CPPFLAGS).
8952 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
8953 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
8954 if test "${at_cv_env_QT_DEFINES+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
8959 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
8960 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
8961 QT_DEFINES=$at_cv_env_QT_DEFINES
8964 # Find the CFLAGS of Qt (We can use Qt in C?!)
8965 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
8966 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
8967 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
8972 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
8973 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
8974 QT_CFLAGS=$at_cv_env_QT_CFLAGS
8977 # Find the CXXFLAGS of Qt.
8978 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
8979 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
8980 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
8985 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
8986 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
8987 QT_CXXFLAGS=$at_cv_env_QT_CXXFLAGS
8990 # Find the INCPATH of Qt.
8991 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
8992 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
8993 if test "${at_cv_env_QT_INCPATH+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
8998 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
8999 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9000 QT_INCPATH=$at_cv_env_QT_INCPATH
9003 QT_CPPFLAGS="$at_cv_env_QT_DEFINES $at_cv_env_QT_INCPATH"
9006 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9007 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9008 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9009 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9014 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9015 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9016 QT_LFLAGS=$at_cv_env_QT_LDFLAGS
9018 QT_LDFLAGS=$at_cv_env_QT_LDFLAGS
9021 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9022 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9023 at_darwin="no"
9024 case $host_os in
9025 darwin*)
9026 at_darwin="yes"
9028 esac
9029 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9030 echo "${ECHO_T}$at_darwin" >&6; }
9032 # Find the LIBS of Qt.
9033 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9034 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9035 if test "${at_cv_env_QT_LIBS+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9039 if test x$at_darwin = xyes; then
9040 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9041 # -F properly. The "bug" has been fixed on 22 October 2006
9042 # by Peter O'Gorman but we provide backward compatibility here.
9043 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
9044 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9048 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9049 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9050 QT_LIBS=$at_cv_env_QT_LIBS
9053 cd "$my_configure_pwd" || echo 'WTF!'
9054 rm -rf "$my_tmpdir"
9058 if test x"$at_cv_qt_build" = xko; then
9059 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9060 echo "$as_me: error: cannot find Qt!" >&2;}
9061 { (exit 1); exit 1; }; }
9062 else
9063 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9064 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9065 CONFIG_GUI="QT"
9069 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9070 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9073 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9074 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9075 { (exit 1); exit 1; }; }
9077 esac
9079 # Check whether --enable-cocoa was given.
9080 if test "${enable_cocoa+set}" = set; then
9081 enableval=$enable_cocoa;
9082 else
9083 enable_cocoa="no"
9086 case "$enable_cocoa" in
9087 yes)
9088 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9089 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9090 COCOA_CFLAGS=""
9091 COCOA_LDFLAGS="-framework Cocoa"
9092 CONFIG_GUI="COCOA"
9095 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9096 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9099 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9100 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9101 { (exit 1); exit 1; }; }
9103 esac
9105 case "$CONFIG_GUI" in
9106 X11)
9107 CONFIG_X11="X11 Widkit Ghostscript"
9109 cat >>confdefs.h <<\_ACEOF
9110 #define X11TEXMACS 1
9111 _ACEOF
9114 COCOA)
9115 CONFIG_COCOA="Cocoa"
9117 cat >>confdefs.h <<\_ACEOF
9118 #define AQUATEXMACS 1
9119 _ACEOF
9123 CONFIG_QT="Qt"
9125 cat >>confdefs.h <<\_ACEOF
9126 #define QTTEXMACS 1
9127 _ACEOF
9130 esac
9142 #--------------------------------------------------------------------
9143 # Debugging options
9144 #--------------------------------------------------------------------
9146 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
9147 if test "$enable_cocoa" = "yes"; then
9148 STD_DEBUG_FLAGS="-fno-exceptions"
9151 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9152 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9153 CXXFLAGS="$STD_DEBUG_FLAGS"
9154 cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h. */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9161 int some_variable = 0;
9164 main ()
9169 return 0;
9171 _ACEOF
9172 rm -f conftest.$ac_objext
9173 if { (ac_try="$ac_compile"
9174 case "(($ac_try" in
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9177 esac
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_cxx_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest.$ac_objext; then
9190 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9191 { echo "$as_me:$LINENO: result: yes" >&5
9192 echo "${ECHO_T}yes" >&6; }
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9199 CONFIG_CXXDIALECT=""
9200 { echo "$as_me:$LINENO: result: no" >&5
9201 echo "${ECHO_T}no" >&6; }
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9206 CXXFLAGS=""
9209 # Check whether --enable-debug was given.
9210 if test "${enable_debug+set}" = set; then
9211 enableval=$enable_debug;
9212 else
9213 enable_debug="no"
9217 if test "$enable_debug" = "yes"; then
9218 if test "$GXX" = "yes"; then
9219 enable_debug="-ggdb"
9220 else
9221 enable_debug="-g3"
9225 if test "$enable_debug" = "no"; then
9226 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9227 echo "${ECHO_T}disabling debugging" >&6; }
9228 CONFIG_STRIP="strip"
9229 CONFIG_CXXDEBUG=""
9230 optimize_default="yes"
9231 else
9232 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9233 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9234 CONFIG_STRIP="true"
9235 CONFIG_CXXDEBUG="$enable_debug"
9236 optimize_default="no"
9239 # Check whether --enable-assert was given.
9240 if test "${enable_assert+set}" = set; then
9241 enableval=$enable_assert;
9242 else
9243 enable_assert="yes"
9247 if test "$enable_assert" = "no"; then
9248 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9249 echo "${ECHO_T}disabling assertion checking" >&6; }
9250 else
9251 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9252 echo "${ECHO_T}enabling assertion checking" >&6; }
9254 cat >>confdefs.h <<\_ACEOF
9255 #define DEBUG_ASSERT 1
9256 _ACEOF
9260 #--------------------------------------------------------------------
9261 # Warning options
9262 #--------------------------------------------------------------------
9264 case "$GXX_VERSION" in
9265 none)
9266 CONFIG_CXXWARNING="";
9269 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9271 esac
9273 # Check whether --enable-warnings was given.
9274 if test "${enable_warnings+set}" = set; then
9275 enableval=$enable_warnings;
9276 else
9277 enable_warnings="yes"
9280 case "$enable_warnings" in
9281 yes)
9282 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9283 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9285 CONFIG_CXXWARNING=""
9286 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9287 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9289 CONFIG_CXXWARNING="$enable_warnings"
9290 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9291 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9292 esac
9294 #--------------------------------------------------------------------
9295 # Optimization options
9296 #--------------------------------------------------------------------
9298 if test "$optimize_default" = "yes"; then
9299 case "$GXX_VERSION" in
9300 3.3.3 | 3.3.4 | 4.*)
9302 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9303 case "${host}" in
9304 i*86-*-linux-gnu* | i*86-*-freebsd*)
9305 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9306 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9307 optimize_default="no-inline"
9310 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9311 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9312 optimize_default="no-inline"
9314 esac
9316 esac
9319 # Check whether --enable-optimize was given.
9320 if test "${enable_optimize+set}" = set; then
9321 enableval=$enable_optimize;
9322 else
9323 enable_optimize="$optimize_default"
9327 case "$enable_optimize" in
9328 yes)
9329 # keep optimization options
9330 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9331 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9332 no-inline)
9333 optimize_no_inline="-fno-default-inline -fno-inline"
9334 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9335 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9336 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9338 CONFIG_CXXOPTIMIZE=""
9339 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9340 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9342 CONFIG_CXXOPTIMIZE="$enable_optimize"
9343 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9344 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9345 esac
9347 #--------------------------------------------------------------------
9348 # Substitute TeXmacs specific configuration parameters
9349 #--------------------------------------------------------------------
9372 #--------------------------------------------------------------------
9373 # Default paths for installation
9374 #--------------------------------------------------------------------
9376 if test "$prefix" = ""; then
9377 prefix=/usr/local
9379 if test "$prefix" = "NONE"; then
9380 prefix=/usr/local
9382 if test "$exec_prefix" = ""; then
9383 exec_prefix='${prefix}'
9385 if test "$exec_prefix" = "NONE"; then
9386 exec_prefix='${prefix}'
9388 if test "$exec_prefix" = '${prefix}'; then
9389 exec_prefix='${prefix}'
9391 if test "$includedir" = ""; then
9392 includedir='${prefix}/include'
9394 if test "$includedir" = "NONE"; then
9395 includedir='${prefix}/include'
9397 if test "$includedir" = '${prefix}/include'; then
9398 includedir='${prefix}/include'
9400 if test "$libdir" = ""; then
9401 libdir='${exec_prefix}/lib'
9403 if test "$libdir" = "NONE"; then
9404 libdir='${exec_prefix}/lib'
9406 if test "$libdir" = '${exec_prefix}/lib'; then
9407 libdir='${exec_prefix}/lib'
9409 if test "$bindir" = ""; then
9410 bindir='${exec_prefix}/bin'
9412 if test "$bindir" = "NONE"; then
9413 bindir=${exec_prefix}/bin
9415 if test "$bindir" = '${exec_prefix}/bin'; then
9416 bindir='${exec_prefix}/bin'
9418 if test "$datarootdir" = ""; then
9419 datarootdir='${prefix}/share'
9421 if test "$datarootdir" = "NONE"; then
9422 datarootdir='${prefix}/share'
9424 if test "$datarootdir" = '${prefix}/share'; then
9425 datarootdir='${prefix}/share'
9427 if test "$datadir" = ""; then
9428 datadir='${prefix}/share'
9430 if test "$datadir" = "NONE"; then
9431 datadir='${prefix}/share'
9433 if test "$datadir" = '${prefix}/share'; then
9434 datadir='${prefix}/share'
9436 if test "$mandir" = ""; then
9437 mandir='${datarootdir}/man'
9439 if test "$mandir" = "NONE"; then
9440 mandir='${datarootdir}/man'
9442 if test "$mandir" = '${datarootdir}/man'; then
9443 mandir='${datarootdir}/man'
9445 if test "$libexecdir" = ""; then
9446 libexecdir='${exec_prefix}/libexec'
9448 if test "$libexecdir" = "NONE"; then
9449 libexecdir='${exec_prefix}/libexec'
9451 if test "$libexecdir" = '${exec_prefix}/libexec'; then
9452 libexecdir='${exec_prefix}/libexec'
9455 curdir="`pwd`"
9456 tmorig=${curdir}
9457 tmdir=${PACKAGE}
9458 tmsrc=${curdir}/${tmdir}
9459 tmbin=${libexecdir}/${tmdir}
9460 tmdata=${datadir}/${tmdir}
9467 if test "$DEVEL_RELEASE" = "1"; then
9468 tmtgz=${PACKAGE}-${DEVEL_VERSION}
9469 else
9470 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
9472 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
9473 if test "$STABLE_RELEASE" = "1"; then
9474 tmstgz=${PACKAGE}-${STABLE_VERSION}
9475 else
9476 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
9478 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
9479 if test "$WINDOWS_RELEASE" = "1"; then
9480 tmwin=wintexmacs-${WINDOWS_VERSION}
9481 else
9482 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
9490 #--------------------------------------------------------------------
9491 # Done
9492 #--------------------------------------------------------------------
9494 ac_config_files="$ac_config_files Makefile:Makefile.in src/makefile:src/makefile.in src/System/tm_configure.hpp:src/System/tm_configure.in misc/admin/admin.makefile:misc/admin/admin.makefile.in misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in misc/man/texmacs.1:misc/man/texmacs.1.in misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in misc/scripts/fig2ps:misc/scripts/fig2ps.in misc/scripts/texmacs:misc/scripts/texmacs.in TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in"
9496 cat >confcache <<\_ACEOF
9497 # This file is a shell script that caches the results of configure
9498 # tests run on this system so they can be shared between configure
9499 # scripts and configure runs, see configure's option --config-cache.
9500 # It is not useful on other systems. If it contains results you don't
9501 # want to keep, you may remove or edit it.
9503 # config.status only pays attention to the cache file if you give it
9504 # the --recheck option to rerun configure.
9506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9508 # following values.
9510 _ACEOF
9512 # The following way of writing the cache mishandles newlines in values,
9513 # but we know of no workaround that is simple, portable, and efficient.
9514 # So, we kill variables containing newlines.
9515 # Ultrix sh set writes to stderr and can't be redirected directly,
9516 # and sets the high bit in the cache file unless we assign to the vars.
9518 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9519 eval ac_val=\$$ac_var
9520 case $ac_val in #(
9521 *${as_nl}*)
9522 case $ac_var in #(
9523 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9525 esac
9526 case $ac_var in #(
9527 _ | IFS | as_nl) ;; #(
9528 *) $as_unset $ac_var ;;
9529 esac ;;
9530 esac
9531 done
9533 (set) 2>&1 |
9534 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9535 *${as_nl}ac_space=\ *)
9536 # `set' does not quote correctly, so add quotes (double-quote
9537 # substitution turns \\\\ into \\, and sed turns \\ into \).
9538 sed -n \
9539 "s/'/'\\\\''/g;
9540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9541 ;; #(
9543 # `set' quotes correctly as required by POSIX, so do not add quotes.
9544 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9546 esac |
9547 sort
9549 sed '
9550 /^ac_cv_env_/b end
9551 t clear
9552 :clear
9553 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9554 t end
9555 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9556 :end' >>confcache
9557 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9558 if test -w "$cache_file"; then
9559 test "x$cache_file" != "x/dev/null" &&
9560 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9561 echo "$as_me: updating cache $cache_file" >&6;}
9562 cat confcache >$cache_file
9563 else
9564 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9565 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9568 rm -f confcache
9570 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9571 # Let make expand exec_prefix.
9572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9574 DEFS=-DHAVE_CONFIG_H
9576 ac_libobjs=
9577 ac_ltlibobjs=
9578 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9579 # 1. Remove the extension, and $U if already installed.
9580 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9581 ac_i=`echo "$ac_i" | sed "$ac_script"`
9582 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9583 # will be set to the directory where LIBOBJS objects are built.
9584 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9585 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9586 done
9587 LIBOBJS=$ac_libobjs
9589 LTLIBOBJS=$ac_ltlibobjs
9593 : ${CONFIG_STATUS=./config.status}
9594 ac_clean_files_save=$ac_clean_files
9595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9596 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9597 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9598 cat >$CONFIG_STATUS <<_ACEOF
9599 #! $SHELL
9600 # Generated by $as_me.
9601 # Run this file to recreate the current configuration.
9602 # Compiler output produced by configure, useful for debugging
9603 # configure, is in config.log if it exists.
9605 debug=false
9606 ac_cs_recheck=false
9607 ac_cs_silent=false
9608 SHELL=\${CONFIG_SHELL-$SHELL}
9609 _ACEOF
9611 cat >>$CONFIG_STATUS <<\_ACEOF
9612 ## --------------------- ##
9613 ## M4sh Initialization. ##
9614 ## --------------------- ##
9616 # Be more Bourne compatible
9617 DUALCASE=1; export DUALCASE # for MKS sh
9618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9619 emulate sh
9620 NULLCMD=:
9621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9622 # is contrary to our usage. Disable this feature.
9623 alias -g '${1+"$@"}'='"$@"'
9624 setopt NO_GLOB_SUBST
9625 else
9626 case `(set -o) 2>/dev/null` in
9627 *posix*) set -o posix ;;
9628 esac
9635 # PATH needs CR
9636 # Avoid depending upon Character Ranges.
9637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9640 as_cr_digits='0123456789'
9641 as_cr_alnum=$as_cr_Letters$as_cr_digits
9643 # The user is always right.
9644 if test "${PATH_SEPARATOR+set}" != set; then
9645 echo "#! /bin/sh" >conf$$.sh
9646 echo "exit 0" >>conf$$.sh
9647 chmod +x conf$$.sh
9648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9649 PATH_SEPARATOR=';'
9650 else
9651 PATH_SEPARATOR=:
9653 rm -f conf$$.sh
9656 # Support unset when possible.
9657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9658 as_unset=unset
9659 else
9660 as_unset=false
9664 # IFS
9665 # We need space, tab and new line, in precisely that order. Quoting is
9666 # there to prevent editors from complaining about space-tab.
9667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9668 # splitting by setting IFS to empty value.)
9669 as_nl='
9671 IFS=" "" $as_nl"
9673 # Find who we are. Look in the path if we contain no directory separator.
9674 case $0 in
9675 *[\\/]* ) as_myself=$0 ;;
9676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 for as_dir in $PATH
9679 IFS=$as_save_IFS
9680 test -z "$as_dir" && as_dir=.
9681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9682 done
9683 IFS=$as_save_IFS
9686 esac
9687 # We did not find ourselves, most probably we were run as `sh COMMAND'
9688 # in which case we are not to be found in the path.
9689 if test "x$as_myself" = x; then
9690 as_myself=$0
9692 if test ! -f "$as_myself"; then
9693 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9694 { (exit 1); exit 1; }
9697 # Work around bugs in pre-3.0 UWIN ksh.
9698 for as_var in ENV MAIL MAILPATH
9699 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9700 done
9701 PS1='$ '
9702 PS2='> '
9703 PS4='+ '
9705 # NLS nuisances.
9706 for as_var in \
9707 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9708 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9709 LC_TELEPHONE LC_TIME
9711 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9712 eval $as_var=C; export $as_var
9713 else
9714 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9716 done
9718 # Required to use basename.
9719 if expr a : '\(a\)' >/dev/null 2>&1 &&
9720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9721 as_expr=expr
9722 else
9723 as_expr=false
9726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9727 as_basename=basename
9728 else
9729 as_basename=false
9733 # Name of the executable.
9734 as_me=`$as_basename -- "$0" ||
9735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9736 X"$0" : 'X\(//\)$' \| \
9737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9738 echo X/"$0" |
9739 sed '/^.*\/\([^/][^/]*\)\/*$/{
9740 s//\1/
9743 /^X\/\(\/\/\)$/{
9744 s//\1/
9747 /^X\/\(\/\).*/{
9748 s//\1/
9751 s/.*/./; q'`
9753 # CDPATH.
9754 $as_unset CDPATH
9758 as_lineno_1=$LINENO
9759 as_lineno_2=$LINENO
9760 test "x$as_lineno_1" != "x$as_lineno_2" &&
9761 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9764 # uniformly replaced by the line number. The first 'sed' inserts a
9765 # line-number line after each line using $LINENO; the second 'sed'
9766 # does the real work. The second script uses 'N' to pair each
9767 # line-number line with the line containing $LINENO, and appends
9768 # trailing '-' during substitution so that $LINENO is not a special
9769 # case at line end.
9770 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9771 # scripts with optimization help from Paolo Bonzini. Blame Lee
9772 # E. McMahon (1931-1989) for sed's syntax. :-)
9773 sed -n '
9775 /[$]LINENO/=
9776 ' <$as_myself |
9777 sed '
9778 s/[$]LINENO.*/&-/
9779 t lineno
9781 :lineno
9783 :loop
9784 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9785 t loop
9786 s/-\n.*//
9787 ' >$as_me.lineno &&
9788 chmod +x "$as_me.lineno" ||
9789 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9790 { (exit 1); exit 1; }; }
9792 # Don't try to exec as it changes $[0], causing all sort of problems
9793 # (the dirname of $[0] is not the place where we might find the
9794 # original and so on. Autoconf is especially sensitive to this).
9795 . "./$as_me.lineno"
9796 # Exit status is that of the last command.
9797 exit
9801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9802 as_dirname=dirname
9803 else
9804 as_dirname=false
9807 ECHO_C= ECHO_N= ECHO_T=
9808 case `echo -n x` in
9809 -n*)
9810 case `echo 'x\c'` in
9811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9812 *) ECHO_C='\c';;
9813 esac;;
9815 ECHO_N='-n';;
9816 esac
9818 if expr a : '\(a\)' >/dev/null 2>&1 &&
9819 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9820 as_expr=expr
9821 else
9822 as_expr=false
9825 rm -f conf$$ conf$$.exe conf$$.file
9826 if test -d conf$$.dir; then
9827 rm -f conf$$.dir/conf$$.file
9828 else
9829 rm -f conf$$.dir
9830 mkdir conf$$.dir
9832 echo >conf$$.file
9833 if ln -s conf$$.file conf$$ 2>/dev/null; then
9834 as_ln_s='ln -s'
9835 # ... but there are two gotchas:
9836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9838 # In both cases, we have to default to `cp -p'.
9839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9840 as_ln_s='cp -p'
9841 elif ln conf$$.file conf$$ 2>/dev/null; then
9842 as_ln_s=ln
9843 else
9844 as_ln_s='cp -p'
9846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9847 rmdir conf$$.dir 2>/dev/null
9849 if mkdir -p . 2>/dev/null; then
9850 as_mkdir_p=:
9851 else
9852 test -d ./-p && rmdir ./-p
9853 as_mkdir_p=false
9856 if test -x / >/dev/null 2>&1; then
9857 as_test_x='test -x'
9858 else
9859 if ls -dL / >/dev/null 2>&1; then
9860 as_ls_L_option=L
9861 else
9862 as_ls_L_option=
9864 as_test_x='
9865 eval sh -c '\''
9866 if test -d "$1"; then
9867 test -d "$1/.";
9868 else
9869 case $1 in
9870 -*)set "./$1";;
9871 esac;
9872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9873 ???[sx]*):;;*)false;;esac;fi
9874 '\'' sh
9877 as_executable_p=$as_test_x
9879 # Sed expression to map a string onto a valid CPP name.
9880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9882 # Sed expression to map a string onto a valid variable name.
9883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9886 exec 6>&1
9888 # Save the log message, to keep $[0] and so on meaningful, and to
9889 # report actual input values of CONFIG_FILES etc. instead of their
9890 # values after options handling.
9891 ac_log="
9892 This file was extended by $as_me, which was
9893 generated by GNU Autoconf 2.61. Invocation command line was
9895 CONFIG_FILES = $CONFIG_FILES
9896 CONFIG_HEADERS = $CONFIG_HEADERS
9897 CONFIG_LINKS = $CONFIG_LINKS
9898 CONFIG_COMMANDS = $CONFIG_COMMANDS
9899 $ $0 $@
9901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9904 _ACEOF
9906 cat >>$CONFIG_STATUS <<_ACEOF
9907 # Files that config.status was made for.
9908 config_files="$ac_config_files"
9909 config_headers="$ac_config_headers"
9911 _ACEOF
9913 cat >>$CONFIG_STATUS <<\_ACEOF
9914 ac_cs_usage="\
9915 \`$as_me' instantiates files from templates according to the
9916 current configuration.
9918 Usage: $0 [OPTIONS] [FILE]...
9920 -h, --help print this help, then exit
9921 -V, --version print version number and configuration settings, then exit
9922 -q, --quiet do not print progress messages
9923 -d, --debug don't remove temporary files
9924 --recheck update $as_me by reconfiguring in the same conditions
9925 --file=FILE[:TEMPLATE]
9926 instantiate the configuration file FILE
9927 --header=FILE[:TEMPLATE]
9928 instantiate the configuration header FILE
9930 Configuration files:
9931 $config_files
9933 Configuration headers:
9934 $config_headers
9936 Report bugs to <bug-autoconf@gnu.org>."
9938 _ACEOF
9939 cat >>$CONFIG_STATUS <<_ACEOF
9940 ac_cs_version="\\
9941 config.status
9942 configured by $0, generated by GNU Autoconf 2.61,
9943 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9945 Copyright (C) 2006 Free Software Foundation, Inc.
9946 This config.status script is free software; the Free Software Foundation
9947 gives unlimited permission to copy, distribute and modify it."
9949 ac_pwd='$ac_pwd'
9950 srcdir='$srcdir'
9951 _ACEOF
9953 cat >>$CONFIG_STATUS <<\_ACEOF
9954 # If no file are specified by the user, then we need to provide default
9955 # value. By we need to know if files were specified by the user.
9956 ac_need_defaults=:
9957 while test $# != 0
9959 case $1 in
9960 --*=*)
9961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9963 ac_shift=:
9966 ac_option=$1
9967 ac_optarg=$2
9968 ac_shift=shift
9970 esac
9972 case $ac_option in
9973 # Handling of the options.
9974 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9975 ac_cs_recheck=: ;;
9976 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9977 echo "$ac_cs_version"; exit ;;
9978 --debug | --debu | --deb | --de | --d | -d )
9979 debug=: ;;
9980 --file | --fil | --fi | --f )
9981 $ac_shift
9982 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9983 ac_need_defaults=false;;
9984 --header | --heade | --head | --hea )
9985 $ac_shift
9986 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9987 ac_need_defaults=false;;
9988 --he | --h)
9989 # Conflict between --help and --header
9990 { echo "$as_me: error: ambiguous option: $1
9991 Try \`$0 --help' for more information." >&2
9992 { (exit 1); exit 1; }; };;
9993 --help | --hel | -h )
9994 echo "$ac_cs_usage"; exit ;;
9995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9996 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9997 ac_cs_silent=: ;;
9999 # This is an error.
10000 -*) { echo "$as_me: error: unrecognized option: $1
10001 Try \`$0 --help' for more information." >&2
10002 { (exit 1); exit 1; }; } ;;
10004 *) ac_config_targets="$ac_config_targets $1"
10005 ac_need_defaults=false ;;
10007 esac
10008 shift
10009 done
10011 ac_configure_extra_args=
10013 if $ac_cs_silent; then
10014 exec 6>/dev/null
10015 ac_configure_extra_args="$ac_configure_extra_args --silent"
10018 _ACEOF
10019 cat >>$CONFIG_STATUS <<_ACEOF
10020 if \$ac_cs_recheck; then
10021 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10022 CONFIG_SHELL=$SHELL
10023 export CONFIG_SHELL
10024 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10027 _ACEOF
10028 cat >>$CONFIG_STATUS <<\_ACEOF
10029 exec 5>>config.log
10031 echo
10032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10033 ## Running $as_me. ##
10034 _ASBOX
10035 echo "$ac_log"
10036 } >&5
10038 _ACEOF
10039 cat >>$CONFIG_STATUS <<_ACEOF
10040 _ACEOF
10042 cat >>$CONFIG_STATUS <<\_ACEOF
10044 # Handling of arguments.
10045 for ac_config_target in $ac_config_targets
10047 case $ac_config_target in
10048 "src/System/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10049 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
10050 "src/makefile") CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10051 "src/System/tm_configure.hpp") CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10052 "misc/admin/admin.makefile") CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10053 "misc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10054 "misc/man/texmacs.1") CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10055 "misc/rpm/TeXmacs.spec") CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10056 "misc/scripts/fig2ps") CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10057 "misc/scripts/texmacs") CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10058 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10060 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10061 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10062 { (exit 1); exit 1; }; };;
10063 esac
10064 done
10067 # If the user did not use the arguments to specify the items to instantiate,
10068 # then the envvar interface is used. Set only those that are not.
10069 # We use the long form for the default assignment because of an extremely
10070 # bizarre bug on SunOS 4.1.3.
10071 if $ac_need_defaults; then
10072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10076 # Have a temporary directory for convenience. Make it in the build tree
10077 # simply because there is no reason against having it here, and in addition,
10078 # creating and moving files from /tmp can sometimes cause problems.
10079 # Hook for its removal unless debugging.
10080 # Note that there is a small window in which the directory will not be cleaned:
10081 # after its creation but before its name has been assigned to `$tmp'.
10082 $debug ||
10084 tmp=
10085 trap 'exit_status=$?
10086 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10088 trap '{ (exit 1); exit 1; }' 1 2 13 15
10090 # Create a (secure) tmp directory for tmp files.
10093 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10094 test -n "$tmp" && test -d "$tmp"
10095 } ||
10097 tmp=./conf$$-$RANDOM
10098 (umask 077 && mkdir "$tmp")
10099 } ||
10101 echo "$me: cannot create a temporary directory in ." >&2
10102 { (exit 1); exit 1; }
10106 # Set up the sed scripts for CONFIG_FILES section.
10109 # No need to generate the scripts if there are no CONFIG_FILES.
10110 # This happens for instance when ./config.status config.h
10111 if test -n "$CONFIG_FILES"; then
10113 _ACEOF
10117 ac_delim='%!_!# '
10118 for ac_last_try in false false false false false :; do
10119 cat >conf$$subs.sed <<_ACEOF
10120 SHELL!$SHELL$ac_delim
10121 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10122 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10123 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10124 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10125 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10126 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10127 exec_prefix!$exec_prefix$ac_delim
10128 prefix!$prefix$ac_delim
10129 program_transform_name!$program_transform_name$ac_delim
10130 bindir!$bindir$ac_delim
10131 sbindir!$sbindir$ac_delim
10132 libexecdir!$libexecdir$ac_delim
10133 datarootdir!$datarootdir$ac_delim
10134 datadir!$datadir$ac_delim
10135 sysconfdir!$sysconfdir$ac_delim
10136 sharedstatedir!$sharedstatedir$ac_delim
10137 localstatedir!$localstatedir$ac_delim
10138 includedir!$includedir$ac_delim
10139 oldincludedir!$oldincludedir$ac_delim
10140 docdir!$docdir$ac_delim
10141 infodir!$infodir$ac_delim
10142 htmldir!$htmldir$ac_delim
10143 dvidir!$dvidir$ac_delim
10144 pdfdir!$pdfdir$ac_delim
10145 psdir!$psdir$ac_delim
10146 libdir!$libdir$ac_delim
10147 localedir!$localedir$ac_delim
10148 mandir!$mandir$ac_delim
10149 DEFS!$DEFS$ac_delim
10150 ECHO_C!$ECHO_C$ac_delim
10151 ECHO_N!$ECHO_N$ac_delim
10152 ECHO_T!$ECHO_T$ac_delim
10153 LIBS!$LIBS$ac_delim
10154 build_alias!$build_alias$ac_delim
10155 host_alias!$host_alias$ac_delim
10156 target_alias!$target_alias$ac_delim
10157 PACKAGE!$PACKAGE$ac_delim
10158 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10159 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10160 STABLE_VERSION!$STABLE_VERSION$ac_delim
10161 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10162 CC!$CC$ac_delim
10163 CFLAGS!$CFLAGS$ac_delim
10164 LDFLAGS!$LDFLAGS$ac_delim
10165 CPPFLAGS!$CPPFLAGS$ac_delim
10166 ac_ct_CC!$ac_ct_CC$ac_delim
10167 EXEEXT!$EXEEXT$ac_delim
10168 OBJEXT!$OBJEXT$ac_delim
10169 CXX!$CXX$ac_delim
10170 CXXFLAGS!$CXXFLAGS$ac_delim
10171 ac_ct_CXX!$ac_ct_CXX$ac_delim
10172 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10173 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10174 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10175 CXXCPP!$CXXCPP$ac_delim
10176 GREP!$GREP$ac_delim
10177 EGREP!$EGREP$ac_delim
10178 XMKMF!$XMKMF$ac_delim
10179 X_CFLAGS!$X_CFLAGS$ac_delim
10180 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10181 X_LIBS!$X_LIBS$ac_delim
10182 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10183 CONFIG_BDL!$CONFIG_BDL$ac_delim
10184 CPP!$CPP$ac_delim
10185 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10186 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10187 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10188 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10189 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10190 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10191 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10192 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10193 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10194 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10195 build!$build$ac_delim
10196 build_cpu!$build_cpu$ac_delim
10197 build_vendor!$build_vendor$ac_delim
10198 build_os!$build_os$ac_delim
10199 host!$host$ac_delim
10200 host_cpu!$host_cpu$ac_delim
10201 host_vendor!$host_vendor$ac_delim
10202 host_os!$host_os$ac_delim
10203 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10204 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10205 QMAKE!$QMAKE$ac_delim
10206 MOC!$MOC$ac_delim
10207 UIC!$UIC$ac_delim
10208 RCC!$RCC$ac_delim
10209 QT_PATH!$QT_PATH$ac_delim
10210 TMPDIR!$TMPDIR$ac_delim
10211 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10212 QT_DEFINES!$QT_DEFINES$ac_delim
10213 QT_CFLAGS!$QT_CFLAGS$ac_delim
10214 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10215 QT_INCPATH!$QT_INCPATH$ac_delim
10216 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10217 _ACEOF
10219 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10220 break
10221 elif $ac_last_try; then
10222 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10223 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10224 { (exit 1); exit 1; }; }
10225 else
10226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10228 done
10230 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10231 if test -n "$ac_eof"; then
10232 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10233 ac_eof=`expr $ac_eof + 1`
10236 cat >>$CONFIG_STATUS <<_ACEOF
10237 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10239 _ACEOF
10240 sed '
10241 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10242 s/^/s,@/; s/!/@,|#_!!_#|/
10245 s/'"$ac_delim"'$/,g/; t
10246 s/$/\\/; p
10247 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10248 ' >>$CONFIG_STATUS <conf$$subs.sed
10249 rm -f conf$$subs.sed
10250 cat >>$CONFIG_STATUS <<_ACEOF
10251 CEOF$ac_eof
10252 _ACEOF
10255 ac_delim='%!_!# '
10256 for ac_last_try in false false false false false :; do
10257 cat >conf$$subs.sed <<_ACEOF
10258 QT_LFLAGS!$QT_LFLAGS$ac_delim
10259 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10260 QT_LIBS!$QT_LIBS$ac_delim
10261 X11_CFLAGS!$X11_CFLAGS$ac_delim
10262 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10263 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10264 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10265 CONFIG_X11!$CONFIG_X11$ac_delim
10266 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10267 CONFIG_QT!$CONFIG_QT$ac_delim
10268 CONFIG_GUI!$CONFIG_GUI$ac_delim
10269 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10270 CONFIG_OS!$CONFIG_OS$ac_delim
10271 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10272 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10273 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10274 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10275 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10276 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10277 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10278 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10279 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10280 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10281 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10282 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10283 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10284 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10285 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10286 CONFIG_SO!$CONFIG_SO$ac_delim
10287 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10288 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10289 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10290 tmorig!$tmorig$ac_delim
10291 tmdir!$tmdir$ac_delim
10292 tmsrc!$tmsrc$ac_delim
10293 tmbin!$tmbin$ac_delim
10294 tmdata!$tmdata$ac_delim
10295 tmtgz!$tmtgz$ac_delim
10296 tmrpm!$tmrpm$ac_delim
10297 tmstgz!$tmstgz$ac_delim
10298 tmsrpm!$tmsrpm$ac_delim
10299 tmwin!$tmwin$ac_delim
10300 LIBOBJS!$LIBOBJS$ac_delim
10301 LTLIBOBJS!$LTLIBOBJS$ac_delim
10302 _ACEOF
10304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
10305 break
10306 elif $ac_last_try; then
10307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10309 { (exit 1); exit 1; }; }
10310 else
10311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10313 done
10315 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10316 if test -n "$ac_eof"; then
10317 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10318 ac_eof=`expr $ac_eof + 1`
10321 cat >>$CONFIG_STATUS <<_ACEOF
10322 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10324 _ACEOF
10325 sed '
10326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10327 s/^/s,@/; s/!/@,|#_!!_#|/
10330 s/'"$ac_delim"'$/,g/; t
10331 s/$/\\/; p
10332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10333 ' >>$CONFIG_STATUS <conf$$subs.sed
10334 rm -f conf$$subs.sed
10335 cat >>$CONFIG_STATUS <<_ACEOF
10336 :end
10337 s/|#_!!_#|//g
10338 CEOF$ac_eof
10339 _ACEOF
10342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10344 # trailing colons and then remove the whole line if VPATH becomes empty
10345 # (actually we leave an empty line to preserve line numbers).
10346 if test "x$srcdir" = x.; then
10347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10348 s/:*\$(srcdir):*/:/
10349 s/:*\${srcdir}:*/:/
10350 s/:*@srcdir@:*/:/
10351 s/^\([^=]*=[ ]*\):*/\1/
10352 s/:*$//
10353 s/^[^=]*=[ ]*$//
10357 cat >>$CONFIG_STATUS <<\_ACEOF
10358 fi # test -n "$CONFIG_FILES"
10361 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10363 case $ac_tag in
10364 :[FHLC]) ac_mode=$ac_tag; continue;;
10365 esac
10366 case $ac_mode$ac_tag in
10367 :[FHL]*:*);;
10368 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10369 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10370 { (exit 1); exit 1; }; };;
10371 :[FH]-) ac_tag=-:-;;
10372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10373 esac
10374 ac_save_IFS=$IFS
10375 IFS=:
10376 set x $ac_tag
10377 IFS=$ac_save_IFS
10378 shift
10379 ac_file=$1
10380 shift
10382 case $ac_mode in
10383 :L) ac_source=$1;;
10384 :[FH])
10385 ac_file_inputs=
10386 for ac_f
10388 case $ac_f in
10389 -) ac_f="$tmp/stdin";;
10390 *) # Look for the file first in the build tree, then in the source tree
10391 # (if the path is not absolute). The absolute path cannot be DOS-style,
10392 # because $ac_f cannot contain `:'.
10393 test -f "$ac_f" ||
10394 case $ac_f in
10395 [\\/$]*) false;;
10396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10397 esac ||
10398 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10399 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10400 { (exit 1); exit 1; }; };;
10401 esac
10402 ac_file_inputs="$ac_file_inputs $ac_f"
10403 done
10405 # Let's still pretend it is `configure' which instantiates (i.e., don't
10406 # use $as_me), people would be surprised to read:
10407 # /* config.h. Generated by config.status. */
10408 configure_input="Generated from "`IFS=:
10409 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10410 if test x"$ac_file" != x-; then
10411 configure_input="$ac_file. $configure_input"
10412 { echo "$as_me:$LINENO: creating $ac_file" >&5
10413 echo "$as_me: creating $ac_file" >&6;}
10416 case $ac_tag in
10417 *:-:* | *:-) cat >"$tmp/stdin";;
10418 esac
10420 esac
10422 ac_dir=`$as_dirname -- "$ac_file" ||
10423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10424 X"$ac_file" : 'X\(//\)[^/]' \| \
10425 X"$ac_file" : 'X\(//\)$' \| \
10426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10427 echo X"$ac_file" |
10428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10429 s//\1/
10432 /^X\(\/\/\)[^/].*/{
10433 s//\1/
10436 /^X\(\/\/\)$/{
10437 s//\1/
10440 /^X\(\/\).*/{
10441 s//\1/
10444 s/.*/./; q'`
10445 { as_dir="$ac_dir"
10446 case $as_dir in #(
10447 -*) as_dir=./$as_dir;;
10448 esac
10449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10450 as_dirs=
10451 while :; do
10452 case $as_dir in #(
10453 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10454 *) as_qdir=$as_dir;;
10455 esac
10456 as_dirs="'$as_qdir' $as_dirs"
10457 as_dir=`$as_dirname -- "$as_dir" ||
10458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10459 X"$as_dir" : 'X\(//\)[^/]' \| \
10460 X"$as_dir" : 'X\(//\)$' \| \
10461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10462 echo X"$as_dir" |
10463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10464 s//\1/
10467 /^X\(\/\/\)[^/].*/{
10468 s//\1/
10471 /^X\(\/\/\)$/{
10472 s//\1/
10475 /^X\(\/\).*/{
10476 s//\1/
10479 s/.*/./; q'`
10480 test -d "$as_dir" && break
10481 done
10482 test -z "$as_dirs" || eval "mkdir $as_dirs"
10483 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10485 { (exit 1); exit 1; }; }; }
10486 ac_builddir=.
10488 case "$ac_dir" in
10489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10492 # A ".." for each directory in $ac_dir_suffix.
10493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10494 case $ac_top_builddir_sub in
10495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10497 esac ;;
10498 esac
10499 ac_abs_top_builddir=$ac_pwd
10500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10501 # for backward compatibility:
10502 ac_top_builddir=$ac_top_build_prefix
10504 case $srcdir in
10505 .) # We are building in place.
10506 ac_srcdir=.
10507 ac_top_srcdir=$ac_top_builddir_sub
10508 ac_abs_top_srcdir=$ac_pwd ;;
10509 [\\/]* | ?:[\\/]* ) # Absolute name.
10510 ac_srcdir=$srcdir$ac_dir_suffix;
10511 ac_top_srcdir=$srcdir
10512 ac_abs_top_srcdir=$srcdir ;;
10513 *) # Relative name.
10514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10515 ac_top_srcdir=$ac_top_build_prefix$srcdir
10516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10517 esac
10518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10521 case $ac_mode in
10524 # CONFIG_FILE
10527 _ACEOF
10529 cat >>$CONFIG_STATUS <<\_ACEOF
10530 # If the template does not know about datarootdir, expand it.
10531 # FIXME: This hack should be removed a few years after 2.60.
10532 ac_datarootdir_hack=; ac_datarootdir_seen=
10534 case `sed -n '/datarootdir/ {
10538 /@datadir@/p
10539 /@docdir@/p
10540 /@infodir@/p
10541 /@localedir@/p
10542 /@mandir@/p
10543 ' $ac_file_inputs` in
10544 *datarootdir*) ac_datarootdir_seen=yes;;
10545 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10546 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10547 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10548 _ACEOF
10549 cat >>$CONFIG_STATUS <<_ACEOF
10550 ac_datarootdir_hack='
10551 s&@datadir@&$datadir&g
10552 s&@docdir@&$docdir&g
10553 s&@infodir@&$infodir&g
10554 s&@localedir@&$localedir&g
10555 s&@mandir@&$mandir&g
10556 s&\\\${datarootdir}&$datarootdir&g' ;;
10557 esac
10558 _ACEOF
10560 # Neutralize VPATH when `$srcdir' = `.'.
10561 # Shell code in configure.ac might set extrasub.
10562 # FIXME: do we really want to maintain this feature?
10563 cat >>$CONFIG_STATUS <<_ACEOF
10564 sed "$ac_vpsub
10565 $extrasub
10566 _ACEOF
10567 cat >>$CONFIG_STATUS <<\_ACEOF
10569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10570 s&@configure_input@&$configure_input&;t t
10571 s&@top_builddir@&$ac_top_builddir_sub&;t t
10572 s&@srcdir@&$ac_srcdir&;t t
10573 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10574 s&@top_srcdir@&$ac_top_srcdir&;t t
10575 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10576 s&@builddir@&$ac_builddir&;t t
10577 s&@abs_builddir@&$ac_abs_builddir&;t t
10578 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10579 $ac_datarootdir_hack
10580 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
10582 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10583 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10584 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10585 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10586 which seems to be undefined. Please make sure it is defined." >&5
10587 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10588 which seems to be undefined. Please make sure it is defined." >&2;}
10590 rm -f "$tmp/stdin"
10591 case $ac_file in
10592 -) cat "$tmp/out"; rm -f "$tmp/out";;
10593 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10594 esac
10598 # CONFIG_HEADER
10600 _ACEOF
10602 # Transform confdefs.h into a sed script `conftest.defines', that
10603 # substitutes the proper values into config.h.in to produce config.h.
10604 rm -f conftest.defines conftest.tail
10605 # First, append a space to every undef/define line, to ease matching.
10606 echo 's/$/ /' >conftest.defines
10607 # Then, protect against being on the right side of a sed subst, or in
10608 # an unquoted here document, in config.status. If some macros were
10609 # called several times there might be several #defines for the same
10610 # symbol, which is useless. But do not sort them, since the last
10611 # AC_DEFINE must be honored.
10612 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10613 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10614 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10615 # PARAMS is the parameter list in the macro definition--in most cases, it's
10616 # just an empty string.
10617 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10618 ac_dB='\\)[ (].*,\\1define\\2'
10619 ac_dC=' '
10620 ac_dD=' ,'
10622 uniq confdefs.h |
10623 sed -n '
10624 t rset
10625 :rset
10626 s/^[ ]*#[ ]*define[ ][ ]*//
10627 t ok
10630 s/[\\&,]/\\&/g
10631 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10632 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10633 ' >>conftest.defines
10635 # Remove the space that was appended to ease matching.
10636 # Then replace #undef with comments. This is necessary, for
10637 # example, in the case of _POSIX_SOURCE, which is predefined and required
10638 # on some systems where configure will not decide to define it.
10639 # (The regexp can be short, since the line contains either #define or #undef.)
10640 echo 's/ $//
10641 s,^[ #]*u.*,/* & */,' >>conftest.defines
10643 # Break up conftest.defines:
10644 ac_max_sed_lines=50
10646 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10647 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10648 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10649 # et cetera.
10650 ac_in='$ac_file_inputs'
10651 ac_out='"$tmp/out1"'
10652 ac_nxt='"$tmp/out2"'
10654 while :
10656 # Write a here document:
10657 cat >>$CONFIG_STATUS <<_ACEOF
10658 # First, check the format of the line:
10659 cat >"\$tmp/defines.sed" <<\\CEOF
10660 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10661 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10663 :def
10664 _ACEOF
10665 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10666 echo 'CEOF
10667 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10668 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10669 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10670 grep . conftest.tail >/dev/null || break
10671 rm -f conftest.defines
10672 mv conftest.tail conftest.defines
10673 done
10674 rm -f conftest.defines conftest.tail
10676 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10677 cat >>$CONFIG_STATUS <<\_ACEOF
10678 if test x"$ac_file" != x-; then
10679 echo "/* $configure_input */" >"$tmp/config.h"
10680 cat "$ac_result" >>"$tmp/config.h"
10681 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10682 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10683 echo "$as_me: $ac_file is unchanged" >&6;}
10684 else
10685 rm -f $ac_file
10686 mv "$tmp/config.h" $ac_file
10688 else
10689 echo "/* $configure_input */"
10690 cat "$ac_result"
10692 rm -f "$tmp/out12"
10696 esac
10698 done # for ac_tag
10701 { (exit 0); exit 0; }
10702 _ACEOF
10703 chmod +x $CONFIG_STATUS
10704 ac_clean_files=$ac_clean_files_save
10707 # configure is writing to config.log, and then calls config.status.
10708 # config.status does its own redirection, appending to config.log.
10709 # Unfortunately, on DOS this fails, as config.log is still kept open
10710 # by configure, so config.status won't be able to write to it; its
10711 # output is simply discarded. So we exec the FD to /dev/null,
10712 # effectively closing config.log, so it can be properly (re)opened and
10713 # appended to by config.status. When coming back to configure, we
10714 # need to make the FD available again.
10715 if test "$no_create" != yes; then
10716 ac_cs_success=:
10717 ac_config_status_args=
10718 test "$silent" = yes &&
10719 ac_config_status_args="$ac_config_status_args --quiet"
10720 exec 5>/dev/null
10721 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10722 exec 5>>config.log
10723 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10724 # would make configure fail if this is the last instruction.
10725 $ac_cs_success || { (exit 1); exit 1; }