Added BibTeXmacs
[texmacs.git] / src / configure
blob801f68a777e10782e143431763de69a1ba74759e
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 build
653 build_cpu
654 build_vendor
655 build_os
656 host
657 host_cpu
658 host_vendor
659 host_os
660 PACKAGE
661 DEVEL_VERSION
662 DEVEL_RELEASE
663 STABLE_VERSION
664 STABLE_RELEASE
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 CXXFLAGS
674 ac_ct_CXX
675 GUILE_CFLAGS
676 GUILE_LDFLAGS
677 CONFIG_GUILE_SERIAL
678 CXXCPP
679 GREP
680 EGREP
681 XMKMF
682 X_CFLAGS
683 X_PRE_LIBS
684 X_LIBS
685 X_EXTRA_LIBS
686 CONFIG_BDL
688 ICONV_CFLAGS
689 ICONV_LDFLAGS
690 FREETYPE_CFLAGS
691 FREETYPE_LDFLAGS
692 CAIRO_CFLAGS
693 CAIRO_LDFLAGS
694 IMLIB2_CFLAGS
695 IMLIB2_LDFLAGS
696 AXEL_CFLAGS
697 AXEL_LDFLAGS
698 HAS_GS_EXE
699 HAS_GS_LIB
700 CONFIG_GS
701 GS_EXE
702 GS_DLL
703 CONFIG_EXPERIMENTAL
704 CONFIG_MACOS
705 QMAKE
709 QT_PATH
710 TMPDIR
711 QT_VERSION_MAJOR
712 QT_DEFINES
713 QT_CFLAGS
714 QT_CXXFLAGS
715 QT_INCPATH
716 QT_CPPFLAGS
717 QT_LDFLAGS
718 QT_LFLAGS
719 QT_LIBS
720 X11_CFLAGS
721 X11_LDFLAGS
722 COCOA_CFLAGS
723 COCOA_LDFLAGS
724 CONFIG_X11
725 CONFIG_COCOA
726 CONFIG_QT
727 CONFIG_GUI
728 CONFIG_GUI_DEFINE
729 CONFIG_CXXDIALECT
730 CONFIG_OS
731 CONFIG_OS_SUFFIX
732 CONFIG_OS_COMPAT
733 CONFIG_CXXWARNING
734 CONFIG_CXXTEMPLATE
735 CONFIG_CXXOPTIMIZE
736 CONFIG_CXXDEBUG
737 CONFIG_BFLAGS
738 CONFIG_BSTATIC
739 CONFIG_BSHARED
740 CONFIG_BPATH
741 CONFIG_WORD_LENGTH
742 CONFIG_WORD_LENGTH_INC
743 CONFIG_WORD_MASK
744 CONFIG_MAX_FAST
745 CONFIG_CXXFLAGS
746 CONFIG_STD_SETENV
747 CONFIG_SO
748 CONFIG_LIB_PATH
749 CONFIG_STRIP
750 CONFIG_CHMOD
751 CONFIG_LDRT
752 CONFIG_NATIVE_ARCH_TAG
753 tmorig
754 tmdir
755 tmsrc
756 tmbin
757 tmdata
758 tmtgz
759 tmrpm
760 tmstgz
761 tmsrpm
762 tmwin
763 LIBOBJS
764 LTLIBOBJS'
765 ac_subst_files=''
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
775 CXXFLAGS
777 CXXCPP
778 XMKMF
780 TMPDIR'
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
829 ac_prev=
830 ac_dashdash=
831 for ac_option
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
836 ac_prev=
837 continue
840 case $ac_option in
841 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *) ac_optarg=yes ;;
843 esac
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
849 ac_dashdash=yes ;;
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
868 --config-cache | -C)
869 cache_file=config.cache ;;
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
883 -disable-* | --disable-*)
884 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
889 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_$ac_feature=no ;;
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
902 -enable-* | --enable-*)
903 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
906 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907 { (exit 1); exit 1; }; }
908 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
909 eval enable_$ac_feature=\$ac_optarg ;;
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1099 -with-* | --with-*)
1100 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1108 -without-* | --without-*)
1109 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_$ac_package=no ;;
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1135 -*) { echo "$as_me: error: unrecognized option: $ac_option
1136 Try \`$0 --help' for more information." >&2
1137 { (exit 1); exit 1; }; }
1140 *=*)
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1145 { (exit 1); exit 1; }; }
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1150 # FIXME: should be removed in autoconf 3.0.
1151 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 esac
1158 done
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 { echo "$as_me: error: missing argument to $ac_option" >&2
1163 { (exit 1); exit 1; }; }
1166 # Be sure to have absolute directory names.
1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1172 eval ac_val=\$$ac_var
1173 case $ac_val in
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176 esac
1177 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1178 { (exit 1); exit 1; }; }
1179 done
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1184 build=$build_alias
1185 host=$host_alias
1186 target=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1199 ac_tool_prefix=
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202 test "$silent" = yes && exec 6>/dev/null
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 { echo "$as_me: error: Working directory cannot be determined" >&2
1209 { (exit 1); exit 1; }; }
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 { echo "$as_me: error: pwd does not report name of working directory" >&2
1212 { (exit 1); exit 1; }; }
1215 # Find the source files, if location was not specified.
1216 if test -z "$srcdir"; then
1217 ac_srcdir_defaulted=yes
1218 # Try the directory containing this script, then the parent directory.
1219 ac_confdir=`$as_dirname -- "$0" ||
1220 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221 X"$0" : 'X\(//\)[^/]' \| \
1222 X"$0" : 'X\(//\)$' \| \
1223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1224 echo X"$0" |
1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226 s//\1/
1229 /^X\(\/\/\)[^/].*/{
1230 s//\1/
1233 /^X\(\/\/\)$/{
1234 s//\1/
1237 /^X\(\/\).*/{
1238 s//\1/
1241 s/.*/./; q'`
1242 srcdir=$ac_confdir
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 srcdir=..
1246 else
1247 ac_srcdir_defaulted=no
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1252 { (exit 1); exit 1; }; }
1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255 ac_abs_confdir=`(
1256 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1257 { (exit 1); exit 1; }; }
1258 pwd)`
1259 # When building in place, set srcdir=.
1260 if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 srcdir=.
1263 # Remove unnecessary trailing slashes from srcdir.
1264 # Double slashes in file names in object file debugging info
1265 # mess up M-x gdb in Emacs.
1266 case $srcdir in
1267 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268 esac
1269 for ac_var in $ac_precious_vars; do
1270 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_${ac_var}_value=\$${ac_var}
1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 done
1277 # Report the --help message.
1279 if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1282 cat <<_ACEOF
1283 \`configure' configures this package to adapt to many kinds of systems.
1285 Usage: $0 [OPTION]... [VAR=VALUE]...
1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288 VAR=VALUE. See below for descriptions of some of the useful variables.
1290 Defaults for the options are specified in brackets.
1292 Configuration:
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1303 Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
1305 [$ac_default_prefix]
1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307 [PREFIX]
1309 By default, \`make install' will install all the files in
1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312 for instance \`--prefix=\$HOME'.
1314 For better control, use the options below.
1316 Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1336 _ACEOF
1338 cat <<\_ACEOF
1340 X features:
1341 --x-includes=DIR X include files are in DIR
1342 --x-libraries=DIR X library files are in DIR
1344 System types:
1345 --build=BUILD configure for building on BUILD [guessed]
1346 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1347 _ACEOF
1350 if test -n "$ac_init_help"; then
1352 cat <<\_ACEOF
1354 Optional Features:
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-fastalloc omit fast allocator for small objects
1358 --enable-experimental support new style rewriting code
1359 --enable-macosx-extensions support new style rewriting code
1360 --enable-qt replace X11 by Qt interface
1361 --enable-cocoa replace X11 by Cocoa interface
1362 --enable-debug=ARG install a debugging enable executable -ggdb
1363 --enable-assert exit on failed assertions in code
1364 --enable-warnings print warning messages during compilation
1365 --enable-optimize=ARG compile with optimizations guessed
1367 Optional Packages:
1368 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1369 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1370 --with-x use the X Window System
1371 --with-iconv=DIR where to find iconv system
1372 --with-freetype=ARG with freetype support ARG=linked
1373 --with-cairo=ARG with cairo support ARG=no
1374 --with-imlib2=ARG with imlib2 support ARG=no
1375 --with-axel=ARG with axel support ARG=no
1376 --with-gs=ARG with ghostscript support ARG=yes
1377 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CXX C++ compiler command
1388 CXXFLAGS C++ compiler flags
1389 CXXCPP C++ preprocessor
1390 XMKMF Path to xmkmf, Makefile generator for X Window System
1391 CPP C preprocessor
1392 TMPDIR A temporary directory with write access [/tmp]
1394 Use these variables to override the choices made by `configure' or to help
1395 it to find libraries and programs with nonstandard names/locations.
1397 _ACEOF
1398 ac_status=$?
1401 if test "$ac_init_help" = "recursive"; then
1402 # If there are subdirs, report their specific --help.
1403 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1404 test -d "$ac_dir" || continue
1405 ac_builddir=.
1407 case "$ac_dir" in
1408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1411 # A ".." for each directory in $ac_dir_suffix.
1412 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1413 case $ac_top_builddir_sub in
1414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1416 esac ;;
1417 esac
1418 ac_abs_top_builddir=$ac_pwd
1419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1420 # for backward compatibility:
1421 ac_top_builddir=$ac_top_build_prefix
1423 case $srcdir in
1424 .) # We are building in place.
1425 ac_srcdir=.
1426 ac_top_srcdir=$ac_top_builddir_sub
1427 ac_abs_top_srcdir=$ac_pwd ;;
1428 [\\/]* | ?:[\\/]* ) # Absolute name.
1429 ac_srcdir=$srcdir$ac_dir_suffix;
1430 ac_top_srcdir=$srcdir
1431 ac_abs_top_srcdir=$srcdir ;;
1432 *) # Relative name.
1433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1434 ac_top_srcdir=$ac_top_build_prefix$srcdir
1435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1436 esac
1437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1439 cd "$ac_dir" || { ac_status=$?; continue; }
1440 # Check for guested configure.
1441 if test -f "$ac_srcdir/configure.gnu"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1444 elif test -f "$ac_srcdir/configure"; then
1445 echo &&
1446 $SHELL "$ac_srcdir/configure" --help=recursive
1447 else
1448 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1449 fi || ac_status=$?
1450 cd "$ac_pwd" || { ac_status=$?; break; }
1451 done
1454 test -n "$ac_init_help" && exit $ac_status
1455 if $ac_init_version; then
1456 cat <<\_ACEOF
1457 configure
1458 generated by GNU Autoconf 2.61
1460 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1461 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1464 _ACEOF
1465 exit
1467 cat >config.log <<_ACEOF
1468 This file contains any messages produced by compilers while
1469 running configure, to aid debugging if configure makes a mistake.
1471 It was created by $as_me, which was
1472 generated by GNU Autoconf 2.61. Invocation command line was
1474 $ $0 $@
1476 _ACEOF
1477 exec 5>>config.log
1479 cat <<_ASUNAME
1480 ## --------- ##
1481 ## Platform. ##
1482 ## --------- ##
1484 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1485 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1486 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1487 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1488 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1490 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1491 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1493 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1494 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1495 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1496 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1497 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1498 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1499 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1501 _ASUNAME
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 echo "PATH: $as_dir"
1509 done
1510 IFS=$as_save_IFS
1512 } >&5
1514 cat >&5 <<_ACEOF
1517 ## ----------- ##
1518 ## Core tests. ##
1519 ## ----------- ##
1521 _ACEOF
1524 # Keep a trace of the command line.
1525 # Strip out --no-create and --no-recursion so they do not pile up.
1526 # Strip out --silent because we don't want to record it for future runs.
1527 # Also quote any args containing shell meta-characters.
1528 # Make two passes to allow for proper duplicate-argument suppression.
1529 ac_configure_args=
1530 ac_configure_args0=
1531 ac_configure_args1=
1532 ac_must_keep_next=false
1533 for ac_pass in 1 2
1535 for ac_arg
1537 case $ac_arg in
1538 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1540 | -silent | --silent | --silen | --sile | --sil)
1541 continue ;;
1542 *\'*)
1543 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1544 esac
1545 case $ac_pass in
1546 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1548 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1549 if test $ac_must_keep_next = true; then
1550 ac_must_keep_next=false # Got value, back to normal.
1551 else
1552 case $ac_arg in
1553 *=* | --config-cache | -C | -disable-* | --disable-* \
1554 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1555 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1556 | -with-* | --with-* | -without-* | --without-* | --x)
1557 case "$ac_configure_args0 " in
1558 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1559 esac
1561 -* ) ac_must_keep_next=true ;;
1562 esac
1564 ac_configure_args="$ac_configure_args '$ac_arg'"
1566 esac
1567 done
1568 done
1569 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1570 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1572 # When interrupted or exit'd, cleanup temporary files, and complete
1573 # config.log. We remove comments because anyway the quotes in there
1574 # would cause problems or look ugly.
1575 # WARNING: Use '\'' to represent an apostrophe within the trap.
1576 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1577 trap 'exit_status=$?
1578 # Save into config.log some information that might help in debugging.
1580 echo
1582 cat <<\_ASBOX
1583 ## ---------------- ##
1584 ## Cache variables. ##
1585 ## ---------------- ##
1586 _ASBOX
1587 echo
1588 # The following way of writing the cache mishandles newlines in values,
1590 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1591 eval ac_val=\$$ac_var
1592 case $ac_val in #(
1593 *${as_nl}*)
1594 case $ac_var in #(
1595 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1596 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1597 esac
1598 case $ac_var in #(
1599 _ | IFS | as_nl) ;; #(
1600 *) $as_unset $ac_var ;;
1601 esac ;;
1602 esac
1603 done
1604 (set) 2>&1 |
1605 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1606 *${as_nl}ac_space=\ *)
1607 sed -n \
1608 "s/'\''/'\''\\\\'\'''\''/g;
1609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1610 ;; #(
1612 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1614 esac |
1615 sort
1617 echo
1619 cat <<\_ASBOX
1620 ## ----------------- ##
1621 ## Output variables. ##
1622 ## ----------------- ##
1623 _ASBOX
1624 echo
1625 for ac_var in $ac_subst_vars
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1635 if test -n "$ac_subst_files"; then
1636 cat <<\_ASBOX
1637 ## ------------------- ##
1638 ## File substitutions. ##
1639 ## ------------------- ##
1640 _ASBOX
1641 echo
1642 for ac_var in $ac_subst_files
1644 eval ac_val=\$$ac_var
1645 case $ac_val in
1646 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647 esac
1648 echo "$ac_var='\''$ac_val'\''"
1649 done | sort
1650 echo
1653 if test -s confdefs.h; then
1654 cat <<\_ASBOX
1655 ## ----------- ##
1656 ## confdefs.h. ##
1657 ## ----------- ##
1658 _ASBOX
1659 echo
1660 cat confdefs.h
1661 echo
1663 test "$ac_signal" != 0 &&
1664 echo "$as_me: caught signal $ac_signal"
1665 echo "$as_me: exit $exit_status"
1666 } >&5
1667 rm -f core *.core core.conftest.* &&
1668 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1669 exit $exit_status
1671 for ac_signal in 1 2 13 15; do
1672 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1673 done
1674 ac_signal=0
1676 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1677 rm -f -r conftest* confdefs.h
1679 # Predefined preprocessor variables.
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_NAME "$PACKAGE_NAME"
1683 _ACEOF
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1688 _ACEOF
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1693 _ACEOF
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_STRING "$PACKAGE_STRING"
1698 _ACEOF
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1703 _ACEOF
1706 # Let the site file select an alternate cache file if it wants to.
1707 # Prefer explicitly selected file to automatically selected ones.
1708 if test -n "$CONFIG_SITE"; then
1709 set x "$CONFIG_SITE"
1710 elif test "x$prefix" != xNONE; then
1711 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1712 else
1713 set x "$ac_default_prefix/share/config.site" \
1714 "$ac_default_prefix/etc/config.site"
1716 shift
1717 for ac_site_file
1719 if test -r "$ac_site_file"; then
1720 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1721 echo "$as_me: loading site script $ac_site_file" >&6;}
1722 sed 's/^/| /' "$ac_site_file" >&5
1723 . "$ac_site_file"
1725 done
1727 if test -r "$cache_file"; then
1728 # Some versions of bash will fail to source /dev/null (special
1729 # files actually), so we avoid doing that.
1730 if test -f "$cache_file"; then
1731 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1732 echo "$as_me: loading cache $cache_file" >&6;}
1733 case $cache_file in
1734 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1735 *) . "./$cache_file";;
1736 esac
1738 else
1739 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1740 echo "$as_me: creating cache $cache_file" >&6;}
1741 >$cache_file
1744 # Check that the precious variables saved in the cache have kept the same
1745 # value.
1746 ac_cache_corrupted=false
1747 for ac_var in $ac_precious_vars; do
1748 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1749 eval ac_new_set=\$ac_env_${ac_var}_set
1750 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1751 eval ac_new_val=\$ac_env_${ac_var}_value
1752 case $ac_old_set,$ac_new_set in
1753 set,)
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1755 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1756 ac_cache_corrupted=: ;;
1757 ,set)
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1761 ,);;
1763 if test "x$ac_old_val" != "x$ac_new_val"; then
1764 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1765 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1766 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1767 echo "$as_me: former value: $ac_old_val" >&2;}
1768 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1769 echo "$as_me: current value: $ac_new_val" >&2;}
1770 ac_cache_corrupted=:
1771 fi;;
1772 esac
1773 # Pass precious variables to config.status.
1774 if test "$ac_new_set" = set; then
1775 case $ac_new_val in
1776 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 *) ac_arg=$ac_var=$ac_new_val ;;
1778 esac
1779 case " $ac_configure_args " in
1780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1781 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1782 esac
1784 done
1785 if $ac_cache_corrupted; then
1786 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1787 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1788 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1789 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1790 { (exit 1); exit 1; }; }
1809 ac_ext=c
1810 ac_cpp='$CPP $CPPFLAGS'
1811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1816 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1818 ac_aux_dir=
1819 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1820 if test -f "$ac_dir/install-sh"; then
1821 ac_aux_dir=$ac_dir
1822 ac_install_sh="$ac_aux_dir/install-sh -c"
1823 break
1824 elif test -f "$ac_dir/install.sh"; then
1825 ac_aux_dir=$ac_dir
1826 ac_install_sh="$ac_aux_dir/install.sh -c"
1827 break
1828 elif test -f "$ac_dir/shtool"; then
1829 ac_aux_dir=$ac_dir
1830 ac_install_sh="$ac_aux_dir/shtool install -c"
1831 break
1833 done
1834 if test -z "$ac_aux_dir"; then
1835 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1836 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1837 { (exit 1); exit 1; }; }
1840 # These three variables are undocumented and unsupported,
1841 # and are intended to be withdrawn in a future Autoconf release.
1842 # They can cause serious problems if a builder's source tree is in a directory
1843 # whose full name contains unusual characters.
1844 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1845 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1846 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1849 # Make sure we can run config.sub.
1850 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1851 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1852 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1853 { (exit 1); exit 1; }; }
1855 { echo "$as_me:$LINENO: checking build system type" >&5
1856 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1857 if test "${ac_cv_build+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860 ac_build_alias=$build_alias
1861 test "x$ac_build_alias" = x &&
1862 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1863 test "x$ac_build_alias" = x &&
1864 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1865 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1866 { (exit 1); exit 1; }; }
1867 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1868 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1869 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1870 { (exit 1); exit 1; }; }
1873 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1874 echo "${ECHO_T}$ac_cv_build" >&6; }
1875 case $ac_cv_build in
1876 *-*-*) ;;
1877 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1878 echo "$as_me: error: invalid value of canonical build" >&2;}
1879 { (exit 1); exit 1; }; };;
1880 esac
1881 build=$ac_cv_build
1882 ac_save_IFS=$IFS; IFS='-'
1883 set x $ac_cv_build
1884 shift
1885 build_cpu=$1
1886 build_vendor=$2
1887 shift; shift
1888 # Remember, the first character of IFS is used to create $*,
1889 # except with old shells:
1890 build_os=$*
1891 IFS=$ac_save_IFS
1892 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1895 { echo "$as_me:$LINENO: checking host system type" >&5
1896 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1897 if test "${ac_cv_host+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 if test "x$host_alias" = x; then
1901 ac_cv_host=$ac_cv_build
1902 else
1903 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1904 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1905 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1906 { (exit 1); exit 1; }; }
1910 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1911 echo "${ECHO_T}$ac_cv_host" >&6; }
1912 case $ac_cv_host in
1913 *-*-*) ;;
1914 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1915 echo "$as_me: error: invalid value of canonical host" >&2;}
1916 { (exit 1); exit 1; }; };;
1917 esac
1918 host=$ac_cv_host
1919 ac_save_IFS=$IFS; IFS='-'
1920 set x $ac_cv_host
1921 shift
1922 host_cpu=$1
1923 host_vendor=$2
1924 shift; shift
1925 # Remember, the first character of IFS is used to create $*,
1926 # except with old shells:
1927 host_os=$*
1928 IFS=$ac_save_IFS
1929 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1933 PACKAGE="TeXmacs"
1934 DEVEL_VERSION="1.0.7.4"
1935 DEVEL_RELEASE="1"
1936 STABLE_VERSION="1.0.7"
1937 STABLE_RELEASE="1"
1938 WINDOWS_VERSION="1.0.5"
1939 WINDOWS_RELEASE="1"
1946 #--------------------------------------------------------------------
1947 # Checks for C++ compiler
1948 #--------------------------------------------------------------------
1950 ac_ext=c
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955 if test -n "$ac_tool_prefix"; then
1956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1977 done
1978 done
1979 IFS=$as_save_IFS
1983 CC=$ac_cv_prog_CC
1984 if test -n "$CC"; then
1985 { echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6; }
1987 else
1988 { echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6; }
1994 if test -z "$ac_cv_prog_CC"; then
1995 ac_ct_CC=$CC
1996 # Extract the first word of "gcc", so it can be a program name with args.
1997 set dummy gcc; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2013 ac_cv_prog_ac_ct_CC="gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2017 done
2018 done
2019 IFS=$as_save_IFS
2023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024 if test -n "$ac_ct_CC"; then
2025 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026 echo "${ECHO_T}$ac_ct_CC" >&6; }
2027 else
2028 { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2032 if test "x$ac_ct_CC" = x; then
2033 CC=""
2034 else
2035 case $cross_compiling:$ac_tool_warned in
2036 yes:)
2037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2038 whose name does not start with the host triplet. If you think this
2039 configuration is useful to you, please write to autoconf@gnu.org." >&5
2040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2041 whose name does not start with the host triplet. If you think this
2042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2043 ac_tool_warned=yes ;;
2044 esac
2045 CC=$ac_ct_CC
2047 else
2048 CC="$ac_cv_prog_CC"
2051 if test -z "$CC"; then
2052 if test -n "$ac_tool_prefix"; then
2053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2054 set dummy ${ac_tool_prefix}cc; ac_word=$2
2055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2070 ac_cv_prog_CC="${ac_tool_prefix}cc"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2074 done
2075 done
2076 IFS=$as_save_IFS
2080 CC=$ac_cv_prog_CC
2081 if test -n "$CC"; then
2082 { echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6; }
2084 else
2085 { echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6; }
2092 if test -z "$CC"; then
2093 # Extract the first word of "cc", so it can be a program name with args.
2094 set dummy cc; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 ac_prog_rejected=no
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2112 ac_prog_rejected=yes
2113 continue
2115 ac_cv_prog_CC="cc"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 break 2
2119 done
2120 done
2121 IFS=$as_save_IFS
2123 if test $ac_prog_rejected = yes; then
2124 # We found a bogon in the path, so make sure we never use it.
2125 set dummy $ac_cv_prog_CC
2126 shift
2127 if test $# != 0; then
2128 # We chose a different compiler from the bogus one.
2129 # However, it has the same basename, so the bogon will be chosen
2130 # first if we set CC to just the basename; use the full file name.
2131 shift
2132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139 { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2141 else
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2148 if test -z "$CC"; then
2149 if test -n "$ac_tool_prefix"; then
2150 for ac_prog in cl.exe
2152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2156 if test "${ac_cv_prog_CC+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159 if test -n "$CC"; then
2160 ac_cv_prog_CC="$CC" # Let the user override the test.
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 break 2
2173 done
2174 done
2175 IFS=$as_save_IFS
2179 CC=$ac_cv_prog_CC
2180 if test -n "$CC"; then
2181 { echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6; }
2183 else
2184 { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2189 test -n "$CC" && break
2190 done
2192 if test -z "$CC"; then
2193 ac_ct_CC=$CC
2194 for ac_prog in cl.exe
2196 # Extract the first word of "$ac_prog", so it can be a program name with args.
2197 set dummy $ac_prog; ac_word=$2
2198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203 if test -n "$ac_ct_CC"; then
2204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2205 else
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2209 IFS=$as_save_IFS
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213 ac_cv_prog_ac_ct_CC="$ac_prog"
2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 break 2
2217 done
2218 done
2219 IFS=$as_save_IFS
2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224 if test -n "$ac_ct_CC"; then
2225 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 echo "${ECHO_T}$ac_ct_CC" >&6; }
2227 else
2228 { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2233 test -n "$ac_ct_CC" && break
2234 done
2236 if test "x$ac_ct_CC" = x; then
2237 CC=""
2238 else
2239 case $cross_compiling:$ac_tool_warned in
2240 yes:)
2241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2242 whose name does not start with the host triplet. If you think this
2243 configuration is useful to you, please write to autoconf@gnu.org." >&5
2244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2245 whose name does not start with the host triplet. If you think this
2246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2247 ac_tool_warned=yes ;;
2248 esac
2249 CC=$ac_ct_CC
2256 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: no acceptable C compiler found in \$PATH
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2262 # Provide some information about the compiler.
2263 echo "$as_me:$LINENO: checking for C compiler version" >&5
2264 ac_compiler=`set X $ac_compile; echo $2`
2265 { (ac_try="$ac_compiler --version >&5"
2266 case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269 esac
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_compiler --version >&5") 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }
2275 { (ac_try="$ac_compiler -v >&5"
2276 case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2279 esac
2280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281 (eval "$ac_compiler -v >&5") 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }
2285 { (ac_try="$ac_compiler -V >&5"
2286 case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289 esac
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291 (eval "$ac_compiler -V >&5") 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2304 main ()
2308 return 0;
2310 _ACEOF
2311 ac_clean_files_save=$ac_clean_files
2312 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2313 # Try to create an executable without -o first, disregard a.out.
2314 # It will help us diagnose broken compilers, and finding out an intuition
2315 # of exeext.
2316 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2317 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2318 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2320 # List of possible output files, starting from the most likely.
2321 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2322 # only as a last resort. b.out is created by i960 compilers.
2323 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2325 # The IRIX 6 linker writes into existing files which may not be
2326 # executable, retaining their permissions. Remove them first so a
2327 # subsequent execution test works.
2328 ac_rmfiles=
2329 for ac_file in $ac_files
2331 case $ac_file in
2332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2333 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2334 esac
2335 done
2336 rm -f $ac_rmfiles
2338 if { (ac_try="$ac_link_default"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_link_default") 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2349 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2350 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2351 # so that the user can short-circuit this test for compilers unknown to
2352 # Autoconf.
2353 for ac_file in $ac_files ''
2355 test -f "$ac_file" || continue
2356 case $ac_file in
2357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2359 [ab].out )
2360 # We found the default executable, but exeext='' is most
2361 # certainly right.
2362 break;;
2363 *.* )
2364 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2365 then :; else
2366 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2368 # We set ac_cv_exeext here because the later test for it is not
2369 # safe: cross compilers may not add the suffix if given an `-o'
2370 # argument, so we may need to know it at that point already.
2371 # Even if this section looks crufty: it has the advantage of
2372 # actually working.
2373 break;;
2375 break;;
2376 esac
2377 done
2378 test "$ac_cv_exeext" = no && ac_cv_exeext=
2380 else
2381 ac_file=''
2384 { echo "$as_me:$LINENO: result: $ac_file" >&5
2385 echo "${ECHO_T}$ac_file" >&6; }
2386 if test -z "$ac_file"; then
2387 echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2390 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: C compiler cannot create executables
2393 See \`config.log' for more details." >&2;}
2394 { (exit 77); exit 77; }; }
2397 ac_exeext=$ac_cv_exeext
2399 # Check that the compiler produces executables we can run. If not, either
2400 # the compiler is broken, or we cross compile.
2401 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2402 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2403 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2404 # If not cross compiling, check that we can run a simple program.
2405 if test "$cross_compiling" != yes; then
2406 if { ac_try='./$ac_file'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 cross_compiling=no
2417 else
2418 if test "$cross_compiling" = maybe; then
2419 cross_compiling=yes
2420 else
2421 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&2;}
2427 { (exit 1); exit 1; }; }
2431 { echo "$as_me:$LINENO: result: yes" >&5
2432 echo "${ECHO_T}yes" >&6; }
2434 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2435 ac_clean_files=$ac_clean_files_save
2436 # Check that the compiler produces executables we can run. If not, either
2437 # the compiler is broken, or we cross compile.
2438 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2439 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2440 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2441 echo "${ECHO_T}$cross_compiling" >&6; }
2443 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2444 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2445 if { (ac_try="$ac_link"
2446 case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449 esac
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_link") 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2456 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2457 # work properly (i.e., refer to `conftest.exe'), while it won't with
2458 # `rm'.
2459 for ac_file in conftest.exe conftest conftest.*; do
2460 test -f "$ac_file" || continue
2461 case $ac_file in
2462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2464 break;;
2465 * ) break;;
2466 esac
2467 done
2468 else
2469 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2472 See \`config.log' for more details." >&2;}
2473 { (exit 1); exit 1; }; }
2476 rm -f conftest$ac_cv_exeext
2477 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2478 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2480 rm -f conftest.$ac_ext
2481 EXEEXT=$ac_cv_exeext
2482 ac_exeext=$EXEEXT
2483 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2484 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2485 if test "${ac_cv_objext+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h. */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2496 main ()
2500 return 0;
2502 _ACEOF
2503 rm -f conftest.o conftest.obj
2504 if { (ac_try="$ac_compile"
2505 case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compile") 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 for ac_file in conftest.o conftest.obj conftest.*; do
2515 test -f "$ac_file" || continue;
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519 break;;
2520 esac
2521 done
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2535 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6; }
2537 OBJEXT=$ac_cv_objext
2538 ac_objext=$OBJEXT
2539 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2552 main ()
2554 #ifndef __GNUC__
2555 choke me
2556 #endif
2559 return 0;
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (ac_try="$ac_compile"
2564 case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } && {
2576 test -z "$ac_c_werror_flag" ||
2577 test ! -s conftest.err
2578 } && test -s conftest.$ac_objext; then
2579 ac_compiler_gnu=yes
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 ac_compiler_gnu=no
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2591 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2592 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2593 GCC=`test $ac_compiler_gnu = yes && echo yes`
2594 ac_test_CFLAGS=${CFLAGS+set}
2595 ac_save_CFLAGS=$CFLAGS
2596 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2597 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_cc_g+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 ac_save_c_werror_flag=$ac_c_werror_flag
2602 ac_c_werror_flag=yes
2603 ac_cv_prog_cc_g=no
2604 CFLAGS="-g"
2605 cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h. */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2613 main ()
2617 return 0;
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (ac_try="$ac_compile"
2622 case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2625 esac
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627 (eval "$ac_compile") 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } && {
2634 test -z "$ac_c_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest.$ac_objext; then
2637 ac_cv_prog_cc_g=yes
2638 else
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2642 CFLAGS=""
2643 cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h. */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2651 main ()
2655 return 0;
2657 _ACEOF
2658 rm -f conftest.$ac_objext
2659 if { (ac_try="$ac_compile"
2660 case "(($ac_try" in
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2663 esac
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compile") 2>conftest.er1
2666 ac_status=$?
2667 grep -v '^ *+' conftest.er1 >conftest.err
2668 rm -f conftest.er1
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } && {
2672 test -z "$ac_c_werror_flag" ||
2673 test ! -s conftest.err
2674 } && test -s conftest.$ac_objext; then
2676 else
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2680 ac_c_werror_flag=$ac_save_c_werror_flag
2681 CFLAGS="-g"
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2690 main ()
2694 return 0;
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest.$ac_objext; then
2714 ac_cv_prog_cc_g=yes
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 ac_c_werror_flag=$ac_save_c_werror_flag
2731 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2732 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2733 if test "$ac_test_CFLAGS" = set; then
2734 CFLAGS=$ac_save_CFLAGS
2735 elif test $ac_cv_prog_cc_g = yes; then
2736 if test "$GCC" = yes; then
2737 CFLAGS="-g -O2"
2738 else
2739 CFLAGS="-g"
2741 else
2742 if test "$GCC" = yes; then
2743 CFLAGS="-O2"
2744 else
2745 CFLAGS=
2748 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2749 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_cc_c89+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 ac_cv_prog_cc_c89=no
2754 ac_save_CC=$CC
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h. */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2761 #include <stdarg.h>
2762 #include <stdio.h>
2763 #include <sys/types.h>
2764 #include <sys/stat.h>
2765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2766 struct buf { int x; };
2767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2768 static char *e (p, i)
2769 char **p;
2770 int i;
2772 return p[i];
2774 static char *f (char * (*g) (char **, int), char **p, ...)
2776 char *s;
2777 va_list v;
2778 va_start (v,p);
2779 s = g (p, va_arg (v,int));
2780 va_end (v);
2781 return s;
2784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2785 function prototypes and stuff, but not '\xHH' hex character constants.
2786 These don't provoke an error unfortunately, instead are silently treated
2787 as 'x'. The following induces an error, until -std is added to get
2788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2789 array size at least. It's necessary to write '\x00'==0 to get something
2790 that's true only with -std. */
2791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2794 inside strings and character constants. */
2795 #define FOO(x) 'x'
2796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2798 int test (int i, double x);
2799 struct s1 {int (*f) (int a);};
2800 struct s2 {int (*f) (double a);};
2801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2802 int argc;
2803 char **argv;
2805 main ()
2807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2809 return 0;
2811 _ACEOF
2812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2815 CC="$ac_save_CC $ac_arg"
2816 rm -f conftest.$ac_objext
2817 if { (ac_try="$ac_compile"
2818 case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compile") 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } && {
2830 test -z "$ac_c_werror_flag" ||
2831 test ! -s conftest.err
2832 } && test -s conftest.$ac_objext; then
2833 ac_cv_prog_cc_c89=$ac_arg
2834 else
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2841 rm -f core conftest.err conftest.$ac_objext
2842 test "x$ac_cv_prog_cc_c89" != "xno" && break
2843 done
2844 rm -f conftest.$ac_ext
2845 CC=$ac_save_CC
2848 # AC_CACHE_VAL
2849 case "x$ac_cv_prog_cc_c89" in
2851 { echo "$as_me:$LINENO: result: none needed" >&5
2852 echo "${ECHO_T}none needed" >&6; } ;;
2853 xno)
2854 { echo "$as_me:$LINENO: result: unsupported" >&5
2855 echo "${ECHO_T}unsupported" >&6; } ;;
2857 CC="$CC $ac_cv_prog_cc_c89"
2858 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2859 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2860 esac
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869 ac_ext=cpp
2870 ac_cpp='$CXXCPP $CPPFLAGS'
2871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2874 if test -z "$CXX"; then
2875 if test -n "$CCC"; then
2876 CXX=$CCC
2877 else
2878 if test -n "$ac_tool_prefix"; then
2879 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2885 if test "${ac_cv_prog_CXX+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888 if test -n "$CXX"; then
2889 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2902 done
2903 done
2904 IFS=$as_save_IFS
2908 CXX=$ac_cv_prog_CXX
2909 if test -n "$CXX"; then
2910 { echo "$as_me:$LINENO: result: $CXX" >&5
2911 echo "${ECHO_T}$CXX" >&6; }
2912 else
2913 { echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6; }
2918 test -n "$CXX" && break
2919 done
2921 if test -z "$CXX"; then
2922 ac_ct_CXX=$CXX
2923 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2925 # Extract the first word of "$ac_prog", so it can be a program name with args.
2926 set dummy $ac_prog; ac_word=$2
2927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2929 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932 if test -n "$ac_ct_CXX"; then
2933 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_ac_ct_CXX="$ac_prog"
2943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2948 IFS=$as_save_IFS
2952 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2953 if test -n "$ac_ct_CXX"; then
2954 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2955 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2956 else
2957 { echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6; }
2962 test -n "$ac_ct_CXX" && break
2963 done
2965 if test "x$ac_ct_CXX" = x; then
2966 CXX="g++"
2967 else
2968 case $cross_compiling:$ac_tool_warned in
2969 yes:)
2970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2971 whose name does not start with the host triplet. If you think this
2972 configuration is useful to you, please write to autoconf@gnu.org." >&5
2973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2974 whose name does not start with the host triplet. If you think this
2975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978 CXX=$ac_ct_CXX
2984 # Provide some information about the compiler.
2985 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2986 ac_compiler=`set X $ac_compile; echo $2`
2987 { (ac_try="$ac_compiler --version >&5"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compiler --version >&5") 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }
2997 { (ac_try="$ac_compiler -v >&5"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_compiler -v >&5") 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }
3007 { (ac_try="$ac_compiler -V >&5"
3008 case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compiler -V >&5") 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3018 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3019 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3020 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h. */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3031 main ()
3033 #ifndef __GNUC__
3034 choke me
3035 #endif
3038 return 0;
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && {
3055 test -z "$ac_cxx_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.$ac_objext; then
3058 ac_compiler_gnu=yes
3059 else
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 ac_compiler_gnu=no
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3070 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3072 GXX=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CXXFLAGS=${CXXFLAGS+set}
3074 ac_save_CXXFLAGS=$CXXFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3076 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cxx_g+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3081 ac_cxx_werror_flag=yes
3082 ac_cv_prog_cxx_g=no
3083 CXXFLAGS="-g"
3084 cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h. */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3092 main ()
3096 return 0;
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_cxx_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest.$ac_objext; then
3116 ac_cv_prog_cxx_g=yes
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 CXXFLAGS=""
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3130 main ()
3134 return 0;
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3145 ac_status=$?
3146 grep -v '^ *+' conftest.er1 >conftest.err
3147 rm -f conftest.er1
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } && {
3151 test -z "$ac_cxx_werror_flag" ||
3152 test ! -s conftest.err
3153 } && test -s conftest.$ac_objext; then
3155 else
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3160 CXXFLAGS="-g"
3161 cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h. */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3169 main ()
3173 return 0;
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3184 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_cxx_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3193 ac_cv_prog_cxx_g=yes
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3212 if test "$ac_test_CXXFLAGS" = set; then
3213 CXXFLAGS=$ac_save_CXXFLAGS
3214 elif test $ac_cv_prog_cxx_g = yes; then
3215 if test "$GXX" = yes; then
3216 CXXFLAGS="-g -O2"
3217 else
3218 CXXFLAGS="-g"
3220 else
3221 if test "$GXX" = yes; then
3222 CXXFLAGS="-O2"
3223 else
3224 CXXFLAGS=
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 ac_ext=cpp
3234 ac_cpp='$CXXCPP $CPPFLAGS'
3235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3241 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3242 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3243 case "$GXX" in
3244 yes )
3245 GCC_VERSION=`$CC -dumpversion`
3246 GXX_VERSION=`$CXX -dumpversion`
3247 { echo "$as_me:$LINENO: result: yes" >&5
3248 echo "${ECHO_T}yes" >&6; }
3249 { echo "$as_me:$LINENO: checking version of gcc" >&5
3250 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3251 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3252 echo "${ECHO_T}$GCC_VERSION" >&6; }
3253 { echo "$as_me:$LINENO: checking version of g++" >&5
3254 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3255 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3256 echo "${ECHO_T}$GXX_VERSION" >&6; }
3257 case "$GXX_VERSION" in
3258 0* | 1* | 2*)
3259 echo "old style GNU compiler"
3260 cat >>confdefs.h <<\_ACEOF
3261 #define OLD_GNU_COMPILER
3262 _ACEOF
3265 esac
3268 GCC_VERSION="none"
3269 GXX_VERSION="none"
3270 { echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6; }
3272 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3273 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3275 esac
3277 #--------------------------------------------------------------------
3278 # Checks for Guile
3279 #--------------------------------------------------------------------
3281 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3283 ## The GUILE_FLAGS macro.
3284 ## First, let's just see if we can find Guile at all.
3285 { echo "$as_me:$LINENO: checking for Guile" >&5
3286 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3287 guile-config link > /dev/null || {
3288 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3289 exit 1
3291 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
3292 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3293 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3294 GUILE_LDFLAGS="`guile-config link`"
3295 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3298 { echo "$as_me:$LINENO: result: yes" >&5
3299 echo "${ECHO_T}yes" >&6; }
3302 { echo "$as_me:$LINENO: checking version of guile" >&5
3303 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3304 if test -z "$GUILE_VERSION" ; then
3305 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3307 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3308 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3310 case "$GUILE_VERSION" in
3311 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3312 CONFIG_GUILE_SERIAL="A"
3314 1.6* | 1.7*)
3315 CONFIG_GUILE_SERIAL="B"
3318 CONFIG_GUILE_SERIAL="C"
3320 esac
3323 #--------------------------------------------------------------------
3324 # Checks for standard functionality
3325 #--------------------------------------------------------------------
3329 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3330 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3331 ac_save_cppflags="$CPPFLAGS"
3332 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <X11/Xlib.h>
3340 #include <X11/Xutil.h>
3342 main ()
3346 return 0;
3348 _ACEOF
3349 rm -f conftest.$ac_objext
3350 if { (ac_try="$ac_compile"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_compile") 2>conftest.er1
3357 ac_status=$?
3358 grep -v '^ *+' conftest.er1 >conftest.err
3359 rm -f conftest.er1
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } && {
3363 test -z "$ac_cxx_werror_flag" ||
3364 test ! -s conftest.err
3365 } && test -s conftest.$ac_objext; then
3366 echo yes
3367 else
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3371 rm -rf X11
3372 mkdir X11
3373 for ac_dir in \
3374 /usr/X11/include \
3375 /usr/X11R6/include \
3376 /usr/X11R5/include \
3377 /usr/X11R4/include \
3379 /usr/include/X11 \
3380 /usr/include/X11R6 \
3381 /usr/include/X11R5 \
3382 /usr/include/X11R4 \
3384 /usr/local/X11/include \
3385 /usr/local/X11R6/include \
3386 /usr/local/X11R5/include \
3387 /usr/local/X11R4/include \
3389 /usr/local/include/X11 \
3390 /usr/local/include/X11R6 \
3391 /usr/local/include/X11R5 \
3392 /usr/local/include/X11R4 \
3394 /usr/X386/include \
3395 /usr/x386/include \
3396 /usr/XFree86/include/X11 \
3398 /usr/include \
3399 /usr/local/include \
3400 /usr/unsupported/include \
3401 /usr/athena/include \
3402 /usr/local/x11r5/include \
3403 /usr/lpp/Xamples/include \
3405 /usr/openwin/include \
3406 /usr/openwin/share/include \
3409 if test -r "$ac_dir/X11/Xlib.h"; then
3410 tm_x_includes=$ac_dir
3411 break
3413 done
3414 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3415 < "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
3416 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3417 < "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
3418 X_CFLAGS="-I.. $X_CFLAGS"
3419 echo "no; fixing"
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 CPPFLAGS="$ac_save_cppflags"
3425 ac_ext=cpp
3426 ac_cpp='$CXXCPP $CPPFLAGS'
3427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3430 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3431 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3432 if test -z "$CXXCPP"; then
3433 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 # Double quotes because CXXCPP needs to be expanded
3437 for CXXCPP in "$CXX -E" "/lib/cpp"
3439 ac_preproc_ok=false
3440 for ac_cxx_preproc_warn_flag in '' yes
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #ifdef __STDC__
3455 # include <limits.h>
3456 #else
3457 # include <assert.h>
3458 #endif
3459 Syntax error
3460 _ACEOF
3461 if { (ac_try="$ac_cpp conftest.$ac_ext"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null && {
3474 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3475 test ! -s conftest.err
3476 }; then
3478 else
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3483 continue
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3505 ac_status=$?
3506 grep -v '^ *+' conftest.er1 >conftest.err
3507 rm -f conftest.er1
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null && {
3511 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3512 test ! -s conftest.err
3513 }; then
3514 # Broken: success on invalid input.
3515 continue
3516 else
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 # Passes both tests.
3521 ac_preproc_ok=:
3522 break
3525 rm -f conftest.err conftest.$ac_ext
3527 done
3528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529 rm -f conftest.err conftest.$ac_ext
3530 if $ac_preproc_ok; then
3531 break
3534 done
3535 ac_cv_prog_CXXCPP=$CXXCPP
3538 CXXCPP=$ac_cv_prog_CXXCPP
3539 else
3540 ac_cv_prog_CXXCPP=$CXXCPP
3542 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3543 echo "${ECHO_T}$CXXCPP" >&6; }
3544 ac_preproc_ok=false
3545 for ac_cxx_preproc_warn_flag in '' yes
3547 # Use a header file that comes with gcc, so configuring glibc
3548 # with a fresh cross-compiler works.
3549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550 # <limits.h> exists even on freestanding compilers.
3551 # On the NeXT, cc -E runs the code through the compiler's parser,
3552 # not just through cpp. "Syntax error" is here to catch this case.
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #ifdef __STDC__
3560 # include <limits.h>
3561 #else
3562 # include <assert.h>
3563 #endif
3564 Syntax error
3565 _ACEOF
3566 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev/null && {
3579 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3580 test ! -s conftest.err
3581 }; then
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 # Broken: fails on valid input.
3588 continue
3591 rm -f conftest.err conftest.$ac_ext
3593 # OK, works on sane cases. Now check whether nonexistent headers
3594 # can be detected and how.
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h. */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 #include <ac_nonexistent.h>
3602 _ACEOF
3603 if { (ac_try="$ac_cpp conftest.$ac_ext"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } >/dev/null && {
3616 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3617 test ! -s conftest.err
3618 }; then
3619 # Broken: success on invalid input.
3620 continue
3621 else
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 # Passes both tests.
3626 ac_preproc_ok=:
3627 break
3630 rm -f conftest.err conftest.$ac_ext
3632 done
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.$ac_ext
3635 if $ac_preproc_ok; then
3637 else
3638 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3645 ac_ext=cpp
3646 ac_cpp='$CXXCPP $CPPFLAGS'
3647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy grep ggrep; ac_prog_name=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3677 *GNU*)
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680 ac_count=0
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682 while :
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700 esac
3703 $ac_path_GREP_found && break 3
3704 done
3705 done
3707 done
3708 IFS=$as_save_IFS
3713 GREP="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3720 else
3721 ac_cv_path_GREP=$GREP
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP="$ac_cv_path_GREP"
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737 then ac_cv_path_EGREP="$GREP -E"
3738 else
3739 # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy egrep; ac_prog_name=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745 ac_path_EGREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in egrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3759 *GNU*)
3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 ac_count=0
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3764 while :
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 ac_count=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP="$ac_path_EGREP"
3776 ac_path_EGREP_max=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3780 done
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782 esac
3785 $ac_path_EGREP_found && break 3
3786 done
3787 done
3789 done
3790 IFS=$as_save_IFS
3795 EGREP="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3802 else
3803 ac_cv_path_EGREP=$EGREP
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP="$ac_cv_path_EGREP"
3814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816 if test "${ac_cv_header_stdc+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <stdlib.h>
3826 #include <stdarg.h>
3827 #include <string.h>
3828 #include <float.h>
3831 main ()
3835 return 0;
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_cxx_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest.$ac_objext; then
3855 ac_cv_header_stdc=yes
3856 else
3857 echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 ac_cv_header_stdc=no
3863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 if test $ac_cv_header_stdc = yes; then
3866 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3867 cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h. */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873 #include <string.h>
3875 _ACEOF
3876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3877 $EGREP "memchr" >/dev/null 2>&1; then
3879 else
3880 ac_cv_header_stdc=no
3882 rm -f conftest*
3886 if test $ac_cv_header_stdc = yes; then
3887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h. */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894 #include <stdlib.h>
3896 _ACEOF
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898 $EGREP "free" >/dev/null 2>&1; then
3900 else
3901 ac_cv_header_stdc=no
3903 rm -f conftest*
3907 if test $ac_cv_header_stdc = yes; then
3908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3909 if test "$cross_compiling" = yes; then
3911 else
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <ctype.h>
3919 #include <stdlib.h>
3920 #if ((' ' & 0x0FF) == 0x020)
3921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3923 #else
3924 # define ISLOWER(c) \
3925 (('a' <= (c) && (c) <= 'i') \
3926 || ('j' <= (c) && (c) <= 'r') \
3927 || ('s' <= (c) && (c) <= 'z'))
3928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3929 #endif
3931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3933 main ()
3935 int i;
3936 for (i = 0; i < 256; i++)
3937 if (XOR (islower (i), ISLOWER (i))
3938 || toupper (i) != TOUPPER (i))
3939 return 2;
3940 return 0;
3942 _ACEOF
3943 rm -f conftest$ac_exeext
3944 if { (ac_try="$ac_link"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_link") 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3954 { (case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_try") 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3964 else
3965 echo "$as_me: program exited with status $ac_status" >&5
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 ( exit $ac_status )
3970 ac_cv_header_stdc=no
3972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3978 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3979 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3980 if test $ac_cv_header_stdc = yes; then
3982 cat >>confdefs.h <<\_ACEOF
3983 #define STDC_HEADERS 1
3984 _ACEOF
3988 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3998 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3999 inttypes.h stdint.h unistd.h
4001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 cat >conftest.$ac_ext <<_ACEOF
4008 /* confdefs.h. */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 $ac_includes_default
4015 #include <$ac_header>
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (ac_try="$ac_compile"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_compile") 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && {
4031 test -z "$ac_cxx_werror_flag" ||
4032 test ! -s conftest.err
4033 } && test -s conftest.$ac_objext; then
4034 eval "$as_ac_Header=yes"
4035 else
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 eval "$as_ac_Header=no"
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_res=`eval echo '${'$as_ac_Header'}'`
4045 { echo "$as_me:$LINENO: result: $ac_res" >&5
4046 echo "${ECHO_T}$ac_res" >&6; }
4047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4048 cat >>confdefs.h <<_ACEOF
4049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4050 _ACEOF
4054 done
4057 { echo "$as_me:$LINENO: checking for FILE" >&5
4058 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
4059 if test "${ac_cv_type_FILE+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4069 typedef FILE ac__type_new_;
4071 main ()
4073 if ((ac__type_new_ *) 0)
4074 return 0;
4075 if (sizeof (ac__type_new_))
4076 return 0;
4078 return 0;
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } && {
4095 test -z "$ac_cxx_werror_flag" ||
4096 test ! -s conftest.err
4097 } && test -s conftest.$ac_objext; then
4098 ac_cv_type_FILE=yes
4099 else
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 ac_cv_type_FILE=no
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
4109 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
4110 if test $ac_cv_type_FILE = yes; then
4112 cat >>confdefs.h <<_ACEOF
4113 #define HAVE_FILE 1
4114 _ACEOF
4119 { echo "$as_me:$LINENO: checking for intptr_t" >&5
4120 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
4121 if test "${ac_cv_type_intptr_t+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h. */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4130 $ac_includes_default
4131 typedef intptr_t ac__type_new_;
4133 main ()
4135 if ((ac__type_new_ *) 0)
4136 return 0;
4137 if (sizeof (ac__type_new_))
4138 return 0;
4140 return 0;
4142 _ACEOF
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4145 case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } && {
4157 test -z "$ac_cxx_werror_flag" ||
4158 test ! -s conftest.err
4159 } && test -s conftest.$ac_objext; then
4160 ac_cv_type_intptr_t=yes
4161 else
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 ac_cv_type_intptr_t=no
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4171 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4172 if test $ac_cv_type_intptr_t = yes; then
4174 cat >>confdefs.h <<_ACEOF
4175 #define HAVE_INTPTR_T 1
4176 _ACEOF
4181 { echo "$as_me:$LINENO: checking for time_t" >&5
4182 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4183 if test "${ac_cv_type_time_t+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 $ac_includes_default
4193 typedef time_t ac__type_new_;
4195 main ()
4197 if ((ac__type_new_ *) 0)
4198 return 0;
4199 if (sizeof (ac__type_new_))
4200 return 0;
4202 return 0;
4204 _ACEOF
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } && {
4219 test -z "$ac_cxx_werror_flag" ||
4220 test ! -s conftest.err
4221 } && test -s conftest.$ac_objext; then
4222 ac_cv_type_time_t=yes
4223 else
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 ac_cv_type_time_t=no
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4233 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4234 if test $ac_cv_type_time_t = yes; then
4236 cat >>confdefs.h <<_ACEOF
4237 #define HAVE_TIME_T 1
4238 _ACEOF
4243 { echo "$as_me:$LINENO: checking for X" >&5
4244 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4247 # Check whether --with-x was given.
4248 if test "${with_x+set}" = set; then
4249 withval=$with_x;
4252 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4253 if test "x$with_x" = xno; then
4254 # The user explicitly disabled X.
4255 have_x=disabled
4256 else
4257 case $x_includes,$x_libraries in #(
4258 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4259 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4260 { (exit 1); exit 1; }; };; #(
4261 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 # One or both of the vars are not set, and there is no cached value.
4265 ac_x_includes=no ac_x_libraries=no
4266 rm -f -r conftest.dir
4267 if mkdir conftest.dir; then
4268 cd conftest.dir
4269 cat >Imakefile <<'_ACEOF'
4270 incroot:
4271 @echo incroot='${INCROOT}'
4272 usrlibdir:
4273 @echo usrlibdir='${USRLIBDIR}'
4274 libdir:
4275 @echo libdir='${LIBDIR}'
4276 _ACEOF
4277 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4278 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4279 for ac_var in incroot usrlibdir libdir; do
4280 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4281 done
4282 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4283 for ac_extension in a so sl; do
4284 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4285 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4286 ac_im_usrlibdir=$ac_im_libdir; break
4288 done
4289 # Screen out bogus values from the imake configuration. They are
4290 # bogus both because they are the default anyway, and because
4291 # using them would break gcc on systems where it needs fixed includes.
4292 case $ac_im_incroot in
4293 /usr/include) ac_x_includes= ;;
4294 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4295 esac
4296 case $ac_im_usrlibdir in
4297 /usr/lib | /lib) ;;
4298 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4299 esac
4301 cd ..
4302 rm -f -r conftest.dir
4305 # Standard set of common directories for X headers.
4306 # Check X11 before X11Rn because it is often a symlink to the current release.
4307 ac_x_header_dirs='
4308 /usr/X11/include
4309 /usr/X11R6/include
4310 /usr/X11R5/include
4311 /usr/X11R4/include
4313 /usr/include/X11
4314 /usr/include/X11R6
4315 /usr/include/X11R5
4316 /usr/include/X11R4
4318 /usr/local/X11/include
4319 /usr/local/X11R6/include
4320 /usr/local/X11R5/include
4321 /usr/local/X11R4/include
4323 /usr/local/include/X11
4324 /usr/local/include/X11R6
4325 /usr/local/include/X11R5
4326 /usr/local/include/X11R4
4328 /usr/X386/include
4329 /usr/x386/include
4330 /usr/XFree86/include/X11
4332 /usr/include
4333 /usr/local/include
4334 /usr/unsupported/include
4335 /usr/athena/include
4336 /usr/local/x11r5/include
4337 /usr/lpp/Xamples/include
4339 /usr/openwin/include
4340 /usr/openwin/share/include'
4342 if test "$ac_x_includes" = no; then
4343 # Guess where to find include files, by looking for Xlib.h.
4344 # First, try using that file with no special directory specified.
4345 cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h. */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 #include <X11/Xlib.h>
4352 _ACEOF
4353 if { (ac_try="$ac_cpp conftest.$ac_ext"
4354 case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } >/dev/null && {
4366 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4367 test ! -s conftest.err
4368 }; then
4369 # We can compile using X headers with no special include directory.
4370 ac_x_includes=
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 for ac_dir in $ac_x_header_dirs; do
4376 if test -r "$ac_dir/X11/Xlib.h"; then
4377 ac_x_includes=$ac_dir
4378 break
4380 done
4383 rm -f conftest.err conftest.$ac_ext
4384 fi # $ac_x_includes = no
4386 if test "$ac_x_libraries" = no; then
4387 # Check for the libraries.
4388 # See if we find them without any special options.
4389 # Don't add to $LIBS permanently.
4390 ac_save_LIBS=$LIBS
4391 LIBS="-lX11 $LIBS"
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 #include <X11/Xlib.h>
4400 main ()
4402 XrmInitialize ()
4404 return 0;
4406 _ACEOF
4407 rm -f conftest.$ac_objext conftest$ac_exeext
4408 if { (ac_try="$ac_link"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_link") 2>conftest.er1
4415 ac_status=$?
4416 grep -v '^ *+' conftest.er1 >conftest.err
4417 rm -f conftest.er1
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && {
4421 test -z "$ac_cxx_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest$ac_exeext &&
4424 $as_test_x conftest$ac_exeext; then
4425 LIBS=$ac_save_LIBS
4426 # We can link X programs with no special library path.
4427 ac_x_libraries=
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 LIBS=$ac_save_LIBS
4433 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4435 # Don't even attempt the hair of trying to link an X program!
4436 for ac_extension in a so sl; do
4437 if test -r "$ac_dir/libX11.$ac_extension"; then
4438 ac_x_libraries=$ac_dir
4439 break 2
4441 done
4442 done
4445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4446 conftest$ac_exeext conftest.$ac_ext
4447 fi # $ac_x_libraries = no
4449 case $ac_x_includes,$ac_x_libraries in #(
4450 no,* | *,no | *\'*)
4451 # Didn't find X, or a directory has "'" in its name.
4452 ac_cv_have_x="have_x=no";; #(
4454 # Record where we found X for the cache.
4455 ac_cv_have_x="have_x=yes\
4456 ac_x_includes='$ac_x_includes'\
4457 ac_x_libraries='$ac_x_libraries'"
4458 esac
4460 ;; #(
4461 *) have_x=yes;;
4462 esac
4463 eval "$ac_cv_have_x"
4464 fi # $with_x != no
4466 if test "$have_x" != yes; then
4467 { echo "$as_me:$LINENO: result: $have_x" >&5
4468 echo "${ECHO_T}$have_x" >&6; }
4469 no_x=yes
4470 else
4471 # If each of the values was on the command line, it overrides each guess.
4472 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4473 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4474 # Update the cache value to reflect the command line values.
4475 ac_cv_have_x="have_x=yes\
4476 ac_x_includes='$x_includes'\
4477 ac_x_libraries='$x_libraries'"
4478 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4479 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4482 if test "$no_x" = yes; then
4483 # Not all programs may use this symbol, but it does not hurt to define it.
4485 cat >>confdefs.h <<\_ACEOF
4486 #define X_DISPLAY_MISSING 1
4487 _ACEOF
4489 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4490 else
4491 if test -n "$x_includes"; then
4492 X_CFLAGS="$X_CFLAGS -I$x_includes"
4495 # It would also be nice to do this for all -L options, not just this one.
4496 if test -n "$x_libraries"; then
4497 X_LIBS="$X_LIBS -L$x_libraries"
4498 # For Solaris; some versions of Sun CC require a space after -R and
4499 # others require no space. Words are not sufficient . . . .
4500 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4501 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4502 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4503 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4504 ac_cxx_werror_flag=yes
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h. */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4513 main ()
4517 return 0;
4519 _ACEOF
4520 rm -f conftest.$ac_objext conftest$ac_exeext
4521 if { (ac_try="$ac_link"
4522 case "(($ac_try" in
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4525 esac
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_link") 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } && {
4534 test -z "$ac_cxx_werror_flag" ||
4535 test ! -s conftest.err
4536 } && test -s conftest$ac_exeext &&
4537 $as_test_x conftest$ac_exeext; then
4538 { echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6; }
4540 X_LIBS="$X_LIBS -R$x_libraries"
4541 else
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 LIBS="$ac_xsave_LIBS -R $x_libraries"
4546 cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h. */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4554 main ()
4558 return 0;
4560 _ACEOF
4561 rm -f conftest.$ac_objext conftest$ac_exeext
4562 if { (ac_try="$ac_link"
4563 case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566 esac
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_link") 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } && {
4575 test -z "$ac_cxx_werror_flag" ||
4576 test ! -s conftest.err
4577 } && test -s conftest$ac_exeext &&
4578 $as_test_x conftest$ac_exeext; then
4579 { echo "$as_me:$LINENO: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6; }
4581 X_LIBS="$X_LIBS -R $x_libraries"
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 { echo "$as_me:$LINENO: result: neither works" >&5
4587 echo "${ECHO_T}neither works" >&6; }
4590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4591 conftest$ac_exeext conftest.$ac_ext
4594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4595 conftest$ac_exeext conftest.$ac_ext
4596 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4597 LIBS=$ac_xsave_LIBS
4600 # Check for system-dependent libraries X programs must link with.
4601 # Do this before checking for the system-independent R6 libraries
4602 # (-lICE), since we may need -lsocket or whatever for X linking.
4604 if test "$ISC" = yes; then
4605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4606 else
4607 # Martyn Johnson says this is needed for Ultrix, if the X
4608 # libraries were built with DECnet support. And Karl Berry says
4609 # the Alpha needs dnet_stub (dnet does not exist).
4610 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4611 cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4618 /* Override any GCC internal prototype to avoid an error.
4619 Use char because int might match the return type of a GCC
4620 builtin and then its argument prototype would still apply. */
4621 #ifdef __cplusplus
4622 extern "C"
4623 #endif
4624 char XOpenDisplay ();
4626 main ()
4628 return XOpenDisplay ();
4630 return 0;
4632 _ACEOF
4633 rm -f conftest.$ac_objext conftest$ac_exeext
4634 if { (ac_try="$ac_link"
4635 case "(($ac_try" in
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4638 esac
4639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4640 (eval "$ac_link") 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } && {
4647 test -z "$ac_cxx_werror_flag" ||
4648 test ! -s conftest.err
4649 } && test -s conftest$ac_exeext &&
4650 $as_test_x conftest$ac_exeext; then
4652 else
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4656 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4657 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4658 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661 ac_check_lib_save_LIBS=$LIBS
4662 LIBS="-ldnet $LIBS"
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4670 /* Override any GCC internal prototype to avoid an error.
4671 Use char because int might match the return type of a GCC
4672 builtin and then its argument prototype would still apply. */
4673 #ifdef __cplusplus
4674 extern "C"
4675 #endif
4676 char dnet_ntoa ();
4678 main ()
4680 return dnet_ntoa ();
4682 return 0;
4684 _ACEOF
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (ac_try="$ac_link"
4687 case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690 esac
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_link") 2>conftest.er1
4693 ac_status=$?
4694 grep -v '^ *+' conftest.er1 >conftest.err
4695 rm -f conftest.er1
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } && {
4699 test -z "$ac_cxx_werror_flag" ||
4700 test ! -s conftest.err
4701 } && test -s conftest$ac_exeext &&
4702 $as_test_x conftest$ac_exeext; then
4703 ac_cv_lib_dnet_dnet_ntoa=yes
4704 else
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 ac_cv_lib_dnet_dnet_ntoa=no
4711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4712 conftest$ac_exeext conftest.$ac_ext
4713 LIBS=$ac_check_lib_save_LIBS
4715 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4716 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4717 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4718 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4721 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4722 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4723 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4724 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727 ac_check_lib_save_LIBS=$LIBS
4728 LIBS="-ldnet_stub $LIBS"
4729 cat >conftest.$ac_ext <<_ACEOF
4730 /* confdefs.h. */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4736 /* Override any GCC internal prototype to avoid an error.
4737 Use char because int might match the return type of a GCC
4738 builtin and then its argument prototype would still apply. */
4739 #ifdef __cplusplus
4740 extern "C"
4741 #endif
4742 char dnet_ntoa ();
4744 main ()
4746 return dnet_ntoa ();
4748 return 0;
4750 _ACEOF
4751 rm -f conftest.$ac_objext conftest$ac_exeext
4752 if { (ac_try="$ac_link"
4753 case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756 esac
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758 (eval "$ac_link") 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } && {
4765 test -z "$ac_cxx_werror_flag" ||
4766 test ! -s conftest.err
4767 } && test -s conftest$ac_exeext &&
4768 $as_test_x conftest$ac_exeext; then
4769 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4770 else
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4774 ac_cv_lib_dnet_stub_dnet_ntoa=no
4777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4778 conftest$ac_exeext conftest.$ac_ext
4779 LIBS=$ac_check_lib_save_LIBS
4781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4782 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4783 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4784 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4791 conftest$ac_exeext conftest.$ac_ext
4792 LIBS="$ac_xsave_LIBS"
4794 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4795 # to get the SysV transport functions.
4796 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4797 # needs -lnsl.
4798 # The nsl library prevents programs from opening the X display
4799 # on Irix 5.2, according to T.E. Dickey.
4800 # The functions gethostbyname, getservbyname, and inet_addr are
4801 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4802 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4803 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4804 if test "${ac_cv_func_gethostbyname+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4815 #define gethostbyname innocuous_gethostbyname
4817 /* System header to define __stub macros and hopefully few prototypes,
4818 which can conflict with char gethostbyname (); below.
4819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4820 <limits.h> exists even on freestanding compilers. */
4822 #ifdef __STDC__
4823 # include <limits.h>
4824 #else
4825 # include <assert.h>
4826 #endif
4828 #undef gethostbyname
4830 /* Override any GCC internal prototype to avoid an error.
4831 Use char because int might match the return type of a GCC
4832 builtin and then its argument prototype would still apply. */
4833 #ifdef __cplusplus
4834 extern "C"
4835 #endif
4836 char gethostbyname ();
4837 /* The GNU C library defines this for functions which it implements
4838 to always fail with ENOSYS. Some functions are actually named
4839 something starting with __ and the normal name is an alias. */
4840 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4841 choke me
4842 #endif
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_func_gethostbyname=yes
4871 else
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_cv_func_gethostbyname=no
4878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4879 conftest$ac_exeext conftest.$ac_ext
4881 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4882 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4884 if test $ac_cv_func_gethostbyname = no; then
4885 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4886 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4887 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890 ac_check_lib_save_LIBS=$LIBS
4891 LIBS="-lnsl $LIBS"
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4899 /* Override any GCC internal prototype to avoid an error.
4900 Use char because int might match the return type of a GCC
4901 builtin and then its argument prototype would still apply. */
4902 #ifdef __cplusplus
4903 extern "C"
4904 #endif
4905 char gethostbyname ();
4907 main ()
4909 return gethostbyname ();
4911 return 0;
4913 _ACEOF
4914 rm -f conftest.$ac_objext conftest$ac_exeext
4915 if { (ac_try="$ac_link"
4916 case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919 esac
4920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921 (eval "$ac_link") 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } && {
4928 test -z "$ac_cxx_werror_flag" ||
4929 test ! -s conftest.err
4930 } && test -s conftest$ac_exeext &&
4931 $as_test_x conftest$ac_exeext; then
4932 ac_cv_lib_nsl_gethostbyname=yes
4933 else
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 ac_cv_lib_nsl_gethostbyname=no
4940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4941 conftest$ac_exeext conftest.$ac_ext
4942 LIBS=$ac_check_lib_save_LIBS
4944 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4945 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4946 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4950 if test $ac_cv_lib_nsl_gethostbyname = no; then
4951 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4952 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4953 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 ac_check_lib_save_LIBS=$LIBS
4957 LIBS="-lbsd $LIBS"
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4965 /* Override any GCC internal prototype to avoid an error.
4966 Use char because int might match the return type of a GCC
4967 builtin and then its argument prototype would still apply. */
4968 #ifdef __cplusplus
4969 extern "C"
4970 #endif
4971 char gethostbyname ();
4973 main ()
4975 return gethostbyname ();
4977 return 0;
4979 _ACEOF
4980 rm -f conftest.$ac_objext conftest$ac_exeext
4981 if { (ac_try="$ac_link"
4982 case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985 esac
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_link") 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_cxx_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest$ac_exeext &&
4997 $as_test_x conftest$ac_exeext; then
4998 ac_cv_lib_bsd_gethostbyname=yes
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_cv_lib_bsd_gethostbyname=no
5006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5007 conftest$ac_exeext conftest.$ac_ext
5008 LIBS=$ac_check_lib_save_LIBS
5010 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5011 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5012 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5019 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5020 # socket/setsockopt and other routines are undefined under SCO ODT
5021 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5022 # on later versions), says Simon Leinen: it contains gethostby*
5023 # variants that don't use the name server (or something). -lsocket
5024 # must be given before -lnsl if both are needed. We assume that
5025 # if connect needs -lnsl, so does gethostbyname.
5026 { echo "$as_me:$LINENO: checking for connect" >&5
5027 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5028 if test "${ac_cv_func_connect+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5039 #define connect innocuous_connect
5041 /* System header to define __stub macros and hopefully few prototypes,
5042 which can conflict with char connect (); below.
5043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 <limits.h> exists even on freestanding compilers. */
5046 #ifdef __STDC__
5047 # include <limits.h>
5048 #else
5049 # include <assert.h>
5050 #endif
5052 #undef connect
5054 /* Override any GCC internal prototype to avoid an error.
5055 Use char because int might match the return type of a GCC
5056 builtin and then its argument prototype would still apply. */
5057 #ifdef __cplusplus
5058 extern "C"
5059 #endif
5060 char connect ();
5061 /* The GNU C library defines this for functions which it implements
5062 to always fail with ENOSYS. Some functions are actually named
5063 something starting with __ and the normal name is an alias. */
5064 #if defined __stub_connect || defined __stub___connect
5065 choke me
5066 #endif
5069 main ()
5071 return connect ();
5073 return 0;
5075 _ACEOF
5076 rm -f conftest.$ac_objext conftest$ac_exeext
5077 if { (ac_try="$ac_link"
5078 case "(($ac_try" in
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5081 esac
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_link") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } && {
5090 test -z "$ac_cxx_werror_flag" ||
5091 test ! -s conftest.err
5092 } && test -s conftest$ac_exeext &&
5093 $as_test_x conftest$ac_exeext; then
5094 ac_cv_func_connect=yes
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 ac_cv_func_connect=no
5102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5103 conftest$ac_exeext conftest.$ac_ext
5105 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5106 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5108 if test $ac_cv_func_connect = no; then
5109 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5110 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5111 if test "${ac_cv_lib_socket_connect+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 ac_check_lib_save_LIBS=$LIBS
5115 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5123 /* Override any GCC internal prototype to avoid an error.
5124 Use char because int might match the return type of a GCC
5125 builtin and then its argument prototype would still apply. */
5126 #ifdef __cplusplus
5127 extern "C"
5128 #endif
5129 char connect ();
5131 main ()
5133 return connect ();
5135 return 0;
5137 _ACEOF
5138 rm -f conftest.$ac_objext conftest$ac_exeext
5139 if { (ac_try="$ac_link"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_link") 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_cxx_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest$ac_exeext &&
5155 $as_test_x conftest$ac_exeext; then
5156 ac_cv_lib_socket_connect=yes
5157 else
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 ac_cv_lib_socket_connect=no
5164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5165 conftest$ac_exeext conftest.$ac_ext
5166 LIBS=$ac_check_lib_save_LIBS
5168 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5169 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5170 if test $ac_cv_lib_socket_connect = yes; then
5171 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5176 # Guillermo Gomez says -lposix is necessary on A/UX.
5177 { echo "$as_me:$LINENO: checking for remove" >&5
5178 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5179 if test "${ac_cv_func_remove+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5190 #define remove innocuous_remove
5192 /* System header to define __stub macros and hopefully few prototypes,
5193 which can conflict with char remove (); below.
5194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 <limits.h> exists even on freestanding compilers. */
5197 #ifdef __STDC__
5198 # include <limits.h>
5199 #else
5200 # include <assert.h>
5201 #endif
5203 #undef remove
5205 /* Override any GCC internal prototype to avoid an error.
5206 Use char because int might match the return type of a GCC
5207 builtin and then its argument prototype would still apply. */
5208 #ifdef __cplusplus
5209 extern "C"
5210 #endif
5211 char remove ();
5212 /* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215 #if defined __stub_remove || defined __stub___remove
5216 choke me
5217 #endif
5220 main ()
5222 return remove ();
5224 return 0;
5226 _ACEOF
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (ac_try="$ac_link"
5229 case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232 esac
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_link") 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } && {
5241 test -z "$ac_cxx_werror_flag" ||
5242 test ! -s conftest.err
5243 } && test -s conftest$ac_exeext &&
5244 $as_test_x conftest$ac_exeext; then
5245 ac_cv_func_remove=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 ac_cv_func_remove=no
5253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5254 conftest$ac_exeext conftest.$ac_ext
5256 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5257 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5259 if test $ac_cv_func_remove = no; then
5260 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5261 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5262 if test "${ac_cv_lib_posix_remove+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 ac_check_lib_save_LIBS=$LIBS
5266 LIBS="-lposix $LIBS"
5267 cat >conftest.$ac_ext <<_ACEOF
5268 /* confdefs.h. */
5269 _ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5274 /* Override any GCC internal prototype to avoid an error.
5275 Use char because int might match the return type of a GCC
5276 builtin and then its argument prototype would still apply. */
5277 #ifdef __cplusplus
5278 extern "C"
5279 #endif
5280 char remove ();
5282 main ()
5284 return remove ();
5286 return 0;
5288 _ACEOF
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (ac_try="$ac_link"
5291 case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_link") 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && {
5303 test -z "$ac_cxx_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest$ac_exeext &&
5306 $as_test_x conftest$ac_exeext; then
5307 ac_cv_lib_posix_remove=yes
5308 else
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 ac_cv_lib_posix_remove=no
5315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5316 conftest$ac_exeext conftest.$ac_ext
5317 LIBS=$ac_check_lib_save_LIBS
5319 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5320 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5321 if test $ac_cv_lib_posix_remove = yes; then
5322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5327 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5328 { echo "$as_me:$LINENO: checking for shmat" >&5
5329 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5330 if test "${ac_cv_func_shmat+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333 cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h. */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5341 #define shmat innocuous_shmat
5343 /* System header to define __stub macros and hopefully few prototypes,
5344 which can conflict with char shmat (); below.
5345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5346 <limits.h> exists even on freestanding compilers. */
5348 #ifdef __STDC__
5349 # include <limits.h>
5350 #else
5351 # include <assert.h>
5352 #endif
5354 #undef shmat
5356 /* Override any GCC internal prototype to avoid an error.
5357 Use char because int might match the return type of a GCC
5358 builtin and then its argument prototype would still apply. */
5359 #ifdef __cplusplus
5360 extern "C"
5361 #endif
5362 char shmat ();
5363 /* The GNU C library defines this for functions which it implements
5364 to always fail with ENOSYS. Some functions are actually named
5365 something starting with __ and the normal name is an alias. */
5366 #if defined __stub_shmat || defined __stub___shmat
5367 choke me
5368 #endif
5371 main ()
5373 return shmat ();
5375 return 0;
5377 _ACEOF
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (ac_try="$ac_link"
5380 case "(($ac_try" in
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_link") 2>conftest.er1
5386 ac_status=$?
5387 grep -v '^ *+' conftest.er1 >conftest.err
5388 rm -f conftest.er1
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && {
5392 test -z "$ac_cxx_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest$ac_exeext &&
5395 $as_test_x conftest$ac_exeext; then
5396 ac_cv_func_shmat=yes
5397 else
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 ac_cv_func_shmat=no
5404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5405 conftest$ac_exeext conftest.$ac_ext
5407 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5408 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5410 if test $ac_cv_func_shmat = no; then
5411 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5412 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5413 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 ac_check_lib_save_LIBS=$LIBS
5417 LIBS="-lipc $LIBS"
5418 cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h. */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5425 /* Override any GCC internal prototype to avoid an error.
5426 Use char because int might match the return type of a GCC
5427 builtin and then its argument prototype would still apply. */
5428 #ifdef __cplusplus
5429 extern "C"
5430 #endif
5431 char shmat ();
5433 main ()
5435 return shmat ();
5437 return 0;
5439 _ACEOF
5440 rm -f conftest.$ac_objext conftest$ac_exeext
5441 if { (ac_try="$ac_link"
5442 case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_link") 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_cxx_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest$ac_exeext &&
5457 $as_test_x conftest$ac_exeext; then
5458 ac_cv_lib_ipc_shmat=yes
5459 else
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ac_cv_lib_ipc_shmat=no
5466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5467 conftest$ac_exeext conftest.$ac_ext
5468 LIBS=$ac_check_lib_save_LIBS
5470 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5471 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5472 if test $ac_cv_lib_ipc_shmat = yes; then
5473 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5479 # Check for libraries that X11R6 Xt/Xaw programs need.
5480 ac_save_LDFLAGS=$LDFLAGS
5481 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5482 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5483 # check for ICE first), but we must link in the order -lSM -lICE or
5484 # we get undefined symbols. So assume we have SM if we have ICE.
5485 # These have to be linked with before -lX11, unlike the other
5486 # libraries we check for below, so use a different variable.
5487 # John Interrante, Karl Berry
5488 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5489 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5490 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493 ac_check_lib_save_LIBS=$LIBS
5494 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5502 /* Override any GCC internal prototype to avoid an error.
5503 Use char because int might match the return type of a GCC
5504 builtin and then its argument prototype would still apply. */
5505 #ifdef __cplusplus
5506 extern "C"
5507 #endif
5508 char IceConnectionNumber ();
5510 main ()
5512 return IceConnectionNumber ();
5514 return 0;
5516 _ACEOF
5517 rm -f conftest.$ac_objext conftest$ac_exeext
5518 if { (ac_try="$ac_link"
5519 case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_link") 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_cxx_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest$ac_exeext &&
5534 $as_test_x conftest$ac_exeext; then
5535 ac_cv_lib_ICE_IceConnectionNumber=yes
5536 else
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_cv_lib_ICE_IceConnectionNumber=no
5543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5544 conftest$ac_exeext conftest.$ac_ext
5545 LIBS=$ac_check_lib_save_LIBS
5547 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5548 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5549 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5550 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5553 LDFLAGS=$ac_save_LDFLAGS
5559 for ac_header in pty.h util.h
5561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 ac_res=`eval echo '${'$as_ac_Header'}'`
5569 { echo "$as_me:$LINENO: result: $ac_res" >&5
5570 echo "${ECHO_T}$ac_res" >&6; }
5571 else
5572 # Is the header compilable?
5573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5582 #include <$ac_header>
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_cxx_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.$ac_objext; then
5601 ac_header_compiler=yes
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 ac_header_compiler=no
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5611 echo "${ECHO_T}$ac_header_compiler" >&6; }
5613 # Is the header present?
5614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5616 cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h. */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <$ac_header>
5623 _ACEOF
5624 if { (ac_try="$ac_cpp conftest.$ac_ext"
5625 case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628 esac
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } >/dev/null && {
5637 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5638 test ! -s conftest.err
5639 }; then
5640 ac_header_preproc=yes
5641 else
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 ac_header_preproc=no
5648 rm -f conftest.err conftest.$ac_ext
5649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5650 echo "${ECHO_T}$ac_header_preproc" >&6; }
5652 # So? What about this header?
5653 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5654 yes:no: )
5655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5659 ac_header_preproc=yes
5661 no:yes:* )
5662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5676 esac
5677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 eval "$as_ac_Header=\$ac_header_preproc"
5684 ac_res=`eval echo '${'$as_ac_Header'}'`
5685 { echo "$as_me:$LINENO: result: $ac_res" >&5
5686 echo "${ECHO_T}$ac_res" >&6; }
5689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5690 cat >>confdefs.h <<_ACEOF
5691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5692 _ACEOF
5696 done
5699 for ac_func in gettimeofday
5701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5715 #define $ac_func innocuous_$ac_func
5717 /* System header to define __stub macros and hopefully few prototypes,
5718 which can conflict with char $ac_func (); below.
5719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5720 <limits.h> exists even on freestanding compilers. */
5722 #ifdef __STDC__
5723 # include <limits.h>
5724 #else
5725 # include <assert.h>
5726 #endif
5728 #undef $ac_func
5730 /* Override any GCC internal prototype to avoid an error.
5731 Use char because int might match the return type of a GCC
5732 builtin and then its argument prototype would still apply. */
5733 #ifdef __cplusplus
5734 extern "C"
5735 #endif
5736 char $ac_func ();
5737 /* The GNU C library defines this for functions which it implements
5738 to always fail with ENOSYS. Some functions are actually named
5739 something starting with __ and the normal name is an alias. */
5740 #if defined __stub_$ac_func || defined __stub___$ac_func
5741 choke me
5742 #endif
5745 main ()
5747 return $ac_func ();
5749 return 0;
5751 _ACEOF
5752 rm -f conftest.$ac_objext conftest$ac_exeext
5753 if { (ac_try="$ac_link"
5754 case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_link") 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } && {
5766 test -z "$ac_cxx_werror_flag" ||
5767 test ! -s conftest.err
5768 } && test -s conftest$ac_exeext &&
5769 $as_test_x conftest$ac_exeext; then
5770 eval "$as_ac_var=yes"
5771 else
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 eval "$as_ac_var=no"
5778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5779 conftest$ac_exeext conftest.$ac_ext
5781 ac_res=`eval echo '${'$as_ac_var'}'`
5782 { echo "$as_me:$LINENO: result: $ac_res" >&5
5783 echo "${ECHO_T}$ac_res" >&6; }
5784 if test `eval echo '${'$as_ac_var'}'` = yes; then
5785 cat >>confdefs.h <<_ACEOF
5786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5787 _ACEOF
5790 done
5793 #--------------------------------------------------------------------
5794 # Checks for dl library
5795 #--------------------------------------------------------------------
5797 { echo "$as_me:$LINENO: checking for dlopen" >&5
5798 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5799 if test "${ac_cv_func_dlopen+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h. */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5810 #define dlopen innocuous_dlopen
5812 /* System header to define __stub macros and hopefully few prototypes,
5813 which can conflict with char dlopen (); below.
5814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815 <limits.h> exists even on freestanding compilers. */
5817 #ifdef __STDC__
5818 # include <limits.h>
5819 #else
5820 # include <assert.h>
5821 #endif
5823 #undef dlopen
5825 /* Override any GCC internal prototype to avoid an error.
5826 Use char because int might match the return type of a GCC
5827 builtin and then its argument prototype would still apply. */
5828 #ifdef __cplusplus
5829 extern "C"
5830 #endif
5831 char dlopen ();
5832 /* The GNU C library defines this for functions which it implements
5833 to always fail with ENOSYS. Some functions are actually named
5834 something starting with __ and the normal name is an alias. */
5835 #if defined __stub_dlopen || defined __stub___dlopen
5836 choke me
5837 #endif
5840 main ()
5842 return dlopen ();
5844 return 0;
5846 _ACEOF
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (ac_try="$ac_link"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_link") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_cxx_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest$ac_exeext &&
5864 $as_test_x conftest$ac_exeext; then
5865 ac_cv_func_dlopen=yes
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 ac_cv_func_dlopen=no
5873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5874 conftest$ac_exeext conftest.$ac_ext
5876 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5877 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5879 if test "$ac_cv_func_dl" = "yes"; then
5881 cat >>confdefs.h <<\_ACEOF
5882 #define DYNAMIC_LINKING 1
5883 _ACEOF
5885 else
5887 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5888 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 ac_check_lib_save_LIBS=$LIBS
5893 LIBS="-ldl $LIBS"
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5904 #ifdef __cplusplus
5905 extern "C"
5906 #endif
5907 char dlopen ();
5909 main ()
5911 return dlopen ();
5913 return 0;
5915 _ACEOF
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (ac_try="$ac_link"
5918 case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_link") 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_cxx_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest$ac_exeext &&
5933 $as_test_x conftest$ac_exeext; then
5934 ac_cv_lib_dl_dlopen=yes
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 ac_cv_lib_dl_dlopen=no
5942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5943 conftest$ac_exeext conftest.$ac_ext
5944 LIBS=$ac_check_lib_save_LIBS
5946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5948 if test $ac_cv_lib_dl_dlopen = yes; then
5949 cat >>confdefs.h <<_ACEOF
5950 #define HAVE_LIBDL 1
5951 _ACEOF
5953 LIBS="-ldl $LIBS"
5957 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5959 for ac_func in dlopen
5961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5975 #define $ac_func innocuous_$ac_func
5977 /* System header to define __stub macros and hopefully few prototypes,
5978 which can conflict with char $ac_func (); below.
5979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5980 <limits.h> exists even on freestanding compilers. */
5982 #ifdef __STDC__
5983 # include <limits.h>
5984 #else
5985 # include <assert.h>
5986 #endif
5988 #undef $ac_func
5990 /* Override any GCC internal prototype to avoid an error.
5991 Use char because int might match the return type of a GCC
5992 builtin and then its argument prototype would still apply. */
5993 #ifdef __cplusplus
5994 extern "C"
5995 #endif
5996 char $ac_func ();
5997 /* The GNU C library defines this for functions which it implements
5998 to always fail with ENOSYS. Some functions are actually named
5999 something starting with __ and the normal name is an alias. */
6000 #if defined __stub_$ac_func || defined __stub___$ac_func
6001 choke me
6002 #endif
6005 main ()
6007 return $ac_func ();
6009 return 0;
6011 _ACEOF
6012 rm -f conftest.$ac_objext conftest$ac_exeext
6013 if { (ac_try="$ac_link"
6014 case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017 esac
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_link") 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_cxx_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest$ac_exeext &&
6029 $as_test_x conftest$ac_exeext; then
6030 eval "$as_ac_var=yes"
6031 else
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 eval "$as_ac_var=no"
6038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6039 conftest$ac_exeext conftest.$ac_ext
6041 ac_res=`eval echo '${'$as_ac_var'}'`
6042 { echo "$as_me:$LINENO: result: $ac_res" >&5
6043 echo "${ECHO_T}$ac_res" >&6; }
6044 if test `eval echo '${'$as_ac_var'}'` = yes; then
6045 cat >>confdefs.h <<_ACEOF
6046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6047 _ACEOF
6050 done
6052 CONFIG_BDL="-ldl"
6054 cat >>confdefs.h <<\_ACEOF
6055 #define DYNAMIC_LINKING 1
6056 _ACEOF
6058 else
6060 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6061 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
6062 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065 ac_check_lib_save_LIBS=$LIBS
6066 LIBS="-ldld $LIBS"
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6074 /* Override any GCC internal prototype to avoid an error.
6075 Use char because int might match the return type of a GCC
6076 builtin and then its argument prototype would still apply. */
6077 #ifdef __cplusplus
6078 extern "C"
6079 #endif
6080 char dld_link ();
6082 main ()
6084 return dld_link ();
6086 return 0;
6088 _ACEOF
6089 rm -f conftest.$ac_objext conftest$ac_exeext
6090 if { (ac_try="$ac_link"
6091 case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094 esac
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_link") 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_cxx_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest$ac_exeext &&
6106 $as_test_x conftest$ac_exeext; then
6107 ac_cv_lib_dld_dld_link=yes
6108 else
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_cv_lib_dld_dld_link=no
6115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6116 conftest$ac_exeext conftest.$ac_ext
6117 LIBS=$ac_check_lib_save_LIBS
6119 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6120 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
6121 if test $ac_cv_lib_dld_dld_link = yes; then
6122 cat >>confdefs.h <<_ACEOF
6123 #define HAVE_LIBDLD 1
6124 _ACEOF
6126 LIBS="-ldld $LIBS"
6130 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6131 CONFIG_BDL="-ldl"
6133 cat >>confdefs.h <<\_ACEOF
6134 #define DYNAMIC_LINKING 1
6135 _ACEOF
6137 else
6139 for ac_func in shl_load
6141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h. */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6155 #define $ac_func innocuous_$ac_func
6157 /* System header to define __stub macros and hopefully few prototypes,
6158 which can conflict with char $ac_func (); below.
6159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6160 <limits.h> exists even on freestanding compilers. */
6162 #ifdef __STDC__
6163 # include <limits.h>
6164 #else
6165 # include <assert.h>
6166 #endif
6168 #undef $ac_func
6170 /* Override any GCC internal prototype to avoid an error.
6171 Use char because int might match the return type of a GCC
6172 builtin and then its argument prototype would still apply. */
6173 #ifdef __cplusplus
6174 extern "C"
6175 #endif
6176 char $ac_func ();
6177 /* The GNU C library defines this for functions which it implements
6178 to always fail with ENOSYS. Some functions are actually named
6179 something starting with __ and the normal name is an alias. */
6180 #if defined __stub_$ac_func || defined __stub___$ac_func
6181 choke me
6182 #endif
6185 main ()
6187 return $ac_func ();
6189 return 0;
6191 _ACEOF
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (ac_try="$ac_link"
6194 case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197 esac
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_link") 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_cxx_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest$ac_exeext &&
6209 $as_test_x conftest$ac_exeext; then
6210 eval "$as_ac_var=yes"
6211 else
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 eval "$as_ac_var=no"
6218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6219 conftest$ac_exeext conftest.$ac_ext
6221 ac_res=`eval echo '${'$as_ac_var'}'`
6222 { echo "$as_me:$LINENO: result: $ac_res" >&5
6223 echo "${ECHO_T}$ac_res" >&6; }
6224 if test `eval echo '${'$as_ac_var'}'` = yes; then
6225 cat >>confdefs.h <<_ACEOF
6226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6227 _ACEOF
6230 done
6232 if test "$ac_cv_func_shl_load" = "yes"; then
6233 CONFIG_BDL="-ldl"
6235 cat >>confdefs.h <<\_ACEOF
6236 #define DYNAMIC_LINKING 1
6237 _ACEOF
6239 else
6241 for ac_func in dlopen
6243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6257 #define $ac_func innocuous_$ac_func
6259 /* System header to define __stub macros and hopefully few prototypes,
6260 which can conflict with char $ac_func (); below.
6261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6262 <limits.h> exists even on freestanding compilers. */
6264 #ifdef __STDC__
6265 # include <limits.h>
6266 #else
6267 # include <assert.h>
6268 #endif
6270 #undef $ac_func
6272 /* Override any GCC internal prototype to avoid an error.
6273 Use char because int might match the return type of a GCC
6274 builtin and then its argument prototype would still apply. */
6275 #ifdef __cplusplus
6276 extern "C"
6277 #endif
6278 char $ac_func ();
6279 /* The GNU C library defines this for functions which it implements
6280 to always fail with ENOSYS. Some functions are actually named
6281 something starting with __ and the normal name is an alias. */
6282 #if defined __stub_$ac_func || defined __stub___$ac_func
6283 choke me
6284 #endif
6287 main ()
6289 return $ac_func ();
6291 return 0;
6293 _ACEOF
6294 rm -f conftest.$ac_objext conftest$ac_exeext
6295 if { (ac_try="$ac_link"
6296 case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299 esac
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_link") 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } && {
6308 test -z "$ac_cxx_werror_flag" ||
6309 test ! -s conftest.err
6310 } && test -s conftest$ac_exeext &&
6311 $as_test_x conftest$ac_exeext; then
6312 eval "$as_ac_var=yes"
6313 else
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 eval "$as_ac_var=no"
6320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6321 conftest$ac_exeext conftest.$ac_ext
6323 ac_res=`eval echo '${'$as_ac_var'}'`
6324 { echo "$as_me:$LINENO: result: $ac_res" >&5
6325 echo "${ECHO_T}$ac_res" >&6; }
6326 if test `eval echo '${'$as_ac_var'}'` = yes; then
6327 cat >>confdefs.h <<_ACEOF
6328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6329 _ACEOF
6332 done
6334 if test "$ac_cv_func_dlopen" = "yes"; then
6336 cat >>confdefs.h <<\_ACEOF
6337 #define DYNAMIC_LINKING 1
6338 _ACEOF
6347 #--------------------------------------------------------------------
6348 # Checks for iconv library
6349 #--------------------------------------------------------------------
6352 # Check whether --with-iconv was given.
6353 if test "${with_iconv+set}" = set; then
6354 withval=$with_iconv;
6358 # Check for iconv
6359 # Modified from GNOME's libxml2 configure.in
6361 ac_ext=c
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366 # compile C to avoid the 'const char**' problem
6368 SAVE_CPPFLAGS="$CPPFLAGS"
6369 SAVE_LDFLAGS="$LDFLAGS"
6370 SAVE_LIBS="$LIBS"
6371 if test "$with_iconv" = "no" ; then
6372 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6373 echo "${ECHO_T}disabling iconv support" >&6; }
6374 else
6375 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6376 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6377 LDFLAGS="$ICONV_LDFLAGS"
6379 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6380 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6381 LDFLAGS="-L$with_iconv/lib"
6382 ICONV_CFLAGS="-I$with_iconv/include"
6383 ICONV_LDFLAGS="-L$with_iconv/lib"
6386 ac_ext=c
6387 ac_cpp='$CPP $CPPFLAGS'
6388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6393 # On Suns, sometimes $CPP names a directory.
6394 if test -n "$CPP" && test -d "$CPP"; then
6395 CPP=
6397 if test -z "$CPP"; then
6398 if test "${ac_cv_prog_CPP+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 # Double quotes because CPP needs to be expanded
6402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6404 ac_preproc_ok=false
6405 for ac_c_preproc_warn_flag in '' yes
6407 # Use a header file that comes with gcc, so configuring glibc
6408 # with a fresh cross-compiler works.
6409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6410 # <limits.h> exists even on freestanding compilers.
6411 # On the NeXT, cc -E runs the code through the compiler's parser,
6412 # not just through cpp. "Syntax error" is here to catch this case.
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 #ifdef __STDC__
6420 # include <limits.h>
6421 #else
6422 # include <assert.h>
6423 #endif
6424 Syntax error
6425 _ACEOF
6426 if { (ac_try="$ac_cpp conftest.$ac_ext"
6427 case "(($ac_try" in
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6430 esac
6431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } >/dev/null && {
6439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 }; then
6443 else
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6447 # Broken: fails on valid input.
6448 continue
6451 rm -f conftest.err conftest.$ac_ext
6453 # OK, works on sane cases. Now check whether nonexistent headers
6454 # can be detected and how.
6455 cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h. */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 #include <ac_nonexistent.h>
6462 _ACEOF
6463 if { (ac_try="$ac_cpp conftest.$ac_ext"
6464 case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467 esac
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } >/dev/null && {
6476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6478 }; then
6479 # Broken: success on invalid input.
6480 continue
6481 else
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 # Passes both tests.
6486 ac_preproc_ok=:
6487 break
6490 rm -f conftest.err conftest.$ac_ext
6492 done
6493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6494 rm -f conftest.err conftest.$ac_ext
6495 if $ac_preproc_ok; then
6496 break
6499 done
6500 ac_cv_prog_CPP=$CPP
6503 CPP=$ac_cv_prog_CPP
6504 else
6505 ac_cv_prog_CPP=$CPP
6507 { echo "$as_me:$LINENO: result: $CPP" >&5
6508 echo "${ECHO_T}$CPP" >&6; }
6509 ac_preproc_ok=false
6510 for ac_c_preproc_warn_flag in '' yes
6512 # Use a header file that comes with gcc, so configuring glibc
6513 # with a fresh cross-compiler works.
6514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6515 # <limits.h> exists even on freestanding compilers.
6516 # On the NeXT, cc -E runs the code through the compiler's parser,
6517 # not just through cpp. "Syntax error" is here to catch this case.
6518 cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h. */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 #ifdef __STDC__
6525 # include <limits.h>
6526 #else
6527 # include <assert.h>
6528 #endif
6529 Syntax error
6530 _ACEOF
6531 if { (ac_try="$ac_cpp conftest.$ac_ext"
6532 case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } >/dev/null && {
6544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 }; then
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 # Broken: fails on valid input.
6553 continue
6556 rm -f conftest.err conftest.$ac_ext
6558 # OK, works on sane cases. Now check whether nonexistent headers
6559 # can be detected and how.
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 #include <ac_nonexistent.h>
6567 _ACEOF
6568 if { (ac_try="$ac_cpp conftest.$ac_ext"
6569 case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6572 esac
6573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6575 ac_status=$?
6576 grep -v '^ *+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } >/dev/null && {
6581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6582 test ! -s conftest.err
6583 }; then
6584 # Broken: success on invalid input.
6585 continue
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6590 # Passes both tests.
6591 ac_preproc_ok=:
6592 break
6595 rm -f conftest.err conftest.$ac_ext
6597 done
6598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6599 rm -f conftest.err conftest.$ac_ext
6600 if $ac_preproc_ok; then
6602 else
6603 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6604 See \`config.log' for more details." >&5
6605 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6606 See \`config.log' for more details." >&2;}
6607 { (exit 1); exit 1; }; }
6610 ac_ext=c
6611 ac_cpp='$CPP $CPPFLAGS'
6612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617 if test "${ac_cv_header_iconv_h+set}" = set; then
6618 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6619 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6620 if test "${ac_cv_header_iconv_h+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6624 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6625 else
6626 # Is the header compilable?
6627 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6628 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6636 #include <iconv.h>
6637 _ACEOF
6638 rm -f conftest.$ac_objext
6639 if { (ac_try="$ac_compile"
6640 case "(($ac_try" in
6641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642 *) ac_try_echo=$ac_try;;
6643 esac
6644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6645 (eval "$ac_compile") 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } && {
6652 test -z "$ac_c_werror_flag" ||
6653 test ! -s conftest.err
6654 } && test -s conftest.$ac_objext; then
6655 ac_header_compiler=yes
6656 else
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6660 ac_header_compiler=no
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6; }
6667 # Is the header present?
6668 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6669 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h. */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <iconv.h>
6677 _ACEOF
6678 if { (ac_try="$ac_cpp conftest.$ac_ext"
6679 case "(($ac_try" in
6680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681 *) ac_try_echo=$ac_try;;
6682 esac
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6685 ac_status=$?
6686 grep -v '^ *+' conftest.er1 >conftest.err
6687 rm -f conftest.er1
6688 cat conftest.err >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } >/dev/null && {
6691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 }; then
6694 ac_header_preproc=yes
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_header_preproc=no
6702 rm -f conftest.err conftest.$ac_ext
6703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6704 echo "${ECHO_T}$ac_header_preproc" >&6; }
6706 # So? What about this header?
6707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6708 yes:no: )
6709 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6710 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6711 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6712 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6713 ac_header_preproc=yes
6715 no:yes:* )
6716 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6717 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6718 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6719 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6721 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6723 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6724 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6725 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6727 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6730 esac
6731 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6732 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6733 if test "${ac_cv_header_iconv_h+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736 ac_cv_header_iconv_h=$ac_header_preproc
6738 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6739 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6742 if test $ac_cv_header_iconv_h = yes; then
6743 { echo "$as_me:$LINENO: checking for iconv" >&5
6744 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6753 #include <stdlib.h>
6754 #include <iconv.h>
6757 main ()
6760 iconv_t cd = iconv_open ("","");
6761 iconv (cd, NULL, NULL, NULL, NULL);
6764 return 0;
6766 _ACEOF
6767 rm -f conftest.$ac_objext conftest$ac_exeext
6768 if { (ac_try="$ac_link"
6769 case "(($ac_try" in
6770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771 *) ac_try_echo=$ac_try;;
6772 esac
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774 (eval "$ac_link") 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && {
6781 test -z "$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 } && test -s conftest$ac_exeext &&
6784 $as_test_x conftest$ac_exeext; then
6786 { echo "$as_me:$LINENO: result: yes" >&5
6787 echo "${ECHO_T}yes" >&6; }
6789 cat >>confdefs.h <<\_ACEOF
6790 #define USE_ICONV 1
6791 _ACEOF
6794 else
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6799 { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6801 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6802 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6803 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6804 LIBS="-liconv" # for AC_TRY_LINK
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6812 #include <stdlib.h>
6813 #include <iconv.h>
6816 main ()
6819 iconv_t cd = iconv_open ("","");
6820 iconv (cd, NULL, NULL, NULL, NULL);
6823 return 0;
6825 _ACEOF
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (ac_try="$ac_link"
6828 case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831 esac
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_link") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest$ac_exeext &&
6843 $as_test_x conftest$ac_exeext; then
6845 { echo "$as_me:$LINENO: result: yes" >&5
6846 echo "${ECHO_T}yes" >&6; }
6848 cat >>confdefs.h <<\_ACEOF
6849 #define USE_ICONV 1
6850 _ACEOF
6852 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6861 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6862 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6867 conftest$ac_exeext conftest.$ac_ext
6870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6871 conftest$ac_exeext conftest.$ac_ext
6877 CPPFLAGS="$SAVE_CPPFLAGS"
6878 LDFLAGS="$SAVE_LDFLAGS"
6879 LIBS="$SAVE_LIBS"
6880 ac_ext=cpp
6881 ac_cpp='$CXXCPP $CPPFLAGS'
6882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6885 # restore C++ language
6889 #--------------------------------------------------------------------
6890 # Checks for freetype library
6891 #--------------------------------------------------------------------
6894 # Check whether --with-freetype was given.
6895 if test "${with_freetype+set}" = set; then
6896 withval=$with_freetype;
6900 SAVE_CPPFLAGS="$CPPFLAGS"
6901 SAVE_LDFLAGS="$LDFLAGS"
6902 SAVE_LIBS="$LIBS"
6903 if test "$with_freetype" = "no" ; then
6904 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6905 echo "${ECHO_T}disabling freetype support" >&6; }
6906 else
6907 if test -z "$FREETYPE_CFLAGS"; then
6908 FREETYPE_CFLAGS=`freetype-config --cflags`
6910 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
6911 if test -z "$FREETYPE_LDFLAGS"; then
6912 FREETYPE_LDFLAGS=`freetype-config --libs`
6914 LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
6915 if test "${ac_cv_header_ft2build_h+set}" = set; then
6916 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6917 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6918 if test "${ac_cv_header_ft2build_h+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6922 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6923 else
6924 # Is the header compilable?
6925 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6926 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6934 #include <ft2build.h>
6935 _ACEOF
6936 rm -f conftest.$ac_objext
6937 if { (ac_try="$ac_compile"
6938 case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941 esac
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_cxx_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.$ac_objext; then
6953 ac_header_compiler=yes
6954 else
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 ac_header_compiler=no
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6963 echo "${ECHO_T}$ac_header_compiler" >&6; }
6965 # Is the header present?
6966 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6967 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <ft2build.h>
6975 _ACEOF
6976 if { (ac_try="$ac_cpp conftest.$ac_ext"
6977 case "(($ac_try" in
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6980 esac
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6983 ac_status=$?
6984 grep -v '^ *+' conftest.er1 >conftest.err
6985 rm -f conftest.er1
6986 cat conftest.err >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } >/dev/null && {
6989 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6990 test ! -s conftest.err
6991 }; then
6992 ac_header_preproc=yes
6993 else
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 ac_header_preproc=no
7000 rm -f conftest.err conftest.$ac_ext
7001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7002 echo "${ECHO_T}$ac_header_preproc" >&6; }
7004 # So? What about this header?
7005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7006 yes:no: )
7007 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
7008 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7009 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
7010 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
7011 ac_header_preproc=yes
7013 no:yes:* )
7014 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
7015 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
7017 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
7018 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
7019 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
7021 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
7023 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
7024 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
7025 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
7028 esac
7029 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
7030 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
7031 if test "${ac_cv_header_ft2build_h+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 ac_cv_header_ft2build_h=$ac_header_preproc
7036 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
7037 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
7040 if test $ac_cv_header_ft2build_h = yes; then
7041 { echo "$as_me:$LINENO: checking for freetype" >&5
7042 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
7043 cat >conftest.$ac_ext <<_ACEOF
7044 /* confdefs.h. */
7045 _ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h. */
7050 #include <ft2build.h>
7051 #include FT_FREETYPE_H
7054 main ()
7057 FT_Library ft_library;
7058 (void) FT_Init_FreeType (&ft_library);
7061 return 0;
7063 _ACEOF
7064 rm -f conftest.$ac_objext conftest$ac_exeext
7065 if { (ac_try="$ac_link"
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_link") 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); } && {
7078 test -z "$ac_cxx_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest$ac_exeext &&
7081 $as_test_x conftest$ac_exeext; then
7083 { echo "$as_me:$LINENO: result: yes" >&5
7084 echo "${ECHO_T}yes" >&6; }
7086 cat >>confdefs.h <<\_ACEOF
7087 #define USE_FREETYPE 1
7088 _ACEOF
7090 FREETYPE_CFLAGS="$CPPFLAGS"
7091 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
7092 FREETYPE_LDFLAGS="$LIBS"
7094 cat >>confdefs.h <<\_ACEOF
7095 #define LINKED_FREETYPE 1
7096 _ACEOF
7100 else
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7105 { echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6; }
7109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7110 conftest$ac_exeext conftest.$ac_ext
7116 CPPFLAGS="$SAVE_CPPFLAGS"
7117 LDFLAGS="$SAVE_LDFLAGS"
7118 LIBS="$SAVE_LIBS"
7123 #--------------------------------------------------------------------
7124 # Checks for Cairo library
7125 #--------------------------------------------------------------------
7128 # Check whether --with-cairo was given.
7129 if test "${with_cairo+set}" = set; then
7130 withval=$with_cairo;
7134 SAVE_CPPFLAGS="$CPPFLAGS"
7135 SAVE_LDFLAGS="$LDFLAGS"
7136 SAVE_LIBS="$LIBS"
7137 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7138 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7139 echo "${ECHO_T}disabling cairo support" >&6; }
7140 else
7141 CPPFLAGS=`pkg-config --cflags cairo`
7142 LIBS=`pkg-config --libs cairo`
7143 if test "${ac_cv_header_cairo_h+set}" = set; then
7144 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7145 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7146 if test "${ac_cv_header_cairo_h+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7150 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7151 else
7152 # Is the header compilable?
7153 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7154 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 $ac_includes_default
7162 #include <cairo.h>
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_cxx_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 ac_header_compiler=yes
7182 else
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7186 ac_header_compiler=no
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7191 echo "${ECHO_T}$ac_header_compiler" >&6; }
7193 # Is the header present?
7194 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7195 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7196 cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h. */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 #include <cairo.h>
7203 _ACEOF
7204 if { (ac_try="$ac_cpp conftest.$ac_ext"
7205 case "(($ac_try" in
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7208 esac
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } >/dev/null && {
7217 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7218 test ! -s conftest.err
7219 }; then
7220 ac_header_preproc=yes
7221 else
7222 echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 ac_header_preproc=no
7228 rm -f conftest.err conftest.$ac_ext
7229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7230 echo "${ECHO_T}$ac_header_preproc" >&6; }
7232 # So? What about this header?
7233 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7234 yes:no: )
7235 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7236 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7237 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7238 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7239 ac_header_preproc=yes
7241 no:yes:* )
7242 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7243 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7245 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7247 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7249 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7251 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7253 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7256 esac
7257 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7258 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7259 if test "${ac_cv_header_cairo_h+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 ac_cv_header_cairo_h=$ac_header_preproc
7264 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7265 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7268 if test $ac_cv_header_cairo_h = yes; then
7269 { echo "$as_me:$LINENO: checking for cairo" >&5
7270 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7278 #include <cairo.h>
7281 main ()
7284 cairo_surface_t *surface;
7285 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7288 return 0;
7290 _ACEOF
7291 rm -f conftest.$ac_objext conftest$ac_exeext
7292 if { (ac_try="$ac_link"
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_link") 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); } && {
7305 test -z "$ac_cxx_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest$ac_exeext &&
7308 $as_test_x conftest$ac_exeext; then
7310 { echo "$as_me:$LINENO: result: yes" >&5
7311 echo "${ECHO_T}yes" >&6; }
7313 cat >>confdefs.h <<\_ACEOF
7314 #define USE_CAIRO 1
7315 _ACEOF
7317 CAIRO_CFLAGS="$CPPFLAGS"
7318 if test "$with_cairo" = "linked" ; then
7319 CAIRO_LDFLAGS="$LIBS"
7321 cat >>confdefs.h <<\_ACEOF
7322 #define LINKED_CAIRO 1
7323 _ACEOF
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7337 conftest$ac_exeext conftest.$ac_ext
7343 CPPFLAGS="$SAVE_CPPFLAGS"
7344 LDFLAGS="$SAVE_LDFLAGS"
7345 LIBS="$SAVE_LIBS"
7350 #--------------------------------------------------------------------
7351 # Checks for Imlib2 library
7352 #--------------------------------------------------------------------
7355 # Check whether --with-imlib2 was given.
7356 if test "${with_imlib2+set}" = set; then
7357 withval=$with_imlib2;
7361 SAVE_CPPFLAGS="$CPPFLAGS"
7362 SAVE_LDFLAGS="$LDFLAGS"
7363 SAVE_LIBS="$LIBS"
7364 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7365 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7366 echo "${ECHO_T}disabling imlib2 support" >&6; }
7367 else
7368 CPPFLAGS=`imlib2-config --cflags`
7369 LIBS=`imlib2-config --libs`
7370 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7371 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7372 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7373 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7377 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7378 else
7379 # Is the header compilable?
7380 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7381 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 $ac_includes_default
7389 #include <Imlib2.h>
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (ac_try="$ac_compile"
7393 case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_compile") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_cxx_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
7408 ac_header_compiler=yes
7409 else
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7413 ac_header_compiler=no
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7418 echo "${ECHO_T}$ac_header_compiler" >&6; }
7420 # Is the header present?
7421 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7422 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #include <Imlib2.h>
7430 _ACEOF
7431 if { (ac_try="$ac_cpp conftest.$ac_ext"
7432 case "(($ac_try" in
7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7435 esac
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } >/dev/null && {
7444 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7445 test ! -s conftest.err
7446 }; then
7447 ac_header_preproc=yes
7448 else
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7452 ac_header_preproc=no
7455 rm -f conftest.err conftest.$ac_ext
7456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7457 echo "${ECHO_T}$ac_header_preproc" >&6; }
7459 # So? What about this header?
7460 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7461 yes:no: )
7462 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7463 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7464 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7465 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7466 ac_header_preproc=yes
7468 no:yes:* )
7469 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7470 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7472 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7474 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7476 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7478 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7480 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7483 esac
7484 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7485 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7486 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489 ac_cv_header_Imlib2_h=$ac_header_preproc
7491 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7492 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7495 if test $ac_cv_header_Imlib2_h = yes; then
7496 { echo "$as_me:$LINENO: checking for imlib2" >&5
7497 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7498 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h. */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7505 #include <X11/Xlib.h>
7506 #include <Imlib2.h>
7507 #include <stdio.h>
7508 #include <string.h>
7511 main ()
7514 Imlib_Image image= imlib_load_image("");
7517 return 0;
7519 _ACEOF
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (ac_try="$ac_link"
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_link") 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); } && {
7534 test -z "$ac_cxx_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest$ac_exeext &&
7537 $as_test_x conftest$ac_exeext; then
7539 { echo "$as_me:$LINENO: result: yes" >&5
7540 echo "${ECHO_T}yes" >&6; }
7542 cat >>confdefs.h <<\_ACEOF
7543 #define USE_IMLIB2 1
7544 _ACEOF
7546 IMLIB2_CFLAGS="$CPPFLAGS"
7547 if test "$with_imlib2" = "linked" ; then
7548 IMLIB2_LDFLAGS="$LIBS"
7550 cat >>confdefs.h <<\_ACEOF
7551 #define LINKED_IMLIB2 1
7552 _ACEOF
7556 else
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7561 { echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6; }
7565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7566 conftest$ac_exeext conftest.$ac_ext
7572 CPPFLAGS="$SAVE_CPPFLAGS"
7573 LDFLAGS="$SAVE_LDFLAGS"
7574 LIBS="$SAVE_LIBS"
7579 #--------------------------------------------------------------------
7580 # Checks for Axel library
7581 #--------------------------------------------------------------------
7584 # Check whether --with-axel was given.
7585 if test "${with_axel+set}" = set; then
7586 withval=$with_axel;
7590 SAVE_CPPFLAGS="$CPPFLAGS"
7591 SAVE_LDFLAGS="$LDFLAGS"
7592 SAVE_LIBS="$LIBS"
7593 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7594 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7595 echo "${ECHO_T}disabling axel support" >&6; }
7596 else
7597 CPPFLAGS=`axel-config --cflags`
7598 LIBS=`axel-config --libs`
7599 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7600 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7601 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7602 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7606 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7607 else
7608 # Is the header compilable?
7609 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7610 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 #include <QGui/Viewer.h>
7619 _ACEOF
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7622 case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_compile") 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && {
7634 test -z "$ac_cxx_werror_flag" ||
7635 test ! -s conftest.err
7636 } && test -s conftest.$ac_objext; then
7637 ac_header_compiler=yes
7638 else
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 ac_header_compiler=no
7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7647 echo "${ECHO_T}$ac_header_compiler" >&6; }
7649 # Is the header present?
7650 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7651 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 #include <QGui/Viewer.h>
7659 _ACEOF
7660 if { (ac_try="$ac_cpp conftest.$ac_ext"
7661 case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664 esac
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } >/dev/null && {
7673 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7674 test ! -s conftest.err
7675 }; then
7676 ac_header_preproc=yes
7677 else
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 ac_header_preproc=no
7684 rm -f conftest.err conftest.$ac_ext
7685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7686 echo "${ECHO_T}$ac_header_preproc" >&6; }
7688 # So? What about this header?
7689 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7690 yes:no: )
7691 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7692 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7694 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7695 ac_header_preproc=yes
7697 no:yes:* )
7698 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7699 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7701 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7703 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7705 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7707 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7709 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7712 esac
7713 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7714 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7715 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7720 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7721 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7724 if test $ac_cv_header_QGui_Viewer_h = yes; then
7725 { echo "$as_me:$LINENO: checking for axel" >&5
7726 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7734 #include <QGui/Viewer.h>
7737 main ()
7740 Viewer viewer(0);
7743 return 0;
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (ac_try="$ac_link"
7748 case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751 esac
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_link") 2>conftest.er1
7754 ac_status=$?
7755 grep -v '^ *+' conftest.er1 >conftest.err
7756 rm -f conftest.er1
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && {
7760 test -z "$ac_cxx_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest$ac_exeext &&
7763 $as_test_x conftest$ac_exeext; then
7765 { echo "$as_me:$LINENO: result: yes" >&5
7766 echo "${ECHO_T}yes" >&6; }
7768 cat >>confdefs.h <<\_ACEOF
7769 #define USE_AXEL 1
7770 _ACEOF
7772 AXEL_CFLAGS="$CPPFLAGS"
7773 if test "$with_axel" = "linked" ; then
7774 AXEL_LDFLAGS="$LIBS"
7776 cat >>confdefs.h <<\_ACEOF
7777 #define LINKED_AXEL 1
7778 _ACEOF
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7787 { echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6; }
7791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7792 conftest$ac_exeext conftest.$ac_ext
7798 CPPFLAGS="$SAVE_CPPFLAGS"
7799 LDFLAGS="$SAVE_LDFLAGS"
7800 LIBS="$SAVE_LIBS"
7805 #--------------------------------------------------------------------
7806 # Checks for ghostscript library
7807 #--------------------------------------------------------------------
7810 # Check whether --with-gs was given.
7811 if test "${with_gs+set}" = set; then
7812 withval=$with_gs;
7816 if test "$with_gs" = "no" ; then
7817 { echo "$as_me:$LINENO: result: disabling ghostscript support" >&5
7818 echo "${ECHO_T}disabling ghostscript support" >&6; }
7819 else
7820 case "${host}" in
7821 *mingw*)
7822 GS_EXE="gswin32c.exe"
7823 GS_DLL="gsdll32.dll"
7824 # Extract the first word of "${GS_EXE}", so it can be a program name with args.
7825 set dummy ${GS_EXE}; ac_word=$2
7826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7828 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831 if test -n "$HAS_GS_EXE"; then
7832 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_prog_HAS_GS_EXE="yes"
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7845 done
7846 done
7847 IFS=$as_save_IFS
7849 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
7852 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
7853 if test -n "$HAS_GS_EXE"; then
7854 { echo "$as_me:$LINENO: result: $HAS_GS_EXE" >&5
7855 echo "${ECHO_T}$HAS_GS_EXE" >&6; }
7856 else
7857 { echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6; }
7862 # Extract the first word of "${GS_DLL}", so it can be a program name with args.
7863 set dummy ${GS_DLL}; ac_word=$2
7864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7866 if test "${ac_cv_prog_HAS_GS_LIB+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 if test -n "$HAS_GS_LIB"; then
7870 ac_cv_prog_HAS_GS_LIB="$HAS_GS_LIB" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_prog_HAS_GS_LIB="yes"
7880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7883 done
7884 done
7885 IFS=$as_save_IFS
7887 test -z "$ac_cv_prog_HAS_GS_LIB" && ac_cv_prog_HAS_GS_LIB="no"
7890 HAS_GS_LIB=$ac_cv_prog_HAS_GS_LIB
7891 if test -n "$HAS_GS_LIB"; then
7892 { echo "$as_me:$LINENO: result: $HAS_GS_LIB" >&5
7893 echo "${ECHO_T}$HAS_GS_LIB" >&6; }
7894 else
7895 { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7902 # Extract the first word of "gs", so it can be a program name with args.
7903 set dummy gs; ac_word=$2
7904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7906 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 if test -n "$HAS_GS_EXE"; then
7910 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7919 ac_cv_prog_HAS_GS_EXE="yes"
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7923 done
7924 done
7925 IFS=$as_save_IFS
7927 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
7930 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
7931 if test -n "$HAS_GS_EXE"; then
7932 { echo "$as_me:$LINENO: result: $HAS_GS_EXE" >&5
7933 echo "${ECHO_T}$HAS_GS_EXE" >&6; }
7934 else
7935 { echo "$as_me:$LINENO: result: no" >&5
7936 echo "${ECHO_T}no" >&6; }
7940 HAS_GS_LIB="yes"
7942 esac
7943 if test "x${HAS_GS_EXE}" = "xyes" -a "x${HAS_GS_LIB}" = "xyes"; then
7945 cat >>confdefs.h <<\_ACEOF
7946 #define USE_GS 1
7947 _ACEOF
7949 CONFIG_GS="Ghostscript"
7953 else
7954 { echo "$as_me:$LINENO: result: disabling ghostscript support" >&5
7955 echo "${ECHO_T}disabling ghostscript support" >&6; }
7959 #--------------------------------------------------------------------
7960 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7961 #--------------------------------------------------------------------
7963 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7964 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7965 if test -z "$GUILE_CFLAGS"; then
7966 CXXFLAGS="`guile-config compile`"
7967 else
7968 CXXFLAGS="$GUILE_CFLAGS"
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7977 #include <guile/gh.h>
7978 #include <libguile.h>
7979 typedef SCM (*FN)(...);
7980 static SCM identity (SCM x) { return x; }
7981 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7984 main ()
7989 return 0;
7991 _ACEOF
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7994 case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && {
8006 test -z "$ac_cxx_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.$ac_objext; then
8011 cat >>confdefs.h <<\_ACEOF
8012 #define DOTS_OK 1
8013 _ACEOF
8015 { echo "$as_me:$LINENO: result: yes" >&5
8016 echo "${ECHO_T}yes" >&6; }
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8023 { echo "$as_me:$LINENO: result: no" >&5
8024 echo "${ECHO_T}no" >&6; }
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 CXXFLAGS=""
8031 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
8032 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
8033 if test -z "$GUILE_CFLAGS"; then
8034 CXXFLAGS="`guile-config compile`"
8035 else
8036 CXXFLAGS="$GUILE_CFLAGS"
8038 cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h. */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8045 #include <guile/gh.h>
8046 #include <libguile.h>
8047 void print_string (SCM s) {
8048 int len_r;
8049 char* r= gh_scm2newstr (s, &len_r); }
8052 main ()
8057 return 0;
8059 _ACEOF
8060 rm -f conftest.$ac_objext
8061 if { (ac_try="$ac_compile"
8062 case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_compile") 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_cxx_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.$ac_objext; then
8079 cat >>confdefs.h <<\_ACEOF
8080 #define guile_str_size_t int
8081 _ACEOF
8083 { echo "$as_me:$LINENO: result: int" >&5
8084 echo "${ECHO_T}int" >&6; }
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8092 cat >>confdefs.h <<\_ACEOF
8093 #define guile_str_size_t size_t
8094 _ACEOF
8096 { echo "$as_me:$LINENO: result: size_t" >&5
8097 echo "${ECHO_T}size_t" >&6; }
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 CXXFLAGS=""
8104 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
8105 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
8106 SAVE_CPPFLAGS="$CPPFLAGS"
8107 SAVE_LDFLAGS="$LDFLAGS"
8108 SAVE_LIBS="$LIBS"
8109 CPPFLAGS="$GUILE_CFLAGS"
8110 LDFLAGS="-static"
8111 LIBS="$GUILE_LDFLAGS"
8112 cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h. */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8119 #include <guile/gh.h>
8120 $CONFIG_DOTS
8123 main ()
8126 struct dummy {
8127 static void my_main (int argc, char** argv) {}
8128 static void install_guile () {
8129 #ifdef DOTS_OK
8130 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8131 #else
8132 gh_enter (0, NULL, my_main);
8133 #endif
8136 dummy::install_guile ();
8139 return 0;
8141 _ACEOF
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (ac_try="$ac_link"
8144 case "(($ac_try" in
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8147 esac
8148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_link") 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && {
8156 test -z "$ac_cxx_werror_flag" ||
8157 test ! -s conftest.err
8158 } && test -s conftest$ac_exeext &&
8159 $as_test_x conftest$ac_exeext; then
8160 tm_link_guile_static="yes"
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 tm_link_guile_static="no"
8168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8169 conftest$ac_exeext conftest.$ac_ext
8171 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
8172 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
8173 if test "$tm_link_guile_static" = "no" ; then
8174 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
8175 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
8176 LIBS="$GUILE_LDFLAGS -lltdl"
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8184 #include <guile/gh.h>
8185 $CONFIG_DOTS
8188 main ()
8191 struct dummy {
8192 static void my_main (int argc, char** argv) {}
8193 static void install_guile () {
8194 #ifdef DOTS_OK
8195 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8196 #else
8197 gh_enter (0, NULL, my_main);
8198 #endif
8201 dummy::install_guile ();
8204 return 0;
8206 _ACEOF
8207 rm -f conftest.$ac_objext conftest$ac_exeext
8208 if { (ac_try="$ac_link"
8209 case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_link") 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_cxx_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest$ac_exeext &&
8224 $as_test_x conftest$ac_exeext; then
8225 tm_link_guile_static_ltdl="yes"
8226 else
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 tm_link_guile_static_ltdl="no"
8233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8234 conftest$ac_exeext conftest.$ac_ext
8236 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
8237 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
8238 if test "$tm_link_guile_static_ltdl" = "yes" ; then
8239 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
8240 else
8241 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
8242 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
8243 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8251 #include <guile/gh.h>
8252 $CONFIG_DOTS
8255 main ()
8258 struct dummy {
8259 static void my_main (int argc, char** argv) {}
8260 static void install_guile () {
8261 #ifdef DOTS_OK
8262 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8263 #else
8264 gh_enter (0, NULL, my_main);
8265 #endif
8268 dummy::install_guile ();
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext conftest$ac_exeext
8275 if { (ac_try="$ac_link"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_link") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_cxx_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest$ac_exeext &&
8291 $as_test_x conftest$ac_exeext; then
8292 tm_link_guile_static_ltdl_ldl="yes"
8293 else
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8297 tm_link_guile_static_ltdl_ldl="no"
8300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8301 conftest$ac_exeext conftest.$ac_ext
8303 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8304 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8305 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8306 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8307 else
8308 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8309 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8313 CPPFLAGS="$SAVE_CPPFLAGS"
8314 LDFLAGS="$SAVE_LDFLAGS"
8315 LIBS="$SAVE_LIBS"
8317 #--------------------------------------------------------------------
8318 # Handle different systems case by case
8319 #--------------------------------------------------------------------
8321 CONFIG_OS="GNU_LINUX"
8322 CONFIG_OS_SUFFIX="gnu-linux"
8323 CONFIG_OS_COMPAT="Unix"
8324 CONFIG_MACOS=""
8325 CONFIG_CXXFLAGS=""
8326 CONFIG_CXXTEMPLATE=""
8327 CONFIG_STD_SETENV="#define STD_SETENV"
8328 CONFIG_SO="so"
8329 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8330 CONFIG_CHMOD="chmod -f"
8331 CONFIG_CXXOPTIMIZE="-O2"
8332 CONFIG_BSTATIC="-Wl,-Bstatic"
8333 CONFIG_BSHARED="-Wl,-Bdynamic"
8334 CONFIG_BFLAGS=""
8335 CONFIG_BPATH="-Wl,-rpath,"
8336 CONFIG_LDRT=""
8337 CONFIG_WORD_LENGTH="4"
8338 CONFIG_WORD_LENGTH_INC="3"
8339 CONFIG_WORD_MASK="0xfffffffc"
8340 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8341 # tweak for XCode project
8342 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
8344 X11_CFLAGS="$X_CFLAGS"
8345 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8347 { echo "$as_me:$LINENO: checking for void *" >&5
8348 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8349 if test "${ac_cv_type_void_p+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8359 typedef void * ac__type_new_;
8361 main ()
8363 if ((ac__type_new_ *) 0)
8364 return 0;
8365 if (sizeof (ac__type_new_))
8366 return 0;
8368 return 0;
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8373 case "(($ac_try" in
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8376 esac
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } && {
8385 test -z "$ac_cxx_werror_flag" ||
8386 test ! -s conftest.err
8387 } && test -s conftest.$ac_objext; then
8388 ac_cv_type_void_p=yes
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_cv_type_void_p=no
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8399 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8401 # The cast to long int works around a bug in the HP C Compiler
8402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8404 # This bug is HP SR number 8606223364.
8405 { echo "$as_me:$LINENO: checking size of void *" >&5
8406 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8407 if test "${ac_cv_sizeof_void_p+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410 if test "$cross_compiling" = yes; then
8411 # Depending upon the size, compute the lo and hi bounds.
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 $ac_includes_default
8419 typedef void * ac__type_sizeof_;
8421 main ()
8423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8424 test_array [0] = 0
8427 return 0;
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8432 case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_cxx_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.$ac_objext; then
8447 ac_lo=0 ac_mid=0
8448 while :; do
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8456 typedef void * ac__type_sizeof_;
8458 main ()
8460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8461 test_array [0] = 0
8464 return 0;
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8469 case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compile") 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_cxx_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest.$ac_objext; then
8484 ac_hi=$ac_mid; break
8485 else
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_lo=`expr $ac_mid + 1`
8490 if test $ac_lo -le $ac_mid; then
8491 ac_lo= ac_hi=
8492 break
8494 ac_mid=`expr 2 '*' $ac_mid + 1`
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498 done
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h. */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509 $ac_includes_default
8510 typedef void * ac__type_sizeof_;
8512 main ()
8514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8515 test_array [0] = 0
8518 return 0;
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (ac_try="$ac_compile"
8523 case "(($ac_try" in
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8526 esac
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_cxx_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_hi=-1 ac_mid=-1
8539 while :; do
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 typedef void * ac__type_sizeof_;
8549 main ()
8551 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8552 test_array [0] = 0
8555 return 0;
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (ac_try="$ac_compile"
8560 case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563 esac
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_compile") 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } && {
8572 test -z "$ac_cxx_werror_flag" ||
8573 test ! -s conftest.err
8574 } && test -s conftest.$ac_objext; then
8575 ac_lo=$ac_mid; break
8576 else
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 ac_hi=`expr '(' $ac_mid ')' - 1`
8581 if test $ac_mid -le $ac_hi; then
8582 ac_lo= ac_hi=
8583 break
8585 ac_mid=`expr 2 '*' $ac_mid`
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 done
8590 else
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8594 ac_lo= ac_hi=
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 # Binary search between lo and hi bounds.
8602 while test "x$ac_lo" != "x$ac_hi"; do
8603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 $ac_includes_default
8611 typedef void * ac__type_sizeof_;
8613 main ()
8615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8616 test_array [0] = 0
8619 return 0;
8621 _ACEOF
8622 rm -f conftest.$ac_objext
8623 if { (ac_try="$ac_compile"
8624 case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_compile") 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && {
8636 test -z "$ac_cxx_werror_flag" ||
8637 test ! -s conftest.err
8638 } && test -s conftest.$ac_objext; then
8639 ac_hi=$ac_mid
8640 else
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8644 ac_lo=`expr '(' $ac_mid ')' + 1`
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 done
8649 case $ac_lo in
8650 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8651 '') if test "$ac_cv_type_void_p" = yes; then
8652 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8653 See \`config.log' for more details." >&5
8654 echo "$as_me: error: cannot compute sizeof (void *)
8655 See \`config.log' for more details." >&2;}
8656 { (exit 77); exit 77; }; }
8657 else
8658 ac_cv_sizeof_void_p=0
8659 fi ;;
8660 esac
8661 else
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h. */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 $ac_includes_default
8669 typedef void * ac__type_sizeof_;
8670 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8671 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8672 #include <stdio.h>
8673 #include <stdlib.h>
8675 main ()
8678 FILE *f = fopen ("conftest.val", "w");
8679 if (! f)
8680 return 1;
8681 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8683 long int i = longval ();
8684 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8685 return 1;
8686 fprintf (f, "%ld\n", i);
8688 else
8690 unsigned long int i = ulongval ();
8691 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8692 return 1;
8693 fprintf (f, "%lu\n", i);
8695 return ferror (f) || fclose (f) != 0;
8698 return 0;
8700 _ACEOF
8701 rm -f conftest$ac_exeext
8702 if { (ac_try="$ac_link"
8703 case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_link") 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8712 { (case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_try") 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_cv_sizeof_void_p=`cat conftest.val`
8722 else
8723 echo "$as_me: program exited with status $ac_status" >&5
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 ( exit $ac_status )
8728 if test "$ac_cv_type_void_p" = yes; then
8729 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8730 See \`config.log' for more details." >&5
8731 echo "$as_me: error: cannot compute sizeof (void *)
8732 See \`config.log' for more details." >&2;}
8733 { (exit 77); exit 77; }; }
8734 else
8735 ac_cv_sizeof_void_p=0
8738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8740 rm -f conftest.val
8742 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8743 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8747 cat >>confdefs.h <<_ACEOF
8748 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8749 _ACEOF
8752 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8753 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8754 if test "$ac_cv_sizeof_void_p" = "8"; then
8755 { echo "$as_me:$LINENO: result: yes" >&5
8756 echo "${ECHO_T}yes" >&6; }
8757 CONFIG_WORD_LENGTH="8"
8758 CONFIG_WORD_LENGTH_INC="7"
8759 CONFIG_WORD_MASK="0xfffffffffffffff8"
8760 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8761 else
8762 { echo "$as_me:$LINENO: result: no" >&5
8763 echo "${ECHO_T}no" >&6; }
8766 case "${host}" in
8767 i*86-*-linux* | x86_64-*-linux*)
8768 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8769 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8770 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8772 i*86-*-freebsd* | x86_64-*-freebsd*)
8773 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8774 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8775 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8777 i*86-*-solaris*)
8778 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8779 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8780 CONFIG_CXXOPTIMIZE="-O3"
8781 CONFIG_BPATH="-Wl,-R,"
8782 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8784 *mingw*)
8785 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8786 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8787 CONFIG_OS_COMPAT="Windows"
8788 CONFIG_LDRT="-lmingw32 -lmingwex -mwindows"
8790 *-*-cygwin)
8791 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8792 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8793 CONFIG_OS="CYGWIN"
8794 CONFIG_BFLAGS="-Wl,-stack,8388608"
8795 # CXX="export CYGWIN=check_case:strict; $CXX"
8796 # AC_SUBST(CXX)
8798 *apple*darwin*)
8799 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8800 CONFIG_OS="MACOS"
8801 CONFIG_CXXFLAGS="-I${prefix}/include"
8802 CONFIG_BSHARED=""
8803 CONFIG_BFLAGS="-framework Cocoa"
8804 CONFIG_BPATH=""
8805 CONFIG_SO="dylib"
8806 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8808 *darwin*)
8809 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8810 CONFIG_CXXFLAGS="-I${prefix}/include"
8811 CONFIG_BSHARED=""
8812 CONFIG_BPATH=""
8813 CONFIG_SO="dylib"
8814 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8816 powerpc-*-linux*)
8817 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8818 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8819 CONFIG_OS="POWERPC_GNU_LINUX"
8820 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8822 *sun*)
8823 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8824 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8825 CONFIG_OS="SUN"
8826 CONFIG_OS_SUFFIX="sun"
8827 CONFIG_BSTATIC=""
8828 CONFIG_BSHARED=""
8829 CONFIG_BPATH="-Wl,-R,"
8830 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8831 CONFIG_WORD_LENGTH="8"
8832 CONFIG_WORD_LENGTH_INC="7"
8833 CONFIG_WORD_MASK="0xfffffff8"
8834 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8835 CONFIG_STD_SETENV=""
8837 sparc*-*-linux*)
8838 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8839 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8840 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8841 CONFIG_WORD_LENGTH="8"
8842 CONFIG_WORD_LENGTH_INC="7"
8843 CONFIG_WORD_MASK="0xfffffff8"
8844 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8845 CONFIG_STD_SETENV=""
8847 *dec*)
8848 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8849 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8850 CONFIG_BSTATIC=""
8851 CONFIG_BSHARED="-shared"
8852 CONFIG_STD_SETENV=""
8854 *alpha*-*-linux*)
8855 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8856 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8857 CONFIG_BSTATIC=""
8858 CONFIG_BSHARED="-shared"
8860 s390-*-linux*)
8861 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8862 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8863 CONFIG_STD_SETENV=""
8865 ia64-*-linux*)
8866 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8867 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8868 CONFIG_BSTATIC=""
8869 CONFIG_BSHARED="-shared"
8871 hppa*-*-linux*)
8872 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8873 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8874 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
8875 CONFIG_BSTATIC=""
8876 CONFIG_BSHARED="-shared"
8878 *sgi-irix*)
8879 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8880 CONFIG_OS="IRIX"
8881 CONFIG_CXXFLAGS=""
8882 X_LIBS=-L/usr/lib32
8883 CONFIG_BSTATIC=""
8884 CONFIG_BSHARED=""
8885 CONFIG_BPATH=""
8886 X11_LDFLAGS="$X_LIBS -lX11"
8887 CONFIG_WORD_MASK="0xfffffff8"
8888 CONFIG_STD_SETENV=""
8889 CONFIG_CHMOD="chmod"
8890 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
8892 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
8893 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8894 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8896 *-linux*)
8897 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8898 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8901 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8902 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8904 esac
8906 case "${host}" in
8907 *apple*darwin10*)
8908 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
8909 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH_ACTUAL"
8911 esac
8913 #--------------------------------------------------------------------
8914 # Temporary fix for link problem
8915 #--------------------------------------------------------------------
8917 case "$GXX_VERSION" in
8918 3.* | 4.*)
8919 CONFIG_BSTATIC="-static"
8920 CONFIG_BSHARED="-dynamic"
8922 esac
8924 #--------------------------------------------------------------------
8925 # Memory allocation options
8926 #--------------------------------------------------------------------
8928 # Check whether --enable-fastalloc was given.
8929 if test "${enable_fastalloc+set}" = set; then
8930 enableval=$enable_fastalloc;
8931 else
8932 enable_fastalloc="yes"
8935 case "$enable_fastalloc" in
8936 yes)
8939 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8940 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8942 cat >>confdefs.h <<\_ACEOF
8943 #define NO_FAST_ALLOC 1
8944 _ACEOF
8948 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8949 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8950 { (exit 1); exit 1; }; }
8952 esac
8954 #--------------------------------------------------------------------
8955 # Experimental options
8956 #--------------------------------------------------------------------
8958 # Check whether --enable-experimental was given.
8959 if test "${enable_experimental+set}" = set; then
8960 enableval=$enable_experimental;
8961 else
8962 enable_experimental="no"
8965 case "$enable_experimental" in
8966 yes)
8967 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8968 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8970 cat >>confdefs.h <<\_ACEOF
8971 #define EXPERIMENTAL 1
8972 _ACEOF
8974 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
8977 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8978 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8979 CONFIG_EXPERIMENTAL=""
8982 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8983 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8984 { (exit 1); exit 1; }; }
8986 esac
8989 #--------------------------------------------------------------------
8990 # MacOS X extensions (spellchecker, image loading)
8991 #--------------------------------------------------------------------
8993 # Check whether --enable-macosx-extensions was given.
8994 if test "${enable_macosx_extensions+set}" = set; then
8995 enableval=$enable_macosx_extensions;
8996 else
8997 enable_macosx_extensions="no"
9000 case "$enable_macosx_extensions" in
9001 yes)
9002 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
9003 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
9005 cat >>confdefs.h <<\_ACEOF
9006 #define MACOSX_EXTENSIONS 1
9007 _ACEOF
9009 CONFIG_MACOS="MacOS"
9012 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
9013 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
9014 CONFIG_MACOS=""
9017 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
9018 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
9019 { (exit 1); exit 1; }; }
9021 esac
9024 #--------------------------------------------------------------------
9025 # Gui selection
9026 #--------------------------------------------------------------------
9028 CONFIG_X11=""
9029 CONFIG_COCOA=""
9030 CONFIG_GUI="X11"
9032 # Check whether --enable-qt was given.
9033 if test "${enable_qt+set}" = set; then
9034 enableval=$enable_qt;
9035 else
9036 enable_qt="no"
9040 case "$enable_qt" in
9041 yes)
9043 if test -r "/c/Qt"; then
9044 MOC="`which moc`"
9045 qt_bin="`dirname $MOC`"
9046 qt_home="`dirname $qt_bin`"
9047 qt_version="`basename $qt_home`"
9048 qt_parent="`dirname $qt_home`"
9049 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."
9050 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
9051 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
9052 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
9053 if test "$qt_parent" != "/c/Qt"; then
9054 at_cv_qt_build="ko"
9056 else
9061 test x"$TROLL" != x && echo 'ViM rox emacs.'
9064 # Check whether --with-qt was given.
9065 if test "${with_qt+set}" = set; then
9066 withval=$with_qt; QT_PATH=$withval
9067 else
9068 QT_PATH=
9072 # Find Qt.
9073 if test -d /usr/local/Trolltech; then
9074 # Try to find the latest version.
9075 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
9076 | xargs | sed 's/ */:/g'`
9079 # Find qmake.
9080 if test -z "$QMAKE"; then
9081 for ac_prog in qmake
9083 # Extract the first word of "$ac_prog", so it can be a program name with args.
9084 set dummy $ac_prog; ac_word=$2
9085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9087 if test "${ac_cv_path_QMAKE+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090 case $QMAKE in
9091 [\\/]* | ?:[\\/]*)
9092 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
9097 for as_dir in $as_dummy
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9103 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
9104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9107 done
9108 done
9109 IFS=$as_save_IFS
9112 esac
9114 QMAKE=$ac_cv_path_QMAKE
9115 if test -n "$QMAKE"; then
9116 { echo "$as_me:$LINENO: result: $QMAKE" >&5
9117 echo "${ECHO_T}$QMAKE" >&6; }
9118 else
9119 { echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6; }
9124 test -n "$QMAKE" && break
9125 done
9126 test -n "$QMAKE" || QMAKE="missing"
9128 else
9129 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
9130 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
9131 { echo "$as_me:$LINENO: result: $QMAKE" >&5
9132 echo "${ECHO_T}$QMAKE" >&6; }
9134 if test x"$QMAKE" = xmissing; then
9135 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
9136 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
9137 { (exit 1); exit 1; }; }
9140 # Find moc (Meta Object Compiler).
9141 if test -z "$MOC"; then
9142 for ac_prog in moc
9144 # Extract the first word of "$ac_prog", so it can be a program name with args.
9145 set dummy $ac_prog; ac_word=$2
9146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9148 if test "${ac_cv_path_MOC+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 else
9151 case $MOC in
9152 [\\/]* | ?:[\\/]*)
9153 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9158 for as_dir in $as_dummy
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
9165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9166 break 2
9168 done
9169 done
9170 IFS=$as_save_IFS
9173 esac
9175 MOC=$ac_cv_path_MOC
9176 if test -n "$MOC"; then
9177 { echo "$as_me:$LINENO: result: $MOC" >&5
9178 echo "${ECHO_T}$MOC" >&6; }
9179 else
9180 { echo "$as_me:$LINENO: result: no" >&5
9181 echo "${ECHO_T}no" >&6; }
9185 test -n "$MOC" && break
9186 done
9187 test -n "$MOC" || MOC="missing"
9189 else
9190 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9191 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9192 { echo "$as_me:$LINENO: result: $MOC" >&5
9193 echo "${ECHO_T}$MOC" >&6; }
9195 if test x"$MOC" = xmissing; then
9196 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9197 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9198 { (exit 1); exit 1; }; }
9201 # Find uic (User Interface Compiler).
9202 if test -z "$UIC"; then
9203 for ac_prog in uic
9205 # Extract the first word of "$ac_prog", so it can be a program name with args.
9206 set dummy $ac_prog; ac_word=$2
9207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9209 if test "${ac_cv_path_UIC+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212 case $UIC in
9213 [\\/]* | ?:[\\/]*)
9214 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9219 for as_dir in $as_dummy
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9225 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
9226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 break 2
9229 done
9230 done
9231 IFS=$as_save_IFS
9234 esac
9236 UIC=$ac_cv_path_UIC
9237 if test -n "$UIC"; then
9238 { echo "$as_me:$LINENO: result: $UIC" >&5
9239 echo "${ECHO_T}$UIC" >&6; }
9240 else
9241 { echo "$as_me:$LINENO: result: no" >&5
9242 echo "${ECHO_T}no" >&6; }
9246 test -n "$UIC" && break
9247 done
9248 test -n "$UIC" || UIC="missing"
9250 else
9251 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9252 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9253 { echo "$as_me:$LINENO: result: $UIC" >&5
9254 echo "${ECHO_T}$UIC" >&6; }
9256 if test x"$UIC" = xmissing; then
9257 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9258 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9259 { (exit 1); exit 1; }; }
9262 # Find rcc (Qt Resource Compiler).
9263 for ac_prog in rcc
9265 # Extract the first word of "$ac_prog", so it can be a program name with args.
9266 set dummy $ac_prog; ac_word=$2
9267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9269 if test "${ac_cv_path_RCC+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272 case $RCC in
9273 [\\/]* | ?:[\\/]*)
9274 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9279 for as_dir in $as_dummy
9281 IFS=$as_save_IFS
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
9284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9285 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
9286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9287 break 2
9289 done
9290 done
9291 IFS=$as_save_IFS
9294 esac
9296 RCC=$ac_cv_path_RCC
9297 if test -n "$RCC"; then
9298 { echo "$as_me:$LINENO: result: $RCC" >&5
9299 echo "${ECHO_T}$RCC" >&6; }
9300 else
9301 { echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6; }
9306 test -n "$RCC" && break
9307 done
9308 test -n "$RCC" || RCC="false"
9310 if test x"$UIC" = xfalse; then
9311 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9312 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9315 # If we don't know the path to Qt, guess it from the path to qmake.
9316 if test x"$QT_PATH" = x; then
9317 QT_PATH=`dirname "$QMAKE"`
9319 if test x"$QT_PATH" = x; then
9320 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9321 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9322 { (exit 1); exit 1; }; }
9325 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9326 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9327 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9328 echo "${ECHO_T}$QT_PATH" >&6; }
9330 # Get ready to build a test-app with Qt.
9332 # Look for a writable temporary directory.
9334 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
9335 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9337 for i in /tmp /var/tmp; do
9338 if test -d "$i" && test -w "$i"; then
9339 TMPDIR=$i
9340 export TMPDIR
9341 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9342 break
9344 done
9347 # Kludge!! QMake has a very strange behavior. For instance, if you
9348 # install Qt under your $HOME and run QMake somewhere else under your
9349 # $HOME, it will try to be clever and produce Makefiles with relative
9350 # include paths. In order to avoid this, we will test QMake from a
9351 # temporary directory (usually /tmp). Note that this problem was only
9352 # observed with Qt 4.
9353 my_configure_pwd=`pwd`
9354 my_tmpdir="$TMPDIR/conftest$$.dir"
9355 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
9356 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9357 then
9359 else
9360 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9361 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9362 { (exit 1); exit 1; }; }
9364 cat >conftest.h <<_ASEOF
9365 #include <QObject>
9367 class Foo: public QObject
9369 Q_OBJECT;
9370 public:
9371 Foo();
9372 ~Foo() {}
9373 public slots:
9374 void setValue(int value);
9375 signals:
9376 void valueChanged(int newValue);
9377 private:
9378 int value_;
9380 _ASEOF
9382 cat >conftest.cpp <<_ASEOF
9383 #include "conftest.h"
9384 Foo::Foo()
9385 : value_ (42)
9387 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9390 void Foo::setValue(int value)
9392 value_ = value;
9395 int main()
9397 Foo f;
9399 _ASEOF
9400 if $QMAKE -project; then :; else
9401 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9402 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9403 { (exit 1); exit 1; }; }
9406 # Find the .pro file generated by qmake.
9407 pro_file='conftest.dir.pro'
9408 test -f $pro_file || pro_file=`echo *.pro`
9409 if test -f "$pro_file"; then :; else
9410 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9411 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9412 { (exit 1); exit 1; }; }
9421 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9422 sed 's/^/| /' "$pro_file" >&5
9424 additional_qmake_flags=""
9425 case $host_os in
9426 darwin*)
9427 additional_qmake_flags="-spec macx-g++"
9429 esac
9431 if $QMAKE ${additional_qmake_flags} ; then :; else
9432 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9433 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9434 { (exit 1); exit 1; }; }
9436 # Try to compile a simple Qt app.
9437 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9438 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9439 if test "${at_cv_qt_build+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442 at_cv_qt_build=ko
9443 : ${MAKE=make}
9445 if $MAKE >&5 2>&1; then
9446 at_cv_qt_build='ok, looks like Qt 4'
9447 else
9448 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9449 instead" >&5
9450 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9451 if $MAKE >&5 2>&1; then
9452 at_cv_qt_build='ok, looks like Qt 3'
9453 else
9454 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9455 # installed in debug mode and qmake tries (by default) to build apps in
9456 # debug mode => Try again in release mode.
9457 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9460 # Tweak the value of CONFIG in the .pro file for +release.
9462 qt_conf=''
9463 for at_mod in +release; do
9464 at_mod=`echo "$at_mod" | sed 's/^-//; tough
9465 s/^+//; beef
9466 :ough
9467 s/^/CONFIG -= /;n
9468 :eef
9469 s/^/CONFIG += /'`
9470 qt_conf="$qt_conf
9471 $at_mod"
9472 done
9473 echo "$qt_conf" | sed 1d >>"$pro_file"
9476 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
9477 if $MAKE >&5 2>&1; then
9478 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
9479 else
9480 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9481 instead" >&5
9482 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9483 if $MAKE >&5 2>&1; then
9484 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
9485 else
9486 at_cv_qt_build=ko
9487 echo "$as_me:$LINENO: failed program was:" >&5
9488 sed 's/^/| /' conftest.h >&5
9489 echo "$as_me:$LINENO: failed program was:" >&5
9490 sed 's/^/| /' conftest.cpp >&5
9491 fi # if make with Qt3-style #include and release mode forced.
9492 fi # if make with Qt4-style #include and release mode forced.
9493 fi # if make with Qt3-style #include.
9494 fi # if make with Qt4-style #include.
9497 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9498 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9499 if test x"$at_cv_qt_build" = xko; then
9500 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9501 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9502 { (exit 1); exit 1; }; }
9504 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9507 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9508 # It starts by removing the beginning of the line, removing references to
9509 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9510 # all variable uses by QT_.
9511 qt_sed_filter='s///;
9512 s/$(SUBLIBS)//g;
9513 s/^ *//;
9514 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9516 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9517 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9518 # Makefile.Release. The reason is that the main difference is that release
9519 # uses -Os and debug -g. We can override -Os by passing another -O but we
9520 # usually don't override -g.
9521 if test -f Makefile.Release; then
9522 at_mfile='Makefile.Release'
9523 else
9524 at_mfile='Makefile'
9526 if test -f $at_mfile; then :; else
9527 cd "$my_configure_pwd"
9528 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9529 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9530 { (exit 1); exit 1; }; }
9533 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9534 if test -z "$QT_DEFINES"; then
9535 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9536 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9537 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9542 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9543 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9544 QT_DEFINES="$at_cv_env_QT_DEFINES"
9547 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9548 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9549 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9550 echo "${ECHO_T}$QT_DEFINES" >&6; }
9552 # Find the CFLAGS of Qt (We can use Qt in C?!)
9553 if test -z "$QT_CFLAGS"; then
9554 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9555 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9556 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9561 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9562 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9563 QT_CFLAGS="$at_cv_env_QT_CFLAGS"
9566 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9567 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9568 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9569 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9571 # Find the CXXFLAGS of Qt.
9572 if test -z "$QT_CXXFLAGS"; then
9573 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9574 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9575 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9580 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9581 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9582 QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
9585 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9586 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9587 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9588 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9590 # Find the INCPATH of Qt.
9591 if test -z "$QT_INCPATH"; then
9592 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9593 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9594 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9599 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9600 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9601 QT_INCPATH="$at_cv_env_QT_INCPATH"
9604 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9605 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9606 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9607 echo "${ECHO_T}$QT_INCPATH" >&6; }
9609 QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
9612 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9613 if test -z "$QT_LDFLAGS"; then
9614 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9615 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9616 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9621 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9622 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9623 QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
9626 QT_LFLAGS=$QT_LDFLAGS
9628 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9629 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9630 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9631 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9633 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9634 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9635 at_darwin="no"
9636 case $host_os in
9637 darwin*)
9638 at_darwin="yes"
9640 esac
9641 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9642 echo "${ECHO_T}$at_darwin" >&6; }
9644 # Find the LIBS of Qt.
9645 if test -z "$QT_LIBS"; then
9646 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9647 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9648 if test "${at_cv_env_QT_LIBS+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9652 if test x$at_darwin = xyes; then
9653 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9654 # -F properly. The "bug" has been fixed on 22 October 2006
9655 # by Peter O'Gorman but we provide backward compatibility here.
9656 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
9657 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9661 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9662 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9663 QT_LIBS="$at_cv_env_QT_LIBS"
9666 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9667 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9668 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9669 echo "${ECHO_T}$QT_LIBS" >&6; }
9671 cd "$my_configure_pwd" || echo 'WTF!'
9672 rm -rf "$my_tmpdir"
9676 if test x"$at_cv_qt_build" = xko; then
9677 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9678 echo "$as_me: error: cannot find Qt!" >&2;}
9679 { (exit 1); exit 1; }; }
9680 else
9681 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9682 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9683 CONFIG_GUI="QT"
9687 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9688 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9691 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9692 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9693 { (exit 1); exit 1; }; }
9695 esac
9697 # Check whether --enable-cocoa was given.
9698 if test "${enable_cocoa+set}" = set; then
9699 enableval=$enable_cocoa;
9700 else
9701 enable_cocoa="no"
9704 case "$enable_cocoa" in
9705 yes)
9706 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9707 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9708 COCOA_CFLAGS=""
9709 COCOA_LDFLAGS="-framework Cocoa"
9710 CONFIG_GUI="COCOA"
9713 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9714 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9717 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9718 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9719 { (exit 1); exit 1; }; }
9721 esac
9723 case "$CONFIG_GUI" in
9724 X11)
9725 CONFIG_X11="X11 Widkit"
9726 if test "x${CONFIG_GS}" != "xGhostscript"; then
9727 CONFIG_X11="$CONFIG_X11 Ghostscript"
9729 CONFIG_GUI_DEFINE="X11TEXMACS"
9730 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
9732 COCOA)
9733 CONFIG_COCOA="Cocoa"
9734 CONFIG_GUI_DEFINE="AQUATEXMACS"
9735 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
9738 CONFIG_QT="Qt"
9739 CONFIG_GUI_DEFINE="QTTEXMACS"
9740 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
9742 esac
9757 #--------------------------------------------------------------------
9758 # Debugging options
9759 #--------------------------------------------------------------------
9761 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
9762 if test "$enable_cocoa" = "yes"; then
9763 STD_DEBUG_FLAGS="-fno-exceptions"
9766 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9767 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9768 CXXFLAGS="$STD_DEBUG_FLAGS"
9769 cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h. */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9776 int some_variable = 0;
9779 main ()
9784 return 0;
9786 _ACEOF
9787 rm -f conftest.$ac_objext
9788 if { (ac_try="$ac_compile"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_compile") 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_cxx_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest.$ac_objext; then
9805 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9806 { echo "$as_me:$LINENO: result: yes" >&5
9807 echo "${ECHO_T}yes" >&6; }
9809 else
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9814 CONFIG_CXXDIALECT=""
9815 { echo "$as_me:$LINENO: result: no" >&5
9816 echo "${ECHO_T}no" >&6; }
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 CXXFLAGS=""
9824 # Check whether --enable-debug was given.
9825 if test "${enable_debug+set}" = set; then
9826 enableval=$enable_debug;
9827 else
9828 enable_debug="no"
9832 if test "$enable_debug" = "yes"; then
9833 if test "$GXX" = "yes"; then
9834 enable_debug="-ggdb"
9835 else
9836 enable_debug="-g3"
9840 if test "$enable_debug" = "no"; then
9841 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9842 echo "${ECHO_T}disabling debugging" >&6; }
9843 CONFIG_STRIP="strip"
9844 CONFIG_CXXDEBUG=""
9845 optimize_default="yes"
9846 else
9847 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9848 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9849 CONFIG_STRIP="true"
9850 CONFIG_CXXDEBUG="$enable_debug"
9851 optimize_default="no"
9854 # Check whether --enable-assert was given.
9855 if test "${enable_assert+set}" = set; then
9856 enableval=$enable_assert;
9857 else
9858 enable_assert="yes"
9862 if test "$enable_assert" = "no"; then
9863 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9864 echo "${ECHO_T}disabling assertion checking" >&6; }
9865 else
9866 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9867 echo "${ECHO_T}enabling assertion checking" >&6; }
9869 cat >>confdefs.h <<\_ACEOF
9870 #define DEBUG_ASSERT 1
9871 _ACEOF
9875 #--------------------------------------------------------------------
9876 # Warning options
9877 #--------------------------------------------------------------------
9879 case "$GXX_VERSION" in
9880 none)
9881 CONFIG_CXXWARNING="";
9884 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9886 esac
9888 # Check whether --enable-warnings was given.
9889 if test "${enable_warnings+set}" = set; then
9890 enableval=$enable_warnings;
9891 else
9892 enable_warnings="yes"
9895 case "$enable_warnings" in
9896 yes)
9897 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9898 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9900 CONFIG_CXXWARNING=""
9901 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9902 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9904 CONFIG_CXXWARNING="$enable_warnings"
9905 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9906 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9907 esac
9909 #--------------------------------------------------------------------
9910 # Optimization options
9911 #--------------------------------------------------------------------
9913 if test "$optimize_default" = "yes"; then
9914 case "$GXX_VERSION" in
9915 3.3.3 | 3.3.4 | 4.*)
9917 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9918 case "${host}" in
9919 i*86-*-linux-gnu* | i*86-*-freebsd*)
9920 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9921 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9922 optimize_default="no-inline"
9925 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9926 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9927 optimize_default="no-inline"
9929 esac
9931 esac
9934 # Check whether --enable-optimize was given.
9935 if test "${enable_optimize+set}" = set; then
9936 enableval=$enable_optimize;
9937 else
9938 enable_optimize="$optimize_default"
9942 case "$enable_optimize" in
9943 yes)
9944 # keep optimization options
9945 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9946 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9947 no-inline)
9948 optimize_no_inline="-fno-default-inline -fno-inline"
9949 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9950 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9951 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9953 CONFIG_CXXOPTIMIZE=""
9954 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9955 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9957 CONFIG_CXXOPTIMIZE="$enable_optimize"
9958 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9959 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9960 esac
9962 #--------------------------------------------------------------------
9963 # Substitute TeXmacs specific configuration parameters
9964 #--------------------------------------------------------------------
9990 #--------------------------------------------------------------------
9991 # Default paths for installation
9992 #--------------------------------------------------------------------
9994 if test "$prefix" = ""; then
9995 prefix=/usr/local
9997 if test "$prefix" = "NONE"; then
9998 prefix=/usr/local
10000 if test "$exec_prefix" = ""; then
10001 exec_prefix='${prefix}'
10003 if test "$exec_prefix" = "NONE"; then
10004 exec_prefix='${prefix}'
10006 if test "$exec_prefix" = '${prefix}'; then
10007 exec_prefix='${prefix}'
10009 if test "$includedir" = ""; then
10010 includedir='${prefix}/include'
10012 if test "$includedir" = "NONE"; then
10013 includedir='${prefix}/include'
10015 if test "$includedir" = '${prefix}/include'; then
10016 includedir='${prefix}/include'
10018 if test "$libdir" = ""; then
10019 libdir='${exec_prefix}/lib'
10021 if test "$libdir" = "NONE"; then
10022 libdir='${exec_prefix}/lib'
10024 if test "$libdir" = '${exec_prefix}/lib'; then
10025 libdir='${exec_prefix}/lib'
10027 if test "$bindir" = ""; then
10028 bindir='${exec_prefix}/bin'
10030 if test "$bindir" = "NONE"; then
10031 bindir=${exec_prefix}/bin
10033 if test "$bindir" = '${exec_prefix}/bin'; then
10034 bindir='${exec_prefix}/bin'
10036 if test "$datarootdir" = ""; then
10037 datarootdir='${prefix}/share'
10039 if test "$datarootdir" = "NONE"; then
10040 datarootdir='${prefix}/share'
10042 if test "$datarootdir" = '${prefix}/share'; then
10043 datarootdir='${prefix}/share'
10045 if test "$datadir" = ""; then
10046 datadir='${prefix}/share'
10048 if test "$datadir" = "NONE"; then
10049 datadir='${prefix}/share'
10051 if test "$datadir" = '${prefix}/share'; then
10052 datadir='${prefix}/share'
10054 if test "$mandir" = ""; then
10055 mandir='${datarootdir}/man'
10057 if test "$mandir" = "NONE"; then
10058 mandir='${datarootdir}/man'
10060 if test "$mandir" = '${datarootdir}/man'; then
10061 mandir='${datarootdir}/man'
10063 if test "$libexecdir" = ""; then
10064 libexecdir='${exec_prefix}/libexec'
10066 if test "$libexecdir" = "NONE"; then
10067 libexecdir='${exec_prefix}/libexec'
10069 if test "$libexecdir" = '${exec_prefix}/libexec'; then
10070 libexecdir='${exec_prefix}/libexec'
10073 curdir="`pwd`"
10074 tmorig=${curdir}
10075 tmdir=${PACKAGE}
10076 tmsrc=${curdir}/${tmdir}
10077 tmbin=${libexecdir}/${tmdir}
10078 tmdata=${datadir}/${tmdir}
10085 if test "$DEVEL_RELEASE" = "1"; then
10086 tmtgz=${PACKAGE}-${DEVEL_VERSION}
10087 else
10088 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
10090 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
10091 if test "$STABLE_RELEASE" = "1"; then
10092 tmstgz=${PACKAGE}-${STABLE_VERSION}
10093 else
10094 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
10096 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
10097 if test "$WINDOWS_RELEASE" = "1"; then
10098 tmwin=wintexmacs-${WINDOWS_VERSION}
10099 else
10100 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
10108 #--------------------------------------------------------------------
10109 # Done
10110 #--------------------------------------------------------------------
10112 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 misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in"
10114 cat >confcache <<\_ACEOF
10115 # This file is a shell script that caches the results of configure
10116 # tests run on this system so they can be shared between configure
10117 # scripts and configure runs, see configure's option --config-cache.
10118 # It is not useful on other systems. If it contains results you don't
10119 # want to keep, you may remove or edit it.
10121 # config.status only pays attention to the cache file if you give it
10122 # the --recheck option to rerun configure.
10124 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10125 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10126 # following values.
10128 _ACEOF
10130 # The following way of writing the cache mishandles newlines in values,
10131 # but we know of no workaround that is simple, portable, and efficient.
10132 # So, we kill variables containing newlines.
10133 # Ultrix sh set writes to stderr and can't be redirected directly,
10134 # and sets the high bit in the cache file unless we assign to the vars.
10136 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10137 eval ac_val=\$$ac_var
10138 case $ac_val in #(
10139 *${as_nl}*)
10140 case $ac_var in #(
10141 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10142 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10143 esac
10144 case $ac_var in #(
10145 _ | IFS | as_nl) ;; #(
10146 *) $as_unset $ac_var ;;
10147 esac ;;
10148 esac
10149 done
10151 (set) 2>&1 |
10152 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10153 *${as_nl}ac_space=\ *)
10154 # `set' does not quote correctly, so add quotes (double-quote
10155 # substitution turns \\\\ into \\, and sed turns \\ into \).
10156 sed -n \
10157 "s/'/'\\\\''/g;
10158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10159 ;; #(
10161 # `set' quotes correctly as required by POSIX, so do not add quotes.
10162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10164 esac |
10165 sort
10167 sed '
10168 /^ac_cv_env_/b end
10169 t clear
10170 :clear
10171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10172 t end
10173 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10174 :end' >>confcache
10175 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10176 if test -w "$cache_file"; then
10177 test "x$cache_file" != "x/dev/null" &&
10178 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10179 echo "$as_me: updating cache $cache_file" >&6;}
10180 cat confcache >$cache_file
10181 else
10182 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10183 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10186 rm -f confcache
10188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10189 # Let make expand exec_prefix.
10190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10192 DEFS=-DHAVE_CONFIG_H
10194 ac_libobjs=
10195 ac_ltlibobjs=
10196 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10197 # 1. Remove the extension, and $U if already installed.
10198 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10199 ac_i=`echo "$ac_i" | sed "$ac_script"`
10200 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10201 # will be set to the directory where LIBOBJS objects are built.
10202 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10203 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10204 done
10205 LIBOBJS=$ac_libobjs
10207 LTLIBOBJS=$ac_ltlibobjs
10211 : ${CONFIG_STATUS=./config.status}
10212 ac_clean_files_save=$ac_clean_files
10213 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10214 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10215 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10216 cat >$CONFIG_STATUS <<_ACEOF
10217 #! $SHELL
10218 # Generated by $as_me.
10219 # Run this file to recreate the current configuration.
10220 # Compiler output produced by configure, useful for debugging
10221 # configure, is in config.log if it exists.
10223 debug=false
10224 ac_cs_recheck=false
10225 ac_cs_silent=false
10226 SHELL=\${CONFIG_SHELL-$SHELL}
10227 _ACEOF
10229 cat >>$CONFIG_STATUS <<\_ACEOF
10230 ## --------------------- ##
10231 ## M4sh Initialization. ##
10232 ## --------------------- ##
10234 # Be more Bourne compatible
10235 DUALCASE=1; export DUALCASE # for MKS sh
10236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10237 emulate sh
10238 NULLCMD=:
10239 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10240 # is contrary to our usage. Disable this feature.
10241 alias -g '${1+"$@"}'='"$@"'
10242 setopt NO_GLOB_SUBST
10243 else
10244 case `(set -o) 2>/dev/null` in
10245 *posix*) set -o posix ;;
10246 esac
10253 # PATH needs CR
10254 # Avoid depending upon Character Ranges.
10255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10258 as_cr_digits='0123456789'
10259 as_cr_alnum=$as_cr_Letters$as_cr_digits
10261 # The user is always right.
10262 if test "${PATH_SEPARATOR+set}" != set; then
10263 echo "#! /bin/sh" >conf$$.sh
10264 echo "exit 0" >>conf$$.sh
10265 chmod +x conf$$.sh
10266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10267 PATH_SEPARATOR=';'
10268 else
10269 PATH_SEPARATOR=:
10271 rm -f conf$$.sh
10274 # Support unset when possible.
10275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10276 as_unset=unset
10277 else
10278 as_unset=false
10282 # IFS
10283 # We need space, tab and new line, in precisely that order. Quoting is
10284 # there to prevent editors from complaining about space-tab.
10285 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10286 # splitting by setting IFS to empty value.)
10287 as_nl='
10289 IFS=" "" $as_nl"
10291 # Find who we are. Look in the path if we contain no directory separator.
10292 case $0 in
10293 *[\\/]* ) as_myself=$0 ;;
10294 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295 for as_dir in $PATH
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
10299 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10300 done
10301 IFS=$as_save_IFS
10304 esac
10305 # We did not find ourselves, most probably we were run as `sh COMMAND'
10306 # in which case we are not to be found in the path.
10307 if test "x$as_myself" = x; then
10308 as_myself=$0
10310 if test ! -f "$as_myself"; then
10311 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10312 { (exit 1); exit 1; }
10315 # Work around bugs in pre-3.0 UWIN ksh.
10316 for as_var in ENV MAIL MAILPATH
10317 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10318 done
10319 PS1='$ '
10320 PS2='> '
10321 PS4='+ '
10323 # NLS nuisances.
10324 for as_var in \
10325 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10326 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10327 LC_TELEPHONE LC_TIME
10329 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10330 eval $as_var=C; export $as_var
10331 else
10332 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10334 done
10336 # Required to use basename.
10337 if expr a : '\(a\)' >/dev/null 2>&1 &&
10338 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10339 as_expr=expr
10340 else
10341 as_expr=false
10344 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10345 as_basename=basename
10346 else
10347 as_basename=false
10351 # Name of the executable.
10352 as_me=`$as_basename -- "$0" ||
10353 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10354 X"$0" : 'X\(//\)$' \| \
10355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10356 echo X/"$0" |
10357 sed '/^.*\/\([^/][^/]*\)\/*$/{
10358 s//\1/
10361 /^X\/\(\/\/\)$/{
10362 s//\1/
10365 /^X\/\(\/\).*/{
10366 s//\1/
10369 s/.*/./; q'`
10371 # CDPATH.
10372 $as_unset CDPATH
10376 as_lineno_1=$LINENO
10377 as_lineno_2=$LINENO
10378 test "x$as_lineno_1" != "x$as_lineno_2" &&
10379 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10381 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10382 # uniformly replaced by the line number. The first 'sed' inserts a
10383 # line-number line after each line using $LINENO; the second 'sed'
10384 # does the real work. The second script uses 'N' to pair each
10385 # line-number line with the line containing $LINENO, and appends
10386 # trailing '-' during substitution so that $LINENO is not a special
10387 # case at line end.
10388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10389 # scripts with optimization help from Paolo Bonzini. Blame Lee
10390 # E. McMahon (1931-1989) for sed's syntax. :-)
10391 sed -n '
10393 /[$]LINENO/=
10394 ' <$as_myself |
10395 sed '
10396 s/[$]LINENO.*/&-/
10397 t lineno
10399 :lineno
10401 :loop
10402 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10403 t loop
10404 s/-\n.*//
10405 ' >$as_me.lineno &&
10406 chmod +x "$as_me.lineno" ||
10407 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10408 { (exit 1); exit 1; }; }
10410 # Don't try to exec as it changes $[0], causing all sort of problems
10411 # (the dirname of $[0] is not the place where we might find the
10412 # original and so on. Autoconf is especially sensitive to this).
10413 . "./$as_me.lineno"
10414 # Exit status is that of the last command.
10415 exit
10419 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10420 as_dirname=dirname
10421 else
10422 as_dirname=false
10425 ECHO_C= ECHO_N= ECHO_T=
10426 case `echo -n x` in
10427 -n*)
10428 case `echo 'x\c'` in
10429 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10430 *) ECHO_C='\c';;
10431 esac;;
10433 ECHO_N='-n';;
10434 esac
10436 if expr a : '\(a\)' >/dev/null 2>&1 &&
10437 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10438 as_expr=expr
10439 else
10440 as_expr=false
10443 rm -f conf$$ conf$$.exe conf$$.file
10444 if test -d conf$$.dir; then
10445 rm -f conf$$.dir/conf$$.file
10446 else
10447 rm -f conf$$.dir
10448 mkdir conf$$.dir
10450 echo >conf$$.file
10451 if ln -s conf$$.file conf$$ 2>/dev/null; then
10452 as_ln_s='ln -s'
10453 # ... but there are two gotchas:
10454 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10455 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10456 # In both cases, we have to default to `cp -p'.
10457 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10458 as_ln_s='cp -p'
10459 elif ln conf$$.file conf$$ 2>/dev/null; then
10460 as_ln_s=ln
10461 else
10462 as_ln_s='cp -p'
10464 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10465 rmdir conf$$.dir 2>/dev/null
10467 if mkdir -p . 2>/dev/null; then
10468 as_mkdir_p=:
10469 else
10470 test -d ./-p && rmdir ./-p
10471 as_mkdir_p=false
10474 if test -x / >/dev/null 2>&1; then
10475 as_test_x='test -x'
10476 else
10477 if ls -dL / >/dev/null 2>&1; then
10478 as_ls_L_option=L
10479 else
10480 as_ls_L_option=
10482 as_test_x='
10483 eval sh -c '\''
10484 if test -d "$1"; then
10485 test -d "$1/.";
10486 else
10487 case $1 in
10488 -*)set "./$1";;
10489 esac;
10490 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10491 ???[sx]*):;;*)false;;esac;fi
10492 '\'' sh
10495 as_executable_p=$as_test_x
10497 # Sed expression to map a string onto a valid CPP name.
10498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10500 # Sed expression to map a string onto a valid variable name.
10501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10504 exec 6>&1
10506 # Save the log message, to keep $[0] and so on meaningful, and to
10507 # report actual input values of CONFIG_FILES etc. instead of their
10508 # values after options handling.
10509 ac_log="
10510 This file was extended by $as_me, which was
10511 generated by GNU Autoconf 2.61. Invocation command line was
10513 CONFIG_FILES = $CONFIG_FILES
10514 CONFIG_HEADERS = $CONFIG_HEADERS
10515 CONFIG_LINKS = $CONFIG_LINKS
10516 CONFIG_COMMANDS = $CONFIG_COMMANDS
10517 $ $0 $@
10519 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10522 _ACEOF
10524 cat >>$CONFIG_STATUS <<_ACEOF
10525 # Files that config.status was made for.
10526 config_files="$ac_config_files"
10527 config_headers="$ac_config_headers"
10529 _ACEOF
10531 cat >>$CONFIG_STATUS <<\_ACEOF
10532 ac_cs_usage="\
10533 \`$as_me' instantiates files from templates according to the
10534 current configuration.
10536 Usage: $0 [OPTIONS] [FILE]...
10538 -h, --help print this help, then exit
10539 -V, --version print version number and configuration settings, then exit
10540 -q, --quiet do not print progress messages
10541 -d, --debug don't remove temporary files
10542 --recheck update $as_me by reconfiguring in the same conditions
10543 --file=FILE[:TEMPLATE]
10544 instantiate the configuration file FILE
10545 --header=FILE[:TEMPLATE]
10546 instantiate the configuration header FILE
10548 Configuration files:
10549 $config_files
10551 Configuration headers:
10552 $config_headers
10554 Report bugs to <bug-autoconf@gnu.org>."
10556 _ACEOF
10557 cat >>$CONFIG_STATUS <<_ACEOF
10558 ac_cs_version="\\
10559 config.status
10560 configured by $0, generated by GNU Autoconf 2.61,
10561 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10563 Copyright (C) 2006 Free Software Foundation, Inc.
10564 This config.status script is free software; the Free Software Foundation
10565 gives unlimited permission to copy, distribute and modify it."
10567 ac_pwd='$ac_pwd'
10568 srcdir='$srcdir'
10569 _ACEOF
10571 cat >>$CONFIG_STATUS <<\_ACEOF
10572 # If no file are specified by the user, then we need to provide default
10573 # value. By we need to know if files were specified by the user.
10574 ac_need_defaults=:
10575 while test $# != 0
10577 case $1 in
10578 --*=*)
10579 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10580 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10581 ac_shift=:
10584 ac_option=$1
10585 ac_optarg=$2
10586 ac_shift=shift
10588 esac
10590 case $ac_option in
10591 # Handling of the options.
10592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10593 ac_cs_recheck=: ;;
10594 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10595 echo "$ac_cs_version"; exit ;;
10596 --debug | --debu | --deb | --de | --d | -d )
10597 debug=: ;;
10598 --file | --fil | --fi | --f )
10599 $ac_shift
10600 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10601 ac_need_defaults=false;;
10602 --header | --heade | --head | --hea )
10603 $ac_shift
10604 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10605 ac_need_defaults=false;;
10606 --he | --h)
10607 # Conflict between --help and --header
10608 { echo "$as_me: error: ambiguous option: $1
10609 Try \`$0 --help' for more information." >&2
10610 { (exit 1); exit 1; }; };;
10611 --help | --hel | -h )
10612 echo "$ac_cs_usage"; exit ;;
10613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10614 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10615 ac_cs_silent=: ;;
10617 # This is an error.
10618 -*) { echo "$as_me: error: unrecognized option: $1
10619 Try \`$0 --help' for more information." >&2
10620 { (exit 1); exit 1; }; } ;;
10622 *) ac_config_targets="$ac_config_targets $1"
10623 ac_need_defaults=false ;;
10625 esac
10626 shift
10627 done
10629 ac_configure_extra_args=
10631 if $ac_cs_silent; then
10632 exec 6>/dev/null
10633 ac_configure_extra_args="$ac_configure_extra_args --silent"
10636 _ACEOF
10637 cat >>$CONFIG_STATUS <<_ACEOF
10638 if \$ac_cs_recheck; then
10639 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10640 CONFIG_SHELL=$SHELL
10641 export CONFIG_SHELL
10642 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10645 _ACEOF
10646 cat >>$CONFIG_STATUS <<\_ACEOF
10647 exec 5>>config.log
10649 echo
10650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10651 ## Running $as_me. ##
10652 _ASBOX
10653 echo "$ac_log"
10654 } >&5
10656 _ACEOF
10657 cat >>$CONFIG_STATUS <<_ACEOF
10658 _ACEOF
10660 cat >>$CONFIG_STATUS <<\_ACEOF
10662 # Handling of arguments.
10663 for ac_config_target in $ac_config_targets
10665 case $ac_config_target in
10666 "src/System/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10667 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
10668 "src/makefile") CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10669 "src/System/tm_configure.hpp") CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10670 "misc/admin/admin.makefile") CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10671 "misc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10672 "misc/man/texmacs.1") CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10673 "misc/rpm/TeXmacs.spec") CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10674 "misc/scripts/fig2ps") CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10675 "misc/scripts/texmacs") CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10676 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10677 "misc/bundle/Base.xcconfig") CONFIG_FILES="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10679 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10680 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10681 { (exit 1); exit 1; }; };;
10682 esac
10683 done
10686 # If the user did not use the arguments to specify the items to instantiate,
10687 # then the envvar interface is used. Set only those that are not.
10688 # We use the long form for the default assignment because of an extremely
10689 # bizarre bug on SunOS 4.1.3.
10690 if $ac_need_defaults; then
10691 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10692 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10695 # Have a temporary directory for convenience. Make it in the build tree
10696 # simply because there is no reason against having it here, and in addition,
10697 # creating and moving files from /tmp can sometimes cause problems.
10698 # Hook for its removal unless debugging.
10699 # Note that there is a small window in which the directory will not be cleaned:
10700 # after its creation but before its name has been assigned to `$tmp'.
10701 $debug ||
10703 tmp=
10704 trap 'exit_status=$?
10705 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10707 trap '{ (exit 1); exit 1; }' 1 2 13 15
10709 # Create a (secure) tmp directory for tmp files.
10712 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10713 test -n "$tmp" && test -d "$tmp"
10714 } ||
10716 tmp=./conf$$-$RANDOM
10717 (umask 077 && mkdir "$tmp")
10718 } ||
10720 echo "$me: cannot create a temporary directory in ." >&2
10721 { (exit 1); exit 1; }
10725 # Set up the sed scripts for CONFIG_FILES section.
10728 # No need to generate the scripts if there are no CONFIG_FILES.
10729 # This happens for instance when ./config.status config.h
10730 if test -n "$CONFIG_FILES"; then
10732 _ACEOF
10736 ac_delim='%!_!# '
10737 for ac_last_try in false false false false false :; do
10738 cat >conf$$subs.sed <<_ACEOF
10739 SHELL!$SHELL$ac_delim
10740 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10741 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10742 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10743 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10744 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10745 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10746 exec_prefix!$exec_prefix$ac_delim
10747 prefix!$prefix$ac_delim
10748 program_transform_name!$program_transform_name$ac_delim
10749 bindir!$bindir$ac_delim
10750 sbindir!$sbindir$ac_delim
10751 libexecdir!$libexecdir$ac_delim
10752 datarootdir!$datarootdir$ac_delim
10753 datadir!$datadir$ac_delim
10754 sysconfdir!$sysconfdir$ac_delim
10755 sharedstatedir!$sharedstatedir$ac_delim
10756 localstatedir!$localstatedir$ac_delim
10757 includedir!$includedir$ac_delim
10758 oldincludedir!$oldincludedir$ac_delim
10759 docdir!$docdir$ac_delim
10760 infodir!$infodir$ac_delim
10761 htmldir!$htmldir$ac_delim
10762 dvidir!$dvidir$ac_delim
10763 pdfdir!$pdfdir$ac_delim
10764 psdir!$psdir$ac_delim
10765 libdir!$libdir$ac_delim
10766 localedir!$localedir$ac_delim
10767 mandir!$mandir$ac_delim
10768 DEFS!$DEFS$ac_delim
10769 ECHO_C!$ECHO_C$ac_delim
10770 ECHO_N!$ECHO_N$ac_delim
10771 ECHO_T!$ECHO_T$ac_delim
10772 LIBS!$LIBS$ac_delim
10773 build_alias!$build_alias$ac_delim
10774 host_alias!$host_alias$ac_delim
10775 target_alias!$target_alias$ac_delim
10776 build!$build$ac_delim
10777 build_cpu!$build_cpu$ac_delim
10778 build_vendor!$build_vendor$ac_delim
10779 build_os!$build_os$ac_delim
10780 host!$host$ac_delim
10781 host_cpu!$host_cpu$ac_delim
10782 host_vendor!$host_vendor$ac_delim
10783 host_os!$host_os$ac_delim
10784 PACKAGE!$PACKAGE$ac_delim
10785 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10786 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10787 STABLE_VERSION!$STABLE_VERSION$ac_delim
10788 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10789 CC!$CC$ac_delim
10790 CFLAGS!$CFLAGS$ac_delim
10791 LDFLAGS!$LDFLAGS$ac_delim
10792 CPPFLAGS!$CPPFLAGS$ac_delim
10793 ac_ct_CC!$ac_ct_CC$ac_delim
10794 EXEEXT!$EXEEXT$ac_delim
10795 OBJEXT!$OBJEXT$ac_delim
10796 CXX!$CXX$ac_delim
10797 CXXFLAGS!$CXXFLAGS$ac_delim
10798 ac_ct_CXX!$ac_ct_CXX$ac_delim
10799 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10800 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10801 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10802 CXXCPP!$CXXCPP$ac_delim
10803 GREP!$GREP$ac_delim
10804 EGREP!$EGREP$ac_delim
10805 XMKMF!$XMKMF$ac_delim
10806 X_CFLAGS!$X_CFLAGS$ac_delim
10807 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10808 X_LIBS!$X_LIBS$ac_delim
10809 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10810 CONFIG_BDL!$CONFIG_BDL$ac_delim
10811 CPP!$CPP$ac_delim
10812 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10813 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10814 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10815 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10816 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10817 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10818 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10819 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10820 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10821 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10822 HAS_GS_EXE!$HAS_GS_EXE$ac_delim
10823 HAS_GS_LIB!$HAS_GS_LIB$ac_delim
10824 CONFIG_GS!$CONFIG_GS$ac_delim
10825 GS_EXE!$GS_EXE$ac_delim
10826 GS_DLL!$GS_DLL$ac_delim
10827 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10828 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10829 QMAKE!$QMAKE$ac_delim
10830 MOC!$MOC$ac_delim
10831 UIC!$UIC$ac_delim
10832 RCC!$RCC$ac_delim
10833 QT_PATH!$QT_PATH$ac_delim
10834 TMPDIR!$TMPDIR$ac_delim
10835 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10836 _ACEOF
10838 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10839 break
10840 elif $ac_last_try; then
10841 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10842 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10843 { (exit 1); exit 1; }; }
10844 else
10845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10847 done
10849 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10850 if test -n "$ac_eof"; then
10851 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10852 ac_eof=`expr $ac_eof + 1`
10855 cat >>$CONFIG_STATUS <<_ACEOF
10856 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10858 _ACEOF
10859 sed '
10860 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10861 s/^/s,@/; s/!/@,|#_!!_#|/
10864 s/'"$ac_delim"'$/,g/; t
10865 s/$/\\/; p
10866 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10867 ' >>$CONFIG_STATUS <conf$$subs.sed
10868 rm -f conf$$subs.sed
10869 cat >>$CONFIG_STATUS <<_ACEOF
10870 CEOF$ac_eof
10871 _ACEOF
10874 ac_delim='%!_!# '
10875 for ac_last_try in false false false false false :; do
10876 cat >conf$$subs.sed <<_ACEOF
10877 QT_DEFINES!$QT_DEFINES$ac_delim
10878 QT_CFLAGS!$QT_CFLAGS$ac_delim
10879 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10880 QT_INCPATH!$QT_INCPATH$ac_delim
10881 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10882 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10883 QT_LFLAGS!$QT_LFLAGS$ac_delim
10884 QT_LIBS!$QT_LIBS$ac_delim
10885 X11_CFLAGS!$X11_CFLAGS$ac_delim
10886 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10887 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10888 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10889 CONFIG_X11!$CONFIG_X11$ac_delim
10890 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10891 CONFIG_QT!$CONFIG_QT$ac_delim
10892 CONFIG_GUI!$CONFIG_GUI$ac_delim
10893 CONFIG_GUI_DEFINE!$CONFIG_GUI_DEFINE$ac_delim
10894 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10895 CONFIG_OS!$CONFIG_OS$ac_delim
10896 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10897 CONFIG_OS_COMPAT!$CONFIG_OS_COMPAT$ac_delim
10898 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10899 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10900 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10901 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10902 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10903 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10904 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10905 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10906 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10907 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10908 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10909 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10910 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10911 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10912 CONFIG_SO!$CONFIG_SO$ac_delim
10913 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10914 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10915 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10916 CONFIG_LDRT!$CONFIG_LDRT$ac_delim
10917 CONFIG_NATIVE_ARCH_TAG!$CONFIG_NATIVE_ARCH_TAG$ac_delim
10918 tmorig!$tmorig$ac_delim
10919 tmdir!$tmdir$ac_delim
10920 tmsrc!$tmsrc$ac_delim
10921 tmbin!$tmbin$ac_delim
10922 tmdata!$tmdata$ac_delim
10923 tmtgz!$tmtgz$ac_delim
10924 tmrpm!$tmrpm$ac_delim
10925 tmstgz!$tmstgz$ac_delim
10926 tmsrpm!$tmsrpm$ac_delim
10927 tmwin!$tmwin$ac_delim
10928 LIBOBJS!$LIBOBJS$ac_delim
10929 LTLIBOBJS!$LTLIBOBJS$ac_delim
10930 _ACEOF
10932 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
10933 break
10934 elif $ac_last_try; then
10935 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10936 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10937 { (exit 1); exit 1; }; }
10938 else
10939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10941 done
10943 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10944 if test -n "$ac_eof"; then
10945 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10946 ac_eof=`expr $ac_eof + 1`
10949 cat >>$CONFIG_STATUS <<_ACEOF
10950 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10952 _ACEOF
10953 sed '
10954 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10955 s/^/s,@/; s/!/@,|#_!!_#|/
10958 s/'"$ac_delim"'$/,g/; t
10959 s/$/\\/; p
10960 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10961 ' >>$CONFIG_STATUS <conf$$subs.sed
10962 rm -f conf$$subs.sed
10963 cat >>$CONFIG_STATUS <<_ACEOF
10964 :end
10965 s/|#_!!_#|//g
10966 CEOF$ac_eof
10967 _ACEOF
10970 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10971 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10972 # trailing colons and then remove the whole line if VPATH becomes empty
10973 # (actually we leave an empty line to preserve line numbers).
10974 if test "x$srcdir" = x.; then
10975 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10976 s/:*\$(srcdir):*/:/
10977 s/:*\${srcdir}:*/:/
10978 s/:*@srcdir@:*/:/
10979 s/^\([^=]*=[ ]*\):*/\1/
10980 s/:*$//
10981 s/^[^=]*=[ ]*$//
10985 cat >>$CONFIG_STATUS <<\_ACEOF
10986 fi # test -n "$CONFIG_FILES"
10989 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10991 case $ac_tag in
10992 :[FHLC]) ac_mode=$ac_tag; continue;;
10993 esac
10994 case $ac_mode$ac_tag in
10995 :[FHL]*:*);;
10996 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10997 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10998 { (exit 1); exit 1; }; };;
10999 :[FH]-) ac_tag=-:-;;
11000 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11001 esac
11002 ac_save_IFS=$IFS
11003 IFS=:
11004 set x $ac_tag
11005 IFS=$ac_save_IFS
11006 shift
11007 ac_file=$1
11008 shift
11010 case $ac_mode in
11011 :L) ac_source=$1;;
11012 :[FH])
11013 ac_file_inputs=
11014 for ac_f
11016 case $ac_f in
11017 -) ac_f="$tmp/stdin";;
11018 *) # Look for the file first in the build tree, then in the source tree
11019 # (if the path is not absolute). The absolute path cannot be DOS-style,
11020 # because $ac_f cannot contain `:'.
11021 test -f "$ac_f" ||
11022 case $ac_f in
11023 [\\/$]*) false;;
11024 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11025 esac ||
11026 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11027 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11028 { (exit 1); exit 1; }; };;
11029 esac
11030 ac_file_inputs="$ac_file_inputs $ac_f"
11031 done
11033 # Let's still pretend it is `configure' which instantiates (i.e., don't
11034 # use $as_me), people would be surprised to read:
11035 # /* config.h. Generated by config.status. */
11036 configure_input="Generated from "`IFS=:
11037 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11038 if test x"$ac_file" != x-; then
11039 configure_input="$ac_file. $configure_input"
11040 { echo "$as_me:$LINENO: creating $ac_file" >&5
11041 echo "$as_me: creating $ac_file" >&6;}
11044 case $ac_tag in
11045 *:-:* | *:-) cat >"$tmp/stdin";;
11046 esac
11048 esac
11050 ac_dir=`$as_dirname -- "$ac_file" ||
11051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11052 X"$ac_file" : 'X\(//\)[^/]' \| \
11053 X"$ac_file" : 'X\(//\)$' \| \
11054 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11055 echo X"$ac_file" |
11056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11057 s//\1/
11060 /^X\(\/\/\)[^/].*/{
11061 s//\1/
11064 /^X\(\/\/\)$/{
11065 s//\1/
11068 /^X\(\/\).*/{
11069 s//\1/
11072 s/.*/./; q'`
11073 { as_dir="$ac_dir"
11074 case $as_dir in #(
11075 -*) as_dir=./$as_dir;;
11076 esac
11077 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11078 as_dirs=
11079 while :; do
11080 case $as_dir in #(
11081 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11082 *) as_qdir=$as_dir;;
11083 esac
11084 as_dirs="'$as_qdir' $as_dirs"
11085 as_dir=`$as_dirname -- "$as_dir" ||
11086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11087 X"$as_dir" : 'X\(//\)[^/]' \| \
11088 X"$as_dir" : 'X\(//\)$' \| \
11089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11090 echo X"$as_dir" |
11091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11092 s//\1/
11095 /^X\(\/\/\)[^/].*/{
11096 s//\1/
11099 /^X\(\/\/\)$/{
11100 s//\1/
11103 /^X\(\/\).*/{
11104 s//\1/
11107 s/.*/./; q'`
11108 test -d "$as_dir" && break
11109 done
11110 test -z "$as_dirs" || eval "mkdir $as_dirs"
11111 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11112 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11113 { (exit 1); exit 1; }; }; }
11114 ac_builddir=.
11116 case "$ac_dir" in
11117 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11119 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11120 # A ".." for each directory in $ac_dir_suffix.
11121 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11122 case $ac_top_builddir_sub in
11123 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11124 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11125 esac ;;
11126 esac
11127 ac_abs_top_builddir=$ac_pwd
11128 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11129 # for backward compatibility:
11130 ac_top_builddir=$ac_top_build_prefix
11132 case $srcdir in
11133 .) # We are building in place.
11134 ac_srcdir=.
11135 ac_top_srcdir=$ac_top_builddir_sub
11136 ac_abs_top_srcdir=$ac_pwd ;;
11137 [\\/]* | ?:[\\/]* ) # Absolute name.
11138 ac_srcdir=$srcdir$ac_dir_suffix;
11139 ac_top_srcdir=$srcdir
11140 ac_abs_top_srcdir=$srcdir ;;
11141 *) # Relative name.
11142 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11143 ac_top_srcdir=$ac_top_build_prefix$srcdir
11144 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11145 esac
11146 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11149 case $ac_mode in
11152 # CONFIG_FILE
11155 _ACEOF
11157 cat >>$CONFIG_STATUS <<\_ACEOF
11158 # If the template does not know about datarootdir, expand it.
11159 # FIXME: This hack should be removed a few years after 2.60.
11160 ac_datarootdir_hack=; ac_datarootdir_seen=
11162 case `sed -n '/datarootdir/ {
11166 /@datadir@/p
11167 /@docdir@/p
11168 /@infodir@/p
11169 /@localedir@/p
11170 /@mandir@/p
11171 ' $ac_file_inputs` in
11172 *datarootdir*) ac_datarootdir_seen=yes;;
11173 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11174 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11175 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11176 _ACEOF
11177 cat >>$CONFIG_STATUS <<_ACEOF
11178 ac_datarootdir_hack='
11179 s&@datadir@&$datadir&g
11180 s&@docdir@&$docdir&g
11181 s&@infodir@&$infodir&g
11182 s&@localedir@&$localedir&g
11183 s&@mandir@&$mandir&g
11184 s&\\\${datarootdir}&$datarootdir&g' ;;
11185 esac
11186 _ACEOF
11188 # Neutralize VPATH when `$srcdir' = `.'.
11189 # Shell code in configure.ac might set extrasub.
11190 # FIXME: do we really want to maintain this feature?
11191 cat >>$CONFIG_STATUS <<_ACEOF
11192 sed "$ac_vpsub
11193 $extrasub
11194 _ACEOF
11195 cat >>$CONFIG_STATUS <<\_ACEOF
11197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11198 s&@configure_input@&$configure_input&;t t
11199 s&@top_builddir@&$ac_top_builddir_sub&;t t
11200 s&@srcdir@&$ac_srcdir&;t t
11201 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11202 s&@top_srcdir@&$ac_top_srcdir&;t t
11203 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11204 s&@builddir@&$ac_builddir&;t t
11205 s&@abs_builddir@&$ac_abs_builddir&;t t
11206 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11207 $ac_datarootdir_hack
11208 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11211 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11213 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11214 which seems to be undefined. Please make sure it is defined." >&5
11215 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11216 which seems to be undefined. Please make sure it is defined." >&2;}
11218 rm -f "$tmp/stdin"
11219 case $ac_file in
11220 -) cat "$tmp/out"; rm -f "$tmp/out";;
11221 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11222 esac
11226 # CONFIG_HEADER
11228 _ACEOF
11230 # Transform confdefs.h into a sed script `conftest.defines', that
11231 # substitutes the proper values into config.h.in to produce config.h.
11232 rm -f conftest.defines conftest.tail
11233 # First, append a space to every undef/define line, to ease matching.
11234 echo 's/$/ /' >conftest.defines
11235 # Then, protect against being on the right side of a sed subst, or in
11236 # an unquoted here document, in config.status. If some macros were
11237 # called several times there might be several #defines for the same
11238 # symbol, which is useless. But do not sort them, since the last
11239 # AC_DEFINE must be honored.
11240 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11241 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11242 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11243 # PARAMS is the parameter list in the macro definition--in most cases, it's
11244 # just an empty string.
11245 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11246 ac_dB='\\)[ (].*,\\1define\\2'
11247 ac_dC=' '
11248 ac_dD=' ,'
11250 uniq confdefs.h |
11251 sed -n '
11252 t rset
11253 :rset
11254 s/^[ ]*#[ ]*define[ ][ ]*//
11255 t ok
11258 s/[\\&,]/\\&/g
11259 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11260 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11261 ' >>conftest.defines
11263 # Remove the space that was appended to ease matching.
11264 # Then replace #undef with comments. This is necessary, for
11265 # example, in the case of _POSIX_SOURCE, which is predefined and required
11266 # on some systems where configure will not decide to define it.
11267 # (The regexp can be short, since the line contains either #define or #undef.)
11268 echo 's/ $//
11269 s,^[ #]*u.*,/* & */,' >>conftest.defines
11271 # Break up conftest.defines:
11272 ac_max_sed_lines=50
11274 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11275 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11276 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11277 # et cetera.
11278 ac_in='$ac_file_inputs'
11279 ac_out='"$tmp/out1"'
11280 ac_nxt='"$tmp/out2"'
11282 while :
11284 # Write a here document:
11285 cat >>$CONFIG_STATUS <<_ACEOF
11286 # First, check the format of the line:
11287 cat >"\$tmp/defines.sed" <<\\CEOF
11288 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11289 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11291 :def
11292 _ACEOF
11293 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11294 echo 'CEOF
11295 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11296 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11297 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11298 grep . conftest.tail >/dev/null || break
11299 rm -f conftest.defines
11300 mv conftest.tail conftest.defines
11301 done
11302 rm -f conftest.defines conftest.tail
11304 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11305 cat >>$CONFIG_STATUS <<\_ACEOF
11306 if test x"$ac_file" != x-; then
11307 echo "/* $configure_input */" >"$tmp/config.h"
11308 cat "$ac_result" >>"$tmp/config.h"
11309 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11310 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11311 echo "$as_me: $ac_file is unchanged" >&6;}
11312 else
11313 rm -f $ac_file
11314 mv "$tmp/config.h" $ac_file
11316 else
11317 echo "/* $configure_input */"
11318 cat "$ac_result"
11320 rm -f "$tmp/out12"
11324 esac
11326 done # for ac_tag
11329 { (exit 0); exit 0; }
11330 _ACEOF
11331 chmod +x $CONFIG_STATUS
11332 ac_clean_files=$ac_clean_files_save
11335 # configure is writing to config.log, and then calls config.status.
11336 # config.status does its own redirection, appending to config.log.
11337 # Unfortunately, on DOS this fails, as config.log is still kept open
11338 # by configure, so config.status won't be able to write to it; its
11339 # output is simply discarded. So we exec the FD to /dev/null,
11340 # effectively closing config.log, so it can be properly (re)opened and
11341 # appended to by config.status. When coming back to configure, we
11342 # need to make the FD available again.
11343 if test "$no_create" != yes; then
11344 ac_cs_success=:
11345 ac_config_status_args=
11346 test "$silent" = yes &&
11347 ac_config_status_args="$ac_config_status_args --quiet"
11348 exec 5>/dev/null
11349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11350 exec 5>>config.log
11351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11352 # would make configure fail if this is the last instruction.
11353 $ac_cs_success || { (exit 1); exit 1; }