Experimental support for native Pdf rendering
[texmacs.git] / src / configure
blob5825fa83ddf0f0bdad7748b354d9efd08a648050
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 CONFIG_PDF
706 QMAKE
710 QT_PATH
711 TMPDIR
712 QT_VERSION_MAJOR
713 QT_DEFINES
714 QT_CFLAGS
715 QT_CXXFLAGS
716 QT_INCPATH
717 QT_CPPFLAGS
718 QT_LDFLAGS
719 QT_LFLAGS
720 QT_LIBS
721 X11_CFLAGS
722 X11_LDFLAGS
723 COCOA_CFLAGS
724 COCOA_LDFLAGS
725 CONFIG_X11
726 CONFIG_COCOA
727 CONFIG_QT
728 CONFIG_GUI
729 CONFIG_GUI_DEFINE
730 CONFIG_CXXDIALECT
731 CONFIG_OS
732 CONFIG_OS_SUFFIX
733 CONFIG_OS_COMPAT
734 CONFIG_CXXWARNING
735 CONFIG_CXXTEMPLATE
736 CONFIG_CXXOPTIMIZE
737 CONFIG_CXXDEBUG
738 CONFIG_BFLAGS
739 CONFIG_BSTATIC
740 CONFIG_BSHARED
741 CONFIG_BPATH
742 CONFIG_WORD_LENGTH
743 CONFIG_WORD_LENGTH_INC
744 CONFIG_WORD_MASK
745 CONFIG_MAX_FAST
746 CONFIG_CXXFLAGS
747 CONFIG_STD_SETENV
748 CONFIG_SO
749 CONFIG_LIB_PATH
750 CONFIG_STRIP
751 CONFIG_CHMOD
752 CONFIG_LDRT
753 CONFIG_NATIVE_ARCH_TAG
754 tmorig
755 tmdir
756 tmsrc
757 tmbin
758 tmdata
759 tmtgz
760 tmrpm
761 tmstgz
762 tmsrpm
763 tmwin
764 LIBOBJS
765 LTLIBOBJS'
766 ac_subst_files=''
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
776 CXXFLAGS
778 CXXCPP
779 XMKMF
781 TMPDIR'
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
830 ac_prev=
831 ac_dashdash=
832 for ac_option
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
850 ac_dashdash=yes ;;
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
869 --config-cache | -C)
870 cache_file=config.cache ;;
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
884 -disable-* | --disable-*)
885 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
888 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
889 { (exit 1); exit 1; }; }
890 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
891 eval enable_$ac_feature=no ;;
893 -docdir | --docdir | --docdi | --doc | --do)
894 ac_prev=docdir ;;
895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 docdir=$ac_optarg ;;
898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 ac_prev=dvidir ;;
900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 dvidir=$ac_optarg ;;
903 -enable-* | --enable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
909 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
910 eval enable_$ac_feature=\$ac_optarg ;;
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
923 with_gas=yes ;;
925 -help | --help | --hel | --he | -h)
926 ac_init_help=long ;;
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 ac_prev=htmldir ;;
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 | --ht=*)
941 htmldir=$ac_optarg ;;
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 ac_prev=infodir ;;
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
955 -libdir | --libdir | --libdi | --libd)
956 ac_prev=libdir ;;
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 libdir=$ac_optarg ;;
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
967 -localedir | --localedir | --localedi | --localed | --locale)
968 ac_prev=localedir ;;
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 ac_prev=mandir ;;
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 mandir=$ac_optarg ;;
984 -nfp | --nfp | --nf)
985 # Obsolete; use --without-fp.
986 with_fp=no ;;
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
990 no_create=yes ;;
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 no_recursion=yes ;;
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 ac_prev=prefix ;;
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 ac_prev=pdfdir ;;
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1046 -psdir | --psdir | --psdi | --psd | --ps)
1047 ac_prev=psdir ;;
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 psdir=$ac_optarg ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 silent=yes ;;
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 ac_prev=sbindir ;;
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 | --sbi=* | --sb=*)
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1064 | --sha | --sh)
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 | --sha=* | --sh=*)
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1073 ac_prev=site ;;
1074 -site=* | --site=* | --sit=*)
1075 site=$ac_optarg ;;
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 ac_prev=srcdir ;;
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 verbose=yes ;;
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1100 -with-* | --with-*)
1101 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid package name: $ac_package" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1107 eval with_$ac_package=\$ac_optarg ;;
1109 -without-* | --without-*)
1110 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid package name: $ac_package" >&2
1114 { (exit 1); exit 1; }; }
1115 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1116 eval with_$ac_package=no ;;
1118 --x)
1119 # Obsolete; use --with-x.
1120 with_x=yes ;;
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1136 -*) { echo "$as_me: error: unrecognized option: $ac_option
1137 Try \`$0 --help' for more information." >&2
1138 { (exit 1); exit 1; }; }
1141 *=*)
1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1146 { (exit 1); exit 1; }; }
1147 eval $ac_envvar=\$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158 esac
1159 done
1161 if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163 { echo "$as_me: error: missing argument to $ac_option" >&2
1164 { (exit 1); exit 1; }; }
1167 # Be sure to have absolute directory names.
1168 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir
1173 eval ac_val=\$$ac_var
1174 case $ac_val in
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 esac
1178 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1179 { (exit 1); exit 1; }; }
1180 done
1182 # There might be people who depend on the old broken behavior: `$host'
1183 # used to hold the argument of --host etc.
1184 # FIXME: To remove some day.
1185 build=$build_alias
1186 host=$host_alias
1187 target=$target_alias
1189 # FIXME: To remove some day.
1190 if test "x$host_alias" != x; then
1191 if test "x$build_alias" = x; then
1192 cross_compiling=maybe
1193 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1194 If a cross compiler is detected then cross compile mode will be used." >&2
1195 elif test "x$build_alias" != "x$host_alias"; then
1196 cross_compiling=yes
1200 ac_tool_prefix=
1201 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203 test "$silent" = yes && exec 6>/dev/null
1206 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di=`ls -di .` &&
1208 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1209 { echo "$as_me: error: Working directory cannot be determined" >&2
1210 { (exit 1); exit 1; }; }
1211 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1212 { echo "$as_me: error: pwd does not report name of working directory" >&2
1213 { (exit 1); exit 1; }; }
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir=`$as_dirname -- "$0" ||
1221 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$0" : 'X\(//\)[^/]' \| \
1223 X"$0" : 'X\(//\)$' \| \
1224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1225 echo X"$0" |
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227 s//\1/
1230 /^X\(\/\/\)[^/].*/{
1231 s//\1/
1234 /^X\(\/\/\)$/{
1235 s//\1/
1238 /^X\(\/\).*/{
1239 s//\1/
1242 s/.*/./; q'`
1243 srcdir=$ac_confdir
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 srcdir=..
1247 else
1248 ac_srcdir_defaulted=no
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1253 { (exit 1); exit 1; }; }
1255 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 ac_abs_confdir=`(
1257 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1258 { (exit 1); exit 1; }; }
1259 pwd)`
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262 srcdir=.
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1267 case $srcdir in
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 esac
1270 for ac_var in $ac_precious_vars; do
1271 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_${ac_var}_value=\$${ac_var}
1273 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 done
1278 # Report the --help message.
1280 if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1283 cat <<_ACEOF
1284 \`configure' configures this package to adapt to many kinds of systems.
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE. See below for descriptions of some of the useful variables.
1291 Defaults for the options are specified in brackets.
1293 Configuration:
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1308 [PREFIX]
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1315 For better control, use the options below.
1317 Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1337 _ACEOF
1339 cat <<\_ACEOF
1341 X features:
1342 --x-includes=DIR X include files are in DIR
1343 --x-libraries=DIR X library files are in DIR
1345 System types:
1346 --build=BUILD configure for building on BUILD [guessed]
1347 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1348 _ACEOF
1351 if test -n "$ac_init_help"; then
1353 cat <<\_ACEOF
1355 Optional Features:
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --disable-fastalloc omit fast allocator for small objects
1359 --enable-experimental support new style rewriting code
1360 --enable-macosx-extensions support new style rewriting code
1361 --enable-pdf-renderer use experimental PDF renderer for pdf export
1362 --enable-qt replace X11 by Qt interface
1363 --enable-cocoa replace X11 by Cocoa interface
1364 --enable-debug=ARG install a debugging enable executable -ggdb
1365 --enable-assert exit on failed assertions in code
1366 --enable-warnings print warning messages during compilation
1367 --enable-optimize=ARG compile with optimizations guessed
1369 Optional Packages:
1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1372 --with-x use the X Window System
1373 --with-iconv=DIR where to find iconv system
1374 --with-freetype=ARG with freetype support ARG=linked
1375 --with-cairo=ARG with cairo support ARG=no
1376 --with-imlib2=ARG with imlib2 support ARG=no
1377 --with-axel=ARG with axel support ARG=no
1378 --with-gs=ARG with ghostscript support ARG=yes
1379 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1381 Some influential environment variables:
1382 CC C compiler command
1383 CFLAGS C compiler flags
1384 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1385 nonstandard directory <lib dir>
1386 LIBS libraries to pass to the linker, e.g. -l<library>
1387 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388 you have headers in a nonstandard directory <include dir>
1389 CXX C++ compiler command
1390 CXXFLAGS C++ compiler flags
1391 CXXCPP C++ preprocessor
1392 XMKMF Path to xmkmf, Makefile generator for X Window System
1393 CPP C preprocessor
1394 TMPDIR A temporary directory with write access [/tmp]
1396 Use these variables to override the choices made by `configure' or to help
1397 it to find libraries and programs with nonstandard names/locations.
1399 _ACEOF
1400 ac_status=$?
1403 if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406 test -d "$ac_dir" || continue
1407 ac_builddir=.
1409 case "$ac_dir" in
1410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1413 # A ".." for each directory in $ac_dir_suffix.
1414 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1415 case $ac_top_builddir_sub in
1416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418 esac ;;
1419 esac
1420 ac_abs_top_builddir=$ac_pwd
1421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1422 # for backward compatibility:
1423 ac_top_builddir=$ac_top_build_prefix
1425 case $srcdir in
1426 .) # We are building in place.
1427 ac_srcdir=.
1428 ac_top_srcdir=$ac_top_builddir_sub
1429 ac_abs_top_srcdir=$ac_pwd ;;
1430 [\\/]* | ?:[\\/]* ) # Absolute name.
1431 ac_srcdir=$srcdir$ac_dir_suffix;
1432 ac_top_srcdir=$srcdir
1433 ac_abs_top_srcdir=$srcdir ;;
1434 *) # Relative name.
1435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1436 ac_top_srcdir=$ac_top_build_prefix$srcdir
1437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 esac
1439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1441 cd "$ac_dir" || { ac_status=$?; continue; }
1442 # Check for guested configure.
1443 if test -f "$ac_srcdir/configure.gnu"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446 elif test -f "$ac_srcdir/configure"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure" --help=recursive
1449 else
1450 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 fi || ac_status=$?
1452 cd "$ac_pwd" || { ac_status=$?; break; }
1453 done
1456 test -n "$ac_init_help" && exit $ac_status
1457 if $ac_init_version; then
1458 cat <<\_ACEOF
1459 configure
1460 generated by GNU Autoconf 2.61
1462 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1463 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1464 This configure script is free software; the Free Software Foundation
1465 gives unlimited permission to copy, distribute and modify it.
1466 _ACEOF
1467 exit
1469 cat >config.log <<_ACEOF
1470 This file contains any messages produced by compilers while
1471 running configure, to aid debugging if configure makes a mistake.
1473 It was created by $as_me, which was
1474 generated by GNU Autoconf 2.61. Invocation command line was
1476 $ $0 $@
1478 _ACEOF
1479 exec 5>>config.log
1481 cat <<_ASUNAME
1482 ## --------- ##
1483 ## Platform. ##
1484 ## --------- ##
1486 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1487 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1488 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1489 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1490 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1492 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1493 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1495 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1496 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1497 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1498 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1499 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1500 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1501 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1503 _ASUNAME
1505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 for as_dir in $PATH
1508 IFS=$as_save_IFS
1509 test -z "$as_dir" && as_dir=.
1510 echo "PATH: $as_dir"
1511 done
1512 IFS=$as_save_IFS
1514 } >&5
1516 cat >&5 <<_ACEOF
1519 ## ----------- ##
1520 ## Core tests. ##
1521 ## ----------- ##
1523 _ACEOF
1526 # Keep a trace of the command line.
1527 # Strip out --no-create and --no-recursion so they do not pile up.
1528 # Strip out --silent because we don't want to record it for future runs.
1529 # Also quote any args containing shell meta-characters.
1530 # Make two passes to allow for proper duplicate-argument suppression.
1531 ac_configure_args=
1532 ac_configure_args0=
1533 ac_configure_args1=
1534 ac_must_keep_next=false
1535 for ac_pass in 1 2
1537 for ac_arg
1539 case $ac_arg in
1540 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1542 | -silent | --silent | --silen | --sile | --sil)
1543 continue ;;
1544 *\'*)
1545 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1546 esac
1547 case $ac_pass in
1548 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1550 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1551 if test $ac_must_keep_next = true; then
1552 ac_must_keep_next=false # Got value, back to normal.
1553 else
1554 case $ac_arg in
1555 *=* | --config-cache | -C | -disable-* | --disable-* \
1556 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1557 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1558 | -with-* | --with-* | -without-* | --without-* | --x)
1559 case "$ac_configure_args0 " in
1560 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1561 esac
1563 -* ) ac_must_keep_next=true ;;
1564 esac
1566 ac_configure_args="$ac_configure_args '$ac_arg'"
1568 esac
1569 done
1570 done
1571 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1572 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1574 # When interrupted or exit'd, cleanup temporary files, and complete
1575 # config.log. We remove comments because anyway the quotes in there
1576 # would cause problems or look ugly.
1577 # WARNING: Use '\'' to represent an apostrophe within the trap.
1578 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1579 trap 'exit_status=$?
1580 # Save into config.log some information that might help in debugging.
1582 echo
1584 cat <<\_ASBOX
1585 ## ---------------- ##
1586 ## Cache variables. ##
1587 ## ---------------- ##
1588 _ASBOX
1589 echo
1590 # The following way of writing the cache mishandles newlines in values,
1592 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1593 eval ac_val=\$$ac_var
1594 case $ac_val in #(
1595 *${as_nl}*)
1596 case $ac_var in #(
1597 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1598 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1599 esac
1600 case $ac_var in #(
1601 _ | IFS | as_nl) ;; #(
1602 *) $as_unset $ac_var ;;
1603 esac ;;
1604 esac
1605 done
1606 (set) 2>&1 |
1607 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1608 *${as_nl}ac_space=\ *)
1609 sed -n \
1610 "s/'\''/'\''\\\\'\'''\''/g;
1611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1612 ;; #(
1614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1616 esac |
1617 sort
1619 echo
1621 cat <<\_ASBOX
1622 ## ----------------- ##
1623 ## Output variables. ##
1624 ## ----------------- ##
1625 _ASBOX
1626 echo
1627 for ac_var in $ac_subst_vars
1629 eval ac_val=\$$ac_var
1630 case $ac_val in
1631 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 esac
1633 echo "$ac_var='\''$ac_val'\''"
1634 done | sort
1635 echo
1637 if test -n "$ac_subst_files"; then
1638 cat <<\_ASBOX
1639 ## ------------------- ##
1640 ## File substitutions. ##
1641 ## ------------------- ##
1642 _ASBOX
1643 echo
1644 for ac_var in $ac_subst_files
1646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 echo "$ac_var='\''$ac_val'\''"
1651 done | sort
1652 echo
1655 if test -s confdefs.h; then
1656 cat <<\_ASBOX
1657 ## ----------- ##
1658 ## confdefs.h. ##
1659 ## ----------- ##
1660 _ASBOX
1661 echo
1662 cat confdefs.h
1663 echo
1665 test "$ac_signal" != 0 &&
1666 echo "$as_me: caught signal $ac_signal"
1667 echo "$as_me: exit $exit_status"
1668 } >&5
1669 rm -f core *.core core.conftest.* &&
1670 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1671 exit $exit_status
1673 for ac_signal in 1 2 13 15; do
1674 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1675 done
1676 ac_signal=0
1678 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1679 rm -f -r conftest* confdefs.h
1681 # Predefined preprocessor variables.
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_NAME "$PACKAGE_NAME"
1685 _ACEOF
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1690 _ACEOF
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1695 _ACEOF
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_STRING "$PACKAGE_STRING"
1700 _ACEOF
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1705 _ACEOF
1708 # Let the site file select an alternate cache file if it wants to.
1709 # Prefer explicitly selected file to automatically selected ones.
1710 if test -n "$CONFIG_SITE"; then
1711 set x "$CONFIG_SITE"
1712 elif test "x$prefix" != xNONE; then
1713 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1714 else
1715 set x "$ac_default_prefix/share/config.site" \
1716 "$ac_default_prefix/etc/config.site"
1718 shift
1719 for ac_site_file
1721 if test -r "$ac_site_file"; then
1722 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1723 echo "$as_me: loading site script $ac_site_file" >&6;}
1724 sed 's/^/| /' "$ac_site_file" >&5
1725 . "$ac_site_file"
1727 done
1729 if test -r "$cache_file"; then
1730 # Some versions of bash will fail to source /dev/null (special
1731 # files actually), so we avoid doing that.
1732 if test -f "$cache_file"; then
1733 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1734 echo "$as_me: loading cache $cache_file" >&6;}
1735 case $cache_file in
1736 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1737 *) . "./$cache_file";;
1738 esac
1740 else
1741 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1742 echo "$as_me: creating cache $cache_file" >&6;}
1743 >$cache_file
1746 # Check that the precious variables saved in the cache have kept the same
1747 # value.
1748 ac_cache_corrupted=false
1749 for ac_var in $ac_precious_vars; do
1750 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1751 eval ac_new_set=\$ac_env_${ac_var}_set
1752 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1753 eval ac_new_val=\$ac_env_${ac_var}_value
1754 case $ac_old_set,$ac_new_set in
1755 set,)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1757 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,set)
1760 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1761 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1763 ,);;
1765 if test "x$ac_old_val" != "x$ac_new_val"; then
1766 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1767 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1768 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1769 echo "$as_me: former value: $ac_old_val" >&2;}
1770 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1771 echo "$as_me: current value: $ac_new_val" >&2;}
1772 ac_cache_corrupted=:
1773 fi;;
1774 esac
1775 # Pass precious variables to config.status.
1776 if test "$ac_new_set" = set; then
1777 case $ac_new_val in
1778 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 *) ac_arg=$ac_var=$ac_new_val ;;
1780 esac
1781 case " $ac_configure_args " in
1782 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1783 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1784 esac
1786 done
1787 if $ac_cache_corrupted; then
1788 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1789 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1790 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1791 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1792 { (exit 1); exit 1; }; }
1811 ac_ext=c
1812 ac_cpp='$CPP $CPPFLAGS'
1813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1820 ac_aux_dir=
1821 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1822 if test -f "$ac_dir/install-sh"; then
1823 ac_aux_dir=$ac_dir
1824 ac_install_sh="$ac_aux_dir/install-sh -c"
1825 break
1826 elif test -f "$ac_dir/install.sh"; then
1827 ac_aux_dir=$ac_dir
1828 ac_install_sh="$ac_aux_dir/install.sh -c"
1829 break
1830 elif test -f "$ac_dir/shtool"; then
1831 ac_aux_dir=$ac_dir
1832 ac_install_sh="$ac_aux_dir/shtool install -c"
1833 break
1835 done
1836 if test -z "$ac_aux_dir"; then
1837 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1838 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1839 { (exit 1); exit 1; }; }
1842 # These three variables are undocumented and unsupported,
1843 # and are intended to be withdrawn in a future Autoconf release.
1844 # They can cause serious problems if a builder's source tree is in a directory
1845 # whose full name contains unusual characters.
1846 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1847 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1848 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1851 # Make sure we can run config.sub.
1852 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1853 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1854 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1855 { (exit 1); exit 1; }; }
1857 { echo "$as_me:$LINENO: checking build system type" >&5
1858 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1859 if test "${ac_cv_build+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862 ac_build_alias=$build_alias
1863 test "x$ac_build_alias" = x &&
1864 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1865 test "x$ac_build_alias" = x &&
1866 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1867 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1868 { (exit 1); exit 1; }; }
1869 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1870 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1871 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1872 { (exit 1); exit 1; }; }
1875 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1876 echo "${ECHO_T}$ac_cv_build" >&6; }
1877 case $ac_cv_build in
1878 *-*-*) ;;
1879 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1880 echo "$as_me: error: invalid value of canonical build" >&2;}
1881 { (exit 1); exit 1; }; };;
1882 esac
1883 build=$ac_cv_build
1884 ac_save_IFS=$IFS; IFS='-'
1885 set x $ac_cv_build
1886 shift
1887 build_cpu=$1
1888 build_vendor=$2
1889 shift; shift
1890 # Remember, the first character of IFS is used to create $*,
1891 # except with old shells:
1892 build_os=$*
1893 IFS=$ac_save_IFS
1894 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1897 { echo "$as_me:$LINENO: checking host system type" >&5
1898 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1899 if test "${ac_cv_host+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 if test "x$host_alias" = x; then
1903 ac_cv_host=$ac_cv_build
1904 else
1905 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1906 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1907 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1908 { (exit 1); exit 1; }; }
1912 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1913 echo "${ECHO_T}$ac_cv_host" >&6; }
1914 case $ac_cv_host in
1915 *-*-*) ;;
1916 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1917 echo "$as_me: error: invalid value of canonical host" >&2;}
1918 { (exit 1); exit 1; }; };;
1919 esac
1920 host=$ac_cv_host
1921 ac_save_IFS=$IFS; IFS='-'
1922 set x $ac_cv_host
1923 shift
1924 host_cpu=$1
1925 host_vendor=$2
1926 shift; shift
1927 # Remember, the first character of IFS is used to create $*,
1928 # except with old shells:
1929 host_os=$*
1930 IFS=$ac_save_IFS
1931 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1935 PACKAGE="TeXmacs"
1936 DEVEL_VERSION="1.0.7.4"
1937 DEVEL_RELEASE="1"
1938 STABLE_VERSION="1.0.7"
1939 STABLE_RELEASE="1"
1940 WINDOWS_VERSION="1.0.5"
1941 WINDOWS_RELEASE="1"
1948 #--------------------------------------------------------------------
1949 # Checks for C++ compiler
1950 #--------------------------------------------------------------------
1952 ac_ext=c
1953 ac_cpp='$CPP $CPPFLAGS'
1954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957 if test -n "$ac_tool_prefix"; then
1958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1959 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 else
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1975 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 break 2
1979 done
1980 done
1981 IFS=$as_save_IFS
1985 CC=$ac_cv_prog_CC
1986 if test -n "$CC"; then
1987 { echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6; }
1989 else
1990 { echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6; }
1996 if test -z "$ac_cv_prog_CC"; then
1997 ac_ct_CC=$CC
1998 # Extract the first word of "gcc", so it can be a program name with args.
1999 set dummy gcc; ac_word=$2
2000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 if test -n "$ac_ct_CC"; then
2006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2015 ac_cv_prog_ac_ct_CC="gcc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2019 done
2020 done
2021 IFS=$as_save_IFS
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6; }
2029 else
2030 { echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6; }
2034 if test "x$ac_ct_CC" = x; then
2035 CC=""
2036 else
2037 case $cross_compiling:$ac_tool_warned in
2038 yes:)
2039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet. If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&5
2042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2043 whose name does not start with the host triplet. If you think this
2044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2045 ac_tool_warned=yes ;;
2046 esac
2047 CC=$ac_ct_CC
2049 else
2050 CC="$ac_cv_prog_CC"
2053 if test -z "$CC"; then
2054 if test -n "$ac_tool_prefix"; then
2055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2056 set dummy ${ac_tool_prefix}cc; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_prog_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062 if test -n "$CC"; then
2063 ac_cv_prog_CC="$CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_CC="${ac_tool_prefix}cc"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 break 2
2076 done
2077 done
2078 IFS=$as_save_IFS
2082 CC=$ac_cv_prog_CC
2083 if test -n "$CC"; then
2084 { echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6; }
2086 else
2087 { echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6; }
2094 if test -z "$CC"; then
2095 # Extract the first word of "cc", so it can be a program name with args.
2096 set dummy cc; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 else
2105 ac_prog_rejected=no
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2114 ac_prog_rejected=yes
2115 continue
2117 ac_cv_prog_CC="cc"
2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 break 2
2121 done
2122 done
2123 IFS=$as_save_IFS
2125 if test $ac_prog_rejected = yes; then
2126 # We found a bogon in the path, so make sure we never use it.
2127 set dummy $ac_cv_prog_CC
2128 shift
2129 if test $# != 0; then
2130 # We chose a different compiler from the bogus one.
2131 # However, it has the same basename, so the bogon will be chosen
2132 # first if we set CC to just the basename; use the full file name.
2133 shift
2134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2139 CC=$ac_cv_prog_CC
2140 if test -n "$CC"; then
2141 { echo "$as_me:$LINENO: result: $CC" >&5
2142 echo "${ECHO_T}$CC" >&6; }
2143 else
2144 { echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6; }
2150 if test -z "$CC"; then
2151 if test -n "$ac_tool_prefix"; then
2152 for ac_prog in cl.exe
2154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 if test -n "$CC"; then
2162 ac_cv_prog_CC="$CC" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2175 done
2176 done
2177 IFS=$as_save_IFS
2181 CC=$ac_cv_prog_CC
2182 if test -n "$CC"; then
2183 { echo "$as_me:$LINENO: result: $CC" >&5
2184 echo "${ECHO_T}$CC" >&6; }
2185 else
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2191 test -n "$CC" && break
2192 done
2194 if test -z "$CC"; then
2195 ac_ct_CC=$CC
2196 for ac_prog in cl.exe
2198 # Extract the first word of "$ac_prog", so it can be a program name with args.
2199 set dummy $ac_prog; ac_word=$2
2200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_ac_ct_CC="$ac_prog"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2219 done
2220 done
2221 IFS=$as_save_IFS
2225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2226 if test -n "$ac_ct_CC"; then
2227 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2228 echo "${ECHO_T}$ac_ct_CC" >&6; }
2229 else
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2235 test -n "$ac_ct_CC" && break
2236 done
2238 if test "x$ac_ct_CC" = x; then
2239 CC=""
2240 else
2241 case $cross_compiling:$ac_tool_warned in
2242 yes:)
2243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet. If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&5
2246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2247 whose name does not start with the host triplet. If you think this
2248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2249 ac_tool_warned=yes ;;
2250 esac
2251 CC=$ac_ct_CC
2258 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: no acceptable C compiler found in \$PATH
2261 See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2264 # Provide some information about the compiler.
2265 echo "$as_me:$LINENO: checking for C compiler version" >&5
2266 ac_compiler=`set X $ac_compile; echo $2`
2267 { (ac_try="$ac_compiler --version >&5"
2268 case "(($ac_try" in
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2271 esac
2272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273 (eval "$ac_compiler --version >&5") 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2277 { (ac_try="$ac_compiler -v >&5"
2278 case "(($ac_try" in
2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2281 esac
2282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2283 (eval "$ac_compiler -v >&5") 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }
2287 { (ac_try="$ac_compiler -V >&5"
2288 case "(($ac_try" in
2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2291 esac
2292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293 (eval "$ac_compiler -V >&5") 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }
2298 cat >conftest.$ac_ext <<_ACEOF
2299 /* confdefs.h. */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2306 main ()
2310 return 0;
2312 _ACEOF
2313 ac_clean_files_save=$ac_clean_files
2314 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2315 # Try to create an executable without -o first, disregard a.out.
2316 # It will help us diagnose broken compilers, and finding out an intuition
2317 # of exeext.
2318 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2319 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2320 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2322 # List of possible output files, starting from the most likely.
2323 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2324 # only as a last resort. b.out is created by i960 compilers.
2325 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2327 # The IRIX 6 linker writes into existing files which may not be
2328 # executable, retaining their permissions. Remove them first so a
2329 # subsequent execution test works.
2330 ac_rmfiles=
2331 for ac_file in $ac_files
2333 case $ac_file in
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2335 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2336 esac
2337 done
2338 rm -f $ac_rmfiles
2340 if { (ac_try="$ac_link_default"
2341 case "(($ac_try" in
2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2344 esac
2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346 (eval "$ac_link_default") 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; then
2350 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2351 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2352 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2353 # so that the user can short-circuit this test for compilers unknown to
2354 # Autoconf.
2355 for ac_file in $ac_files ''
2357 test -f "$ac_file" || continue
2358 case $ac_file in
2359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2361 [ab].out )
2362 # We found the default executable, but exeext='' is most
2363 # certainly right.
2364 break;;
2365 *.* )
2366 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2367 then :; else
2368 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2370 # We set ac_cv_exeext here because the later test for it is not
2371 # safe: cross compilers may not add the suffix if given an `-o'
2372 # argument, so we may need to know it at that point already.
2373 # Even if this section looks crufty: it has the advantage of
2374 # actually working.
2375 break;;
2377 break;;
2378 esac
2379 done
2380 test "$ac_cv_exeext" = no && ac_cv_exeext=
2382 else
2383 ac_file=''
2386 { echo "$as_me:$LINENO: result: $ac_file" >&5
2387 echo "${ECHO_T}$ac_file" >&6; }
2388 if test -z "$ac_file"; then
2389 echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2392 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2393 See \`config.log' for more details." >&5
2394 echo "$as_me: error: C compiler cannot create executables
2395 See \`config.log' for more details." >&2;}
2396 { (exit 77); exit 77; }; }
2399 ac_exeext=$ac_cv_exeext
2401 # Check that the compiler produces executables we can run. If not, either
2402 # the compiler is broken, or we cross compile.
2403 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2404 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2405 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2406 # If not cross compiling, check that we can run a simple program.
2407 if test "$cross_compiling" != yes; then
2408 if { ac_try='./$ac_file'
2409 { (case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412 esac
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_try") 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 cross_compiling=no
2419 else
2420 if test "$cross_compiling" = maybe; then
2421 cross_compiling=yes
2422 else
2423 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&5
2426 echo "$as_me: error: cannot run C compiled programs.
2427 If you meant to cross compile, use \`--host'.
2428 See \`config.log' for more details." >&2;}
2429 { (exit 1); exit 1; }; }
2433 { echo "$as_me:$LINENO: result: yes" >&5
2434 echo "${ECHO_T}yes" >&6; }
2436 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2437 ac_clean_files=$ac_clean_files_save
2438 # Check that the compiler produces executables we can run. If not, either
2439 # the compiler is broken, or we cross compile.
2440 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2441 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2442 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2443 echo "${ECHO_T}$cross_compiling" >&6; }
2445 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2446 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2447 if { (ac_try="$ac_link"
2448 case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_link") 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; then
2457 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2458 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2459 # work properly (i.e., refer to `conftest.exe'), while it won't with
2460 # `rm'.
2461 for ac_file in conftest.exe conftest conftest.*; do
2462 test -f "$ac_file" || continue
2463 case $ac_file in
2464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2466 break;;
2467 * ) break;;
2468 esac
2469 done
2470 else
2471 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2472 See \`config.log' for more details." >&5
2473 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2474 See \`config.log' for more details." >&2;}
2475 { (exit 1); exit 1; }; }
2478 rm -f conftest$ac_cv_exeext
2479 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2480 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2482 rm -f conftest.$ac_ext
2483 EXEEXT=$ac_cv_exeext
2484 ac_exeext=$EXEEXT
2485 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2486 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2487 if test "${ac_cv_objext+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 cat >conftest.$ac_ext <<_ACEOF
2491 /* confdefs.h. */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2498 main ()
2502 return 0;
2504 _ACEOF
2505 rm -f conftest.o conftest.obj
2506 if { (ac_try="$ac_compile"
2507 case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_compile") 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; then
2516 for ac_file in conftest.o conftest.obj conftest.*; do
2517 test -f "$ac_file" || continue;
2518 case $ac_file in
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2520 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2521 break;;
2522 esac
2523 done
2524 else
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2528 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&5
2530 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2531 See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
2535 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2537 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2538 echo "${ECHO_T}$ac_cv_objext" >&6; }
2539 OBJEXT=$ac_cv_objext
2540 ac_objext=$OBJEXT
2541 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2542 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2543 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2554 main ()
2556 #ifndef __GNUC__
2557 choke me
2558 #endif
2561 return 0;
2563 _ACEOF
2564 rm -f conftest.$ac_objext
2565 if { (ac_try="$ac_compile"
2566 case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569 esac
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compile") 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } && {
2578 test -z "$ac_c_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest.$ac_objext; then
2581 ac_compiler_gnu=yes
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 ac_compiler_gnu=no
2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2593 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2594 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2595 GCC=`test $ac_compiler_gnu = yes && echo yes`
2596 ac_test_CFLAGS=${CFLAGS+set}
2597 ac_save_CFLAGS=$CFLAGS
2598 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2599 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_cc_g+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 ac_save_c_werror_flag=$ac_c_werror_flag
2604 ac_c_werror_flag=yes
2605 ac_cv_prog_cc_g=no
2606 CFLAGS="-g"
2607 cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h. */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2615 main ()
2619 return 0;
2621 _ACEOF
2622 rm -f conftest.$ac_objext
2623 if { (ac_try="$ac_compile"
2624 case "(($ac_try" in
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2627 esac
2628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629 (eval "$ac_compile") 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } && {
2636 test -z "$ac_c_werror_flag" ||
2637 test ! -s conftest.err
2638 } && test -s conftest.$ac_objext; then
2639 ac_cv_prog_cc_g=yes
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2644 CFLAGS=""
2645 cat >conftest.$ac_ext <<_ACEOF
2646 /* confdefs.h. */
2647 _ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2653 main ()
2657 return 0;
2659 _ACEOF
2660 rm -f conftest.$ac_objext
2661 if { (ac_try="$ac_compile"
2662 case "(($ac_try" in
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2665 esac
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_compile") 2>conftest.er1
2668 ac_status=$?
2669 grep -v '^ *+' conftest.er1 >conftest.err
2670 rm -f conftest.er1
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } && {
2674 test -z "$ac_c_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest.$ac_objext; then
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2682 ac_c_werror_flag=$ac_save_c_werror_flag
2683 CFLAGS="-g"
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2692 main ()
2696 return 0;
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (ac_try="$ac_compile"
2701 case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compile") 2>conftest.er1
2707 ac_status=$?
2708 grep -v '^ *+' conftest.er1 >conftest.err
2709 rm -f conftest.er1
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } && {
2713 test -z "$ac_c_werror_flag" ||
2714 test ! -s conftest.err
2715 } && test -s conftest.$ac_objext; then
2716 ac_cv_prog_cc_g=yes
2717 else
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 ac_c_werror_flag=$ac_save_c_werror_flag
2733 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2734 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2735 if test "$ac_test_CFLAGS" = set; then
2736 CFLAGS=$ac_save_CFLAGS
2737 elif test $ac_cv_prog_cc_g = yes; then
2738 if test "$GCC" = yes; then
2739 CFLAGS="-g -O2"
2740 else
2741 CFLAGS="-g"
2743 else
2744 if test "$GCC" = yes; then
2745 CFLAGS="-O2"
2746 else
2747 CFLAGS=
2750 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2751 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2752 if test "${ac_cv_prog_cc_c89+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 ac_cv_prog_cc_c89=no
2756 ac_save_CC=$CC
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h. */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2763 #include <stdarg.h>
2764 #include <stdio.h>
2765 #include <sys/types.h>
2766 #include <sys/stat.h>
2767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2768 struct buf { int x; };
2769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2770 static char *e (p, i)
2771 char **p;
2772 int i;
2774 return p[i];
2776 static char *f (char * (*g) (char **, int), char **p, ...)
2778 char *s;
2779 va_list v;
2780 va_start (v,p);
2781 s = g (p, va_arg (v,int));
2782 va_end (v);
2783 return s;
2786 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2787 function prototypes and stuff, but not '\xHH' hex character constants.
2788 These don't provoke an error unfortunately, instead are silently treated
2789 as 'x'. The following induces an error, until -std is added to get
2790 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2791 array size at least. It's necessary to write '\x00'==0 to get something
2792 that's true only with -std. */
2793 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2795 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2796 inside strings and character constants. */
2797 #define FOO(x) 'x'
2798 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2800 int test (int i, double x);
2801 struct s1 {int (*f) (int a);};
2802 struct s2 {int (*f) (double a);};
2803 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2804 int argc;
2805 char **argv;
2807 main ()
2809 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2811 return 0;
2813 _ACEOF
2814 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2815 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2817 CC="$ac_save_CC $ac_arg"
2818 rm -f conftest.$ac_objext
2819 if { (ac_try="$ac_compile"
2820 case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_compile") 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } && {
2832 test -z "$ac_c_werror_flag" ||
2833 test ! -s conftest.err
2834 } && test -s conftest.$ac_objext; then
2835 ac_cv_prog_cc_c89=$ac_arg
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2843 rm -f core conftest.err conftest.$ac_objext
2844 test "x$ac_cv_prog_cc_c89" != "xno" && break
2845 done
2846 rm -f conftest.$ac_ext
2847 CC=$ac_save_CC
2850 # AC_CACHE_VAL
2851 case "x$ac_cv_prog_cc_c89" in
2853 { echo "$as_me:$LINENO: result: none needed" >&5
2854 echo "${ECHO_T}none needed" >&6; } ;;
2855 xno)
2856 { echo "$as_me:$LINENO: result: unsupported" >&5
2857 echo "${ECHO_T}unsupported" >&6; } ;;
2859 CC="$CC $ac_cv_prog_cc_c89"
2860 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2862 esac
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 ac_ext=cpp
2872 ac_cpp='$CXXCPP $CPPFLAGS'
2873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2876 if test -z "$CXX"; then
2877 if test -n "$CCC"; then
2878 CXX=$CCC
2879 else
2880 if test -n "$ac_tool_prefix"; then
2881 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_CXX+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 if test -n "$CXX"; then
2891 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2904 done
2905 done
2906 IFS=$as_save_IFS
2910 CXX=$ac_cv_prog_CXX
2911 if test -n "$CXX"; then
2912 { echo "$as_me:$LINENO: result: $CXX" >&5
2913 echo "${ECHO_T}$CXX" >&6; }
2914 else
2915 { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2920 test -n "$CXX" && break
2921 done
2923 if test -z "$CXX"; then
2924 ac_ct_CXX=$CXX
2925 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2927 # Extract the first word of "$ac_prog", so it can be a program name with args.
2928 set dummy $ac_prog; ac_word=$2
2929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2931 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 if test -n "$ac_ct_CXX"; then
2935 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_ac_ct_CXX="$ac_prog"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2948 done
2949 done
2950 IFS=$as_save_IFS
2954 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2955 if test -n "$ac_ct_CXX"; then
2956 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2957 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2958 else
2959 { echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6; }
2964 test -n "$ac_ct_CXX" && break
2965 done
2967 if test "x$ac_ct_CXX" = x; then
2968 CXX="g++"
2969 else
2970 case $cross_compiling:$ac_tool_warned in
2971 yes:)
2972 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2973 whose name does not start with the host triplet. If you think this
2974 configuration is useful to you, please write to autoconf@gnu.org." >&5
2975 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2976 whose name does not start with the host triplet. If you think this
2977 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2978 ac_tool_warned=yes ;;
2979 esac
2980 CXX=$ac_ct_CXX
2986 # Provide some information about the compiler.
2987 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2988 ac_compiler=`set X $ac_compile; echo $2`
2989 { (ac_try="$ac_compiler --version >&5"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compiler --version >&5") 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }
2999 { (ac_try="$ac_compiler -v >&5"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compiler -v >&5") 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (ac_try="$ac_compiler -V >&5"
3010 case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compiler -V >&5") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3020 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025 cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h. */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3033 main ()
3035 #ifndef __GNUC__
3036 choke me
3037 #endif
3040 return 0;
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3051 ac_status=$?
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_cxx_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.$ac_objext; then
3060 ac_compiler_gnu=yes
3061 else
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 ac_compiler_gnu=no
3068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3069 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3072 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3073 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3074 GXX=`test $ac_compiler_gnu = yes && echo yes`
3075 ac_test_CXXFLAGS=${CXXFLAGS+set}
3076 ac_save_CXXFLAGS=$CXXFLAGS
3077 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3078 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3079 if test "${ac_cv_prog_cxx_g+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3083 ac_cxx_werror_flag=yes
3084 ac_cv_prog_cxx_g=no
3085 CXXFLAGS="-g"
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3094 main ()
3098 return 0;
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } && {
3115 test -z "$ac_cxx_werror_flag" ||
3116 test ! -s conftest.err
3117 } && test -s conftest.$ac_objext; then
3118 ac_cv_prog_cxx_g=yes
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 CXXFLAGS=""
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3132 main ()
3136 return 0;
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (ac_try="$ac_compile"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compile") 2>conftest.er1
3147 ac_status=$?
3148 grep -v '^ *+' conftest.er1 >conftest.err
3149 rm -f conftest.er1
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } && {
3153 test -z "$ac_cxx_werror_flag" ||
3154 test ! -s conftest.err
3155 } && test -s conftest.$ac_objext; then
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3162 CXXFLAGS="-g"
3163 cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h. */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3171 main ()
3175 return 0;
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (ac_try="$ac_compile"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_compile") 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } && {
3192 test -z "$ac_cxx_werror_flag" ||
3193 test ! -s conftest.err
3194 } && test -s conftest.$ac_objext; then
3195 ac_cv_prog_cxx_g=yes
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3213 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3214 if test "$ac_test_CXXFLAGS" = set; then
3215 CXXFLAGS=$ac_save_CXXFLAGS
3216 elif test $ac_cv_prog_cxx_g = yes; then
3217 if test "$GXX" = yes; then
3218 CXXFLAGS="-g -O2"
3219 else
3220 CXXFLAGS="-g"
3222 else
3223 if test "$GXX" = yes; then
3224 CXXFLAGS="-O2"
3225 else
3226 CXXFLAGS=
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 ac_ext=cpp
3236 ac_cpp='$CXXCPP $CPPFLAGS'
3237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3243 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3244 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3245 case "$GXX" in
3246 yes )
3247 GCC_VERSION=`$CC -dumpversion`
3248 GXX_VERSION=`$CXX -dumpversion`
3249 { echo "$as_me:$LINENO: result: yes" >&5
3250 echo "${ECHO_T}yes" >&6; }
3251 { echo "$as_me:$LINENO: checking version of gcc" >&5
3252 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3253 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3254 echo "${ECHO_T}$GCC_VERSION" >&6; }
3255 { echo "$as_me:$LINENO: checking version of g++" >&5
3256 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3257 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3258 echo "${ECHO_T}$GXX_VERSION" >&6; }
3259 case "$GXX_VERSION" in
3260 0* | 1* | 2*)
3261 echo "old style GNU compiler"
3262 cat >>confdefs.h <<\_ACEOF
3263 #define OLD_GNU_COMPILER
3264 _ACEOF
3267 esac
3270 GCC_VERSION="none"
3271 GXX_VERSION="none"
3272 { echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6; }
3274 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3275 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3277 esac
3279 #--------------------------------------------------------------------
3280 # Checks for Guile
3281 #--------------------------------------------------------------------
3283 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3285 ## The GUILE_FLAGS macro.
3286 ## First, let's just see if we can find Guile at all.
3287 { echo "$as_me:$LINENO: checking for Guile" >&5
3288 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3289 guile-config link > /dev/null || {
3290 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3291 exit 1
3293 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
3294 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3295 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3296 GUILE_LDFLAGS="`guile-config link`"
3297 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3300 { echo "$as_me:$LINENO: result: yes" >&5
3301 echo "${ECHO_T}yes" >&6; }
3304 { echo "$as_me:$LINENO: checking version of guile" >&5
3305 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3306 if test -z "$GUILE_VERSION" ; then
3307 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3309 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3310 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3312 case "$GUILE_VERSION" in
3313 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3314 CONFIG_GUILE_SERIAL="A"
3316 1.6* | 1.7*)
3317 CONFIG_GUILE_SERIAL="B"
3320 CONFIG_GUILE_SERIAL="C"
3322 esac
3325 #--------------------------------------------------------------------
3326 # Checks for standard functionality
3327 #--------------------------------------------------------------------
3331 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3332 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3333 ac_save_cppflags="$CPPFLAGS"
3334 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <X11/Xlib.h>
3342 #include <X11/Xutil.h>
3344 main ()
3348 return 0;
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (ac_try="$ac_compile"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_compile") 2>conftest.er1
3359 ac_status=$?
3360 grep -v '^ *+' conftest.er1 >conftest.err
3361 rm -f conftest.er1
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } && {
3365 test -z "$ac_cxx_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest.$ac_objext; then
3368 echo yes
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3373 rm -rf X11
3374 mkdir X11
3375 for ac_dir in \
3376 /usr/X11/include \
3377 /usr/X11R6/include \
3378 /usr/X11R5/include \
3379 /usr/X11R4/include \
3381 /usr/include/X11 \
3382 /usr/include/X11R6 \
3383 /usr/include/X11R5 \
3384 /usr/include/X11R4 \
3386 /usr/local/X11/include \
3387 /usr/local/X11R6/include \
3388 /usr/local/X11R5/include \
3389 /usr/local/X11R4/include \
3391 /usr/local/include/X11 \
3392 /usr/local/include/X11R6 \
3393 /usr/local/include/X11R5 \
3394 /usr/local/include/X11R4 \
3396 /usr/X386/include \
3397 /usr/x386/include \
3398 /usr/XFree86/include/X11 \
3400 /usr/include \
3401 /usr/local/include \
3402 /usr/unsupported/include \
3403 /usr/athena/include \
3404 /usr/local/x11r5/include \
3405 /usr/lpp/Xamples/include \
3407 /usr/openwin/include \
3408 /usr/openwin/share/include \
3411 if test -r "$ac_dir/X11/Xlib.h"; then
3412 tm_x_includes=$ac_dir
3413 break
3415 done
3416 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3417 < "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
3418 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3419 < "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
3420 X_CFLAGS="-I.. $X_CFLAGS"
3421 echo "no; fixing"
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 CPPFLAGS="$ac_save_cppflags"
3427 ac_ext=cpp
3428 ac_cpp='$CXXCPP $CPPFLAGS'
3429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3432 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3433 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3434 if test -z "$CXXCPP"; then
3435 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 # Double quotes because CXXCPP needs to be expanded
3439 for CXXCPP in "$CXX -E" "/lib/cpp"
3441 ac_preproc_ok=false
3442 for ac_cxx_preproc_warn_flag in '' yes
3444 # Use a header file that comes with gcc, so configuring glibc
3445 # with a fresh cross-compiler works.
3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 # <limits.h> exists even on freestanding compilers.
3448 # On the NeXT, cc -E runs the code through the compiler's parser,
3449 # not just through cpp. "Syntax error" is here to catch this case.
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 #ifdef __STDC__
3457 # include <limits.h>
3458 #else
3459 # include <assert.h>
3460 #endif
3461 Syntax error
3462 _ACEOF
3463 if { (ac_try="$ac_cpp conftest.$ac_ext"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3470 ac_status=$?
3471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null && {
3476 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3477 test ! -s conftest.err
3478 }; then
3480 else
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 # Broken: fails on valid input.
3485 continue
3488 rm -f conftest.err conftest.$ac_ext
3490 # OK, works on sane cases. Now check whether nonexistent headers
3491 # can be detected and how.
3492 cat >conftest.$ac_ext <<_ACEOF
3493 /* confdefs.h. */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 #include <ac_nonexistent.h>
3499 _ACEOF
3500 if { (ac_try="$ac_cpp conftest.$ac_ext"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3507 ac_status=$?
3508 grep -v '^ *+' conftest.er1 >conftest.err
3509 rm -f conftest.er1
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } >/dev/null && {
3513 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3514 test ! -s conftest.err
3515 }; then
3516 # Broken: success on invalid input.
3517 continue
3518 else
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 # Passes both tests.
3523 ac_preproc_ok=:
3524 break
3527 rm -f conftest.err conftest.$ac_ext
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then
3533 break
3536 done
3537 ac_cv_prog_CXXCPP=$CXXCPP
3540 CXXCPP=$ac_cv_prog_CXXCPP
3541 else
3542 ac_cv_prog_CXXCPP=$CXXCPP
3544 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3545 echo "${ECHO_T}$CXXCPP" >&6; }
3546 ac_preproc_ok=false
3547 for ac_cxx_preproc_warn_flag in '' yes
3549 # Use a header file that comes with gcc, so configuring glibc
3550 # with a fresh cross-compiler works.
3551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552 # <limits.h> exists even on freestanding compilers.
3553 # On the NeXT, cc -E runs the code through the compiler's parser,
3554 # not just through cpp. "Syntax error" is here to catch this case.
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 #ifdef __STDC__
3562 # include <limits.h>
3563 #else
3564 # include <assert.h>
3565 #endif
3566 Syntax error
3567 _ACEOF
3568 if { (ac_try="$ac_cpp conftest.$ac_ext"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } >/dev/null && {
3581 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3582 test ! -s conftest.err
3583 }; then
3585 else
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 # Broken: fails on valid input.
3590 continue
3593 rm -f conftest.err conftest.$ac_ext
3595 # OK, works on sane cases. Now check whether nonexistent headers
3596 # can be detected and how.
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #include <ac_nonexistent.h>
3604 _ACEOF
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev/null && {
3618 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3619 test ! -s conftest.err
3620 }; then
3621 # Broken: success on invalid input.
3622 continue
3623 else
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 # Passes both tests.
3628 ac_preproc_ok=:
3629 break
3632 rm -f conftest.err conftest.$ac_ext
3634 done
3635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636 rm -f conftest.err conftest.$ac_ext
3637 if $ac_preproc_ok; then
3639 else
3640 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3641 See \`config.log' for more details." >&5
3642 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3643 See \`config.log' for more details." >&2;}
3644 { (exit 1); exit 1; }; }
3647 ac_ext=cpp
3648 ac_cpp='$CXXCPP $CPPFLAGS'
3649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3654 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3655 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3656 if test "${ac_cv_path_GREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 # Extract the first word of "grep ggrep" to use in msg output
3660 if test -z "$GREP"; then
3661 set dummy grep ggrep; ac_prog_name=$2
3662 if test "${ac_cv_path_GREP+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 ac_path_GREP_found=false
3666 # Loop through the user's path and test for each of PROGNAME-LIST
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_prog in grep ggrep; do
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3675 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3676 # Check for GNU ac_path_GREP and select it if it is found.
3677 # Check for GNU $ac_path_GREP
3678 case `"$ac_path_GREP" --version 2>&1` in
3679 *GNU*)
3680 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3682 ac_count=0
3683 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3684 while :
3686 cat "conftest.in" "conftest.in" >"conftest.tmp"
3687 mv "conftest.tmp" "conftest.in"
3688 cp "conftest.in" "conftest.nl"
3689 echo 'GREP' >> "conftest.nl"
3690 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3692 ac_count=`expr $ac_count + 1`
3693 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3694 # Best one so far, save it but keep looking for a better one
3695 ac_cv_path_GREP="$ac_path_GREP"
3696 ac_path_GREP_max=$ac_count
3698 # 10*(2^10) chars as input seems more than enough
3699 test $ac_count -gt 10 && break
3700 done
3701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3702 esac
3705 $ac_path_GREP_found && break 3
3706 done
3707 done
3709 done
3710 IFS=$as_save_IFS
3715 GREP="$ac_cv_path_GREP"
3716 if test -z "$GREP"; then
3717 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3718 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3719 { (exit 1); exit 1; }; }
3722 else
3723 ac_cv_path_GREP=$GREP
3728 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3729 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3730 GREP="$ac_cv_path_GREP"
3733 { echo "$as_me:$LINENO: checking for egrep" >&5
3734 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3735 if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3739 then ac_cv_path_EGREP="$GREP -E"
3740 else
3741 # Extract the first word of "egrep" to use in msg output
3742 if test -z "$EGREP"; then
3743 set dummy egrep; ac_prog_name=$2
3744 if test "${ac_cv_path_EGREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 ac_path_EGREP_found=false
3748 # Loop through the user's path and test for each of PROGNAME-LIST
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_prog in egrep; do
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3757 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3758 # Check for GNU ac_path_EGREP and select it if it is found.
3759 # Check for GNU $ac_path_EGREP
3760 case `"$ac_path_EGREP" --version 2>&1` in
3761 *GNU*)
3762 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3764 ac_count=0
3765 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3766 while :
3768 cat "conftest.in" "conftest.in" >"conftest.tmp"
3769 mv "conftest.tmp" "conftest.in"
3770 cp "conftest.in" "conftest.nl"
3771 echo 'EGREP' >> "conftest.nl"
3772 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3774 ac_count=`expr $ac_count + 1`
3775 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3776 # Best one so far, save it but keep looking for a better one
3777 ac_cv_path_EGREP="$ac_path_EGREP"
3778 ac_path_EGREP_max=$ac_count
3780 # 10*(2^10) chars as input seems more than enough
3781 test $ac_count -gt 10 && break
3782 done
3783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3784 esac
3787 $ac_path_EGREP_found && break 3
3788 done
3789 done
3791 done
3792 IFS=$as_save_IFS
3797 EGREP="$ac_cv_path_EGREP"
3798 if test -z "$EGREP"; then
3799 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3800 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3801 { (exit 1); exit 1; }; }
3804 else
3805 ac_cv_path_EGREP=$EGREP
3811 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3812 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3813 EGREP="$ac_cv_path_EGREP"
3816 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3818 if test "${ac_cv_header_stdc+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 #include <stdlib.h>
3828 #include <stdarg.h>
3829 #include <string.h>
3830 #include <float.h>
3833 main ()
3837 return 0;
3839 _ACEOF
3840 rm -f conftest.$ac_objext
3841 if { (ac_try="$ac_compile"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_compile") 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && {
3854 test -z "$ac_cxx_werror_flag" ||
3855 test ! -s conftest.err
3856 } && test -s conftest.$ac_objext; then
3857 ac_cv_header_stdc=yes
3858 else
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 ac_cv_header_stdc=no
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 if test $ac_cv_header_stdc = yes; then
3868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 #include <string.h>
3877 _ACEOF
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879 $EGREP "memchr" >/dev/null 2>&1; then
3881 else
3882 ac_cv_header_stdc=no
3884 rm -f -r conftest*
3888 if test $ac_cv_header_stdc = yes; then
3889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 #include <stdlib.h>
3898 _ACEOF
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 $EGREP "free" >/dev/null 2>&1; then
3902 else
3903 ac_cv_header_stdc=no
3905 rm -f -r conftest*
3909 if test $ac_cv_header_stdc = yes; then
3910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3911 if test "$cross_compiling" = yes; then
3913 else
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 #include <ctype.h>
3921 #include <stdlib.h>
3922 #if ((' ' & 0x0FF) == 0x020)
3923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3925 #else
3926 # define ISLOWER(c) \
3927 (('a' <= (c) && (c) <= 'i') \
3928 || ('j' <= (c) && (c) <= 'r') \
3929 || ('s' <= (c) && (c) <= 'z'))
3930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3931 #endif
3933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3935 main ()
3937 int i;
3938 for (i = 0; i < 256; i++)
3939 if (XOR (islower (i), ISLOWER (i))
3940 || toupper (i) != TOUPPER (i))
3941 return 2;
3942 return 0;
3944 _ACEOF
3945 rm -f conftest$ac_exeext
3946 if { (ac_try="$ac_link"
3947 case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_link") 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3956 { (case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_try") 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; }; then
3966 else
3967 echo "$as_me: program exited with status $ac_status" >&5
3968 echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3971 ( exit $ac_status )
3972 ac_cv_header_stdc=no
3974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3980 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3981 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3982 if test $ac_cv_header_stdc = yes; then
3984 cat >>confdefs.h <<\_ACEOF
3985 #define STDC_HEADERS 1
3986 _ACEOF
3990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4000 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4001 inttypes.h stdint.h unistd.h
4003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 $ac_includes_default
4017 #include <$ac_header>
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (ac_try="$ac_compile"
4021 case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_compile") 2>conftest.er1
4027 ac_status=$?
4028 grep -v '^ *+' conftest.er1 >conftest.err
4029 rm -f conftest.er1
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } && {
4033 test -z "$ac_cxx_werror_flag" ||
4034 test ! -s conftest.err
4035 } && test -s conftest.$ac_objext; then
4036 eval "$as_ac_Header=yes"
4037 else
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4041 eval "$as_ac_Header=no"
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_res=`eval echo '${'$as_ac_Header'}'`
4047 { echo "$as_me:$LINENO: result: $ac_res" >&5
4048 echo "${ECHO_T}$ac_res" >&6; }
4049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4050 cat >>confdefs.h <<_ACEOF
4051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4052 _ACEOF
4056 done
4059 { echo "$as_me:$LINENO: checking for FILE" >&5
4060 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
4061 if test "${ac_cv_type_FILE+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 $ac_includes_default
4071 typedef FILE ac__type_new_;
4073 main ()
4075 if ((ac__type_new_ *) 0)
4076 return 0;
4077 if (sizeof (ac__type_new_))
4078 return 0;
4080 return 0;
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4085 case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compile") 2>conftest.er1
4091 ac_status=$?
4092 grep -v '^ *+' conftest.er1 >conftest.err
4093 rm -f conftest.er1
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && {
4097 test -z "$ac_cxx_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest.$ac_objext; then
4100 ac_cv_type_FILE=yes
4101 else
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 ac_cv_type_FILE=no
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
4111 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
4112 if test $ac_cv_type_FILE = yes; then
4114 cat >>confdefs.h <<_ACEOF
4115 #define HAVE_FILE 1
4116 _ACEOF
4121 { echo "$as_me:$LINENO: checking for intptr_t" >&5
4122 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
4123 if test "${ac_cv_type_intptr_t+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126 cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h. */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4132 $ac_includes_default
4133 typedef intptr_t ac__type_new_;
4135 main ()
4137 if ((ac__type_new_ *) 0)
4138 return 0;
4139 if (sizeof (ac__type_new_))
4140 return 0;
4142 return 0;
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (ac_try="$ac_compile"
4147 case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } && {
4159 test -z "$ac_cxx_werror_flag" ||
4160 test ! -s conftest.err
4161 } && test -s conftest.$ac_objext; then
4162 ac_cv_type_intptr_t=yes
4163 else
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 ac_cv_type_intptr_t=no
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4173 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4174 if test $ac_cv_type_intptr_t = yes; then
4176 cat >>confdefs.h <<_ACEOF
4177 #define HAVE_INTPTR_T 1
4178 _ACEOF
4183 { echo "$as_me:$LINENO: checking for time_t" >&5
4184 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4185 if test "${ac_cv_type_time_t+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 $ac_includes_default
4195 typedef time_t ac__type_new_;
4197 main ()
4199 if ((ac__type_new_ *) 0)
4200 return 0;
4201 if (sizeof (ac__type_new_))
4202 return 0;
4204 return 0;
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && {
4221 test -z "$ac_cxx_werror_flag" ||
4222 test ! -s conftest.err
4223 } && test -s conftest.$ac_objext; then
4224 ac_cv_type_time_t=yes
4225 else
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cv_type_time_t=no
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4235 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4236 if test $ac_cv_type_time_t = yes; then
4238 cat >>confdefs.h <<_ACEOF
4239 #define HAVE_TIME_T 1
4240 _ACEOF
4245 { echo "$as_me:$LINENO: checking for X" >&5
4246 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4249 # Check whether --with-x was given.
4250 if test "${with_x+set}" = set; then
4251 withval=$with_x;
4254 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4255 if test "x$with_x" = xno; then
4256 # The user explicitly disabled X.
4257 have_x=disabled
4258 else
4259 case $x_includes,$x_libraries in #(
4260 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4261 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4262 { (exit 1); exit 1; }; };; #(
4263 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 # One or both of the vars are not set, and there is no cached value.
4267 ac_x_includes=no ac_x_libraries=no
4268 rm -f -r conftest.dir
4269 if mkdir conftest.dir; then
4270 cd conftest.dir
4271 cat >Imakefile <<'_ACEOF'
4272 incroot:
4273 @echo incroot='${INCROOT}'
4274 usrlibdir:
4275 @echo usrlibdir='${USRLIBDIR}'
4276 libdir:
4277 @echo libdir='${LIBDIR}'
4278 _ACEOF
4279 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4280 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4281 for ac_var in incroot usrlibdir libdir; do
4282 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4283 done
4284 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4285 for ac_extension in a so sl dylib la dll; do
4286 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4287 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4288 ac_im_usrlibdir=$ac_im_libdir; break
4290 done
4291 # Screen out bogus values from the imake configuration. They are
4292 # bogus both because they are the default anyway, and because
4293 # using them would break gcc on systems where it needs fixed includes.
4294 case $ac_im_incroot in
4295 /usr/include) ac_x_includes= ;;
4296 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4297 esac
4298 case $ac_im_usrlibdir in
4299 /usr/lib | /lib) ;;
4300 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4301 esac
4303 cd ..
4304 rm -f -r conftest.dir
4307 # Standard set of common directories for X headers.
4308 # Check X11 before X11Rn because it is often a symlink to the current release.
4309 ac_x_header_dirs='
4310 /usr/X11/include
4311 /usr/X11R6/include
4312 /usr/X11R5/include
4313 /usr/X11R4/include
4315 /usr/include/X11
4316 /usr/include/X11R6
4317 /usr/include/X11R5
4318 /usr/include/X11R4
4320 /usr/local/X11/include
4321 /usr/local/X11R6/include
4322 /usr/local/X11R5/include
4323 /usr/local/X11R4/include
4325 /usr/local/include/X11
4326 /usr/local/include/X11R6
4327 /usr/local/include/X11R5
4328 /usr/local/include/X11R4
4330 /usr/X386/include
4331 /usr/x386/include
4332 /usr/XFree86/include/X11
4334 /usr/include
4335 /usr/local/include
4336 /usr/unsupported/include
4337 /usr/athena/include
4338 /usr/local/x11r5/include
4339 /usr/lpp/Xamples/include
4341 /usr/openwin/include
4342 /usr/openwin/share/include'
4344 if test "$ac_x_includes" = no; then
4345 # Guess where to find include files, by looking for Xlib.h.
4346 # First, try using that file with no special directory specified.
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <X11/Xlib.h>
4354 _ACEOF
4355 if { (ac_try="$ac_cpp conftest.$ac_ext"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } >/dev/null && {
4368 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4369 test ! -s conftest.err
4370 }; then
4371 # We can compile using X headers with no special include directory.
4372 ac_x_includes=
4373 else
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 for ac_dir in $ac_x_header_dirs; do
4378 if test -r "$ac_dir/X11/Xlib.h"; then
4379 ac_x_includes=$ac_dir
4380 break
4382 done
4385 rm -f conftest.err conftest.$ac_ext
4386 fi # $ac_x_includes = no
4388 if test "$ac_x_libraries" = no; then
4389 # Check for the libraries.
4390 # See if we find them without any special options.
4391 # Don't add to $LIBS permanently.
4392 ac_save_LIBS=$LIBS
4393 LIBS="-lX11 $LIBS"
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <X11/Xlib.h>
4402 main ()
4404 XrmInitialize ()
4406 return 0;
4408 _ACEOF
4409 rm -f conftest.$ac_objext conftest$ac_exeext
4410 if { (ac_try="$ac_link"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_link") 2>conftest.er1
4417 ac_status=$?
4418 grep -v '^ *+' conftest.er1 >conftest.err
4419 rm -f conftest.er1
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } && {
4423 test -z "$ac_cxx_werror_flag" ||
4424 test ! -s conftest.err
4425 } && test -s conftest$ac_exeext &&
4426 $as_test_x conftest$ac_exeext; then
4427 LIBS=$ac_save_LIBS
4428 # We can link X programs with no special library path.
4429 ac_x_libraries=
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 LIBS=$ac_save_LIBS
4435 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4437 # Don't even attempt the hair of trying to link an X program!
4438 for ac_extension in a so sl dylib la dll; do
4439 if test -r "$ac_dir/libX11.$ac_extension"; then
4440 ac_x_libraries=$ac_dir
4441 break 2
4443 done
4444 done
4447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4448 conftest$ac_exeext conftest.$ac_ext
4449 fi # $ac_x_libraries = no
4451 case $ac_x_includes,$ac_x_libraries in #(
4452 no,* | *,no | *\'*)
4453 # Didn't find X, or a directory has "'" in its name.
4454 ac_cv_have_x="have_x=no";; #(
4456 # Record where we found X for the cache.
4457 ac_cv_have_x="have_x=yes\
4458 ac_x_includes='$ac_x_includes'\
4459 ac_x_libraries='$ac_x_libraries'"
4460 esac
4462 ;; #(
4463 *) have_x=yes;;
4464 esac
4465 eval "$ac_cv_have_x"
4466 fi # $with_x != no
4468 if test "$have_x" != yes; then
4469 { echo "$as_me:$LINENO: result: $have_x" >&5
4470 echo "${ECHO_T}$have_x" >&6; }
4471 no_x=yes
4472 else
4473 # If each of the values was on the command line, it overrides each guess.
4474 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4475 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4476 # Update the cache value to reflect the command line values.
4477 ac_cv_have_x="have_x=yes\
4478 ac_x_includes='$x_includes'\
4479 ac_x_libraries='$x_libraries'"
4480 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4481 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4484 if test "$no_x" = yes; then
4485 # Not all programs may use this symbol, but it does not hurt to define it.
4487 cat >>confdefs.h <<\_ACEOF
4488 #define X_DISPLAY_MISSING 1
4489 _ACEOF
4491 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4492 else
4493 if test -n "$x_includes"; then
4494 X_CFLAGS="$X_CFLAGS -I$x_includes"
4497 # It would also be nice to do this for all -L options, not just this one.
4498 if test -n "$x_libraries"; then
4499 X_LIBS="$X_LIBS -L$x_libraries"
4500 # For Solaris; some versions of Sun CC require a space after -R and
4501 # others require no space. Words are not sufficient . . . .
4502 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4503 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4504 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4505 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4506 ac_cxx_werror_flag=yes
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4515 main ()
4519 return 0;
4521 _ACEOF
4522 rm -f conftest.$ac_objext conftest$ac_exeext
4523 if { (ac_try="$ac_link"
4524 case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527 esac
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_link") 2>conftest.er1
4530 ac_status=$?
4531 grep -v '^ *+' conftest.er1 >conftest.err
4532 rm -f conftest.er1
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } && {
4536 test -z "$ac_cxx_werror_flag" ||
4537 test ! -s conftest.err
4538 } && test -s conftest$ac_exeext &&
4539 $as_test_x conftest$ac_exeext; then
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4542 X_LIBS="$X_LIBS -R$x_libraries"
4543 else
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 LIBS="$ac_xsave_LIBS -R $x_libraries"
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4556 main ()
4560 return 0;
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4565 case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_link") 2>conftest.er1
4571 ac_status=$?
4572 grep -v '^ *+' conftest.er1 >conftest.err
4573 rm -f conftest.er1
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } && {
4577 test -z "$ac_cxx_werror_flag" ||
4578 test ! -s conftest.err
4579 } && test -s conftest$ac_exeext &&
4580 $as_test_x conftest$ac_exeext; then
4581 { echo "$as_me:$LINENO: result: yes" >&5
4582 echo "${ECHO_T}yes" >&6; }
4583 X_LIBS="$X_LIBS -R $x_libraries"
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 { echo "$as_me:$LINENO: result: neither works" >&5
4589 echo "${ECHO_T}neither works" >&6; }
4592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4593 conftest$ac_exeext conftest.$ac_ext
4596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4597 conftest$ac_exeext conftest.$ac_ext
4598 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4599 LIBS=$ac_xsave_LIBS
4602 # Check for system-dependent libraries X programs must link with.
4603 # Do this before checking for the system-independent R6 libraries
4604 # (-lICE), since we may need -lsocket or whatever for X linking.
4606 if test "$ISC" = yes; then
4607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4608 else
4609 # Martyn Johnson says this is needed for Ultrix, if the X
4610 # libraries were built with DECnet support. And Karl Berry says
4611 # the Alpha needs dnet_stub (dnet does not exist).
4612 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4620 /* Override any GCC internal prototype to avoid an error.
4621 Use char because int might match the return type of a GCC
4622 builtin and then its argument prototype would still apply. */
4623 #ifdef __cplusplus
4624 extern "C"
4625 #endif
4626 char XOpenDisplay ();
4628 main ()
4630 return XOpenDisplay ();
4632 return 0;
4634 _ACEOF
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (ac_try="$ac_link"
4637 case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_link") 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_cxx_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest$ac_exeext &&
4652 $as_test_x conftest$ac_exeext; then
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4659 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4660 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 ac_check_lib_save_LIBS=$LIBS
4664 LIBS="-ldnet $LIBS"
4665 cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h. */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4672 /* Override any GCC internal prototype to avoid an error.
4673 Use char because int might match the return type of a GCC
4674 builtin and then its argument prototype would still apply. */
4675 #ifdef __cplusplus
4676 extern "C"
4677 #endif
4678 char dnet_ntoa ();
4680 main ()
4682 return dnet_ntoa ();
4684 return 0;
4686 _ACEOF
4687 rm -f conftest.$ac_objext conftest$ac_exeext
4688 if { (ac_try="$ac_link"
4689 case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692 esac
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_link") 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } && {
4701 test -z "$ac_cxx_werror_flag" ||
4702 test ! -s conftest.err
4703 } && test -s conftest$ac_exeext &&
4704 $as_test_x conftest$ac_exeext; then
4705 ac_cv_lib_dnet_dnet_ntoa=yes
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 ac_cv_lib_dnet_dnet_ntoa=no
4713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4714 conftest$ac_exeext conftest.$ac_ext
4715 LIBS=$ac_check_lib_save_LIBS
4717 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4718 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4719 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4720 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4723 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4724 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4725 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4726 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729 ac_check_lib_save_LIBS=$LIBS
4730 LIBS="-ldnet_stub $LIBS"
4731 cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h. */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4738 /* Override any GCC internal prototype to avoid an error.
4739 Use char because int might match the return type of a GCC
4740 builtin and then its argument prototype would still apply. */
4741 #ifdef __cplusplus
4742 extern "C"
4743 #endif
4744 char dnet_ntoa ();
4746 main ()
4748 return dnet_ntoa ();
4750 return 0;
4752 _ACEOF
4753 rm -f conftest.$ac_objext conftest$ac_exeext
4754 if { (ac_try="$ac_link"
4755 case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_link") 2>conftest.er1
4761 ac_status=$?
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && {
4767 test -z "$ac_cxx_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest$ac_exeext &&
4770 $as_test_x conftest$ac_exeext; then
4771 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4772 else
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4776 ac_cv_lib_dnet_stub_dnet_ntoa=no
4779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4780 conftest$ac_exeext conftest.$ac_ext
4781 LIBS=$ac_check_lib_save_LIBS
4783 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4784 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4785 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4786 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4793 conftest$ac_exeext conftest.$ac_ext
4794 LIBS="$ac_xsave_LIBS"
4796 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4797 # to get the SysV transport functions.
4798 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4799 # needs -lnsl.
4800 # The nsl library prevents programs from opening the X display
4801 # on Irix 5.2, according to T.E. Dickey.
4802 # The functions gethostbyname, getservbyname, and inet_addr are
4803 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4804 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4805 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4806 if test "${ac_cv_func_gethostbyname+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h. */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4817 #define gethostbyname innocuous_gethostbyname
4819 /* System header to define __stub macros and hopefully few prototypes,
4820 which can conflict with char gethostbyname (); below.
4821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 <limits.h> exists even on freestanding compilers. */
4824 #ifdef __STDC__
4825 # include <limits.h>
4826 #else
4827 # include <assert.h>
4828 #endif
4830 #undef gethostbyname
4832 /* Override any GCC internal prototype to avoid an error.
4833 Use char because int might match the return type of a GCC
4834 builtin and then its argument prototype would still apply. */
4835 #ifdef __cplusplus
4836 extern "C"
4837 #endif
4838 char gethostbyname ();
4839 /* The GNU C library defines this for functions which it implements
4840 to always fail with ENOSYS. Some functions are actually named
4841 something starting with __ and the normal name is an alias. */
4842 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4843 choke me
4844 #endif
4847 main ()
4849 return gethostbyname ();
4851 return 0;
4853 _ACEOF
4854 rm -f conftest.$ac_objext conftest$ac_exeext
4855 if { (ac_try="$ac_link"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861 (eval "$ac_link") 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && {
4868 test -z "$ac_cxx_werror_flag" ||
4869 test ! -s conftest.err
4870 } && test -s conftest$ac_exeext &&
4871 $as_test_x conftest$ac_exeext; then
4872 ac_cv_func_gethostbyname=yes
4873 else
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_func_gethostbyname=no
4880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4881 conftest$ac_exeext conftest.$ac_ext
4883 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4884 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4886 if test $ac_cv_func_gethostbyname = no; then
4887 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4888 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4889 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892 ac_check_lib_save_LIBS=$LIBS
4893 LIBS="-lnsl $LIBS"
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4901 /* Override any GCC internal prototype to avoid an error.
4902 Use char because int might match the return type of a GCC
4903 builtin and then its argument prototype would still apply. */
4904 #ifdef __cplusplus
4905 extern "C"
4906 #endif
4907 char gethostbyname ();
4909 main ()
4911 return gethostbyname ();
4913 return 0;
4915 _ACEOF
4916 rm -f conftest.$ac_objext conftest$ac_exeext
4917 if { (ac_try="$ac_link"
4918 case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_link") 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_cxx_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest$ac_exeext &&
4933 $as_test_x conftest$ac_exeext; then
4934 ac_cv_lib_nsl_gethostbyname=yes
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 ac_cv_lib_nsl_gethostbyname=no
4942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4943 conftest$ac_exeext conftest.$ac_ext
4944 LIBS=$ac_check_lib_save_LIBS
4946 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4947 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4948 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4952 if test $ac_cv_lib_nsl_gethostbyname = no; then
4953 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4954 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4955 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 ac_check_lib_save_LIBS=$LIBS
4959 LIBS="-lbsd $LIBS"
4960 cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h. */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4967 /* Override any GCC internal prototype to avoid an error.
4968 Use char because int might match the return type of a GCC
4969 builtin and then its argument prototype would still apply. */
4970 #ifdef __cplusplus
4971 extern "C"
4972 #endif
4973 char gethostbyname ();
4975 main ()
4977 return gethostbyname ();
4979 return 0;
4981 _ACEOF
4982 rm -f conftest.$ac_objext conftest$ac_exeext
4983 if { (ac_try="$ac_link"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_link") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } && {
4996 test -z "$ac_cxx_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest$ac_exeext &&
4999 $as_test_x conftest$ac_exeext; then
5000 ac_cv_lib_bsd_gethostbyname=yes
5001 else
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ac_cv_lib_bsd_gethostbyname=no
5008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5009 conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5012 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5013 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5014 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5021 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5022 # socket/setsockopt and other routines are undefined under SCO ODT
5023 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5024 # on later versions), says Simon Leinen: it contains gethostby*
5025 # variants that don't use the name server (or something). -lsocket
5026 # must be given before -lnsl if both are needed. We assume that
5027 # if connect needs -lnsl, so does gethostbyname.
5028 { echo "$as_me:$LINENO: checking for connect" >&5
5029 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5030 if test "${ac_cv_func_connect+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033 cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h. */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5041 #define connect innocuous_connect
5043 /* System header to define __stub macros and hopefully few prototypes,
5044 which can conflict with char connect (); below.
5045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 <limits.h> exists even on freestanding compilers. */
5048 #ifdef __STDC__
5049 # include <limits.h>
5050 #else
5051 # include <assert.h>
5052 #endif
5054 #undef connect
5056 /* Override any GCC internal prototype to avoid an error.
5057 Use char because int might match the return type of a GCC
5058 builtin and then its argument prototype would still apply. */
5059 #ifdef __cplusplus
5060 extern "C"
5061 #endif
5062 char connect ();
5063 /* The GNU C library defines this for functions which it implements
5064 to always fail with ENOSYS. Some functions are actually named
5065 something starting with __ and the normal name is an alias. */
5066 #if defined __stub_connect || defined __stub___connect
5067 choke me
5068 #endif
5071 main ()
5073 return connect ();
5075 return 0;
5077 _ACEOF
5078 rm -f conftest.$ac_objext conftest$ac_exeext
5079 if { (ac_try="$ac_link"
5080 case "(($ac_try" in
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_link") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_cxx_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest$ac_exeext &&
5095 $as_test_x conftest$ac_exeext; then
5096 ac_cv_func_connect=yes
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 ac_cv_func_connect=no
5104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5105 conftest$ac_exeext conftest.$ac_ext
5107 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5108 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5110 if test $ac_cv_func_connect = no; then
5111 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5112 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5113 if test "${ac_cv_lib_socket_connect+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5118 cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h. */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5125 /* Override any GCC internal prototype to avoid an error.
5126 Use char because int might match the return type of a GCC
5127 builtin and then its argument prototype would still apply. */
5128 #ifdef __cplusplus
5129 extern "C"
5130 #endif
5131 char connect ();
5133 main ()
5135 return connect ();
5137 return 0;
5139 _ACEOF
5140 rm -f conftest.$ac_objext conftest$ac_exeext
5141 if { (ac_try="$ac_link"
5142 case "(($ac_try" in
5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5145 esac
5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147 (eval "$ac_link") 2>conftest.er1
5148 ac_status=$?
5149 grep -v '^ *+' conftest.er1 >conftest.err
5150 rm -f conftest.er1
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } && {
5154 test -z "$ac_cxx_werror_flag" ||
5155 test ! -s conftest.err
5156 } && test -s conftest$ac_exeext &&
5157 $as_test_x conftest$ac_exeext; then
5158 ac_cv_lib_socket_connect=yes
5159 else
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 ac_cv_lib_socket_connect=no
5166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5167 conftest$ac_exeext conftest.$ac_ext
5168 LIBS=$ac_check_lib_save_LIBS
5170 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5171 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5172 if test $ac_cv_lib_socket_connect = yes; then
5173 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5178 # Guillermo Gomez says -lposix is necessary on A/UX.
5179 { echo "$as_me:$LINENO: checking for remove" >&5
5180 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5181 if test "${ac_cv_func_remove+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5192 #define remove innocuous_remove
5194 /* System header to define __stub macros and hopefully few prototypes,
5195 which can conflict with char remove (); below.
5196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 <limits.h> exists even on freestanding compilers. */
5199 #ifdef __STDC__
5200 # include <limits.h>
5201 #else
5202 # include <assert.h>
5203 #endif
5205 #undef remove
5207 /* Override any GCC internal prototype to avoid an error.
5208 Use char because int might match the return type of a GCC
5209 builtin and then its argument prototype would still apply. */
5210 #ifdef __cplusplus
5211 extern "C"
5212 #endif
5213 char remove ();
5214 /* The GNU C library defines this for functions which it implements
5215 to always fail with ENOSYS. Some functions are actually named
5216 something starting with __ and the normal name is an alias. */
5217 #if defined __stub_remove || defined __stub___remove
5218 choke me
5219 #endif
5222 main ()
5224 return remove ();
5226 return 0;
5228 _ACEOF
5229 rm -f conftest.$ac_objext conftest$ac_exeext
5230 if { (ac_try="$ac_link"
5231 case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5234 esac
5235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_link") 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && {
5243 test -z "$ac_cxx_werror_flag" ||
5244 test ! -s conftest.err
5245 } && test -s conftest$ac_exeext &&
5246 $as_test_x conftest$ac_exeext; then
5247 ac_cv_func_remove=yes
5248 else
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 ac_cv_func_remove=no
5255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5256 conftest$ac_exeext conftest.$ac_ext
5258 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5259 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5261 if test $ac_cv_func_remove = no; then
5262 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5263 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5264 if test "${ac_cv_lib_posix_remove+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 ac_check_lib_save_LIBS=$LIBS
5268 LIBS="-lposix $LIBS"
5269 cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h. */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5276 /* Override any GCC internal prototype to avoid an error.
5277 Use char because int might match the return type of a GCC
5278 builtin and then its argument prototype would still apply. */
5279 #ifdef __cplusplus
5280 extern "C"
5281 #endif
5282 char remove ();
5284 main ()
5286 return remove ();
5288 return 0;
5290 _ACEOF
5291 rm -f conftest.$ac_objext conftest$ac_exeext
5292 if { (ac_try="$ac_link"
5293 case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296 esac
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_link") 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } && {
5305 test -z "$ac_cxx_werror_flag" ||
5306 test ! -s conftest.err
5307 } && test -s conftest$ac_exeext &&
5308 $as_test_x conftest$ac_exeext; then
5309 ac_cv_lib_posix_remove=yes
5310 else
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5314 ac_cv_lib_posix_remove=no
5317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5318 conftest$ac_exeext conftest.$ac_ext
5319 LIBS=$ac_check_lib_save_LIBS
5321 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5322 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5323 if test $ac_cv_lib_posix_remove = yes; then
5324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5329 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5330 { echo "$as_me:$LINENO: checking for shmat" >&5
5331 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5332 if test "${ac_cv_func_shmat+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335 cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5343 #define shmat innocuous_shmat
5345 /* System header to define __stub macros and hopefully few prototypes,
5346 which can conflict with char shmat (); below.
5347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5348 <limits.h> exists even on freestanding compilers. */
5350 #ifdef __STDC__
5351 # include <limits.h>
5352 #else
5353 # include <assert.h>
5354 #endif
5356 #undef shmat
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5361 #ifdef __cplusplus
5362 extern "C"
5363 #endif
5364 char shmat ();
5365 /* The GNU C library defines this for functions which it implements
5366 to always fail with ENOSYS. Some functions are actually named
5367 something starting with __ and the normal name is an alias. */
5368 #if defined __stub_shmat || defined __stub___shmat
5369 choke me
5370 #endif
5373 main ()
5375 return shmat ();
5377 return 0;
5379 _ACEOF
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (ac_try="$ac_link"
5382 case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_link") 2>conftest.er1
5388 ac_status=$?
5389 grep -v '^ *+' conftest.er1 >conftest.err
5390 rm -f conftest.er1
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } && {
5394 test -z "$ac_cxx_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest$ac_exeext &&
5397 $as_test_x conftest$ac_exeext; then
5398 ac_cv_func_shmat=yes
5399 else
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_func_shmat=no
5406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5407 conftest$ac_exeext conftest.$ac_ext
5409 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5410 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5412 if test $ac_cv_func_shmat = no; then
5413 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5414 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5415 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418 ac_check_lib_save_LIBS=$LIBS
5419 LIBS="-lipc $LIBS"
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5427 /* Override any GCC internal prototype to avoid an error.
5428 Use char because int might match the return type of a GCC
5429 builtin and then its argument prototype would still apply. */
5430 #ifdef __cplusplus
5431 extern "C"
5432 #endif
5433 char shmat ();
5435 main ()
5437 return shmat ();
5439 return 0;
5441 _ACEOF
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (ac_try="$ac_link"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_link") 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_cxx_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest$ac_exeext &&
5459 $as_test_x conftest$ac_exeext; then
5460 ac_cv_lib_ipc_shmat=yes
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_cv_lib_ipc_shmat=no
5468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5469 conftest$ac_exeext conftest.$ac_ext
5470 LIBS=$ac_check_lib_save_LIBS
5472 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5473 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5474 if test $ac_cv_lib_ipc_shmat = yes; then
5475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5481 # Check for libraries that X11R6 Xt/Xaw programs need.
5482 ac_save_LDFLAGS=$LDFLAGS
5483 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5484 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5485 # check for ICE first), but we must link in the order -lSM -lICE or
5486 # we get undefined symbols. So assume we have SM if we have ICE.
5487 # These have to be linked with before -lX11, unlike the other
5488 # libraries we check for below, so use a different variable.
5489 # John Interrante, Karl Berry
5490 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5491 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5492 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495 ac_check_lib_save_LIBS=$LIBS
5496 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 /* Override any GCC internal prototype to avoid an error.
5505 Use char because int might match the return type of a GCC
5506 builtin and then its argument prototype would still apply. */
5507 #ifdef __cplusplus
5508 extern "C"
5509 #endif
5510 char IceConnectionNumber ();
5512 main ()
5514 return IceConnectionNumber ();
5516 return 0;
5518 _ACEOF
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (ac_try="$ac_link"
5521 case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_link") 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && {
5533 test -z "$ac_cxx_werror_flag" ||
5534 test ! -s conftest.err
5535 } && test -s conftest$ac_exeext &&
5536 $as_test_x conftest$ac_exeext; then
5537 ac_cv_lib_ICE_IceConnectionNumber=yes
5538 else
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 ac_cv_lib_ICE_IceConnectionNumber=no
5545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5546 conftest$ac_exeext conftest.$ac_ext
5547 LIBS=$ac_check_lib_save_LIBS
5549 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5550 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5551 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5552 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5555 LDFLAGS=$ac_save_LDFLAGS
5561 for ac_header in pty.h util.h
5563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_res=`eval echo '${'$as_ac_Header'}'`
5571 { echo "$as_me:$LINENO: result: $ac_res" >&5
5572 echo "${ECHO_T}$ac_res" >&6; }
5573 else
5574 # Is the header compilable?
5575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5584 #include <$ac_header>
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_compile") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && {
5600 test -z "$ac_cxx_werror_flag" ||
5601 test ! -s conftest.err
5602 } && test -s conftest.$ac_objext; then
5603 ac_header_compiler=yes
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ac_header_compiler=no
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6; }
5615 # Is the header present?
5616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 #include <$ac_header>
5625 _ACEOF
5626 if { (ac_try="$ac_cpp conftest.$ac_ext"
5627 case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630 esac
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } >/dev/null && {
5639 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5640 test ! -s conftest.err
5641 }; then
5642 ac_header_preproc=yes
5643 else
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 ac_header_preproc=no
5650 rm -f conftest.err conftest.$ac_ext
5651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5652 echo "${ECHO_T}$ac_header_preproc" >&6; }
5654 # So? What about this header?
5655 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5656 yes:no: )
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5661 ac_header_preproc=yes
5663 no:yes:* )
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5678 esac
5679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 eval "$as_ac_Header=\$ac_header_preproc"
5686 ac_res=`eval echo '${'$as_ac_Header'}'`
5687 { echo "$as_me:$LINENO: result: $ac_res" >&5
5688 echo "${ECHO_T}$ac_res" >&6; }
5691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5692 cat >>confdefs.h <<_ACEOF
5693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5694 _ACEOF
5698 done
5701 for ac_func in gettimeofday
5703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5717 #define $ac_func innocuous_$ac_func
5719 /* System header to define __stub macros and hopefully few prototypes,
5720 which can conflict with char $ac_func (); below.
5721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 <limits.h> exists even on freestanding compilers. */
5724 #ifdef __STDC__
5725 # include <limits.h>
5726 #else
5727 # include <assert.h>
5728 #endif
5730 #undef $ac_func
5732 /* Override any GCC internal prototype to avoid an error.
5733 Use char because int might match the return type of a GCC
5734 builtin and then its argument prototype would still apply. */
5735 #ifdef __cplusplus
5736 extern "C"
5737 #endif
5738 char $ac_func ();
5739 /* The GNU C library defines this for functions which it implements
5740 to always fail with ENOSYS. Some functions are actually named
5741 something starting with __ and the normal name is an alias. */
5742 #if defined __stub_$ac_func || defined __stub___$ac_func
5743 choke me
5744 #endif
5747 main ()
5749 return $ac_func ();
5751 return 0;
5753 _ACEOF
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (ac_try="$ac_link"
5756 case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759 esac
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_link") 2>conftest.er1
5762 ac_status=$?
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } && {
5768 test -z "$ac_cxx_werror_flag" ||
5769 test ! -s conftest.err
5770 } && test -s conftest$ac_exeext &&
5771 $as_test_x conftest$ac_exeext; then
5772 eval "$as_ac_var=yes"
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 eval "$as_ac_var=no"
5780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5781 conftest$ac_exeext conftest.$ac_ext
5783 ac_res=`eval echo '${'$as_ac_var'}'`
5784 { echo "$as_me:$LINENO: result: $ac_res" >&5
5785 echo "${ECHO_T}$ac_res" >&6; }
5786 if test `eval echo '${'$as_ac_var'}'` = yes; then
5787 cat >>confdefs.h <<_ACEOF
5788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5789 _ACEOF
5792 done
5795 #--------------------------------------------------------------------
5796 # Checks for dl library
5797 #--------------------------------------------------------------------
5799 { echo "$as_me:$LINENO: checking for dlopen" >&5
5800 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5801 if test "${ac_cv_func_dlopen+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5812 #define dlopen innocuous_dlopen
5814 /* System header to define __stub macros and hopefully few prototypes,
5815 which can conflict with char dlopen (); below.
5816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817 <limits.h> exists even on freestanding compilers. */
5819 #ifdef __STDC__
5820 # include <limits.h>
5821 #else
5822 # include <assert.h>
5823 #endif
5825 #undef dlopen
5827 /* Override any GCC internal prototype to avoid an error.
5828 Use char because int might match the return type of a GCC
5829 builtin and then its argument prototype would still apply. */
5830 #ifdef __cplusplus
5831 extern "C"
5832 #endif
5833 char dlopen ();
5834 /* The GNU C library defines this for functions which it implements
5835 to always fail with ENOSYS. Some functions are actually named
5836 something starting with __ and the normal name is an alias. */
5837 #if defined __stub_dlopen || defined __stub___dlopen
5838 choke me
5839 #endif
5842 main ()
5844 return dlopen ();
5846 return 0;
5848 _ACEOF
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (ac_try="$ac_link"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_link") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_cxx_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest$ac_exeext &&
5866 $as_test_x conftest$ac_exeext; then
5867 ac_cv_func_dlopen=yes
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 ac_cv_func_dlopen=no
5875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5876 conftest$ac_exeext conftest.$ac_ext
5878 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5879 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5881 if test "$ac_cv_func_dl" = "yes"; then
5883 cat >>confdefs.h <<\_ACEOF
5884 #define DYNAMIC_LINKING 1
5885 _ACEOF
5887 else
5889 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5890 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 ac_check_lib_save_LIBS=$LIBS
5895 LIBS="-ldl $LIBS"
5896 cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h. */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5903 /* Override any GCC internal prototype to avoid an error.
5904 Use char because int might match the return type of a GCC
5905 builtin and then its argument prototype would still apply. */
5906 #ifdef __cplusplus
5907 extern "C"
5908 #endif
5909 char dlopen ();
5911 main ()
5913 return dlopen ();
5915 return 0;
5917 _ACEOF
5918 rm -f conftest.$ac_objext conftest$ac_exeext
5919 if { (ac_try="$ac_link"
5920 case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_link") 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && {
5932 test -z "$ac_cxx_werror_flag" ||
5933 test ! -s conftest.err
5934 } && test -s conftest$ac_exeext &&
5935 $as_test_x conftest$ac_exeext; then
5936 ac_cv_lib_dl_dlopen=yes
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 ac_cv_lib_dl_dlopen=no
5944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5945 conftest$ac_exeext conftest.$ac_ext
5946 LIBS=$ac_check_lib_save_LIBS
5948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5949 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5950 if test $ac_cv_lib_dl_dlopen = yes; then
5951 cat >>confdefs.h <<_ACEOF
5952 #define HAVE_LIBDL 1
5953 _ACEOF
5955 LIBS="-ldl $LIBS"
5959 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5961 for ac_func in dlopen
5963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5977 #define $ac_func innocuous_$ac_func
5979 /* System header to define __stub macros and hopefully few prototypes,
5980 which can conflict with char $ac_func (); below.
5981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5982 <limits.h> exists even on freestanding compilers. */
5984 #ifdef __STDC__
5985 # include <limits.h>
5986 #else
5987 # include <assert.h>
5988 #endif
5990 #undef $ac_func
5992 /* Override any GCC internal prototype to avoid an error.
5993 Use char because int might match the return type of a GCC
5994 builtin and then its argument prototype would still apply. */
5995 #ifdef __cplusplus
5996 extern "C"
5997 #endif
5998 char $ac_func ();
5999 /* The GNU C library defines this for functions which it implements
6000 to always fail with ENOSYS. Some functions are actually named
6001 something starting with __ and the normal name is an alias. */
6002 #if defined __stub_$ac_func || defined __stub___$ac_func
6003 choke me
6004 #endif
6007 main ()
6009 return $ac_func ();
6011 return 0;
6013 _ACEOF
6014 rm -f conftest.$ac_objext conftest$ac_exeext
6015 if { (ac_try="$ac_link"
6016 case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_link") 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_cxx_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest$ac_exeext &&
6031 $as_test_x conftest$ac_exeext; then
6032 eval "$as_ac_var=yes"
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 eval "$as_ac_var=no"
6040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6041 conftest$ac_exeext conftest.$ac_ext
6043 ac_res=`eval echo '${'$as_ac_var'}'`
6044 { echo "$as_me:$LINENO: result: $ac_res" >&5
6045 echo "${ECHO_T}$ac_res" >&6; }
6046 if test `eval echo '${'$as_ac_var'}'` = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6049 _ACEOF
6052 done
6054 CONFIG_BDL="-ldl"
6056 cat >>confdefs.h <<\_ACEOF
6057 #define DYNAMIC_LINKING 1
6058 _ACEOF
6060 else
6062 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6063 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
6064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067 ac_check_lib_save_LIBS=$LIBS
6068 LIBS="-ldld $LIBS"
6069 cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6076 /* Override any GCC internal prototype to avoid an error.
6077 Use char because int might match the return type of a GCC
6078 builtin and then its argument prototype would still apply. */
6079 #ifdef __cplusplus
6080 extern "C"
6081 #endif
6082 char dld_link ();
6084 main ()
6086 return dld_link ();
6088 return 0;
6090 _ACEOF
6091 rm -f conftest.$ac_objext conftest$ac_exeext
6092 if { (ac_try="$ac_link"
6093 case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_link") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_cxx_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest$ac_exeext &&
6108 $as_test_x conftest$ac_exeext; then
6109 ac_cv_lib_dld_dld_link=yes
6110 else
6111 echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6114 ac_cv_lib_dld_dld_link=no
6117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6118 conftest$ac_exeext conftest.$ac_ext
6119 LIBS=$ac_check_lib_save_LIBS
6121 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6122 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
6123 if test $ac_cv_lib_dld_dld_link = yes; then
6124 cat >>confdefs.h <<_ACEOF
6125 #define HAVE_LIBDLD 1
6126 _ACEOF
6128 LIBS="-ldld $LIBS"
6132 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6133 CONFIG_BDL="-ldl"
6135 cat >>confdefs.h <<\_ACEOF
6136 #define DYNAMIC_LINKING 1
6137 _ACEOF
6139 else
6141 for ac_func in shl_load
6143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6157 #define $ac_func innocuous_$ac_func
6159 /* System header to define __stub macros and hopefully few prototypes,
6160 which can conflict with char $ac_func (); below.
6161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6162 <limits.h> exists even on freestanding compilers. */
6164 #ifdef __STDC__
6165 # include <limits.h>
6166 #else
6167 # include <assert.h>
6168 #endif
6170 #undef $ac_func
6172 /* Override any GCC internal prototype to avoid an error.
6173 Use char because int might match the return type of a GCC
6174 builtin and then its argument prototype would still apply. */
6175 #ifdef __cplusplus
6176 extern "C"
6177 #endif
6178 char $ac_func ();
6179 /* The GNU C library defines this for functions which it implements
6180 to always fail with ENOSYS. Some functions are actually named
6181 something starting with __ and the normal name is an alias. */
6182 #if defined __stub_$ac_func || defined __stub___$ac_func
6183 choke me
6184 #endif
6187 main ()
6189 return $ac_func ();
6191 return 0;
6193 _ACEOF
6194 rm -f conftest.$ac_objext conftest$ac_exeext
6195 if { (ac_try="$ac_link"
6196 case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199 esac
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_link") 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_cxx_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest$ac_exeext &&
6211 $as_test_x conftest$ac_exeext; then
6212 eval "$as_ac_var=yes"
6213 else
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6217 eval "$as_ac_var=no"
6220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6221 conftest$ac_exeext conftest.$ac_ext
6223 ac_res=`eval echo '${'$as_ac_var'}'`
6224 { echo "$as_me:$LINENO: result: $ac_res" >&5
6225 echo "${ECHO_T}$ac_res" >&6; }
6226 if test `eval echo '${'$as_ac_var'}'` = yes; then
6227 cat >>confdefs.h <<_ACEOF
6228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6229 _ACEOF
6232 done
6234 if test "$ac_cv_func_shl_load" = "yes"; then
6235 CONFIG_BDL="-ldl"
6237 cat >>confdefs.h <<\_ACEOF
6238 #define DYNAMIC_LINKING 1
6239 _ACEOF
6241 else
6243 for ac_func in dlopen
6245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251 cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h. */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6259 #define $ac_func innocuous_$ac_func
6261 /* System header to define __stub macros and hopefully few prototypes,
6262 which can conflict with char $ac_func (); below.
6263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 <limits.h> exists even on freestanding compilers. */
6266 #ifdef __STDC__
6267 # include <limits.h>
6268 #else
6269 # include <assert.h>
6270 #endif
6272 #undef $ac_func
6274 /* Override any GCC internal prototype to avoid an error.
6275 Use char because int might match the return type of a GCC
6276 builtin and then its argument prototype would still apply. */
6277 #ifdef __cplusplus
6278 extern "C"
6279 #endif
6280 char $ac_func ();
6281 /* The GNU C library defines this for functions which it implements
6282 to always fail with ENOSYS. Some functions are actually named
6283 something starting with __ and the normal name is an alias. */
6284 #if defined __stub_$ac_func || defined __stub___$ac_func
6285 choke me
6286 #endif
6289 main ()
6291 return $ac_func ();
6293 return 0;
6295 _ACEOF
6296 rm -f conftest.$ac_objext conftest$ac_exeext
6297 if { (ac_try="$ac_link"
6298 case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_link") 2>conftest.er1
6304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } && {
6310 test -z "$ac_cxx_werror_flag" ||
6311 test ! -s conftest.err
6312 } && test -s conftest$ac_exeext &&
6313 $as_test_x conftest$ac_exeext; then
6314 eval "$as_ac_var=yes"
6315 else
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 eval "$as_ac_var=no"
6322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6323 conftest$ac_exeext conftest.$ac_ext
6325 ac_res=`eval echo '${'$as_ac_var'}'`
6326 { echo "$as_me:$LINENO: result: $ac_res" >&5
6327 echo "${ECHO_T}$ac_res" >&6; }
6328 if test `eval echo '${'$as_ac_var'}'` = yes; then
6329 cat >>confdefs.h <<_ACEOF
6330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6331 _ACEOF
6334 done
6336 if test "$ac_cv_func_dlopen" = "yes"; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define DYNAMIC_LINKING 1
6340 _ACEOF
6349 #--------------------------------------------------------------------
6350 # Checks for iconv library
6351 #--------------------------------------------------------------------
6354 # Check whether --with-iconv was given.
6355 if test "${with_iconv+set}" = set; then
6356 withval=$with_iconv;
6360 # Check for iconv
6361 # Modified from GNOME's libxml2 configure.in
6363 ac_ext=c
6364 ac_cpp='$CPP $CPPFLAGS'
6365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6368 # compile C to avoid the 'const char**' problem
6370 SAVE_CPPFLAGS="$CPPFLAGS"
6371 SAVE_LDFLAGS="$LDFLAGS"
6372 SAVE_LIBS="$LIBS"
6373 if test "$with_iconv" = "no" ; then
6374 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6375 echo "${ECHO_T}disabling iconv support" >&6; }
6376 else
6377 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6378 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6379 LDFLAGS="$ICONV_LDFLAGS"
6381 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6382 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6383 LDFLAGS="-L$with_iconv/lib"
6384 ICONV_CFLAGS="-I$with_iconv/include"
6385 ICONV_LDFLAGS="-L$with_iconv/lib"
6388 ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6394 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6395 # On Suns, sometimes $CPP names a directory.
6396 if test -n "$CPP" && test -d "$CPP"; then
6397 CPP=
6399 if test -z "$CPP"; then
6400 if test "${ac_cv_prog_CPP+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403 # Double quotes because CPP needs to be expanded
6404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6406 ac_preproc_ok=false
6407 for ac_c_preproc_warn_flag in '' yes
6409 # Use a header file that comes with gcc, so configuring glibc
6410 # with a fresh cross-compiler works.
6411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6412 # <limits.h> exists even on freestanding compilers.
6413 # On the NeXT, cc -E runs the code through the compiler's parser,
6414 # not just through cpp. "Syntax error" is here to catch this case.
6415 cat >conftest.$ac_ext <<_ACEOF
6416 /* confdefs.h. */
6417 _ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 #ifdef __STDC__
6422 # include <limits.h>
6423 #else
6424 # include <assert.h>
6425 #endif
6426 Syntax error
6427 _ACEOF
6428 if { (ac_try="$ac_cpp conftest.$ac_ext"
6429 case "(($ac_try" in
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } >/dev/null && {
6441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 }; then
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 # Broken: fails on valid input.
6450 continue
6453 rm -f conftest.err conftest.$ac_ext
6455 # OK, works on sane cases. Now check whether nonexistent headers
6456 # can be detected and how.
6457 cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h. */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 #include <ac_nonexistent.h>
6464 _ACEOF
6465 if { (ac_try="$ac_cpp conftest.$ac_ext"
6466 case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469 esac
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } >/dev/null && {
6478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 }; then
6481 # Broken: success on invalid input.
6482 continue
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 # Passes both tests.
6488 ac_preproc_ok=:
6489 break
6492 rm -f conftest.err conftest.$ac_ext
6494 done
6495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6496 rm -f conftest.err conftest.$ac_ext
6497 if $ac_preproc_ok; then
6498 break
6501 done
6502 ac_cv_prog_CPP=$CPP
6505 CPP=$ac_cv_prog_CPP
6506 else
6507 ac_cv_prog_CPP=$CPP
6509 { echo "$as_me:$LINENO: result: $CPP" >&5
6510 echo "${ECHO_T}$CPP" >&6; }
6511 ac_preproc_ok=false
6512 for ac_c_preproc_warn_flag in '' yes
6514 # Use a header file that comes with gcc, so configuring glibc
6515 # with a fresh cross-compiler works.
6516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6517 # <limits.h> exists even on freestanding compilers.
6518 # On the NeXT, cc -E runs the code through the compiler's parser,
6519 # not just through cpp. "Syntax error" is here to catch this case.
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #ifdef __STDC__
6527 # include <limits.h>
6528 #else
6529 # include <assert.h>
6530 #endif
6531 Syntax error
6532 _ACEOF
6533 if { (ac_try="$ac_cpp conftest.$ac_ext"
6534 case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } >/dev/null && {
6546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 }; then
6550 else
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 # Broken: fails on valid input.
6555 continue
6558 rm -f conftest.err conftest.$ac_ext
6560 # OK, works on sane cases. Now check whether nonexistent headers
6561 # can be detected and how.
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <ac_nonexistent.h>
6569 _ACEOF
6570 if { (ac_try="$ac_cpp conftest.$ac_ext"
6571 case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6574 esac
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } >/dev/null && {
6583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 }; then
6586 # Broken: success on invalid input.
6587 continue
6588 else
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 # Passes both tests.
6593 ac_preproc_ok=:
6594 break
6597 rm -f conftest.err conftest.$ac_ext
6599 done
6600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6601 rm -f conftest.err conftest.$ac_ext
6602 if $ac_preproc_ok; then
6604 else
6605 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6606 See \`config.log' for more details." >&5
6607 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6608 See \`config.log' for more details." >&2;}
6609 { (exit 1); exit 1; }; }
6612 ac_ext=c
6613 ac_cpp='$CPP $CPPFLAGS'
6614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6619 if test "${ac_cv_header_iconv_h+set}" = set; then
6620 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6621 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6622 if test "${ac_cv_header_iconv_h+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6626 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6627 else
6628 # Is the header compilable?
6629 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6630 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6631 cat >conftest.$ac_ext <<_ACEOF
6632 /* confdefs.h. */
6633 _ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6637 $ac_includes_default
6638 #include <iconv.h>
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (ac_try="$ac_compile"
6642 case "(($ac_try" in
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6645 esac
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_compile") 2>conftest.er1
6648 ac_status=$?
6649 grep -v '^ *+' conftest.er1 >conftest.err
6650 rm -f conftest.er1
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && {
6654 test -z "$ac_c_werror_flag" ||
6655 test ! -s conftest.err
6656 } && test -s conftest.$ac_objext; then
6657 ac_header_compiler=yes
6658 else
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_header_compiler=no
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6667 echo "${ECHO_T}$ac_header_compiler" >&6; }
6669 # Is the header present?
6670 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6671 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 #include <iconv.h>
6679 _ACEOF
6680 if { (ac_try="$ac_cpp conftest.$ac_ext"
6681 case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684 esac
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } >/dev/null && {
6693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6694 test ! -s conftest.err
6695 }; then
6696 ac_header_preproc=yes
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_header_preproc=no
6704 rm -f conftest.err conftest.$ac_ext
6705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6706 echo "${ECHO_T}$ac_header_preproc" >&6; }
6708 # So? What about this header?
6709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6710 yes:no: )
6711 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6712 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6713 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6714 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6715 ac_header_preproc=yes
6717 no:yes:* )
6718 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6719 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6721 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6723 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6724 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6725 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6727 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6729 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6732 esac
6733 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6734 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6735 if test "${ac_cv_header_iconv_h+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 ac_cv_header_iconv_h=$ac_header_preproc
6740 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6741 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6744 if test $ac_cv_header_iconv_h = yes; then
6745 { echo "$as_me:$LINENO: checking for iconv" >&5
6746 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6755 #include <stdlib.h>
6756 #include <iconv.h>
6759 main ()
6762 iconv_t cd = iconv_open ("","");
6763 iconv (cd, NULL, NULL, NULL, NULL);
6766 return 0;
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (ac_try="$ac_link"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_link") 2>conftest.er1
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest$ac_exeext &&
6786 $as_test_x conftest$ac_exeext; then
6788 { echo "$as_me:$LINENO: result: yes" >&5
6789 echo "${ECHO_T}yes" >&6; }
6791 cat >>confdefs.h <<\_ACEOF
6792 #define USE_ICONV 1
6793 _ACEOF
6796 else
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6804 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6805 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6806 LIBS="-liconv" # for AC_TRY_LINK
6807 cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h. */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6814 #include <stdlib.h>
6815 #include <iconv.h>
6818 main ()
6821 iconv_t cd = iconv_open ("","");
6822 iconv (cd, NULL, NULL, NULL, NULL);
6825 return 0;
6827 _ACEOF
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (ac_try="$ac_link"
6830 case "(($ac_try" in
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6833 esac
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835 (eval "$ac_link") 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest$ac_exeext &&
6845 $as_test_x conftest$ac_exeext; then
6847 { echo "$as_me:$LINENO: result: yes" >&5
6848 echo "${ECHO_T}yes" >&6; }
6850 cat >>confdefs.h <<\_ACEOF
6851 #define USE_ICONV 1
6852 _ACEOF
6854 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
6856 else
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6863 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6864 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6869 conftest$ac_exeext conftest.$ac_ext
6872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6873 conftest$ac_exeext conftest.$ac_ext
6879 CPPFLAGS="$SAVE_CPPFLAGS"
6880 LDFLAGS="$SAVE_LDFLAGS"
6881 LIBS="$SAVE_LIBS"
6882 ac_ext=cpp
6883 ac_cpp='$CXXCPP $CPPFLAGS'
6884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6887 # restore C++ language
6891 #--------------------------------------------------------------------
6892 # Checks for freetype library
6893 #--------------------------------------------------------------------
6896 # Check whether --with-freetype was given.
6897 if test "${with_freetype+set}" = set; then
6898 withval=$with_freetype;
6902 SAVE_CPPFLAGS="$CPPFLAGS"
6903 SAVE_LDFLAGS="$LDFLAGS"
6904 SAVE_LIBS="$LIBS"
6905 if test "$with_freetype" = "no" ; then
6906 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6907 echo "${ECHO_T}disabling freetype support" >&6; }
6908 else
6909 if test -z "$FREETYPE_CFLAGS"; then
6910 FREETYPE_CFLAGS=`freetype-config --cflags`
6912 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
6913 if test -z "$FREETYPE_LDFLAGS"; then
6914 FREETYPE_LDFLAGS=`freetype-config --libs`
6916 LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
6917 if test "${ac_cv_header_ft2build_h+set}" = set; then
6918 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6919 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6920 if test "${ac_cv_header_ft2build_h+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6924 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6925 else
6926 # Is the header compilable?
6927 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6928 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 $ac_includes_default
6936 #include <ft2build.h>
6937 _ACEOF
6938 rm -f conftest.$ac_objext
6939 if { (ac_try="$ac_compile"
6940 case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6943 esac
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_cxx_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6955 ac_header_compiler=yes
6956 else
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 ac_header_compiler=no
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6965 echo "${ECHO_T}$ac_header_compiler" >&6; }
6967 # Is the header present?
6968 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6969 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 #include <ft2build.h>
6977 _ACEOF
6978 if { (ac_try="$ac_cpp conftest.$ac_ext"
6979 case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6982 esac
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } >/dev/null && {
6991 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6992 test ! -s conftest.err
6993 }; then
6994 ac_header_preproc=yes
6995 else
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6999 ac_header_preproc=no
7002 rm -f conftest.err conftest.$ac_ext
7003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7004 echo "${ECHO_T}$ac_header_preproc" >&6; }
7006 # So? What about this header?
7007 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7008 yes:no: )
7009 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
7010 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7011 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
7012 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
7013 ac_header_preproc=yes
7015 no:yes:* )
7016 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
7017 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
7018 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
7019 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
7021 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
7023 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
7024 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
7025 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
7026 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
7027 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
7030 esac
7031 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
7032 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
7033 if test "${ac_cv_header_ft2build_h+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 ac_cv_header_ft2build_h=$ac_header_preproc
7038 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
7039 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
7042 if test $ac_cv_header_ft2build_h = yes; then
7043 { echo "$as_me:$LINENO: checking for freetype" >&5
7044 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7052 #include <ft2build.h>
7053 #include FT_FREETYPE_H
7056 main ()
7059 FT_Library ft_library;
7060 (void) FT_Init_FreeType (&ft_library);
7063 return 0;
7065 _ACEOF
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (ac_try="$ac_link"
7068 case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071 esac
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_link") 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && {
7080 test -z "$ac_cxx_werror_flag" ||
7081 test ! -s conftest.err
7082 } && test -s conftest$ac_exeext &&
7083 $as_test_x conftest$ac_exeext; then
7085 { echo "$as_me:$LINENO: result: yes" >&5
7086 echo "${ECHO_T}yes" >&6; }
7088 cat >>confdefs.h <<\_ACEOF
7089 #define USE_FREETYPE 1
7090 _ACEOF
7092 FREETYPE_CFLAGS="$CPPFLAGS"
7093 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
7094 FREETYPE_LDFLAGS="$LIBS"
7096 cat >>confdefs.h <<\_ACEOF
7097 #define LINKED_FREETYPE 1
7098 _ACEOF
7102 else
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7107 { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7112 conftest$ac_exeext conftest.$ac_ext
7118 CPPFLAGS="$SAVE_CPPFLAGS"
7119 LDFLAGS="$SAVE_LDFLAGS"
7120 LIBS="$SAVE_LIBS"
7125 #--------------------------------------------------------------------
7126 # Checks for Cairo library
7127 #--------------------------------------------------------------------
7130 # Check whether --with-cairo was given.
7131 if test "${with_cairo+set}" = set; then
7132 withval=$with_cairo;
7136 SAVE_CPPFLAGS="$CPPFLAGS"
7137 SAVE_LDFLAGS="$LDFLAGS"
7138 SAVE_LIBS="$LIBS"
7139 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7140 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7141 echo "${ECHO_T}disabling cairo support" >&6; }
7142 else
7143 CPPFLAGS=`pkg-config --cflags cairo`
7144 LIBS=`pkg-config --libs cairo`
7145 if test "${ac_cv_header_cairo_h+set}" = set; then
7146 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7147 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7148 if test "${ac_cv_header_cairo_h+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7152 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7153 else
7154 # Is the header compilable?
7155 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7156 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h. */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 $ac_includes_default
7164 #include <cairo.h>
7165 _ACEOF
7166 rm -f conftest.$ac_objext
7167 if { (ac_try="$ac_compile"
7168 case "(($ac_try" in
7169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7171 esac
7172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173 (eval "$ac_compile") 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_cxx_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest.$ac_objext; then
7183 ac_header_compiler=yes
7184 else
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7188 ac_header_compiler=no
7191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7193 echo "${ECHO_T}$ac_header_compiler" >&6; }
7195 # Is the header present?
7196 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7197 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 #include <cairo.h>
7205 _ACEOF
7206 if { (ac_try="$ac_cpp conftest.$ac_ext"
7207 case "(($ac_try" in
7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7210 esac
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } >/dev/null && {
7219 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7220 test ! -s conftest.err
7221 }; then
7222 ac_header_preproc=yes
7223 else
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 ac_header_preproc=no
7230 rm -f conftest.err conftest.$ac_ext
7231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7232 echo "${ECHO_T}$ac_header_preproc" >&6; }
7234 # So? What about this header?
7235 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7236 yes:no: )
7237 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7238 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7239 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7240 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7241 ac_header_preproc=yes
7243 no:yes:* )
7244 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7245 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7247 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7249 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7251 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7253 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7255 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7258 esac
7259 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7260 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7261 if test "${ac_cv_header_cairo_h+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264 ac_cv_header_cairo_h=$ac_header_preproc
7266 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7267 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7270 if test $ac_cv_header_cairo_h = yes; then
7271 { echo "$as_me:$LINENO: checking for cairo" >&5
7272 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7280 #include <cairo.h>
7283 main ()
7286 cairo_surface_t *surface;
7287 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7290 return 0;
7292 _ACEOF
7293 rm -f conftest.$ac_objext conftest$ac_exeext
7294 if { (ac_try="$ac_link"
7295 case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298 esac
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_link") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_cxx_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest$ac_exeext &&
7310 $as_test_x conftest$ac_exeext; then
7312 { echo "$as_me:$LINENO: result: yes" >&5
7313 echo "${ECHO_T}yes" >&6; }
7315 cat >>confdefs.h <<\_ACEOF
7316 #define USE_CAIRO 1
7317 _ACEOF
7319 CAIRO_CFLAGS="$CPPFLAGS"
7320 if test "$with_cairo" = "linked" ; then
7321 CAIRO_LDFLAGS="$LIBS"
7323 cat >>confdefs.h <<\_ACEOF
7324 #define LINKED_CAIRO 1
7325 _ACEOF
7329 else
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7339 conftest$ac_exeext conftest.$ac_ext
7345 CPPFLAGS="$SAVE_CPPFLAGS"
7346 LDFLAGS="$SAVE_LDFLAGS"
7347 LIBS="$SAVE_LIBS"
7352 #--------------------------------------------------------------------
7353 # Checks for Imlib2 library
7354 #--------------------------------------------------------------------
7357 # Check whether --with-imlib2 was given.
7358 if test "${with_imlib2+set}" = set; then
7359 withval=$with_imlib2;
7363 SAVE_CPPFLAGS="$CPPFLAGS"
7364 SAVE_LDFLAGS="$LDFLAGS"
7365 SAVE_LIBS="$LIBS"
7366 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7367 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7368 echo "${ECHO_T}disabling imlib2 support" >&6; }
7369 else
7370 CPPFLAGS=`imlib2-config --cflags`
7371 LIBS=`imlib2-config --libs`
7372 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7373 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7374 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7375 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7379 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7380 else
7381 # Is the header compilable?
7382 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7383 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 $ac_includes_default
7391 #include <Imlib2.h>
7392 _ACEOF
7393 rm -f conftest.$ac_objext
7394 if { (ac_try="$ac_compile"
7395 case "(($ac_try" in
7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7398 esac
7399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400 (eval "$ac_compile") 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } && {
7407 test -z "$ac_cxx_werror_flag" ||
7408 test ! -s conftest.err
7409 } && test -s conftest.$ac_objext; then
7410 ac_header_compiler=yes
7411 else
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 ac_header_compiler=no
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7420 echo "${ECHO_T}$ac_header_compiler" >&6; }
7422 # Is the header present?
7423 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7424 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7425 cat >conftest.$ac_ext <<_ACEOF
7426 /* confdefs.h. */
7427 _ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h. */
7431 #include <Imlib2.h>
7432 _ACEOF
7433 if { (ac_try="$ac_cpp conftest.$ac_ext"
7434 case "(($ac_try" in
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7437 esac
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } >/dev/null && {
7446 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7447 test ! -s conftest.err
7448 }; then
7449 ac_header_preproc=yes
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 ac_header_preproc=no
7457 rm -f conftest.err conftest.$ac_ext
7458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7459 echo "${ECHO_T}$ac_header_preproc" >&6; }
7461 # So? What about this header?
7462 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7463 yes:no: )
7464 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7465 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7467 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7468 ac_header_preproc=yes
7470 no:yes:* )
7471 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7472 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7474 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7476 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7478 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7480 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7482 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7485 esac
7486 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7487 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7488 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491 ac_cv_header_Imlib2_h=$ac_header_preproc
7493 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7494 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7497 if test $ac_cv_header_Imlib2_h = yes; then
7498 { echo "$as_me:$LINENO: checking for imlib2" >&5
7499 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7500 cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h. */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7507 #include <X11/Xlib.h>
7508 #include <Imlib2.h>
7509 #include <stdio.h>
7510 #include <string.h>
7513 main ()
7516 Imlib_Image image= imlib_load_image("");
7519 return 0;
7521 _ACEOF
7522 rm -f conftest.$ac_objext conftest$ac_exeext
7523 if { (ac_try="$ac_link"
7524 case "(($ac_try" in
7525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7527 esac
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_link") 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && {
7536 test -z "$ac_cxx_werror_flag" ||
7537 test ! -s conftest.err
7538 } && test -s conftest$ac_exeext &&
7539 $as_test_x conftest$ac_exeext; then
7541 { echo "$as_me:$LINENO: result: yes" >&5
7542 echo "${ECHO_T}yes" >&6; }
7544 cat >>confdefs.h <<\_ACEOF
7545 #define USE_IMLIB2 1
7546 _ACEOF
7548 IMLIB2_CFLAGS="$CPPFLAGS"
7549 if test "$with_imlib2" = "linked" ; then
7550 IMLIB2_LDFLAGS="$LIBS"
7552 cat >>confdefs.h <<\_ACEOF
7553 #define LINKED_IMLIB2 1
7554 _ACEOF
7558 else
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7563 { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7568 conftest$ac_exeext conftest.$ac_ext
7574 CPPFLAGS="$SAVE_CPPFLAGS"
7575 LDFLAGS="$SAVE_LDFLAGS"
7576 LIBS="$SAVE_LIBS"
7581 #--------------------------------------------------------------------
7582 # Checks for Axel library
7583 #--------------------------------------------------------------------
7586 # Check whether --with-axel was given.
7587 if test "${with_axel+set}" = set; then
7588 withval=$with_axel;
7592 SAVE_CPPFLAGS="$CPPFLAGS"
7593 SAVE_LDFLAGS="$LDFLAGS"
7594 SAVE_LIBS="$LIBS"
7595 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7596 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7597 echo "${ECHO_T}disabling axel support" >&6; }
7598 else
7599 CPPFLAGS=`axel-config --cflags`
7600 LIBS=`axel-config --libs`
7601 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7602 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7603 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7604 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7608 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7609 else
7610 # Is the header compilable?
7611 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7612 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h. */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 $ac_includes_default
7620 #include <QGui/Viewer.h>
7621 _ACEOF
7622 rm -f conftest.$ac_objext
7623 if { (ac_try="$ac_compile"
7624 case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_cxx_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
7639 ac_header_compiler=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_header_compiler=no
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7649 echo "${ECHO_T}$ac_header_compiler" >&6; }
7651 # Is the header present?
7652 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7653 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 #include <QGui/Viewer.h>
7661 _ACEOF
7662 if { (ac_try="$ac_cpp conftest.$ac_ext"
7663 case "(($ac_try" in
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7666 esac
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7669 ac_status=$?
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } >/dev/null && {
7675 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7676 test ! -s conftest.err
7677 }; then
7678 ac_header_preproc=yes
7679 else
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_header_preproc=no
7686 rm -f conftest.err conftest.$ac_ext
7687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7688 echo "${ECHO_T}$ac_header_preproc" >&6; }
7690 # So? What about this header?
7691 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7692 yes:no: )
7693 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7694 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7696 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7697 ac_header_preproc=yes
7699 no:yes:* )
7700 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7701 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7703 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7705 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7707 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7709 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7710 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7711 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7714 esac
7715 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7716 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7717 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7722 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7723 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7726 if test $ac_cv_header_QGui_Viewer_h = yes; then
7727 { echo "$as_me:$LINENO: checking for axel" >&5
7728 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7729 cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h. */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7736 #include <QGui/Viewer.h>
7739 main ()
7742 Viewer viewer(0);
7745 return 0;
7747 _ACEOF
7748 rm -f conftest.$ac_objext conftest$ac_exeext
7749 if { (ac_try="$ac_link"
7750 case "(($ac_try" in
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7753 esac
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755 (eval "$ac_link") 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_cxx_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest$ac_exeext &&
7765 $as_test_x conftest$ac_exeext; then
7767 { echo "$as_me:$LINENO: result: yes" >&5
7768 echo "${ECHO_T}yes" >&6; }
7770 cat >>confdefs.h <<\_ACEOF
7771 #define USE_AXEL 1
7772 _ACEOF
7774 AXEL_CFLAGS="$CPPFLAGS"
7775 if test "$with_axel" = "linked" ; then
7776 AXEL_LDFLAGS="$LIBS"
7778 cat >>confdefs.h <<\_ACEOF
7779 #define LINKED_AXEL 1
7780 _ACEOF
7784 else
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7789 { echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6; }
7793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7794 conftest$ac_exeext conftest.$ac_ext
7800 CPPFLAGS="$SAVE_CPPFLAGS"
7801 LDFLAGS="$SAVE_LDFLAGS"
7802 LIBS="$SAVE_LIBS"
7807 #--------------------------------------------------------------------
7808 # Checks for ghostscript library
7809 #--------------------------------------------------------------------
7812 # Check whether --with-gs was given.
7813 if test "${with_gs+set}" = set; then
7814 withval=$with_gs;
7818 if test "$with_gs" = "no" ; then
7819 { echo "$as_me:$LINENO: result: disabling ghostscript support" >&5
7820 echo "${ECHO_T}disabling ghostscript support" >&6; }
7821 else
7822 case "${host}" in
7823 *mingw*)
7824 GS_EXE="gswin32c.exe"
7825 GS_DLL="gsdll32.dll"
7826 # Extract the first word of "${GS_EXE}", so it can be a program name with args.
7827 set dummy ${GS_EXE}; ac_word=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 if test -n "$HAS_GS_EXE"; then
7834 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_prog_HAS_GS_EXE="yes"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7847 done
7848 done
7849 IFS=$as_save_IFS
7851 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
7854 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
7855 if test -n "$HAS_GS_EXE"; then
7856 { echo "$as_me:$LINENO: result: $HAS_GS_EXE" >&5
7857 echo "${ECHO_T}$HAS_GS_EXE" >&6; }
7858 else
7859 { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7864 # Extract the first word of "${GS_DLL}", so it can be a program name with args.
7865 set dummy ${GS_DLL}; ac_word=$2
7866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7868 if test "${ac_cv_prog_HAS_GS_LIB+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871 if test -n "$HAS_GS_LIB"; then
7872 ac_cv_prog_HAS_GS_LIB="$HAS_GS_LIB" # Let the user override the test.
7873 else
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_HAS_GS_LIB="yes"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7885 done
7886 done
7887 IFS=$as_save_IFS
7889 test -z "$ac_cv_prog_HAS_GS_LIB" && ac_cv_prog_HAS_GS_LIB="no"
7892 HAS_GS_LIB=$ac_cv_prog_HAS_GS_LIB
7893 if test -n "$HAS_GS_LIB"; then
7894 { echo "$as_me:$LINENO: result: $HAS_GS_LIB" >&5
7895 echo "${ECHO_T}$HAS_GS_LIB" >&6; }
7896 else
7897 { echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6; }
7904 # Extract the first word of "gs", so it can be a program name with args.
7905 set dummy gs; ac_word=$2
7906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 if test -n "$HAS_GS_EXE"; then
7912 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
7913 else
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921 ac_cv_prog_HAS_GS_EXE="yes"
7922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 break 2
7925 done
7926 done
7927 IFS=$as_save_IFS
7929 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
7932 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
7933 if test -n "$HAS_GS_EXE"; then
7934 { echo "$as_me:$LINENO: result: $HAS_GS_EXE" >&5
7935 echo "${ECHO_T}$HAS_GS_EXE" >&6; }
7936 else
7937 { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7942 HAS_GS_LIB="yes"
7944 esac
7945 if test "x${HAS_GS_EXE}" = "xyes" -a "x${HAS_GS_LIB}" = "xyes"; then
7947 cat >>confdefs.h <<\_ACEOF
7948 #define USE_GS 1
7949 _ACEOF
7951 CONFIG_GS="Ghostscript"
7955 else
7956 { echo "$as_me:$LINENO: result: disabling ghostscript support" >&5
7957 echo "${ECHO_T}disabling ghostscript support" >&6; }
7961 #--------------------------------------------------------------------
7962 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7963 #--------------------------------------------------------------------
7965 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7966 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7967 if test -z "$GUILE_CFLAGS"; then
7968 CXXFLAGS="`guile-config compile`"
7969 else
7970 CXXFLAGS="$GUILE_CFLAGS"
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7979 #include <guile/gh.h>
7980 #include <libguile.h>
7981 typedef SCM (*FN)(...);
7982 static SCM identity (SCM x) { return x; }
7983 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7986 main ()
7991 return 0;
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (ac_try="$ac_compile"
7996 case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_cxx_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8013 cat >>confdefs.h <<\_ACEOF
8014 #define DOTS_OK 1
8015 _ACEOF
8017 { echo "$as_me:$LINENO: result: yes" >&5
8018 echo "${ECHO_T}yes" >&6; }
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8025 { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 CXXFLAGS=""
8033 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
8034 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
8035 if test -z "$GUILE_CFLAGS"; then
8036 CXXFLAGS="`guile-config compile`"
8037 else
8038 CXXFLAGS="$GUILE_CFLAGS"
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8047 #include <guile/gh.h>
8048 #include <libguile.h>
8049 void print_string (SCM s) {
8050 int len_r;
8051 char* r= gh_scm2newstr (s, &len_r); }
8054 main ()
8059 return 0;
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_cxx_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8081 cat >>confdefs.h <<\_ACEOF
8082 #define guile_str_size_t int
8083 _ACEOF
8085 { echo "$as_me:$LINENO: result: int" >&5
8086 echo "${ECHO_T}int" >&6; }
8088 else
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8094 cat >>confdefs.h <<\_ACEOF
8095 #define guile_str_size_t size_t
8096 _ACEOF
8098 { echo "$as_me:$LINENO: result: size_t" >&5
8099 echo "${ECHO_T}size_t" >&6; }
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 CXXFLAGS=""
8106 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
8107 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
8108 SAVE_CPPFLAGS="$CPPFLAGS"
8109 SAVE_LDFLAGS="$LDFLAGS"
8110 SAVE_LIBS="$LIBS"
8111 CPPFLAGS="$GUILE_CFLAGS"
8112 LDFLAGS="-static"
8113 LIBS="$GUILE_LDFLAGS"
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h. */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8121 #include <guile/gh.h>
8122 $CONFIG_DOTS
8125 main ()
8128 struct dummy {
8129 static void my_main (int argc, char** argv) {}
8130 static void install_guile () {
8131 #ifdef DOTS_OK
8132 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8133 #else
8134 gh_enter (0, NULL, my_main);
8135 #endif
8138 dummy::install_guile ();
8141 return 0;
8143 _ACEOF
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (ac_try="$ac_link"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_link") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_cxx_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest$ac_exeext &&
8161 $as_test_x conftest$ac_exeext; then
8162 tm_link_guile_static="yes"
8163 else
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 tm_link_guile_static="no"
8170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8171 conftest$ac_exeext conftest.$ac_ext
8173 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
8174 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
8175 if test "$tm_link_guile_static" = "no" ; then
8176 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
8177 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
8178 LIBS="$GUILE_LDFLAGS -lltdl"
8179 cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h. */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8186 #include <guile/gh.h>
8187 $CONFIG_DOTS
8190 main ()
8193 struct dummy {
8194 static void my_main (int argc, char** argv) {}
8195 static void install_guile () {
8196 #ifdef DOTS_OK
8197 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8198 #else
8199 gh_enter (0, NULL, my_main);
8200 #endif
8203 dummy::install_guile ();
8206 return 0;
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8211 case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_link") 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_cxx_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest$ac_exeext &&
8226 $as_test_x conftest$ac_exeext; then
8227 tm_link_guile_static_ltdl="yes"
8228 else
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8232 tm_link_guile_static_ltdl="no"
8235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8236 conftest$ac_exeext conftest.$ac_ext
8238 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
8239 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
8240 if test "$tm_link_guile_static_ltdl" = "yes" ; then
8241 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
8242 else
8243 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
8244 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
8245 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
8246 cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h. */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8253 #include <guile/gh.h>
8254 $CONFIG_DOTS
8257 main ()
8260 struct dummy {
8261 static void my_main (int argc, char** argv) {}
8262 static void install_guile () {
8263 #ifdef DOTS_OK
8264 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8265 #else
8266 gh_enter (0, NULL, my_main);
8267 #endif
8270 dummy::install_guile ();
8273 return 0;
8275 _ACEOF
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (ac_try="$ac_link"
8278 case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8281 esac
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_link") 2>conftest.er1
8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } && {
8290 test -z "$ac_cxx_werror_flag" ||
8291 test ! -s conftest.err
8292 } && test -s conftest$ac_exeext &&
8293 $as_test_x conftest$ac_exeext; then
8294 tm_link_guile_static_ltdl_ldl="yes"
8295 else
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 tm_link_guile_static_ltdl_ldl="no"
8302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8303 conftest$ac_exeext conftest.$ac_ext
8305 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8306 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8307 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8308 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8309 else
8310 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8311 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8315 CPPFLAGS="$SAVE_CPPFLAGS"
8316 LDFLAGS="$SAVE_LDFLAGS"
8317 LIBS="$SAVE_LIBS"
8319 #--------------------------------------------------------------------
8320 # Handle different systems case by case
8321 #--------------------------------------------------------------------
8323 CONFIG_OS="GNU_LINUX"
8324 CONFIG_OS_SUFFIX="gnu-linux"
8325 CONFIG_OS_COMPAT="Unix"
8326 CONFIG_MACOS=""
8327 CONFIG_CXXFLAGS=""
8328 CONFIG_CXXTEMPLATE=""
8329 CONFIG_STD_SETENV="#define STD_SETENV"
8330 CONFIG_SO="so"
8331 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8332 CONFIG_CHMOD="chmod -f"
8333 CONFIG_CXXOPTIMIZE="-O2"
8334 CONFIG_BSTATIC="-Wl,-Bstatic"
8335 CONFIG_BSHARED="-Wl,-Bdynamic"
8336 CONFIG_BFLAGS=""
8337 CONFIG_BPATH="-Wl,-rpath,"
8338 CONFIG_LDRT=""
8339 CONFIG_WORD_LENGTH="4"
8340 CONFIG_WORD_LENGTH_INC="3"
8341 CONFIG_WORD_MASK="0xfffffffc"
8342 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8343 # tweak for XCode project
8344 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
8346 X11_CFLAGS="$X_CFLAGS"
8347 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8349 { echo "$as_me:$LINENO: checking for void *" >&5
8350 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8351 if test "${ac_cv_type_void_p+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8361 typedef void * ac__type_new_;
8363 main ()
8365 if ((ac__type_new_ *) 0)
8366 return 0;
8367 if (sizeof (ac__type_new_))
8368 return 0;
8370 return 0;
8372 _ACEOF
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8375 case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_compile") 2>conftest.er1
8381 ac_status=$?
8382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } && {
8387 test -z "$ac_cxx_werror_flag" ||
8388 test ! -s conftest.err
8389 } && test -s conftest.$ac_objext; then
8390 ac_cv_type_void_p=yes
8391 else
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8395 ac_cv_type_void_p=no
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8401 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8403 # The cast to long int works around a bug in the HP C Compiler
8404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8406 # This bug is HP SR number 8606223364.
8407 { echo "$as_me:$LINENO: checking size of void *" >&5
8408 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8409 if test "${ac_cv_sizeof_void_p+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412 if test "$cross_compiling" = yes; then
8413 # Depending upon the size, compute the lo and hi bounds.
8414 cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h. */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 $ac_includes_default
8421 typedef void * ac__type_sizeof_;
8423 main ()
8425 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8426 test_array [0] = 0
8429 return 0;
8431 _ACEOF
8432 rm -f conftest.$ac_objext
8433 if { (ac_try="$ac_compile"
8434 case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_compile") 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } && {
8446 test -z "$ac_cxx_werror_flag" ||
8447 test ! -s conftest.err
8448 } && test -s conftest.$ac_objext; then
8449 ac_lo=0 ac_mid=0
8450 while :; do
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 $ac_includes_default
8458 typedef void * ac__type_sizeof_;
8460 main ()
8462 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8463 test_array [0] = 0
8466 return 0;
8468 _ACEOF
8469 rm -f conftest.$ac_objext
8470 if { (ac_try="$ac_compile"
8471 case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_compile") 2>conftest.er1
8477 ac_status=$?
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && {
8483 test -z "$ac_cxx_werror_flag" ||
8484 test ! -s conftest.err
8485 } && test -s conftest.$ac_objext; then
8486 ac_hi=$ac_mid; break
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_lo=`expr $ac_mid + 1`
8492 if test $ac_lo -le $ac_mid; then
8493 ac_lo= ac_hi=
8494 break
8496 ac_mid=`expr 2 '*' $ac_mid + 1`
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 done
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h. */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8512 typedef void * ac__type_sizeof_;
8514 main ()
8516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8517 test_array [0] = 0
8520 return 0;
8522 _ACEOF
8523 rm -f conftest.$ac_objext
8524 if { (ac_try="$ac_compile"
8525 case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_compile") 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_cxx_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest.$ac_objext; then
8540 ac_hi=-1 ac_mid=-1
8541 while :; do
8542 cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h. */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 $ac_includes_default
8549 typedef void * ac__type_sizeof_;
8551 main ()
8553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8554 test_array [0] = 0
8557 return 0;
8559 _ACEOF
8560 rm -f conftest.$ac_objext
8561 if { (ac_try="$ac_compile"
8562 case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565 esac
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_compile") 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } && {
8574 test -z "$ac_cxx_werror_flag" ||
8575 test ! -s conftest.err
8576 } && test -s conftest.$ac_objext; then
8577 ac_lo=$ac_mid; break
8578 else
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8582 ac_hi=`expr '(' $ac_mid ')' - 1`
8583 if test $ac_mid -le $ac_hi; then
8584 ac_lo= ac_hi=
8585 break
8587 ac_mid=`expr 2 '*' $ac_mid`
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 done
8592 else
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8596 ac_lo= ac_hi=
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 # Binary search between lo and hi bounds.
8604 while test "x$ac_lo" != "x$ac_hi"; do
8605 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8606 cat >conftest.$ac_ext <<_ACEOF
8607 /* confdefs.h. */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 $ac_includes_default
8613 typedef void * ac__type_sizeof_;
8615 main ()
8617 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8618 test_array [0] = 0
8621 return 0;
8623 _ACEOF
8624 rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8626 case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8632 ac_status=$?
8633 grep -v '^ *+' conftest.er1 >conftest.err
8634 rm -f conftest.er1
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_cxx_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.$ac_objext; then
8641 ac_hi=$ac_mid
8642 else
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_lo=`expr '(' $ac_mid ')' + 1`
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 done
8651 case $ac_lo in
8652 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8653 '') if test "$ac_cv_type_void_p" = yes; then
8654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8655 See \`config.log' for more details." >&5
8656 echo "$as_me: error: cannot compute sizeof (void *)
8657 See \`config.log' for more details." >&2;}
8658 { (exit 77); exit 77; }; }
8659 else
8660 ac_cv_sizeof_void_p=0
8661 fi ;;
8662 esac
8663 else
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h. */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 $ac_includes_default
8671 typedef void * ac__type_sizeof_;
8672 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8673 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8674 #include <stdio.h>
8675 #include <stdlib.h>
8677 main ()
8680 FILE *f = fopen ("conftest.val", "w");
8681 if (! f)
8682 return 1;
8683 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8685 long int i = longval ();
8686 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8687 return 1;
8688 fprintf (f, "%ld\n", i);
8690 else
8692 unsigned long int i = ulongval ();
8693 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8694 return 1;
8695 fprintf (f, "%lu\n", i);
8697 return ferror (f) || fclose (f) != 0;
8700 return 0;
8702 _ACEOF
8703 rm -f conftest$ac_exeext
8704 if { (ac_try="$ac_link"
8705 case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_link") 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8717 esac
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_try") 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_sizeof_void_p=`cat conftest.val`
8724 else
8725 echo "$as_me: program exited with status $ac_status" >&5
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ( exit $ac_status )
8730 if test "$ac_cv_type_void_p" = yes; then
8731 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8732 See \`config.log' for more details." >&5
8733 echo "$as_me: error: cannot compute sizeof (void *)
8734 See \`config.log' for more details." >&2;}
8735 { (exit 77); exit 77; }; }
8736 else
8737 ac_cv_sizeof_void_p=0
8740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8742 rm -f conftest.val
8744 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8745 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8749 cat >>confdefs.h <<_ACEOF
8750 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8751 _ACEOF
8754 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8755 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8756 if test "$ac_cv_sizeof_void_p" = "8"; then
8757 { echo "$as_me:$LINENO: result: yes" >&5
8758 echo "${ECHO_T}yes" >&6; }
8759 CONFIG_WORD_LENGTH="8"
8760 CONFIG_WORD_LENGTH_INC="7"
8761 CONFIG_WORD_MASK="0xfffffffffffffff8"
8762 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8763 else
8764 { echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6; }
8768 case "${host}" in
8769 i*86-*-linux* | x86_64-*-linux*)
8770 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8771 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8772 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8774 i*86-*-freebsd* | x86_64-*-freebsd*)
8775 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8776 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8777 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8779 i*86-*-solaris*)
8780 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8781 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8782 CONFIG_CXXOPTIMIZE="-O3"
8783 CONFIG_BPATH="-Wl,-R,"
8784 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8786 *mingw*)
8787 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8788 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8789 CONFIG_OS_COMPAT="Windows"
8790 CONFIG_LDRT="-lmingw32 -lmingwex -mwindows"
8792 *-*-cygwin)
8793 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8794 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8795 CONFIG_OS="CYGWIN"
8796 CONFIG_BFLAGS="-Wl,-stack,8388608"
8797 # CXX="export CYGWIN=check_case:strict; $CXX"
8798 # AC_SUBST(CXX)
8800 *apple*darwin*)
8801 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8802 CONFIG_OS="MACOS"
8803 CONFIG_CXXFLAGS="-I${prefix}/include"
8804 CONFIG_BSHARED=""
8805 CONFIG_BFLAGS="-framework Cocoa"
8806 CONFIG_BPATH=""
8807 CONFIG_SO="dylib"
8808 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8810 *darwin*)
8811 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8812 CONFIG_CXXFLAGS="-I${prefix}/include"
8813 CONFIG_BSHARED=""
8814 CONFIG_BPATH=""
8815 CONFIG_SO="dylib"
8816 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8818 powerpc-*-linux*)
8819 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8820 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8821 CONFIG_OS="POWERPC_GNU_LINUX"
8822 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8824 *sun*)
8825 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8826 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8827 CONFIG_OS="SUN"
8828 CONFIG_OS_SUFFIX="sun"
8829 CONFIG_BSTATIC=""
8830 CONFIG_BSHARED=""
8831 CONFIG_BPATH="-Wl,-R,"
8832 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8833 CONFIG_WORD_LENGTH="8"
8834 CONFIG_WORD_LENGTH_INC="7"
8835 CONFIG_WORD_MASK="0xfffffff8"
8836 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8837 CONFIG_STD_SETENV=""
8839 sparc*-*-linux*)
8840 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8841 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8842 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8843 CONFIG_WORD_LENGTH="8"
8844 CONFIG_WORD_LENGTH_INC="7"
8845 CONFIG_WORD_MASK="0xfffffff8"
8846 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8847 CONFIG_STD_SETENV=""
8849 *dec*)
8850 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8851 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8852 CONFIG_BSTATIC=""
8853 CONFIG_BSHARED="-shared"
8854 CONFIG_STD_SETENV=""
8856 *alpha*-*-linux*)
8857 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8858 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8859 CONFIG_BSTATIC=""
8860 CONFIG_BSHARED="-shared"
8862 s390-*-linux*)
8863 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8864 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8865 CONFIG_STD_SETENV=""
8867 ia64-*-linux*)
8868 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8869 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8870 CONFIG_BSTATIC=""
8871 CONFIG_BSHARED="-shared"
8873 hppa*-*-linux*)
8874 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8875 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8876 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
8877 CONFIG_BSTATIC=""
8878 CONFIG_BSHARED="-shared"
8880 *sgi-irix*)
8881 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8882 CONFIG_OS="IRIX"
8883 CONFIG_CXXFLAGS=""
8884 X_LIBS=-L/usr/lib32
8885 CONFIG_BSTATIC=""
8886 CONFIG_BSHARED=""
8887 CONFIG_BPATH=""
8888 X11_LDFLAGS="$X_LIBS -lX11"
8889 CONFIG_WORD_MASK="0xfffffff8"
8890 CONFIG_STD_SETENV=""
8891 CONFIG_CHMOD="chmod"
8892 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
8894 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
8895 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8896 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8898 *-linux*)
8899 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8900 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8903 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8904 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8906 esac
8908 case "${host}" in
8909 *apple*darwin10*)
8910 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
8911 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH_ACTUAL"
8913 esac
8915 #--------------------------------------------------------------------
8916 # Temporary fix for link problem
8917 #--------------------------------------------------------------------
8919 case "$GXX_VERSION" in
8920 3.* | 4.*)
8921 CONFIG_BSTATIC="-static"
8922 CONFIG_BSHARED="-dynamic"
8924 esac
8926 #--------------------------------------------------------------------
8927 # Memory allocation options
8928 #--------------------------------------------------------------------
8930 # Check whether --enable-fastalloc was given.
8931 if test "${enable_fastalloc+set}" = set; then
8932 enableval=$enable_fastalloc;
8933 else
8934 enable_fastalloc="yes"
8937 case "$enable_fastalloc" in
8938 yes)
8941 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8942 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8944 cat >>confdefs.h <<\_ACEOF
8945 #define NO_FAST_ALLOC 1
8946 _ACEOF
8950 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8951 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8952 { (exit 1); exit 1; }; }
8954 esac
8956 #--------------------------------------------------------------------
8957 # Experimental options
8958 #--------------------------------------------------------------------
8960 # Check whether --enable-experimental was given.
8961 if test "${enable_experimental+set}" = set; then
8962 enableval=$enable_experimental;
8963 else
8964 enable_experimental="no"
8967 case "$enable_experimental" in
8968 yes)
8969 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8970 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8972 cat >>confdefs.h <<\_ACEOF
8973 #define EXPERIMENTAL 1
8974 _ACEOF
8976 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
8979 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8980 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8981 CONFIG_EXPERIMENTAL=""
8984 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8985 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8986 { (exit 1); exit 1; }; }
8988 esac
8991 #--------------------------------------------------------------------
8992 # MacOS X extensions (spellchecker, image loading)
8993 #--------------------------------------------------------------------
8995 # Check whether --enable-macosx-extensions was given.
8996 if test "${enable_macosx_extensions+set}" = set; then
8997 enableval=$enable_macosx_extensions;
8998 else
8999 enable_macosx_extensions="no"
9002 case "$enable_macosx_extensions" in
9003 yes)
9004 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
9005 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
9007 cat >>confdefs.h <<\_ACEOF
9008 #define MACOSX_EXTENSIONS 1
9009 _ACEOF
9011 CONFIG_MACOS="MacOS"
9014 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
9015 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
9016 CONFIG_MACOS=""
9019 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
9020 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
9021 { (exit 1); exit 1; }; }
9023 esac
9026 #--------------------------------------------------------------------
9027 # Experimental PDF renderer
9028 #--------------------------------------------------------------------
9030 # Check whether --enable-pdf-renderer was given.
9031 if test "${enable_pdf_renderer+set}" = set; then
9032 enableval=$enable_pdf_renderer;
9033 else
9034 enable_pdf_renderer="no"
9037 case "$enable_pdf_renderer" in
9038 yes)
9039 { echo "$as_me:$LINENO: result: enabling experimental PDF renderer" >&5
9040 echo "${ECHO_T}enabling experimental PDF renderer" >&6; }
9042 cat >>confdefs.h <<\_ACEOF
9043 #define PDF_RENDERER 1
9044 _ACEOF
9046 CONFIG_PDF="Pdf Pdf/dvipdfmx"
9049 { echo "$as_me:$LINENO: result: disabling experimental PDF renderer" >&5
9050 echo "${ECHO_T}disabling experimental PDF renderer" >&6; }
9051 CONFIG_PDF=""
9054 { { echo "$as_me:$LINENO: error: bad option --enable-pdf-renderer=$enable_pdf_renderer" >&5
9055 echo "$as_me: error: bad option --enable-pdf-renderer=$enable_pdf_renderer" >&2;}
9056 { (exit 1); exit 1; }; }
9058 esac
9061 #--------------------------------------------------------------------
9062 # Gui selection
9063 #--------------------------------------------------------------------
9065 CONFIG_X11=""
9066 CONFIG_COCOA=""
9067 CONFIG_GUI="X11"
9069 # Check whether --enable-qt was given.
9070 if test "${enable_qt+set}" = set; then
9071 enableval=$enable_qt;
9072 else
9073 enable_qt="no"
9077 case "$enable_qt" in
9078 yes)
9080 if test -r "/c/Qt"; then
9081 MOC="`which moc`"
9082 qt_bin="`dirname $MOC`"
9083 qt_home="`dirname $qt_bin`"
9084 qt_version="`basename $qt_home`"
9085 qt_parent="`dirname $qt_home`"
9086 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."
9087 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
9088 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
9089 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
9090 if test "$qt_parent" != "/c/Qt"; then
9091 at_cv_qt_build="ko"
9093 else
9098 test x"$TROLL" != x && echo 'ViM rox emacs.'
9101 # Check whether --with-qt was given.
9102 if test "${with_qt+set}" = set; then
9103 withval=$with_qt; QT_PATH=$withval
9104 else
9105 QT_PATH=
9109 # Find Qt.
9110 if test -d /usr/local/Trolltech; then
9111 # Try to find the latest version.
9112 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
9113 | xargs | sed 's/ */:/g'`
9116 # Find qmake.
9117 if test -z "$QMAKE"; then
9118 for ac_prog in qmake
9120 # Extract the first word of "$ac_prog", so it can be a program name with args.
9121 set dummy $ac_prog; ac_word=$2
9122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9124 if test "${ac_cv_path_QMAKE+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127 case $QMAKE in
9128 [\\/]* | ?:[\\/]*)
9129 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
9134 for as_dir in $as_dummy
9136 IFS=$as_save_IFS
9137 test -z "$as_dir" && as_dir=.
9138 for ac_exec_ext in '' $ac_executable_extensions; do
9139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9140 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
9141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9142 break 2
9144 done
9145 done
9146 IFS=$as_save_IFS
9149 esac
9151 QMAKE=$ac_cv_path_QMAKE
9152 if test -n "$QMAKE"; then
9153 { echo "$as_me:$LINENO: result: $QMAKE" >&5
9154 echo "${ECHO_T}$QMAKE" >&6; }
9155 else
9156 { echo "$as_me:$LINENO: result: no" >&5
9157 echo "${ECHO_T}no" >&6; }
9161 test -n "$QMAKE" && break
9162 done
9163 test -n "$QMAKE" || QMAKE="missing"
9165 else
9166 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
9167 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
9168 { echo "$as_me:$LINENO: result: $QMAKE" >&5
9169 echo "${ECHO_T}$QMAKE" >&6; }
9171 if test x"$QMAKE" = xmissing; then
9172 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
9173 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
9174 { (exit 1); exit 1; }; }
9177 # Find moc (Meta Object Compiler).
9178 if test -z "$MOC"; then
9179 for ac_prog in moc
9181 # Extract the first word of "$ac_prog", so it can be a program name with args.
9182 set dummy $ac_prog; ac_word=$2
9183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9185 if test "${ac_cv_path_MOC+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9188 case $MOC in
9189 [\\/]* | ?:[\\/]*)
9190 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
9193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9195 for as_dir in $as_dummy
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9201 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
9202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9203 break 2
9205 done
9206 done
9207 IFS=$as_save_IFS
9210 esac
9212 MOC=$ac_cv_path_MOC
9213 if test -n "$MOC"; then
9214 { echo "$as_me:$LINENO: result: $MOC" >&5
9215 echo "${ECHO_T}$MOC" >&6; }
9216 else
9217 { echo "$as_me:$LINENO: result: no" >&5
9218 echo "${ECHO_T}no" >&6; }
9222 test -n "$MOC" && break
9223 done
9224 test -n "$MOC" || MOC="missing"
9226 else
9227 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9228 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9229 { echo "$as_me:$LINENO: result: $MOC" >&5
9230 echo "${ECHO_T}$MOC" >&6; }
9232 if test x"$MOC" = xmissing; then
9233 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9234 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9235 { (exit 1); exit 1; }; }
9238 # Find uic (User Interface Compiler).
9239 if test -z "$UIC"; then
9240 for ac_prog in uic
9242 # Extract the first word of "$ac_prog", so it can be a program name with args.
9243 set dummy $ac_prog; ac_word=$2
9244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9246 if test "${ac_cv_path_UIC+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249 case $UIC in
9250 [\\/]* | ?:[\\/]*)
9251 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9256 for as_dir in $as_dummy
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
9263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9266 done
9267 done
9268 IFS=$as_save_IFS
9271 esac
9273 UIC=$ac_cv_path_UIC
9274 if test -n "$UIC"; then
9275 { echo "$as_me:$LINENO: result: $UIC" >&5
9276 echo "${ECHO_T}$UIC" >&6; }
9277 else
9278 { echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6; }
9283 test -n "$UIC" && break
9284 done
9285 test -n "$UIC" || UIC="missing"
9287 else
9288 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9289 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9290 { echo "$as_me:$LINENO: result: $UIC" >&5
9291 echo "${ECHO_T}$UIC" >&6; }
9293 if test x"$UIC" = xmissing; then
9294 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9295 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9296 { (exit 1); exit 1; }; }
9299 # Find rcc (Qt Resource Compiler).
9300 for ac_prog in rcc
9302 # Extract the first word of "$ac_prog", so it can be a program name with args.
9303 set dummy $ac_prog; ac_word=$2
9304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9306 if test "${ac_cv_path_RCC+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309 case $RCC in
9310 [\\/]* | ?:[\\/]*)
9311 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9316 for as_dir in $as_dummy
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9322 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
9323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 break 2
9326 done
9327 done
9328 IFS=$as_save_IFS
9331 esac
9333 RCC=$ac_cv_path_RCC
9334 if test -n "$RCC"; then
9335 { echo "$as_me:$LINENO: result: $RCC" >&5
9336 echo "${ECHO_T}$RCC" >&6; }
9337 else
9338 { echo "$as_me:$LINENO: result: no" >&5
9339 echo "${ECHO_T}no" >&6; }
9343 test -n "$RCC" && break
9344 done
9345 test -n "$RCC" || RCC="false"
9347 if test x"$UIC" = xfalse; then
9348 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9349 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9352 # If we don't know the path to Qt, guess it from the path to qmake.
9353 if test x"$QT_PATH" = x; then
9354 QT_PATH=`dirname "$QMAKE"`
9356 if test x"$QT_PATH" = x; then
9357 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9358 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9359 { (exit 1); exit 1; }; }
9362 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9363 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9364 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9365 echo "${ECHO_T}$QT_PATH" >&6; }
9367 # Get ready to build a test-app with Qt.
9369 # Look for a writable temporary directory.
9371 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
9372 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9374 for i in /tmp /var/tmp; do
9375 if test -d "$i" && test -w "$i"; then
9376 TMPDIR=$i
9377 export TMPDIR
9378 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9379 break
9381 done
9384 # Kludge!! QMake has a very strange behavior. For instance, if you
9385 # install Qt under your $HOME and run QMake somewhere else under your
9386 # $HOME, it will try to be clever and produce Makefiles with relative
9387 # include paths. In order to avoid this, we will test QMake from a
9388 # temporary directory (usually /tmp). Note that this problem was only
9389 # observed with Qt 4.
9390 my_configure_pwd=`pwd`
9391 my_tmpdir="$TMPDIR/conftest$$.dir"
9392 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
9393 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9394 then
9396 else
9397 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9398 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9399 { (exit 1); exit 1; }; }
9401 cat >conftest.h <<_ASEOF
9402 #include <QObject>
9404 class Foo: public QObject
9406 Q_OBJECT;
9407 public:
9408 Foo();
9409 ~Foo() {}
9410 public slots:
9411 void setValue(int value);
9412 signals:
9413 void valueChanged(int newValue);
9414 private:
9415 int value_;
9417 _ASEOF
9419 cat >conftest.cpp <<_ASEOF
9420 #include "conftest.h"
9421 Foo::Foo()
9422 : value_ (42)
9424 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9427 void Foo::setValue(int value)
9429 value_ = value;
9432 int main()
9434 Foo f;
9436 _ASEOF
9437 if $QMAKE -project; then :; else
9438 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9439 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9440 { (exit 1); exit 1; }; }
9443 # Find the .pro file generated by qmake.
9444 pro_file='conftest.dir.pro'
9445 test -f $pro_file || pro_file=`echo *.pro`
9446 if test -f "$pro_file"; then :; else
9447 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9448 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9449 { (exit 1); exit 1; }; }
9458 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9459 sed 's/^/| /' "$pro_file" >&5
9461 additional_qmake_flags=""
9462 case $host_os in
9463 darwin*)
9464 additional_qmake_flags="-spec macx-g++"
9466 esac
9468 if $QMAKE ${additional_qmake_flags} ; then :; else
9469 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9470 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9471 { (exit 1); exit 1; }; }
9473 # Try to compile a simple Qt app.
9474 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9475 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9476 if test "${at_cv_qt_build+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479 at_cv_qt_build=ko
9480 : ${MAKE=make}
9482 if $MAKE >&5 2>&1; then
9483 at_cv_qt_build='ok, looks like Qt 4'
9484 else
9485 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9486 instead" >&5
9487 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9488 if $MAKE >&5 2>&1; then
9489 at_cv_qt_build='ok, looks like Qt 3'
9490 else
9491 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9492 # installed in debug mode and qmake tries (by default) to build apps in
9493 # debug mode => Try again in release mode.
9494 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9497 # Tweak the value of CONFIG in the .pro file for +release.
9499 qt_conf=''
9500 for at_mod in +release; do
9501 at_mod=`echo "$at_mod" | sed 's/^-//; tough
9502 s/^+//; beef
9503 :ough
9504 s/^/CONFIG -= /;n
9505 :eef
9506 s/^/CONFIG += /'`
9507 qt_conf="$qt_conf
9508 $at_mod"
9509 done
9510 echo "$qt_conf" | sed 1d >>"$pro_file"
9513 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
9514 if $MAKE >&5 2>&1; then
9515 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
9516 else
9517 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9518 instead" >&5
9519 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9520 if $MAKE >&5 2>&1; then
9521 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
9522 else
9523 at_cv_qt_build=ko
9524 echo "$as_me:$LINENO: failed program was:" >&5
9525 sed 's/^/| /' conftest.h >&5
9526 echo "$as_me:$LINENO: failed program was:" >&5
9527 sed 's/^/| /' conftest.cpp >&5
9528 fi # if make with Qt3-style #include and release mode forced.
9529 fi # if make with Qt4-style #include and release mode forced.
9530 fi # if make with Qt3-style #include.
9531 fi # if make with Qt4-style #include.
9534 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9535 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9536 if test x"$at_cv_qt_build" = xko; then
9537 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9538 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9539 { (exit 1); exit 1; }; }
9541 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9544 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9545 # It starts by removing the beginning of the line, removing references to
9546 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9547 # all variable uses by QT_.
9548 qt_sed_filter='s///;
9549 s/$(SUBLIBS)//g;
9550 s/^ *//;
9551 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9553 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9554 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9555 # Makefile.Release. The reason is that the main difference is that release
9556 # uses -Os and debug -g. We can override -Os by passing another -O but we
9557 # usually don't override -g.
9558 if test -f Makefile.Release; then
9559 at_mfile='Makefile.Release'
9560 else
9561 at_mfile='Makefile'
9563 if test -f $at_mfile; then :; else
9564 cd "$my_configure_pwd"
9565 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9566 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9567 { (exit 1); exit 1; }; }
9570 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9571 if test -z "$QT_DEFINES"; then
9572 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9573 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9574 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9579 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9580 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9581 QT_DEFINES="$at_cv_env_QT_DEFINES"
9584 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9585 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9586 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9587 echo "${ECHO_T}$QT_DEFINES" >&6; }
9589 # Find the CFLAGS of Qt (We can use Qt in C?!)
9590 if test -z "$QT_CFLAGS"; then
9591 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9592 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9593 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9598 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9599 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9600 QT_CFLAGS="$at_cv_env_QT_CFLAGS"
9603 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9604 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9605 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9606 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9608 # Find the CXXFLAGS of Qt.
9609 if test -z "$QT_CXXFLAGS"; then
9610 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9611 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9612 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9617 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9618 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9619 QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
9622 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9623 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9624 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9625 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9627 # Find the INCPATH of Qt.
9628 if test -z "$QT_INCPATH"; then
9629 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9630 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9631 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9636 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9637 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9638 QT_INCPATH="$at_cv_env_QT_INCPATH"
9641 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9642 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9643 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9644 echo "${ECHO_T}$QT_INCPATH" >&6; }
9646 QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
9649 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9650 if test -z "$QT_LDFLAGS"; then
9651 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9652 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9653 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9658 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9659 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9660 QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
9663 QT_LFLAGS=$QT_LDFLAGS
9665 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9666 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9667 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9668 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9670 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9671 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9672 at_darwin="no"
9673 case $host_os in
9674 darwin*)
9675 at_darwin="yes"
9677 esac
9678 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9679 echo "${ECHO_T}$at_darwin" >&6; }
9681 # Find the LIBS of Qt.
9682 if test -z "$QT_LIBS"; then
9683 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9684 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9685 if test "${at_cv_env_QT_LIBS+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9689 if test x$at_darwin = xyes; then
9690 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9691 # -F properly. The "bug" has been fixed on 22 October 2006
9692 # by Peter O'Gorman but we provide backward compatibility here.
9693 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
9694 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9698 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9699 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9700 QT_LIBS="$at_cv_env_QT_LIBS"
9703 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9704 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9705 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9706 echo "${ECHO_T}$QT_LIBS" >&6; }
9708 cd "$my_configure_pwd" || echo 'WTF!'
9709 rm -rf "$my_tmpdir"
9713 if test x"$at_cv_qt_build" = xko; then
9714 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9715 echo "$as_me: error: cannot find Qt!" >&2;}
9716 { (exit 1); exit 1; }; }
9717 else
9718 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9719 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9720 CONFIG_GUI="QT"
9724 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9725 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9728 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9729 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9730 { (exit 1); exit 1; }; }
9732 esac
9734 # Check whether --enable-cocoa was given.
9735 if test "${enable_cocoa+set}" = set; then
9736 enableval=$enable_cocoa;
9737 else
9738 enable_cocoa="no"
9741 case "$enable_cocoa" in
9742 yes)
9743 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9744 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9745 COCOA_CFLAGS=""
9746 COCOA_LDFLAGS="-framework Cocoa"
9747 CONFIG_GUI="COCOA"
9750 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9751 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9754 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9755 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9756 { (exit 1); exit 1; }; }
9758 esac
9760 case "$CONFIG_GUI" in
9761 X11)
9762 CONFIG_X11="X11 Widkit"
9763 if test "x${CONFIG_GS}" != "xGhostscript"; then
9764 CONFIG_X11="$CONFIG_X11 Ghostscript"
9766 CONFIG_GUI_DEFINE="X11TEXMACS"
9767 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
9769 COCOA)
9770 CONFIG_COCOA="Cocoa"
9771 CONFIG_GUI_DEFINE="AQUATEXMACS"
9772 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
9775 CONFIG_QT="Qt"
9776 CONFIG_GUI_DEFINE="QTTEXMACS"
9777 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
9779 esac
9794 #--------------------------------------------------------------------
9795 # Debugging options
9796 #--------------------------------------------------------------------
9798 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
9799 if test "$enable_cocoa" = "yes"; then
9800 STD_DEBUG_FLAGS="-fno-exceptions"
9803 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9804 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9805 CXXFLAGS="$STD_DEBUG_FLAGS"
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9813 int some_variable = 0;
9816 main ()
9821 return 0;
9823 _ACEOF
9824 rm -f conftest.$ac_objext
9825 if { (ac_try="$ac_compile"
9826 case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829 esac
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_compile") 2>conftest.er1
9832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_cxx_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest.$ac_objext; then
9842 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9843 { echo "$as_me:$LINENO: result: yes" >&5
9844 echo "${ECHO_T}yes" >&6; }
9846 else
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9851 CONFIG_CXXDIALECT=""
9852 { echo "$as_me:$LINENO: result: no" >&5
9853 echo "${ECHO_T}no" >&6; }
9857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858 CXXFLAGS=""
9861 # Check whether --enable-debug was given.
9862 if test "${enable_debug+set}" = set; then
9863 enableval=$enable_debug;
9864 else
9865 enable_debug="no"
9869 if test "$enable_debug" = "yes"; then
9870 if test "$GXX" = "yes"; then
9871 enable_debug="-ggdb"
9872 else
9873 enable_debug="-g3"
9877 if test "$enable_debug" = "no"; then
9878 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9879 echo "${ECHO_T}disabling debugging" >&6; }
9880 CONFIG_STRIP="strip"
9881 CONFIG_CXXDEBUG=""
9882 optimize_default="yes"
9883 else
9884 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9885 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9886 CONFIG_STRIP="true"
9887 CONFIG_CXXDEBUG="$enable_debug"
9888 optimize_default="no"
9891 # Check whether --enable-assert was given.
9892 if test "${enable_assert+set}" = set; then
9893 enableval=$enable_assert;
9894 else
9895 enable_assert="yes"
9899 if test "$enable_assert" = "no"; then
9900 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9901 echo "${ECHO_T}disabling assertion checking" >&6; }
9902 else
9903 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9904 echo "${ECHO_T}enabling assertion checking" >&6; }
9906 cat >>confdefs.h <<\_ACEOF
9907 #define DEBUG_ASSERT 1
9908 _ACEOF
9912 #--------------------------------------------------------------------
9913 # Warning options
9914 #--------------------------------------------------------------------
9916 case "$GXX_VERSION" in
9917 none)
9918 CONFIG_CXXWARNING="";
9921 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9923 esac
9925 # Check whether --enable-warnings was given.
9926 if test "${enable_warnings+set}" = set; then
9927 enableval=$enable_warnings;
9928 else
9929 enable_warnings="yes"
9932 case "$enable_warnings" in
9933 yes)
9934 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9935 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9937 CONFIG_CXXWARNING=""
9938 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9939 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9941 CONFIG_CXXWARNING="$enable_warnings"
9942 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9943 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9944 esac
9946 #--------------------------------------------------------------------
9947 # Optimization options
9948 #--------------------------------------------------------------------
9950 if test "$optimize_default" = "yes"; then
9951 case "$GXX_VERSION" in
9952 3.3.3 | 3.3.4 | 4.*)
9954 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9955 case "${host}" in
9956 i*86-*-linux-gnu* | i*86-*-freebsd*)
9957 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9958 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9959 optimize_default="no-inline"
9962 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9963 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9964 optimize_default="no-inline"
9966 esac
9968 esac
9971 # Check whether --enable-optimize was given.
9972 if test "${enable_optimize+set}" = set; then
9973 enableval=$enable_optimize;
9974 else
9975 enable_optimize="$optimize_default"
9979 case "$enable_optimize" in
9980 yes)
9981 # keep optimization options
9982 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9983 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9984 no-inline)
9985 optimize_no_inline="-fno-default-inline -fno-inline"
9986 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9987 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9988 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9990 CONFIG_CXXOPTIMIZE=""
9991 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9992 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9994 CONFIG_CXXOPTIMIZE="$enable_optimize"
9995 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9996 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9997 esac
9999 #--------------------------------------------------------------------
10000 # Substitute TeXmacs specific configuration parameters
10001 #--------------------------------------------------------------------
10027 #--------------------------------------------------------------------
10028 # Default paths for installation
10029 #--------------------------------------------------------------------
10031 if test "$prefix" = ""; then
10032 prefix=/usr/local
10034 if test "$prefix" = "NONE"; then
10035 prefix=/usr/local
10037 if test "$exec_prefix" = ""; then
10038 exec_prefix='${prefix}'
10040 if test "$exec_prefix" = "NONE"; then
10041 exec_prefix='${prefix}'
10043 if test "$exec_prefix" = '${prefix}'; then
10044 exec_prefix='${prefix}'
10046 if test "$includedir" = ""; then
10047 includedir='${prefix}/include'
10049 if test "$includedir" = "NONE"; then
10050 includedir='${prefix}/include'
10052 if test "$includedir" = '${prefix}/include'; then
10053 includedir='${prefix}/include'
10055 if test "$libdir" = ""; then
10056 libdir='${exec_prefix}/lib'
10058 if test "$libdir" = "NONE"; then
10059 libdir='${exec_prefix}/lib'
10061 if test "$libdir" = '${exec_prefix}/lib'; then
10062 libdir='${exec_prefix}/lib'
10064 if test "$bindir" = ""; then
10065 bindir='${exec_prefix}/bin'
10067 if test "$bindir" = "NONE"; then
10068 bindir=${exec_prefix}/bin
10070 if test "$bindir" = '${exec_prefix}/bin'; then
10071 bindir='${exec_prefix}/bin'
10073 if test "$datarootdir" = ""; then
10074 datarootdir='${prefix}/share'
10076 if test "$datarootdir" = "NONE"; then
10077 datarootdir='${prefix}/share'
10079 if test "$datarootdir" = '${prefix}/share'; then
10080 datarootdir='${prefix}/share'
10082 if test "$datadir" = ""; then
10083 datadir='${prefix}/share'
10085 if test "$datadir" = "NONE"; then
10086 datadir='${prefix}/share'
10088 if test "$datadir" = '${prefix}/share'; then
10089 datadir='${prefix}/share'
10091 if test "$mandir" = ""; then
10092 mandir='${datarootdir}/man'
10094 if test "$mandir" = "NONE"; then
10095 mandir='${datarootdir}/man'
10097 if test "$mandir" = '${datarootdir}/man'; then
10098 mandir='${datarootdir}/man'
10100 if test "$libexecdir" = ""; then
10101 libexecdir='${exec_prefix}/libexec'
10103 if test "$libexecdir" = "NONE"; then
10104 libexecdir='${exec_prefix}/libexec'
10106 if test "$libexecdir" = '${exec_prefix}/libexec'; then
10107 libexecdir='${exec_prefix}/libexec'
10110 curdir="`pwd`"
10111 tmorig=${curdir}
10112 tmdir=${PACKAGE}
10113 tmsrc=${curdir}/${tmdir}
10114 tmbin=${libexecdir}/${tmdir}
10115 tmdata=${datadir}/${tmdir}
10122 if test "$DEVEL_RELEASE" = "1"; then
10123 tmtgz=${PACKAGE}-${DEVEL_VERSION}
10124 else
10125 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
10127 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
10128 if test "$STABLE_RELEASE" = "1"; then
10129 tmstgz=${PACKAGE}-${STABLE_VERSION}
10130 else
10131 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
10133 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
10134 if test "$WINDOWS_RELEASE" = "1"; then
10135 tmwin=wintexmacs-${WINDOWS_VERSION}
10136 else
10137 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
10145 #--------------------------------------------------------------------
10146 # Done
10147 #--------------------------------------------------------------------
10149 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"
10151 cat >confcache <<\_ACEOF
10152 # This file is a shell script that caches the results of configure
10153 # tests run on this system so they can be shared between configure
10154 # scripts and configure runs, see configure's option --config-cache.
10155 # It is not useful on other systems. If it contains results you don't
10156 # want to keep, you may remove or edit it.
10158 # config.status only pays attention to the cache file if you give it
10159 # the --recheck option to rerun configure.
10161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10163 # following values.
10165 _ACEOF
10167 # The following way of writing the cache mishandles newlines in values,
10168 # but we know of no workaround that is simple, portable, and efficient.
10169 # So, we kill variables containing newlines.
10170 # Ultrix sh set writes to stderr and can't be redirected directly,
10171 # and sets the high bit in the cache file unless we assign to the vars.
10173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10174 eval ac_val=\$$ac_var
10175 case $ac_val in #(
10176 *${as_nl}*)
10177 case $ac_var in #(
10178 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10179 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10180 esac
10181 case $ac_var in #(
10182 _ | IFS | as_nl) ;; #(
10183 *) $as_unset $ac_var ;;
10184 esac ;;
10185 esac
10186 done
10188 (set) 2>&1 |
10189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10190 *${as_nl}ac_space=\ *)
10191 # `set' does not quote correctly, so add quotes (double-quote
10192 # substitution turns \\\\ into \\, and sed turns \\ into \).
10193 sed -n \
10194 "s/'/'\\\\''/g;
10195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10196 ;; #(
10198 # `set' quotes correctly as required by POSIX, so do not add quotes.
10199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10201 esac |
10202 sort
10204 sed '
10205 /^ac_cv_env_/b end
10206 t clear
10207 :clear
10208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10209 t end
10210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10211 :end' >>confcache
10212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10213 if test -w "$cache_file"; then
10214 test "x$cache_file" != "x/dev/null" &&
10215 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10216 echo "$as_me: updating cache $cache_file" >&6;}
10217 cat confcache >$cache_file
10218 else
10219 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10220 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10223 rm -f confcache
10225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10226 # Let make expand exec_prefix.
10227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10229 DEFS=-DHAVE_CONFIG_H
10231 ac_libobjs=
10232 ac_ltlibobjs=
10233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10234 # 1. Remove the extension, and $U if already installed.
10235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10236 ac_i=`echo "$ac_i" | sed "$ac_script"`
10237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10238 # will be set to the directory where LIBOBJS objects are built.
10239 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10240 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10241 done
10242 LIBOBJS=$ac_libobjs
10244 LTLIBOBJS=$ac_ltlibobjs
10248 : ${CONFIG_STATUS=./config.status}
10249 ac_clean_files_save=$ac_clean_files
10250 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10251 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10252 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10253 cat >$CONFIG_STATUS <<_ACEOF
10254 #! $SHELL
10255 # Generated by $as_me.
10256 # Run this file to recreate the current configuration.
10257 # Compiler output produced by configure, useful for debugging
10258 # configure, is in config.log if it exists.
10260 debug=false
10261 ac_cs_recheck=false
10262 ac_cs_silent=false
10263 SHELL=\${CONFIG_SHELL-$SHELL}
10264 _ACEOF
10266 cat >>$CONFIG_STATUS <<\_ACEOF
10267 ## --------------------- ##
10268 ## M4sh Initialization. ##
10269 ## --------------------- ##
10271 # Be more Bourne compatible
10272 DUALCASE=1; export DUALCASE # for MKS sh
10273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10274 emulate sh
10275 NULLCMD=:
10276 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10277 # is contrary to our usage. Disable this feature.
10278 alias -g '${1+"$@"}'='"$@"'
10279 setopt NO_GLOB_SUBST
10280 else
10281 case `(set -o) 2>/dev/null` in
10282 *posix*) set -o posix ;;
10283 esac
10290 # PATH needs CR
10291 # Avoid depending upon Character Ranges.
10292 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10293 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10294 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10295 as_cr_digits='0123456789'
10296 as_cr_alnum=$as_cr_Letters$as_cr_digits
10298 # The user is always right.
10299 if test "${PATH_SEPARATOR+set}" != set; then
10300 echo "#! /bin/sh" >conf$$.sh
10301 echo "exit 0" >>conf$$.sh
10302 chmod +x conf$$.sh
10303 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10304 PATH_SEPARATOR=';'
10305 else
10306 PATH_SEPARATOR=:
10308 rm -f conf$$.sh
10311 # Support unset when possible.
10312 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10313 as_unset=unset
10314 else
10315 as_unset=false
10319 # IFS
10320 # We need space, tab and new line, in precisely that order. Quoting is
10321 # there to prevent editors from complaining about space-tab.
10322 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10323 # splitting by setting IFS to empty value.)
10324 as_nl='
10326 IFS=" "" $as_nl"
10328 # Find who we are. Look in the path if we contain no directory separator.
10329 case $0 in
10330 *[\\/]* ) as_myself=$0 ;;
10331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10332 for as_dir in $PATH
10334 IFS=$as_save_IFS
10335 test -z "$as_dir" && as_dir=.
10336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10337 done
10338 IFS=$as_save_IFS
10341 esac
10342 # We did not find ourselves, most probably we were run as `sh COMMAND'
10343 # in which case we are not to be found in the path.
10344 if test "x$as_myself" = x; then
10345 as_myself=$0
10347 if test ! -f "$as_myself"; then
10348 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10349 { (exit 1); exit 1; }
10352 # Work around bugs in pre-3.0 UWIN ksh.
10353 for as_var in ENV MAIL MAILPATH
10354 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10355 done
10356 PS1='$ '
10357 PS2='> '
10358 PS4='+ '
10360 # NLS nuisances.
10361 for as_var in \
10362 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10363 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10364 LC_TELEPHONE LC_TIME
10366 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10367 eval $as_var=C; export $as_var
10368 else
10369 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10371 done
10373 # Required to use basename.
10374 if expr a : '\(a\)' >/dev/null 2>&1 &&
10375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10376 as_expr=expr
10377 else
10378 as_expr=false
10381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10382 as_basename=basename
10383 else
10384 as_basename=false
10388 # Name of the executable.
10389 as_me=`$as_basename -- "$0" ||
10390 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10391 X"$0" : 'X\(//\)$' \| \
10392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10393 echo X/"$0" |
10394 sed '/^.*\/\([^/][^/]*\)\/*$/{
10395 s//\1/
10398 /^X\/\(\/\/\)$/{
10399 s//\1/
10402 /^X\/\(\/\).*/{
10403 s//\1/
10406 s/.*/./; q'`
10408 # CDPATH.
10409 $as_unset CDPATH
10413 as_lineno_1=$LINENO
10414 as_lineno_2=$LINENO
10415 test "x$as_lineno_1" != "x$as_lineno_2" &&
10416 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10418 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10419 # uniformly replaced by the line number. The first 'sed' inserts a
10420 # line-number line after each line using $LINENO; the second 'sed'
10421 # does the real work. The second script uses 'N' to pair each
10422 # line-number line with the line containing $LINENO, and appends
10423 # trailing '-' during substitution so that $LINENO is not a special
10424 # case at line end.
10425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10426 # scripts with optimization help from Paolo Bonzini. Blame Lee
10427 # E. McMahon (1931-1989) for sed's syntax. :-)
10428 sed -n '
10430 /[$]LINENO/=
10431 ' <$as_myself |
10432 sed '
10433 s/[$]LINENO.*/&-/
10434 t lineno
10436 :lineno
10438 :loop
10439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10440 t loop
10441 s/-\n.*//
10442 ' >$as_me.lineno &&
10443 chmod +x "$as_me.lineno" ||
10444 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10445 { (exit 1); exit 1; }; }
10447 # Don't try to exec as it changes $[0], causing all sort of problems
10448 # (the dirname of $[0] is not the place where we might find the
10449 # original and so on. Autoconf is especially sensitive to this).
10450 . "./$as_me.lineno"
10451 # Exit status is that of the last command.
10452 exit
10456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10457 as_dirname=dirname
10458 else
10459 as_dirname=false
10462 ECHO_C= ECHO_N= ECHO_T=
10463 case `echo -n x` in
10464 -n*)
10465 case `echo 'x\c'` in
10466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10467 *) ECHO_C='\c';;
10468 esac;;
10470 ECHO_N='-n';;
10471 esac
10473 if expr a : '\(a\)' >/dev/null 2>&1 &&
10474 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10475 as_expr=expr
10476 else
10477 as_expr=false
10480 rm -f conf$$ conf$$.exe conf$$.file
10481 if test -d conf$$.dir; then
10482 rm -f conf$$.dir/conf$$.file
10483 else
10484 rm -f conf$$.dir
10485 mkdir conf$$.dir
10487 echo >conf$$.file
10488 if ln -s conf$$.file conf$$ 2>/dev/null; then
10489 as_ln_s='ln -s'
10490 # ... but there are two gotchas:
10491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10493 # In both cases, we have to default to `cp -p'.
10494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10495 as_ln_s='cp -p'
10496 elif ln conf$$.file conf$$ 2>/dev/null; then
10497 as_ln_s=ln
10498 else
10499 as_ln_s='cp -p'
10501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10502 rmdir conf$$.dir 2>/dev/null
10504 if mkdir -p . 2>/dev/null; then
10505 as_mkdir_p=:
10506 else
10507 test -d ./-p && rmdir ./-p
10508 as_mkdir_p=false
10511 if test -x / >/dev/null 2>&1; then
10512 as_test_x='test -x'
10513 else
10514 if ls -dL / >/dev/null 2>&1; then
10515 as_ls_L_option=L
10516 else
10517 as_ls_L_option=
10519 as_test_x='
10520 eval sh -c '\''
10521 if test -d "$1"; then
10522 test -d "$1/.";
10523 else
10524 case $1 in
10525 -*)set "./$1";;
10526 esac;
10527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10528 ???[sx]*):;;*)false;;esac;fi
10529 '\'' sh
10532 as_executable_p=$as_test_x
10534 # Sed expression to map a string onto a valid CPP name.
10535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10537 # Sed expression to map a string onto a valid variable name.
10538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10541 exec 6>&1
10543 # Save the log message, to keep $[0] and so on meaningful, and to
10544 # report actual input values of CONFIG_FILES etc. instead of their
10545 # values after options handling.
10546 ac_log="
10547 This file was extended by $as_me, which was
10548 generated by GNU Autoconf 2.61. Invocation command line was
10550 CONFIG_FILES = $CONFIG_FILES
10551 CONFIG_HEADERS = $CONFIG_HEADERS
10552 CONFIG_LINKS = $CONFIG_LINKS
10553 CONFIG_COMMANDS = $CONFIG_COMMANDS
10554 $ $0 $@
10556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10559 _ACEOF
10561 cat >>$CONFIG_STATUS <<_ACEOF
10562 # Files that config.status was made for.
10563 config_files="$ac_config_files"
10564 config_headers="$ac_config_headers"
10566 _ACEOF
10568 cat >>$CONFIG_STATUS <<\_ACEOF
10569 ac_cs_usage="\
10570 \`$as_me' instantiates files from templates according to the
10571 current configuration.
10573 Usage: $0 [OPTIONS] [FILE]...
10575 -h, --help print this help, then exit
10576 -V, --version print version number and configuration settings, then exit
10577 -q, --quiet do not print progress messages
10578 -d, --debug don't remove temporary files
10579 --recheck update $as_me by reconfiguring in the same conditions
10580 --file=FILE[:TEMPLATE]
10581 instantiate the configuration file FILE
10582 --header=FILE[:TEMPLATE]
10583 instantiate the configuration header FILE
10585 Configuration files:
10586 $config_files
10588 Configuration headers:
10589 $config_headers
10591 Report bugs to <bug-autoconf@gnu.org>."
10593 _ACEOF
10594 cat >>$CONFIG_STATUS <<_ACEOF
10595 ac_cs_version="\\
10596 config.status
10597 configured by $0, generated by GNU Autoconf 2.61,
10598 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10600 Copyright (C) 2006 Free Software Foundation, Inc.
10601 This config.status script is free software; the Free Software Foundation
10602 gives unlimited permission to copy, distribute and modify it."
10604 ac_pwd='$ac_pwd'
10605 srcdir='$srcdir'
10606 _ACEOF
10608 cat >>$CONFIG_STATUS <<\_ACEOF
10609 # If no file are specified by the user, then we need to provide default
10610 # value. By we need to know if files were specified by the user.
10611 ac_need_defaults=:
10612 while test $# != 0
10614 case $1 in
10615 --*=*)
10616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10617 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10618 ac_shift=:
10621 ac_option=$1
10622 ac_optarg=$2
10623 ac_shift=shift
10625 esac
10627 case $ac_option in
10628 # Handling of the options.
10629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10630 ac_cs_recheck=: ;;
10631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10632 echo "$ac_cs_version"; exit ;;
10633 --debug | --debu | --deb | --de | --d | -d )
10634 debug=: ;;
10635 --file | --fil | --fi | --f )
10636 $ac_shift
10637 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10638 ac_need_defaults=false;;
10639 --header | --heade | --head | --hea )
10640 $ac_shift
10641 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10642 ac_need_defaults=false;;
10643 --he | --h)
10644 # Conflict between --help and --header
10645 { echo "$as_me: error: ambiguous option: $1
10646 Try \`$0 --help' for more information." >&2
10647 { (exit 1); exit 1; }; };;
10648 --help | --hel | -h )
10649 echo "$ac_cs_usage"; exit ;;
10650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10652 ac_cs_silent=: ;;
10654 # This is an error.
10655 -*) { echo "$as_me: error: unrecognized option: $1
10656 Try \`$0 --help' for more information." >&2
10657 { (exit 1); exit 1; }; } ;;
10659 *) ac_config_targets="$ac_config_targets $1"
10660 ac_need_defaults=false ;;
10662 esac
10663 shift
10664 done
10666 ac_configure_extra_args=
10668 if $ac_cs_silent; then
10669 exec 6>/dev/null
10670 ac_configure_extra_args="$ac_configure_extra_args --silent"
10673 _ACEOF
10674 cat >>$CONFIG_STATUS <<_ACEOF
10675 if \$ac_cs_recheck; then
10676 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10677 CONFIG_SHELL=$SHELL
10678 export CONFIG_SHELL
10679 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10682 _ACEOF
10683 cat >>$CONFIG_STATUS <<\_ACEOF
10684 exec 5>>config.log
10686 echo
10687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10688 ## Running $as_me. ##
10689 _ASBOX
10690 echo "$ac_log"
10691 } >&5
10693 _ACEOF
10694 cat >>$CONFIG_STATUS <<_ACEOF
10695 _ACEOF
10697 cat >>$CONFIG_STATUS <<\_ACEOF
10699 # Handling of arguments.
10700 for ac_config_target in $ac_config_targets
10702 case $ac_config_target in
10703 "src/System/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10704 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
10705 "src/makefile") CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10706 "src/System/tm_configure.hpp") CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10707 "misc/admin/admin.makefile") CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10708 "misc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10709 "misc/man/texmacs.1") CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10710 "misc/rpm/TeXmacs.spec") CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10711 "misc/scripts/fig2ps") CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10712 "misc/scripts/texmacs") CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10713 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10714 "misc/bundle/Base.xcconfig") CONFIG_FILES="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10716 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10717 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10718 { (exit 1); exit 1; }; };;
10719 esac
10720 done
10723 # If the user did not use the arguments to specify the items to instantiate,
10724 # then the envvar interface is used. Set only those that are not.
10725 # We use the long form for the default assignment because of an extremely
10726 # bizarre bug on SunOS 4.1.3.
10727 if $ac_need_defaults; then
10728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10729 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10732 # Have a temporary directory for convenience. Make it in the build tree
10733 # simply because there is no reason against having it here, and in addition,
10734 # creating and moving files from /tmp can sometimes cause problems.
10735 # Hook for its removal unless debugging.
10736 # Note that there is a small window in which the directory will not be cleaned:
10737 # after its creation but before its name has been assigned to `$tmp'.
10738 $debug ||
10740 tmp=
10741 trap 'exit_status=$?
10742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10744 trap '{ (exit 1); exit 1; }' 1 2 13 15
10746 # Create a (secure) tmp directory for tmp files.
10749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10750 test -n "$tmp" && test -d "$tmp"
10751 } ||
10753 tmp=./conf$$-$RANDOM
10754 (umask 077 && mkdir "$tmp")
10755 } ||
10757 echo "$me: cannot create a temporary directory in ." >&2
10758 { (exit 1); exit 1; }
10762 # Set up the sed scripts for CONFIG_FILES section.
10765 # No need to generate the scripts if there are no CONFIG_FILES.
10766 # This happens for instance when ./config.status config.h
10767 if test -n "$CONFIG_FILES"; then
10769 _ACEOF
10773 ac_delim='%!_!# '
10774 for ac_last_try in false false false false false :; do
10775 cat >conf$$subs.sed <<_ACEOF
10776 SHELL!$SHELL$ac_delim
10777 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10778 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10779 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10780 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10781 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10782 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10783 exec_prefix!$exec_prefix$ac_delim
10784 prefix!$prefix$ac_delim
10785 program_transform_name!$program_transform_name$ac_delim
10786 bindir!$bindir$ac_delim
10787 sbindir!$sbindir$ac_delim
10788 libexecdir!$libexecdir$ac_delim
10789 datarootdir!$datarootdir$ac_delim
10790 datadir!$datadir$ac_delim
10791 sysconfdir!$sysconfdir$ac_delim
10792 sharedstatedir!$sharedstatedir$ac_delim
10793 localstatedir!$localstatedir$ac_delim
10794 includedir!$includedir$ac_delim
10795 oldincludedir!$oldincludedir$ac_delim
10796 docdir!$docdir$ac_delim
10797 infodir!$infodir$ac_delim
10798 htmldir!$htmldir$ac_delim
10799 dvidir!$dvidir$ac_delim
10800 pdfdir!$pdfdir$ac_delim
10801 psdir!$psdir$ac_delim
10802 libdir!$libdir$ac_delim
10803 localedir!$localedir$ac_delim
10804 mandir!$mandir$ac_delim
10805 DEFS!$DEFS$ac_delim
10806 ECHO_C!$ECHO_C$ac_delim
10807 ECHO_N!$ECHO_N$ac_delim
10808 ECHO_T!$ECHO_T$ac_delim
10809 LIBS!$LIBS$ac_delim
10810 build_alias!$build_alias$ac_delim
10811 host_alias!$host_alias$ac_delim
10812 target_alias!$target_alias$ac_delim
10813 build!$build$ac_delim
10814 build_cpu!$build_cpu$ac_delim
10815 build_vendor!$build_vendor$ac_delim
10816 build_os!$build_os$ac_delim
10817 host!$host$ac_delim
10818 host_cpu!$host_cpu$ac_delim
10819 host_vendor!$host_vendor$ac_delim
10820 host_os!$host_os$ac_delim
10821 PACKAGE!$PACKAGE$ac_delim
10822 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10823 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10824 STABLE_VERSION!$STABLE_VERSION$ac_delim
10825 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10826 CC!$CC$ac_delim
10827 CFLAGS!$CFLAGS$ac_delim
10828 LDFLAGS!$LDFLAGS$ac_delim
10829 CPPFLAGS!$CPPFLAGS$ac_delim
10830 ac_ct_CC!$ac_ct_CC$ac_delim
10831 EXEEXT!$EXEEXT$ac_delim
10832 OBJEXT!$OBJEXT$ac_delim
10833 CXX!$CXX$ac_delim
10834 CXXFLAGS!$CXXFLAGS$ac_delim
10835 ac_ct_CXX!$ac_ct_CXX$ac_delim
10836 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10837 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10838 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10839 CXXCPP!$CXXCPP$ac_delim
10840 GREP!$GREP$ac_delim
10841 EGREP!$EGREP$ac_delim
10842 XMKMF!$XMKMF$ac_delim
10843 X_CFLAGS!$X_CFLAGS$ac_delim
10844 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10845 X_LIBS!$X_LIBS$ac_delim
10846 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10847 CONFIG_BDL!$CONFIG_BDL$ac_delim
10848 CPP!$CPP$ac_delim
10849 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10850 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10851 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10852 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10853 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10854 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10855 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10856 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10857 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10858 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10859 HAS_GS_EXE!$HAS_GS_EXE$ac_delim
10860 HAS_GS_LIB!$HAS_GS_LIB$ac_delim
10861 CONFIG_GS!$CONFIG_GS$ac_delim
10862 GS_EXE!$GS_EXE$ac_delim
10863 GS_DLL!$GS_DLL$ac_delim
10864 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10865 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10866 CONFIG_PDF!$CONFIG_PDF$ac_delim
10867 QMAKE!$QMAKE$ac_delim
10868 MOC!$MOC$ac_delim
10869 UIC!$UIC$ac_delim
10870 RCC!$RCC$ac_delim
10871 QT_PATH!$QT_PATH$ac_delim
10872 TMPDIR!$TMPDIR$ac_delim
10873 _ACEOF
10875 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10876 break
10877 elif $ac_last_try; then
10878 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10879 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10880 { (exit 1); exit 1; }; }
10881 else
10882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10884 done
10886 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10887 if test -n "$ac_eof"; then
10888 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10889 ac_eof=`expr $ac_eof + 1`
10892 cat >>$CONFIG_STATUS <<_ACEOF
10893 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10894 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10895 _ACEOF
10896 sed '
10897 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10898 s/^/s,@/; s/!/@,|#_!!_#|/
10901 s/'"$ac_delim"'$/,g/; t
10902 s/$/\\/; p
10903 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10904 ' >>$CONFIG_STATUS <conf$$subs.sed
10905 rm -f conf$$subs.sed
10906 cat >>$CONFIG_STATUS <<_ACEOF
10907 CEOF$ac_eof
10908 _ACEOF
10911 ac_delim='%!_!# '
10912 for ac_last_try in false false false false false :; do
10913 cat >conf$$subs.sed <<_ACEOF
10914 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10915 QT_DEFINES!$QT_DEFINES$ac_delim
10916 QT_CFLAGS!$QT_CFLAGS$ac_delim
10917 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10918 QT_INCPATH!$QT_INCPATH$ac_delim
10919 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10920 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10921 QT_LFLAGS!$QT_LFLAGS$ac_delim
10922 QT_LIBS!$QT_LIBS$ac_delim
10923 X11_CFLAGS!$X11_CFLAGS$ac_delim
10924 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10925 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10926 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10927 CONFIG_X11!$CONFIG_X11$ac_delim
10928 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10929 CONFIG_QT!$CONFIG_QT$ac_delim
10930 CONFIG_GUI!$CONFIG_GUI$ac_delim
10931 CONFIG_GUI_DEFINE!$CONFIG_GUI_DEFINE$ac_delim
10932 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10933 CONFIG_OS!$CONFIG_OS$ac_delim
10934 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10935 CONFIG_OS_COMPAT!$CONFIG_OS_COMPAT$ac_delim
10936 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10937 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10938 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10939 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10940 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10941 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10942 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10943 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10944 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10945 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10946 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10947 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10948 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10949 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10950 CONFIG_SO!$CONFIG_SO$ac_delim
10951 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10952 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10953 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10954 CONFIG_LDRT!$CONFIG_LDRT$ac_delim
10955 CONFIG_NATIVE_ARCH_TAG!$CONFIG_NATIVE_ARCH_TAG$ac_delim
10956 tmorig!$tmorig$ac_delim
10957 tmdir!$tmdir$ac_delim
10958 tmsrc!$tmsrc$ac_delim
10959 tmbin!$tmbin$ac_delim
10960 tmdata!$tmdata$ac_delim
10961 tmtgz!$tmtgz$ac_delim
10962 tmrpm!$tmrpm$ac_delim
10963 tmstgz!$tmstgz$ac_delim
10964 tmsrpm!$tmsrpm$ac_delim
10965 tmwin!$tmwin$ac_delim
10966 LIBOBJS!$LIBOBJS$ac_delim
10967 LTLIBOBJS!$LTLIBOBJS$ac_delim
10968 _ACEOF
10970 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
10971 break
10972 elif $ac_last_try; then
10973 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10974 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10975 { (exit 1); exit 1; }; }
10976 else
10977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10979 done
10981 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10982 if test -n "$ac_eof"; then
10983 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10984 ac_eof=`expr $ac_eof + 1`
10987 cat >>$CONFIG_STATUS <<_ACEOF
10988 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10990 _ACEOF
10991 sed '
10992 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10993 s/^/s,@/; s/!/@,|#_!!_#|/
10996 s/'"$ac_delim"'$/,g/; t
10997 s/$/\\/; p
10998 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10999 ' >>$CONFIG_STATUS <conf$$subs.sed
11000 rm -f conf$$subs.sed
11001 cat >>$CONFIG_STATUS <<_ACEOF
11002 :end
11003 s/|#_!!_#|//g
11004 CEOF$ac_eof
11005 _ACEOF
11008 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11009 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11010 # trailing colons and then remove the whole line if VPATH becomes empty
11011 # (actually we leave an empty line to preserve line numbers).
11012 if test "x$srcdir" = x.; then
11013 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11014 s/:*\$(srcdir):*/:/
11015 s/:*\${srcdir}:*/:/
11016 s/:*@srcdir@:*/:/
11017 s/^\([^=]*=[ ]*\):*/\1/
11018 s/:*$//
11019 s/^[^=]*=[ ]*$//
11023 cat >>$CONFIG_STATUS <<\_ACEOF
11024 fi # test -n "$CONFIG_FILES"
11027 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11029 case $ac_tag in
11030 :[FHLC]) ac_mode=$ac_tag; continue;;
11031 esac
11032 case $ac_mode$ac_tag in
11033 :[FHL]*:*);;
11034 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11035 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11036 { (exit 1); exit 1; }; };;
11037 :[FH]-) ac_tag=-:-;;
11038 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11039 esac
11040 ac_save_IFS=$IFS
11041 IFS=:
11042 set x $ac_tag
11043 IFS=$ac_save_IFS
11044 shift
11045 ac_file=$1
11046 shift
11048 case $ac_mode in
11049 :L) ac_source=$1;;
11050 :[FH])
11051 ac_file_inputs=
11052 for ac_f
11054 case $ac_f in
11055 -) ac_f="$tmp/stdin";;
11056 *) # Look for the file first in the build tree, then in the source tree
11057 # (if the path is not absolute). The absolute path cannot be DOS-style,
11058 # because $ac_f cannot contain `:'.
11059 test -f "$ac_f" ||
11060 case $ac_f in
11061 [\\/$]*) false;;
11062 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11063 esac ||
11064 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11065 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11066 { (exit 1); exit 1; }; };;
11067 esac
11068 ac_file_inputs="$ac_file_inputs $ac_f"
11069 done
11071 # Let's still pretend it is `configure' which instantiates (i.e., don't
11072 # use $as_me), people would be surprised to read:
11073 # /* config.h. Generated by config.status. */
11074 configure_input="Generated from "`IFS=:
11075 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11076 if test x"$ac_file" != x-; then
11077 configure_input="$ac_file. $configure_input"
11078 { echo "$as_me:$LINENO: creating $ac_file" >&5
11079 echo "$as_me: creating $ac_file" >&6;}
11082 case $ac_tag in
11083 *:-:* | *:-) cat >"$tmp/stdin";;
11084 esac
11086 esac
11088 ac_dir=`$as_dirname -- "$ac_file" ||
11089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11090 X"$ac_file" : 'X\(//\)[^/]' \| \
11091 X"$ac_file" : 'X\(//\)$' \| \
11092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11093 echo X"$ac_file" |
11094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11095 s//\1/
11098 /^X\(\/\/\)[^/].*/{
11099 s//\1/
11102 /^X\(\/\/\)$/{
11103 s//\1/
11106 /^X\(\/\).*/{
11107 s//\1/
11110 s/.*/./; q'`
11111 { as_dir="$ac_dir"
11112 case $as_dir in #(
11113 -*) as_dir=./$as_dir;;
11114 esac
11115 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11116 as_dirs=
11117 while :; do
11118 case $as_dir in #(
11119 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11120 *) as_qdir=$as_dir;;
11121 esac
11122 as_dirs="'$as_qdir' $as_dirs"
11123 as_dir=`$as_dirname -- "$as_dir" ||
11124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11125 X"$as_dir" : 'X\(//\)[^/]' \| \
11126 X"$as_dir" : 'X\(//\)$' \| \
11127 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11128 echo X"$as_dir" |
11129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11130 s//\1/
11133 /^X\(\/\/\)[^/].*/{
11134 s//\1/
11137 /^X\(\/\/\)$/{
11138 s//\1/
11141 /^X\(\/\).*/{
11142 s//\1/
11145 s/.*/./; q'`
11146 test -d "$as_dir" && break
11147 done
11148 test -z "$as_dirs" || eval "mkdir $as_dirs"
11149 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11150 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11151 { (exit 1); exit 1; }; }; }
11152 ac_builddir=.
11154 case "$ac_dir" in
11155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11157 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11158 # A ".." for each directory in $ac_dir_suffix.
11159 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11160 case $ac_top_builddir_sub in
11161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11163 esac ;;
11164 esac
11165 ac_abs_top_builddir=$ac_pwd
11166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11167 # for backward compatibility:
11168 ac_top_builddir=$ac_top_build_prefix
11170 case $srcdir in
11171 .) # We are building in place.
11172 ac_srcdir=.
11173 ac_top_srcdir=$ac_top_builddir_sub
11174 ac_abs_top_srcdir=$ac_pwd ;;
11175 [\\/]* | ?:[\\/]* ) # Absolute name.
11176 ac_srcdir=$srcdir$ac_dir_suffix;
11177 ac_top_srcdir=$srcdir
11178 ac_abs_top_srcdir=$srcdir ;;
11179 *) # Relative name.
11180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11181 ac_top_srcdir=$ac_top_build_prefix$srcdir
11182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11183 esac
11184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11187 case $ac_mode in
11190 # CONFIG_FILE
11193 _ACEOF
11195 cat >>$CONFIG_STATUS <<\_ACEOF
11196 # If the template does not know about datarootdir, expand it.
11197 # FIXME: This hack should be removed a few years after 2.60.
11198 ac_datarootdir_hack=; ac_datarootdir_seen=
11200 case `sed -n '/datarootdir/ {
11204 /@datadir@/p
11205 /@docdir@/p
11206 /@infodir@/p
11207 /@localedir@/p
11208 /@mandir@/p
11209 ' $ac_file_inputs` in
11210 *datarootdir*) ac_datarootdir_seen=yes;;
11211 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11212 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11213 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11214 _ACEOF
11215 cat >>$CONFIG_STATUS <<_ACEOF
11216 ac_datarootdir_hack='
11217 s&@datadir@&$datadir&g
11218 s&@docdir@&$docdir&g
11219 s&@infodir@&$infodir&g
11220 s&@localedir@&$localedir&g
11221 s&@mandir@&$mandir&g
11222 s&\\\${datarootdir}&$datarootdir&g' ;;
11223 esac
11224 _ACEOF
11226 # Neutralize VPATH when `$srcdir' = `.'.
11227 # Shell code in configure.ac might set extrasub.
11228 # FIXME: do we really want to maintain this feature?
11229 cat >>$CONFIG_STATUS <<_ACEOF
11230 sed "$ac_vpsub
11231 $extrasub
11232 _ACEOF
11233 cat >>$CONFIG_STATUS <<\_ACEOF
11235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11236 s&@configure_input@&$configure_input&;t t
11237 s&@top_builddir@&$ac_top_builddir_sub&;t t
11238 s&@srcdir@&$ac_srcdir&;t t
11239 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11240 s&@top_srcdir@&$ac_top_srcdir&;t t
11241 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11242 s&@builddir@&$ac_builddir&;t t
11243 s&@abs_builddir@&$ac_abs_builddir&;t t
11244 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11245 $ac_datarootdir_hack
11246 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11248 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11249 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11250 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11251 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11252 which seems to be undefined. Please make sure it is defined." >&5
11253 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11254 which seems to be undefined. Please make sure it is defined." >&2;}
11256 rm -f "$tmp/stdin"
11257 case $ac_file in
11258 -) cat "$tmp/out"; rm -f "$tmp/out";;
11259 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11260 esac
11264 # CONFIG_HEADER
11266 _ACEOF
11268 # Transform confdefs.h into a sed script `conftest.defines', that
11269 # substitutes the proper values into config.h.in to produce config.h.
11270 rm -f conftest.defines conftest.tail
11271 # First, append a space to every undef/define line, to ease matching.
11272 echo 's/$/ /' >conftest.defines
11273 # Then, protect against being on the right side of a sed subst, or in
11274 # an unquoted here document, in config.status. If some macros were
11275 # called several times there might be several #defines for the same
11276 # symbol, which is useless. But do not sort them, since the last
11277 # AC_DEFINE must be honored.
11278 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11279 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11280 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11281 # PARAMS is the parameter list in the macro definition--in most cases, it's
11282 # just an empty string.
11283 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11284 ac_dB='\\)[ (].*,\\1define\\2'
11285 ac_dC=' '
11286 ac_dD=' ,'
11288 uniq confdefs.h |
11289 sed -n '
11290 t rset
11291 :rset
11292 s/^[ ]*#[ ]*define[ ][ ]*//
11293 t ok
11296 s/[\\&,]/\\&/g
11297 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11298 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11299 ' >>conftest.defines
11301 # Remove the space that was appended to ease matching.
11302 # Then replace #undef with comments. This is necessary, for
11303 # example, in the case of _POSIX_SOURCE, which is predefined and required
11304 # on some systems where configure will not decide to define it.
11305 # (The regexp can be short, since the line contains either #define or #undef.)
11306 echo 's/ $//
11307 s,^[ #]*u.*,/* & */,' >>conftest.defines
11309 # Break up conftest.defines:
11310 ac_max_sed_lines=50
11312 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11313 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11314 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11315 # et cetera.
11316 ac_in='$ac_file_inputs'
11317 ac_out='"$tmp/out1"'
11318 ac_nxt='"$tmp/out2"'
11320 while :
11322 # Write a here document:
11323 cat >>$CONFIG_STATUS <<_ACEOF
11324 # First, check the format of the line:
11325 cat >"\$tmp/defines.sed" <<\\CEOF
11326 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11327 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11329 :def
11330 _ACEOF
11331 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11332 echo 'CEOF
11333 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11334 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11335 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11336 grep . conftest.tail >/dev/null || break
11337 rm -f conftest.defines
11338 mv conftest.tail conftest.defines
11339 done
11340 rm -f conftest.defines conftest.tail
11342 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11343 cat >>$CONFIG_STATUS <<\_ACEOF
11344 if test x"$ac_file" != x-; then
11345 echo "/* $configure_input */" >"$tmp/config.h"
11346 cat "$ac_result" >>"$tmp/config.h"
11347 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11348 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11349 echo "$as_me: $ac_file is unchanged" >&6;}
11350 else
11351 rm -f $ac_file
11352 mv "$tmp/config.h" $ac_file
11354 else
11355 echo "/* $configure_input */"
11356 cat "$ac_result"
11358 rm -f "$tmp/out12"
11362 esac
11364 done # for ac_tag
11367 { (exit 0); exit 0; }
11368 _ACEOF
11369 chmod +x $CONFIG_STATUS
11370 ac_clean_files=$ac_clean_files_save
11373 # configure is writing to config.log, and then calls config.status.
11374 # config.status does its own redirection, appending to config.log.
11375 # Unfortunately, on DOS this fails, as config.log is still kept open
11376 # by configure, so config.status won't be able to write to it; its
11377 # output is simply discarded. So we exec the FD to /dev/null,
11378 # effectively closing config.log, so it can be properly (re)opened and
11379 # appended to by config.status. When coming back to configure, we
11380 # need to make the FD available again.
11381 if test "$no_create" != yes; then
11382 ac_cs_success=:
11383 ac_config_status_args=
11384 test "$silent" = yes &&
11385 ac_config_status_args="$ac_config_status_args --quiet"
11386 exec 5>/dev/null
11387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11388 exec 5>>config.log
11389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11390 # would make configure fail if this is the last instruction.
11391 $ac_cs_success || { (exit 1); exit 1; }