2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 # Factoring default headers for most tests.
555 ac_includes_default
="\
557 #ifdef HAVE_SYS_TYPES_H
558 # include <sys/types.h>
560 #ifdef HAVE_SYS_STAT_H
561 # include <sys/stat.h>
567 # ifdef HAVE_STDLIB_H
572 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 #ifdef HAVE_STRINGS_H
578 # include <strings.h>
580 #ifdef HAVE_INTTYPES_H
581 # include <inttypes.h>
590 ac_subst_vars
='LTLIBOBJS
602 CONFIG_NATIVE_ARCH_TAG
612 CONFIG_WORD_LENGTH_INC
725 program_transform_name
738 enable_option_checking
747 enable_macosx_extensions
756 ac_precious_vars
='build_alias
773 # Initialize some variables set by options.
775 ac_init_version
=false
776 ac_unrecognized_opts
=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
787 program_transform_name
=s
,x
,x
,
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir
='${exec_prefix}/bin'
802 sbindir
='${exec_prefix}/sbin'
803 libexecdir
='${exec_prefix}/libexec'
804 datarootdir
='${prefix}/share'
805 datadir
='${datarootdir}'
806 sysconfdir
='${prefix}/etc'
807 sharedstatedir
='${prefix}/com'
808 localstatedir
='${prefix}/var'
809 includedir
='${prefix}/include'
810 oldincludedir
='/usr/include'
811 docdir
='${datarootdir}/doc/${PACKAGE}'
812 infodir
='${datarootdir}/info'
817 libdir
='${exec_prefix}/lib'
818 localedir
='${datarootdir}/locale'
819 mandir
='${datarootdir}/man'
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\
$ac_option
833 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
843 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
845 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
848 -build |
--build |
--buil |
--bui |
--bu)
849 ac_prev
=build_alias
;;
850 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
851 build_alias
=$ac_optarg ;;
853 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
854 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
855 ac_prev
=cache_file
;;
856 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
857 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
858 cache_file
=$ac_optarg ;;
861 cache_file
=config.cache
;;
863 -datadir |
--datadir |
--datadi |
--datad)
865 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
866 datadir
=$ac_optarg ;;
868 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
869 |
--dataroo |
--dataro |
--datar)
870 ac_prev
=datarootdir
;;
871 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
872 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
873 datarootdir
=$ac_optarg ;;
875 -disable-* |
--disable-*)
876 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
879 as_fn_error
"invalid feature name: $ac_useropt"
880 ac_useropt_orig
=$ac_useropt
881 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
886 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep
=', ';;
889 eval enable_
$ac_useropt=no
;;
891 -docdir |
--docdir |
--docdi |
--doc |
--do)
893 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
896 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
898 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
901 -enable-* |
--enable-*)
902 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
905 as_fn_error
"invalid feature name: $ac_useropt"
906 ac_useropt_orig
=$ac_useropt
907 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
912 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep
=', ';;
915 eval enable_
$ac_useropt=\
$ac_optarg ;;
917 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
918 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
919 |
--exec |
--exe |
--ex)
920 ac_prev
=exec_prefix
;;
921 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
922 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
923 |
--exec=* |
--exe=* |
--ex=*)
924 exec_prefix
=$ac_optarg ;;
926 -gas |
--gas |
--ga |
--g)
927 # Obsolete; use --with-gas.
930 -help |
--help |
--hel |
--he |
-h)
932 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
933 ac_init_help
=recursive
;;
934 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
935 ac_init_help
=short
;;
937 -host |
--host |
--hos |
--ho)
938 ac_prev
=host_alias
;;
939 -host=* |
--host=* |
--hos=* |
--ho=*)
940 host_alias
=$ac_optarg ;;
942 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
944 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
946 htmldir
=$ac_optarg ;;
948 -includedir |
--includedir |
--includedi |
--included |
--include \
949 |
--includ |
--inclu |
--incl |
--inc)
950 ac_prev
=includedir
;;
951 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
952 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
953 includedir
=$ac_optarg ;;
955 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
957 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
958 infodir
=$ac_optarg ;;
960 -libdir |
--libdir |
--libdi |
--libd)
962 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
965 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
966 |
--libexe |
--libex |
--libe)
967 ac_prev
=libexecdir
;;
968 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
969 |
--libexe=* |
--libex=* |
--libe=*)
970 libexecdir
=$ac_optarg ;;
972 -localedir |
--localedir |
--localedi |
--localed |
--locale)
974 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
975 localedir
=$ac_optarg ;;
977 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
978 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
979 ac_prev
=localstatedir
;;
980 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
981 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
982 localstatedir
=$ac_optarg ;;
984 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
986 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
990 # Obsolete; use --without-fp.
993 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
994 |
--no-cr |
--no-c |
-n)
997 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
998 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1001 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1002 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1003 |
--oldin |
--oldi |
--old |
--ol |
--o)
1004 ac_prev
=oldincludedir
;;
1005 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1006 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1007 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1008 oldincludedir
=$ac_optarg ;;
1010 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1012 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1013 prefix
=$ac_optarg ;;
1015 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1016 |
--program-pre |
--program-pr |
--program-p)
1017 ac_prev
=program_prefix
;;
1018 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1019 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1020 program_prefix
=$ac_optarg ;;
1022 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1023 |
--program-suf |
--program-su |
--program-s)
1024 ac_prev
=program_suffix
;;
1025 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1026 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1027 program_suffix
=$ac_optarg ;;
1029 -program-transform-name |
--program-transform-name \
1030 |
--program-transform-nam |
--program-transform-na \
1031 |
--program-transform-n |
--program-transform- \
1032 |
--program-transform |
--program-transfor \
1033 |
--program-transfo |
--program-transf \
1034 |
--program-trans |
--program-tran \
1035 |
--progr-tra |
--program-tr |
--program-t)
1036 ac_prev
=program_transform_name
;;
1037 -program-transform-name=* |
--program-transform-name=* \
1038 |
--program-transform-nam=* |
--program-transform-na=* \
1039 |
--program-transform-n=* |
--program-transform-=* \
1040 |
--program-transform=* |
--program-transfor=* \
1041 |
--program-transfo=* |
--program-transf=* \
1042 |
--program-trans=* |
--program-tran=* \
1043 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1044 program_transform_name
=$ac_optarg ;;
1046 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1048 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1049 pdfdir
=$ac_optarg ;;
1051 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1053 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1056 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1057 |
-silent |
--silent |
--silen |
--sile |
--sil)
1060 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1062 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1064 sbindir
=$ac_optarg ;;
1066 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1067 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1068 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1070 ac_prev
=sharedstatedir
;;
1071 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1072 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1073 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1075 sharedstatedir
=$ac_optarg ;;
1077 -site |
--site |
--sit)
1079 -site=* |
--site=* |
--sit=*)
1082 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1084 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1085 srcdir
=$ac_optarg ;;
1087 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1088 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1089 ac_prev
=sysconfdir
;;
1090 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1091 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1092 sysconfdir
=$ac_optarg ;;
1094 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1095 ac_prev
=target_alias
;;
1096 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1097 target_alias
=$ac_optarg ;;
1099 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1102 -version |
--version |
--versio |
--versi |
--vers |
-V)
1103 ac_init_version
=: ;;
1106 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1109 as_fn_error
"invalid package name: $ac_useropt"
1110 ac_useropt_orig
=$ac_useropt
1111 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep
=', ';;
1119 eval with_
$ac_useropt=\
$ac_optarg ;;
1121 -without-* |
--without-*)
1122 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1125 as_fn_error
"invalid package name: $ac_useropt"
1126 ac_useropt_orig
=$ac_useropt
1127 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep
=', ';;
1135 eval with_
$ac_useropt=no
;;
1138 # Obsolete; use --with-x.
1141 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1142 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1143 ac_prev
=x_includes
;;
1144 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1145 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1146 x_includes
=$ac_optarg ;;
1148 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1149 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1150 ac_prev
=x_libraries
;;
1151 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1152 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1153 x_libraries
=$ac_optarg ;;
1155 -*) as_fn_error
"unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information."
1160 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1164 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1166 eval $ac_envvar=\
$ac_optarg
1167 export $ac_envvar ;;
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180 if test -n "$ac_prev"; then
1181 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error
"missing argument to $ac_option"
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1188 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 # Check all directory arguments for consistency.
1194 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1199 eval ac_val
=\$
$ac_var
1200 # Remove trailing slashes.
1203 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\
$ac_val;;
1206 # Be sure to have absolute directory names.
1208 [\\/$
]* | ?
:[\\/]* ) continue;;
1209 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1211 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1219 target
=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x
; then
1223 if test "x$build_alias" = x
; then
1224 cross_compiling
=maybe
1225 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1235 test "$silent" = yes && exec 6>/dev
/null
1238 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di
=`ls -di .` &&
1240 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error
"working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error
"pwd does not report name of working directory"
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted
=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir
=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1278 ac_srcdir_defaulted
=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1282 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1284 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var
in $ac_precious_vars; do
1299 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1301 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures this package to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1370 --x-includes=DIR X include files are
in DIR
1371 --x-libraries=DIR X library files are
in DIR
1374 --build=BUILD configure
for building on BUILD
[guessed
]
1375 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1379 if test -n "$ac_init_help"; then
1384 --disable-option-checking ignore unrecognized
--enable/--with options
1385 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1386 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1387 --disable-fastalloc omit fast allocator
for small objects
1388 --enable-experimental support new style rewriting code
1389 --enable-macosx-extensions support new style rewriting code
1390 --enable-qt replace X11 by Qt interface
1391 --enable-cocoa replace X11 by Cocoa interface
1392 --enable-debug=ARG
install a debugging
enable executable
-ggdb
1393 --enable-assert exit on failed assertions
in code
1394 --enable-warnings print warning messages during compilation
1395 --enable-optimize=ARG compile with optimizations guessed
1398 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1399 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1400 --with-x use the X Window System
1401 --with-iconv=DIR where to
find iconv system
1402 --with-freetype=ARG with freetype support ARG
=linked
1403 --with-cairo=ARG with cairo support ARG
=no
1404 --with-imlib2=ARG with imlib2 support ARG
=no
1405 --with-axel=ARG with axel support ARG
=no
1406 --with-qt Path to Qt
[Look
in PATH and
/usr
/local
/Trolltech
]
1408 Some influential environment variables
:
1409 CC C compiler
command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1412 nonstandard directory
<lib dir
>
1413 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1414 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1415 you have headers
in a nonstandard directory
<include dir
>
1416 CXX C
++ compiler
command
1417 CXXFLAGS C
++ compiler flags
1418 CXXCPP C
++ preprocessor
1419 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1421 TMPDIR A temporary directory with
write access
[/tmp
]
1423 Use these variables to override the choices made by
`configure' or to help
1424 it to find libraries and programs with nonstandard names/locations.
1426 Report bugs to the package provider.
1431 if test "$ac_init_help" = "recursive"; then
1432 # If there are subdirs, report their specific --help.
1433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1434 test -d "$ac_dir" ||
1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1443 # A ".." for each directory in $ac_dir_suffix.
1444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1445 case $ac_top_builddir_sub in
1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 ac_abs_top_builddir=$ac_pwd
1451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452 # for backward compatibility:
1453 ac_top_builddir=$ac_top_build_prefix
1456 .) # We are building in place.
1458 ac_top_srcdir=$ac_top_builddir_sub
1459 ac_abs_top_srcdir=$ac_pwd ;;
1460 [\\/]* | ?:[\\/]* ) # Absolute name.
1461 ac_srcdir=$srcdir$ac_dir_suffix;
1462 ac_top_srcdir=$srcdir
1463 ac_abs_top_srcdir=$srcdir ;;
1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466 ac_top_srcdir=$ac_top_build_prefix$srcdir
1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471 cd "$ac_dir" || { ac_status=$?; continue; }
1472 # Check for guested configure.
1473 if test -f "$ac_srcdir/configure.gnu"; then
1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476 elif test -f "$ac_srcdir/configure"; then
1478 $SHELL "$ac_srcdir/configure" --help=recursive
1480 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 cd "$ac_pwd" || { ac_status=$?; break; }
1486 test -n "$ac_init_help" && exit $ac_status
1487 if $ac_init_version; then
1490 generated by GNU Autoconf 2.64
1492 Copyright (C) 2009 Free Software Foundation, Inc.
1493 This configure script is free software; the Free Software Foundation
1494 gives unlimited permission to copy, distribute and modify it.
1499 ## ------------------------ ##
1500 ## Autoconf initialization. ##
1501 ## ------------------------ ##
1503 # ac_fn_c_try_compile LINENO
1504 # --------------------------
1505 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1506 ac_fn_c_try_compile ()
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 rm -f conftest.$ac_objext
1510 if { { ac_try="$ac_compile"
1512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1513 *) ac_try_echo
=$ac_try;;
1515 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_compile") 2>conftest.err
1519 if test -s conftest.err
; then
1520 grep -v '^ *+' conftest.err
>conftest.er1
1521 cat conftest.er1
>&5
1522 mv -f conftest.er1 conftest.err
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } && {
1526 test -z "$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 } && test -s conftest.
$ac_objext; then :
1531 $as_echo "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.
$ac_ext >&5
1536 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1539 } # ac_fn_c_try_compile
1541 # ac_fn_cxx_try_compile LINENO
1542 # ----------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_cxx_try_compile
()
1546 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1547 rm -f conftest.
$ac_objext
1548 if { { ac_try
="$ac_compile"
1550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_cxx_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 } # ac_fn_cxx_try_compile
1579 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1580 # ---------------------------------------------
1581 # Tests whether TYPE exists after having included INCLUDES, setting cache
1582 # variable VAR accordingly.
1583 ac_fn_cxx_check_type ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 $as_echo_n "(cached) " >&6
1592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593 /* end confdefs.h. */
1604 if ac_fn_cxx_try_compile "$LINENO"; then :
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1617 if ac_fn_cxx_try_compile "$LINENO"; then :
1622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 $as_echo "$ac_res" >&6; }
1629 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 } # ac_fn_cxx_check_type
1633 # ac_fn_cxx_try_cpp LINENO
1634 # ------------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_cxx_try_cpp ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1642 *) ac_try_echo
=$ac_try;;
1644 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1648 if test -s conftest.err
; then
1649 grep -v '^ *+' conftest.err
>conftest.er1
1650 cat conftest.er1
>&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } >/dev
/null
&& {
1655 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1656 test ! -s conftest.err
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.
$ac_ext >&5
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1668 } # ac_fn_cxx_try_cpp
1670 # ac_fn_cxx_try_run LINENO
1671 # ------------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_cxx_try_run
()
1676 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1677 if { { ac_try
="$ac_link"
1679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1690 *) ac_try_echo
=$ac_try;;
1692 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.
$ac_ext >&5
1704 ac_retval
=$ac_status
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1710 } # ac_fn_cxx_try_run
1712 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1713 # ---------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_cxx_check_header_compile
()
1718 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1729 if ac_fn_cxx_try_compile
"$LINENO"; then :
1734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1741 } # ac_fn_cxx_check_header_compile
1743 # ac_fn_cxx_try_link LINENO
1744 # -------------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_cxx_try_link
()
1748 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1749 rm -f conftest.
$ac_objext conftest
$ac_exeext
1750 if { { ac_try
="$ac_link"
1752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_cxx_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest$ac_exeext && {
1769 test "$cross_compiling" = yes ||
1770 $as_test_x conftest$ac_exeext
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 } # ac_fn_cxx_try_link
1789 # ac_fn_cxx_check_func LINENO FUNC VAR
1790 # ------------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_cxx_check_func ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 $as_echo_n "(cached) " >&6
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1812 # include <limits.h>
1814 # include <assert.h>
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1841 if ac_fn_cxx_try_link "$LINENO"; then :
1846 rm -f core conftest.err conftest.$ac_objext \
1847 conftest$ac_exeext conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 } # ac_fn_cxx_check_func
1856 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1857 # ---------------------------------------------------------
1858 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1859 # the include files in INCLUDES and setting the cache variable VAR
1861 ac_fn_cxx_check_header_mongrel ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1874 # Is the header compilable?
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1876 $as_echo_n "checking $2 usability... " >&6; }
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1882 if ac_fn_cxx_try_compile "$LINENO"; then :
1883 ac_header_compiler=yes
1885 ac_header_compiler=no
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1889 $as_echo "$ac_header_compiler" >&6; }
1891 # Is the header present?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1893 $as_echo_n "checking $2 presence... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1898 if ac_fn_cxx_try_cpp "$LINENO"; then :
1899 ac_header_preproc=yes
1901 ac_header_preproc=no
1903 rm -f conftest.err conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1905 $as_echo "$ac_header_preproc" >&6; }
1907 # So? What about this header?
1908 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1911 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1917 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1919 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1921 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1923 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1933 eval "$3=\$ac_header_compiler"
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 } # ac_fn_cxx_check_header_mongrel
1943 # ac_fn_c_try_cpp LINENO
1944 # ----------------------
1945 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_cpp conftest.$ac_ext"
1951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1952 *) ac_try_echo
=$ac_try;;
1954 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958 if test -s conftest.err
; then
1959 grep -v '^ *+' conftest.err
>conftest.er1
1960 cat conftest.er1
>&5
1961 mv -f conftest.er1 conftest.err
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } >/dev
/null
&& {
1965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1966 test ! -s conftest.err
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.
$ac_ext >&5
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1980 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1983 # the include files in INCLUDES and setting the cache variable VAR
1985 ac_fn_c_check_header_mongrel
()
1987 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1988 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1992 $as_echo_n "(cached) " >&6
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 # Is the header compilable?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2000 $as_echo_n "checking $2 usability... " >&6; }
2001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2006 if ac_fn_c_try_compile
"$LINENO"; then :
2007 ac_header_compiler
=yes
2009 ac_header_compiler
=no
2011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2013 $as_echo "$ac_header_compiler" >&6; }
2015 # Is the header present?
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2017 $as_echo_n "checking $2 presence... " >&6; }
2018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 if ac_fn_c_try_cpp
"$LINENO"; then :
2023 ac_header_preproc
=yes
2025 ac_header_preproc
=no
2027 rm -f conftest.err conftest.
$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2029 $as_echo "$ac_header_preproc" >&6; }
2031 # So? What about this header?
2032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2035 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2041 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2043 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2045 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2047 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2055 $as_echo_n "(cached) " >&6
2057 eval "$3=\$ac_header_compiler"
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2065 } # ac_fn_c_check_header_mongrel
2067 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2068 # ----------------------------------------------
2069 # Tries to find the compile-time value of EXPR in a program that includes
2070 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2072 ac_fn_cxx_compute_int
()
2074 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2075 if test "$cross_compiling" = yes; then
2076 # Depending upon the size, compute the lo and hi bounds.
2077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2083 static int test_array [1 - 2 * !(($2) >= 0)];
2090 if ac_fn_cxx_try_compile
"$LINENO"; then :
2093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 if ac_fn_cxx_try_compile
"$LINENO"; then :
2107 ac_hi
=$ac_mid; break
2109 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2110 if test $ac_lo -le $ac_mid; then
2114 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2125 static int test_array [1 - 2 * !(($2) < 0)];
2132 if ac_fn_cxx_try_compile
"$LINENO"; then :
2135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2148 if ac_fn_cxx_try_compile
"$LINENO"; then :
2149 ac_lo
=$ac_mid; break
2151 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2152 if test $ac_mid -le $ac_hi; then
2156 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2166 # Binary search between lo and hi bounds.
2167 while test "x$ac_lo" != "x$ac_hi"; do
2168 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2175 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2182 if ac_fn_cxx_try_compile
"$LINENO"; then :
2185 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2190 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2197 static long int longval () { return $2; }
2198 static unsigned long int ulongval () { return $2; }
2205 FILE *f = fopen ("conftest.val", "w");
2210 long int i = longval ();
2213 fprintf (f, "%ld", i);
2217 unsigned long int i = ulongval ();
2220 fprintf (f, "%lu", i);
2222 /* Do not output a trailing newline, as this causes \r\n confusion
2223 on some platforms. */
2224 return ferror (f) || fclose (f) != 0;
2230 if ac_fn_cxx_try_run
"$LINENO"; then :
2231 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2235 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2236 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2240 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2243 } # ac_fn_cxx_compute_int
2244 cat >config.log
<<_ACEOF
2245 This file contains any messages produced by compilers while
2246 running configure, to aid debugging if configure makes a mistake.
2248 It was created by $as_me, which was
2249 generated by GNU Autoconf 2.64. Invocation command line was
2261 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2262 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2263 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2264 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2265 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2267 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2268 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2270 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2271 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2272 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2273 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2274 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2275 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2276 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir
=.
2285 $as_echo "PATH: $as_dir"
2301 # Keep a trace of the command line.
2302 # Strip out --no-create and --no-recursion so they do not pile up.
2303 # Strip out --silent because we don't want to record it for future runs.
2304 # Also quote any args containing shell meta-characters.
2305 # Make two passes to allow for proper duplicate-argument suppression.
2309 ac_must_keep_next
=false
2315 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2316 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2317 |
-silent |
--silent |
--silen |
--sile |
--sil)
2320 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2323 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2325 as_fn_append ac_configure_args1
" '$ac_arg'"
2326 if test $ac_must_keep_next = true
; then
2327 ac_must_keep_next
=false
# Got value, back to normal.
2330 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2331 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2332 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2333 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2334 case "$ac_configure_args0 " in
2335 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2338 -* ) ac_must_keep_next
=true
;;
2341 as_fn_append ac_configure_args
" '$ac_arg'"
2346 { ac_configure_args0
=; unset ac_configure_args0
;}
2347 { ac_configure_args1
=; unset ac_configure_args1
;}
2349 # When interrupted or exit'd, cleanup temporary files, and complete
2350 # config.log. We remove comments because anyway the quotes in there
2351 # would cause problems or look ugly.
2352 # WARNING: Use '\'' to represent an apostrophe within the trap.
2353 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2354 trap 'exit_status=$?
2355 # Save into config.log some information that might help in debugging.
2360 ## ---------------- ##
2361 ## Cache variables. ##
2362 ## ---------------- ##
2365 # The following way of writing the cache mishandles newlines in values,
2367 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2368 eval ac_val=\$$ac_var
2372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2376 _ | IFS | as_nl) ;; #(
2377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2378 *) { eval $ac_var=; unset $ac_var;} ;;
2383 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2384 *${as_nl}ac_space=\ *)
2386 "s/'\''/'\''\\\\'\'''\''/g;
2387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2398 ## ----------------- ##
2399 ## Output variables. ##
2400 ## ----------------- ##
2403 for ac_var in $ac_subst_vars
2405 eval ac_val=\$$ac_var
2407 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 $as_echo "$ac_var='\''$ac_val'\''"
2413 if test -n "$ac_subst_files"; then
2415 ## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##
2420 for ac_var
in $ac_subst_files
2422 eval ac_val
=\$
$ac_var
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426 $as_echo "$ac_var='\''$ac_val'\''"
2431 if test -s confdefs.h; then
2441 test "$ac_signal" != 0 &&
2442 $as_echo "$as_me: caught signal $ac_signal"
2443 $as_echo "$as_me: exit $exit_status"
2445 rm -f core *.core core.conftest.* &&
2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2449 for ac_signal
in 1 2 13 15; do
2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2455 rm -f -r conftest
* confdefs.h
2457 $as_echo "/* confdefs.h */" > confdefs.h
2459 # Predefined preprocessor variables.
2461 cat >>confdefs.h
<<_ACEOF
2462 #define PACKAGE_NAME "$PACKAGE_NAME"
2465 cat >>confdefs.h
<<_ACEOF
2466 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2469 cat >>confdefs.h
<<_ACEOF
2470 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2473 cat >>confdefs.h
<<_ACEOF
2474 #define PACKAGE_STRING "$PACKAGE_STRING"
2477 cat >>confdefs.h
<<_ACEOF
2478 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2481 cat >>confdefs.h
<<_ACEOF
2482 #define PACKAGE_URL "$PACKAGE_URL"
2486 # Let the site file select an alternate cache file if it wants to.
2487 # Prefer an explicitly selected file to automatically selected ones.
2490 if test -n "$CONFIG_SITE"; then
2491 ac_site_file1
=$CONFIG_SITE
2492 elif test "x$prefix" != xNONE
; then
2493 ac_site_file1
=$prefix/share
/config.site
2494 ac_site_file2
=$prefix/etc
/config.site
2496 ac_site_file1
=$ac_default_prefix/share
/config.site
2497 ac_site_file2
=$ac_default_prefix/etc
/config.site
2499 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2501 test "x$ac_site_file" = xNONE
&& continue
2502 if test -r "$ac_site_file"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2504 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2505 sed 's/^/| /' "$ac_site_file" >&5
2510 if test -r "$cache_file"; then
2511 # Some versions of bash will fail to source /dev/null (special
2512 # files actually), so we avoid doing that.
2513 if test -f "$cache_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2515 $as_echo "$as_me: loading cache $cache_file" >&6;}
2517 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2518 *) .
"./$cache_file";;
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2523 $as_echo "$as_me: creating cache $cache_file" >&6;}
2527 # Check that the precious variables saved in the cache have kept the same
2529 ac_cache_corrupted
=false
2530 for ac_var
in $ac_precious_vars; do
2531 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2532 eval ac_new_set
=\
$ac_env_${ac_var}_set
2533 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2534 eval ac_new_val
=\
$ac_env_${ac_var}_value
2535 case $ac_old_set,$ac_new_set in
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2538 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2539 ac_cache_corrupted
=: ;;
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2543 ac_cache_corrupted
=: ;;
2546 if test "x$ac_old_val" != "x$ac_new_val"; then
2547 # differences in whitespace do not lead to failure.
2548 ac_old_val_w
=`echo x $ac_old_val`
2549 ac_new_val_w
=`echo x $ac_new_val`
2550 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2552 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2553 ac_cache_corrupted
=:
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2556 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2557 eval $ac_var=\
$ac_old_val
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2560 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2562 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2565 # Pass precious variables to config.status.
2566 if test "$ac_new_set" = set; then
2568 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2569 *) ac_arg
=$ac_var=$ac_new_val ;;
2571 case " $ac_configure_args " in
2572 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2573 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2577 if $ac_cache_corrupted; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2581 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2582 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2584 ## -------------------- ##
2585 ## Main body of script. ##
2586 ## -------------------- ##
2589 ac_cpp
='$CPP $CPPFLAGS'
2590 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2595 ac_config_headers
="$ac_config_headers src/System/config.h:src/System/config.in"
2599 DEVEL_VERSION
="1.0.7.3"
2601 STABLE_VERSION
="1.0.7"
2603 WINDOWS_VERSION
="1.0.5"
2611 #--------------------------------------------------------------------
2612 # Checks for C++ compiler
2613 #--------------------------------------------------------------------
2616 ac_cpp
='$CPP $CPPFLAGS'
2617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2620 if test -n "$ac_tool_prefix"; then
2621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2622 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_CC+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC
="$CC" # Let the user override the test.
2631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir
=.
2636 for ac_exec_ext
in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 if test -n "$CC"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2651 $as_echo "$CC" >&6; }
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2659 if test -z "$ac_cv_prog_CC"; then
2661 # Extract the first word of "gcc", so it can be a program name with args.
2662 set dummy gcc
; ac_word
=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2668 if test -n "$ac_ct_CC"; then
2669 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir
=.
2676 for ac_exec_ext
in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_ac_ct_CC
="gcc"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2689 if test -n "$ac_ct_CC"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2691 $as_echo "$ac_ct_CC" >&6; }
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2697 if test "x$ac_ct_CC" = x
; then
2700 case $cross_compiling:$ac_tool_warned in
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2704 ac_tool_warned
=yes ;;
2712 if test -z "$CC"; then
2713 if test -n "$ac_tool_prefix"; then
2714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2715 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_CC+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC
="$CC" # Let the user override the test.
2724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir
=.
2729 for ac_exec_ext
in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 if test -n "$CC"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2744 $as_echo "$CC" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2753 if test -z "$CC"; then
2754 # Extract the first word of "cc", so it can be a program name with args.
2755 set dummy cc
; ac_word
=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC
="$CC" # Let the user override the test.
2765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir
=.
2770 for ac_exec_ext
in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2773 ac_prog_rejected
=yes
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test $ac_prog_rejected = yes; then
2785 # We found a bogon in the path, so make sure we never use it.
2786 set dummy
$ac_cv_prog_CC
2788 if test $# != 0; then
2789 # We chose a different compiler from the bogus one.
2790 # However, it has the same basename, so the bogon will be chosen
2791 # first if we set CC to just the basename; use the full file name.
2793 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2809 if test -z "$CC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 for ac_prog
in cl.exe
2813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_CC+set}" = set; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC
="$CC" # Let the user override the test.
2823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir
=.
2828 for ac_exec_ext
in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 if test -n "$CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2850 test -n "$CC" && break
2853 if test -z "$CC"; then
2855 for ac_prog
in cl.exe
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy
$ac_prog; ac_word
=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$ac_ct_CC"; then
2865 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir
=.
2872 for ac_exec_ext
in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_ac_ct_CC
="$ac_prog"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2885 if test -n "$ac_ct_CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2887 $as_echo "$ac_ct_CC" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2894 test -n "$ac_ct_CC" && break
2897 if test "x$ac_ct_CC" = x
; then
2900 case $cross_compiling:$ac_tool_warned in
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2904 ac_tool_warned
=yes ;;
2913 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915 as_fn_error
"no acceptable C compiler found in \$PATH
2916 See \`config.log' for more details." "$LINENO" 5; }
2918 # Provide some information about the compiler.
2919 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2922 for ac_option
in --version -v -V -qversion; do
2923 { { ac_try
="$ac_compiler $ac_option >&5"
2925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929 $as_echo "$ac_try_echo"; } >&5
2930 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2932 if test -s conftest.err; then
2934 ... rest of stderr output deleted ...
2935 10q' conftest.err >conftest.er1
2936 cat conftest.er1 >&5
2937 rm -f conftest.er1 conftest.err
2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h. */
2949 FILE *f = fopen ("conftest.out", "w");
2950 return ferror (f) || fclose (f) != 0;
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2962 $as_echo_n "checking for C compiler default output file name... " >&6; }
2963 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2965 # The possible output files:
2966 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2969 for ac_file in $ac_files
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2973 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2978 if { { ac_try="$ac_link_default"
2980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2981 *) ac_try_echo
=$ac_try;;
2983 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_link_default") 2>&5
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; then :
2989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2990 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2991 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2992 # so that the user can short-circuit this test for compilers unknown to
2994 for ac_file
in $ac_files ''
2996 test -f "$ac_file" ||
continue
2998 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3001 # We found the default executable, but exeext='' is most
3005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3007 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3009 # We set ac_cv_exeext here because the later test for it is not
3010 # safe: cross compilers may not add the suffix if given an `-o'
3011 # argument, so we may need to know it at that point already.
3012 # Even if this section looks crufty: it has the advantage of
3019 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3025 $as_echo "$ac_file" >&6; }
3026 if test -z "$ac_file"; then :
3027 $as_echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.
$ac_ext >&5
3030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 { as_fn_set_status
77
3033 as_fn_error
"C compiler cannot create executables
3034 See \`config.log' for more details." "$LINENO" 5; }; }
3036 ac_exeext
=$ac_cv_exeext
3038 # Check that the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3041 $as_echo_n "checking whether the C compiler works... " >&6; }
3042 # If not cross compiling, check that we can run a simple program.
3043 if test "$cross_compiling" != yes; then
3044 if { ac_try
='./$ac_file'
3045 { { case "(($ac_try" in
3046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_try") 2>&5
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; }; then
3057 if test "$cross_compiling" = maybe; then
3060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 as_fn_error "cannot run C compiled programs.
3063 If you meant to cross compile
, use \
`--host'.
3064 See \`config.log
' for more details." "$LINENO" 5; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3071 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3072 ac_clean_files=$ac_clean_files_save
3073 # Check that the compiler produces executables we can run. If not, either
3074 # the compiler is broken, or we cross compile.
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3076 $as_echo_n "checking whether we are cross compiling... " >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3078 $as_echo "$cross_compiling" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3081 $as_echo_n "checking for suffix of executables... " >&6; }
3082 if { { ac_try="$ac_link"
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_link") 2>&5
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }; then :
3093 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3094 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3095 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3097 for ac_file
in conftest.exe conftest conftest.
*; do
3098 test -f "$ac_file" ||
continue
3100 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3101 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3110 See \`config.log' for more details." "$LINENO" 5; }
3112 rm -f conftest
$ac_cv_exeext
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3114 $as_echo "$ac_cv_exeext" >&6; }
3116 rm -f conftest.
$ac_ext
3117 EXEEXT
=$ac_cv_exeext
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3120 $as_echo_n "checking for suffix of object files... " >&6; }
3121 if test "${ac_cv_objext+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
3124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3135 rm -f conftest.o conftest.obj
3136 if { { ac_try
="$ac_compile"
3138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compile") 2>&5
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 for ac_file in conftest.o conftest.obj conftest.*; do
3148 test -f "$ac_file" || continue;
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3156 $as_echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error "cannot compute suffix of object files
: cannot compile
3162 See \
`config.log' for more details." "$LINENO" 5; }
3164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3167 $as_echo "$ac_cv_objext" >&6; }
3168 OBJEXT=$ac_cv_objext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3171 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3172 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3189 if ac_fn_c_try_compile "$LINENO"; then :
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3199 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3200 if test $ac_compiler_gnu = yes; then
3205 ac_test_CFLAGS=${CFLAGS+set}
3206 ac_save_CFLAGS=$CFLAGS
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3208 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3209 if test "${ac_cv_prog_cc_g+set}" = set; then :
3210 $as_echo_n "(cached) " >&6
3212 ac_save_c_werror_flag=$ac_c_werror_flag
3213 ac_c_werror_flag=yes
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3227 if ac_fn_c_try_compile "$LINENO"; then :
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3242 if ac_fn_c_try_compile "$LINENO"; then :
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3258 if ac_fn_c_try_compile "$LINENO"; then :
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3269 $as_echo "$ac_cv_prog_cc_g" >&6; }
3270 if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS=$ac_save_CFLAGS
3272 elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3279 if test "$GCC" = yes; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3286 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3287 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3290 ac_cv_prog_cc_c89=no
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3296 #include <sys/types.h>
3297 #include <sys/stat.h>
3298 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3299 struct buf { int x; };
3300 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3301 static char *e (p, i)
3307 static char *f (char * (*g) (char **, int), char **p, ...)
3312 s = g (p, va_arg (v,int));
3317 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3318 function prototypes and stuff, but not '\xHH' hex character constants.
3319 These don't provoke an error unfortunately, instead are silently treated
3320 as 'x'. The following induces an error, until -std is added to get
3321 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3322 array size at least. It's necessary to write '\x00'==0 to get something
3323 that's true only with -std. */
3324 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3326 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3327 inside strings and character constants. */
3329 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3331 int test (int i, double x);
3332 struct s1 {int (*f) (int a);};
3333 struct s2 {int (*f) (double a);};
3334 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3340 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3345 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3346 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3348 CC="$ac_save_CC $ac_arg"
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350 ac_cv_prog_cc_c89=$ac_arg
3352 rm -f core conftest.err conftest.$ac_objext
3353 test "x$ac_cv_prog_cc_c89" != "xno" && break
3355 rm -f conftest.$ac_ext
3360 case "x$ac_cv_prog_cc_c89" in
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3363 $as_echo "none needed" >&6; } ;;
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3366 $as_echo "unsupported" >&6; } ;;
3368 CC="$CC $ac_cv_prog_cc_c89"
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3370 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3372 if test "x$ac_cv_prog_cc_c89" != xno; then :
3377 ac_cpp='$CPP $CPPFLAGS'
3378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383 ac_cpp='$CXXCPP $CPPFLAGS'
3384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3387 if test -z "$CXX"; then
3388 if test -n "$CCC"; then
3391 if test -n "$ac_tool_prefix"; then
3392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_CXX+set}" = set; then :
3399 $as_echo_n "(cached) " >&6
3401 if test -n "$CXX"; then
3402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 if test -n "$CXX"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3424 $as_echo "$CXX" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 test -n "$CXX" && break
3434 if test -z "$CXX"; then
3436 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3438 # Extract the first word of "$ac_prog", so it can be a program name with args.
3439 set dummy $ac_prog; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$ac_ct_CXX"; then
3446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_ac_ct_CXX="$ac_prog"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3466 if test -n "$ac_ct_CXX"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3468 $as_echo "$ac_ct_CXX" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3475 test -n "$ac_ct_CXX" && break
3478 if test "x$ac_ct_CXX" = x; then
3481 case $cross_compiling:$ac_tool_warned in
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3485 ac_tool_warned=yes ;;
3493 # Provide some information about the compiler.
3494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3497 for ac_option in --version -v -V -qversion; do
3498 { { ac_try="$ac_compiler $ac_option >&5"
3500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3501 *) ac_try_echo
=$ac_try;;
3503 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3507 if test -s conftest.err
; then
3509 ... rest of stderr output deleted ...
3510 10q' conftest.err
>conftest.er1
3511 cat conftest.er1
>&5
3512 rm -f conftest.er1 conftest.err
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3537 if ac_fn_cxx_try_compile
"$LINENO"; then :
3542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3543 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3548 if test $ac_compiler_gnu = yes; then
3553 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3554 ac_save_CXXFLAGS
=$CXXFLAGS
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3560 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3561 ac_cxx_werror_flag
=yes
3564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3575 if ac_fn_cxx_try_compile
"$LINENO"; then :
3576 ac_cv_prog_cxx_g
=yes
3579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3590 if ac_fn_cxx_try_compile
"$LINENO"; then :
3593 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3606 if ac_fn_cxx_try_compile
"$LINENO"; then :
3607 ac_cv_prog_cxx_g
=yes
3609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3614 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3618 if test "$ac_test_CXXFLAGS" = set; then
3619 CXXFLAGS
=$ac_save_CXXFLAGS
3620 elif test $ac_cv_prog_cxx_g = yes; then
3621 if test "$GXX" = yes; then
3627 if test "$GXX" = yes; then
3634 ac_cpp
='$CPP $CPPFLAGS'
3635 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3640 ac_cpp
='$CXXCPP $CPPFLAGS'
3641 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU C++ compiler is default" >&5
3647 $as_echo_n "checking whether GNU C++ compiler is default... " >&6; }
3650 GCC_VERSION
=`$CC -dumpversion`
3651 GXX_VERSION
=`$CXX -dumpversion`
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 $as_echo "yes" >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of gcc" >&5
3655 $as_echo_n "checking version of gcc... " >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
3657 $as_echo "$GCC_VERSION" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of g++" >&5
3659 $as_echo_n "checking version of g++... " >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GXX_VERSION" >&5
3661 $as_echo "$GXX_VERSION" >&6; }
3662 case "$GXX_VERSION" in
3664 echo "old style GNU compiler"
3665 $as_echo "#define OLD_GNU_COMPILER /**/" >>confdefs.h
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find GNU C++ compiler" >&5
3676 $as_echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3680 #--------------------------------------------------------------------
3682 #--------------------------------------------------------------------
3684 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3686 ## The GUILE_FLAGS macro.
3687 ## First, let's just see if we can find Guile at all.
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile" >&5
3689 $as_echo_n "checking for Guile... " >&6; }
3690 guile-config link
> /dev
/null ||
{
3691 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3694 GUILE_ORIGINAL_CFLAGS
="`guile-config compile`"
3695 GUILE_CFLAGS
="$GUILE_ORIGINAL_CFLAGS"
3696 GUILE_VARIANT_CFLAGS
="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3697 GUILE_LDFLAGS
="`guile-config link`"
3698 GUILE_VARIANT_LDFLAGS
="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3702 $as_echo "yes" >&6; }
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of guile" >&5
3706 $as_echo_n "checking version of guile... " >&6; }
3707 if test -z "$GUILE_VERSION" ; then
3708 GUILE_VERSION
=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_VERSION" >&5
3711 $as_echo "$GUILE_VERSION" >&6; }
3713 case "$GUILE_VERSION" in
3714 1.0* |
1.1* |
1.2* |
1.3* |
1.4* |
1.5*)
3715 CONFIG_GUILE_SERIAL
="A"
3718 CONFIG_GUILE_SERIAL
="B"
3721 CONFIG_GUILE_SERIAL
="C"
3726 #--------------------------------------------------------------------
3727 # Checks for standard functionality
3728 #--------------------------------------------------------------------
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++-compatible X header files" >&5
3733 $as_echo_n "checking for C++-compatible X header files... " >&6; }
3734 ac_save_cppflags
="$CPPFLAGS"
3735 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
3736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 #include <X11/Xlib.h>
3739 #include <X11/Xutil.h>
3748 if ac_fn_cxx_try_compile
"$LINENO"; then :
3755 /usr
/X11R
6/include \
3756 /usr
/X11R
5/include \
3757 /usr
/X11R
4/include \
3760 /usr
/include
/X11R6 \
3761 /usr
/include
/X11R5 \
3762 /usr
/include
/X11R4 \
3764 /usr
/local
/X11
/include \
3765 /usr
/local
/X11R
6/include \
3766 /usr
/local
/X11R
5/include \
3767 /usr
/local
/X11R
4/include \
3769 /usr
/local
/include
/X11 \
3770 /usr
/local
/include
/X11R6 \
3771 /usr
/local
/include
/X11R5 \
3772 /usr
/local
/include
/X11R4 \
3776 /usr
/XFree86
/include
/X11 \
3779 /usr
/local
/include \
3780 /usr
/unsupported
/include \
3781 /usr
/athena
/include \
3782 /usr
/local
/x11r
5/include \
3783 /usr
/lpp
/Xamples
/include \
3785 /usr
/openwin
/include \
3786 /usr
/openwin
/share
/include \
3789 if test -r "$ac_dir/X11/Xlib.h"; then
3790 tm_x_includes
=$ac_dir
3794 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3795 < "$tm_x_includes/X11/Xlib.h" > X11
/Xlib.h
3796 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3797 < "$tm_x_includes/X11/Xutil.h" > X11
/Xutil.h
3798 X_CFLAGS
="-I.. $X_CFLAGS"
3801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3802 CPPFLAGS
="$ac_save_cppflags"
3805 ac_cpp
='$CXXCPP $CPPFLAGS'
3806 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3810 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3811 if test -z "$CXXCPP"; then
3812 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3815 # Double quotes because CXXCPP needs to be expanded
3816 for CXXCPP
in "$CXX -E" "/lib/cpp"
3819 for ac_cxx_preproc_warn_flag
in '' yes
3821 # Use a header file that comes with gcc, so configuring glibc
3822 # with a fresh cross-compiler works.
3823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3824 # <limits.h> exists even on freestanding compilers.
3825 # On the NeXT, cc -E runs the code through the compiler's parser,
3826 # not just through cpp. "Syntax error" is here to catch this case.
3827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3830 # include <limits.h>
3832 # include <assert.h>
3836 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3839 # Broken: fails on valid input.
3842 rm -f conftest.err conftest.
$ac_ext
3844 # OK, works on sane cases. Now check whether nonexistent headers
3845 # can be detected and how.
3846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <ac_nonexistent.h>
3850 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3851 # Broken: success on invalid input.
3854 # Passes both tests.
3858 rm -f conftest.err conftest.
$ac_ext
3861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3862 rm -f conftest.err conftest.
$ac_ext
3863 if $ac_preproc_ok; then :
3868 ac_cv_prog_CXXCPP
=$CXXCPP
3871 CXXCPP
=$ac_cv_prog_CXXCPP
3873 ac_cv_prog_CXXCPP
=$CXXCPP
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3876 $as_echo "$CXXCPP" >&6; }
3878 for ac_cxx_preproc_warn_flag
in '' yes
3880 # Use a header file that comes with gcc, so configuring glibc
3881 # with a fresh cross-compiler works.
3882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3883 # <limits.h> exists even on freestanding compilers.
3884 # On the NeXT, cc -E runs the code through the compiler's parser,
3885 # not just through cpp. "Syntax error" is here to catch this case.
3886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3889 # include <limits.h>
3891 # include <assert.h>
3895 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3898 # Broken: fails on valid input.
3901 rm -f conftest.err conftest.
$ac_ext
3903 # OK, works on sane cases. Now check whether nonexistent headers
3904 # can be detected and how.
3905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3909 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3910 # Broken: success on invalid input.
3913 # Passes both tests.
3917 rm -f conftest.err conftest.
$ac_ext
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.
$ac_ext
3922 if $ac_preproc_ok; then :
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
3928 See \`config.log' for more details." "$LINENO" 5; }
3932 ac_cpp
='$CXXCPP $CPPFLAGS'
3933 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3939 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3943 if test -z "$GREP"; then
3944 ac_path_GREP_found
=false
3945 # Loop through the user's path and test for each of PROGNAME-LIST
3946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3947 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3950 test -z "$as_dir" && as_dir
=.
3951 for ac_prog
in grep ggrep
; do
3952 for ac_exec_ext
in '' $ac_executable_extensions; do
3953 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3954 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3955 # Check for GNU ac_path_GREP and select it if it is found.
3956 # Check for GNU $ac_path_GREP
3957 case `"$ac_path_GREP" --version 2>&1` in
3959 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3962 $as_echo_n 0123456789 >"conftest.in"
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 $as_echo 'GREP' >> "conftest.nl"
3969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3970 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3971 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_GREP
="$ac_path_GREP"
3975 ac_path_GREP_max
=$ac_count
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3980 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3983 $ac_path_GREP_found && break 3
3988 if test -z "$ac_cv_path_GREP"; then
3989 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3992 ac_cv_path_GREP
=$GREP
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3997 $as_echo "$ac_cv_path_GREP" >&6; }
3998 GREP
="$ac_cv_path_GREP"
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4002 $as_echo_n "checking for egrep... " >&6; }
4003 if test "${ac_cv_path_EGREP+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4006 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4007 then ac_cv_path_EGREP
="$GREP -E"
4009 if test -z "$EGREP"; then
4010 ac_path_EGREP_found
=false
4011 # Loop through the user's path and test for each of PROGNAME-LIST
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4013 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4016 test -z "$as_dir" && as_dir
=.
4017 for ac_prog
in egrep; do
4018 for ac_exec_ext
in '' $ac_executable_extensions; do
4019 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4021 # Check for GNU ac_path_EGREP and select it if it is found.
4022 # Check for GNU $ac_path_EGREP
4023 case `"$ac_path_EGREP" --version 2>&1` in
4025 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4028 $as_echo_n 0123456789 >"conftest.in"
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
4034 $as_echo 'EGREP' >> "conftest.nl"
4035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4036 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4037 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_EGREP
="$ac_path_EGREP"
4041 ac_path_EGREP_max
=$ac_count
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4046 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4049 $ac_path_EGREP_found && break 3
4054 if test -z "$ac_cv_path_EGREP"; then
4055 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4058 ac_cv_path_EGREP
=$EGREP
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4064 $as_echo "$ac_cv_path_EGREP" >&6; }
4065 EGREP
="$ac_cv_path_EGREP"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4069 $as_echo_n "checking for ANSI C header files... " >&6; }
4070 if test "${ac_cv_header_stdc+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4088 if ac_fn_cxx_try_compile
"$LINENO"; then :
4089 ac_cv_header_stdc
=yes
4091 ac_cv_header_stdc
=no
4093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4095 if test $ac_cv_header_stdc = yes; then
4096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103 $EGREP "memchr" >/dev
/null
2>&1; then :
4106 ac_cv_header_stdc
=no
4112 if test $ac_cv_header_stdc = yes; then
4113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 $EGREP "free" >/dev
/null
2>&1; then :
4123 ac_cv_header_stdc
=no
4129 if test $ac_cv_header_stdc = yes; then
4130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4131 if test "$cross_compiling" = yes; then :
4134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4138 #if ((' ' & 0x0FF) == 0x020)
4139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4142 # define ISLOWER(c) \
4143 (('a' <= (c) && (c) <= 'i') \
4144 || ('j' <= (c) && (c) <= 'r') \
4145 || ('s' <= (c) && (c) <= 'z'))
4146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4154 for (i = 0; i < 256; i++)
4155 if (XOR (islower (i), ISLOWER (i))
4156 || toupper (i) != TOUPPER (i))
4161 if ac_fn_cxx_try_run
"$LINENO"; then :
4164 ac_cv_header_stdc
=no
4166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4167 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4173 $as_echo "$ac_cv_header_stdc" >&6; }
4174 if test $ac_cv_header_stdc = yes; then
4176 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4180 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4181 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4182 inttypes.h stdint.h unistd.h
4184 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4185 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4187 eval as_val
=\$
$as_ac_Header
4188 if test "x$as_val" = x
""yes; then :
4189 cat >>confdefs.h
<<_ACEOF
4190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4198 ac_fn_cxx_check_type
"$LINENO" "FILE" "ac_cv_type_FILE" "$ac_includes_default"
4199 if test "x$ac_cv_type_FILE" = x
""yes; then :
4201 cat >>confdefs.h
<<_ACEOF
4208 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
4209 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
4211 cat >>confdefs.h
<<_ACEOF
4212 #define HAVE_INTPTR_T 1
4218 ac_fn_cxx_check_type
"$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
4219 if test "x$ac_cv_type_time_t" = x
""yes; then :
4221 cat >>confdefs.h
<<_ACEOF
4222 #define HAVE_TIME_T 1
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4229 $as_echo_n "checking for X... " >&6; }
4232 # Check whether --with-x was given.
4233 if test "${with_x+set}" = set; then :
4237 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4238 if test "x$with_x" = xno
; then
4239 # The user explicitly disabled X.
4242 case $x_includes,$x_libraries in #(
4243 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
4244 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4247 # One or both of the vars are not set, and there is no cached value.
4248 ac_x_includes
=no ac_x_libraries
=no
4249 rm -f -r conftest.dir
4250 if mkdir conftest.dir
; then
4252 cat >Imakefile
<<'_ACEOF'
4254 @echo incroot='${INCROOT}'
4256 @echo usrlibdir='${USRLIBDIR}'
4258 @echo libdir='${LIBDIR}'
4260 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4262 for ac_var
in incroot usrlibdir libdir
; do
4263 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4265 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4266 for ac_extension
in a so sl dylib la dll
; do
4267 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4268 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4269 ac_im_usrlibdir
=$ac_im_libdir; break
4272 # Screen out bogus values from the imake configuration. They are
4273 # bogus both because they are the default anyway, and because
4274 # using them would break gcc on systems where it needs fixed includes.
4275 case $ac_im_incroot in
4276 /usr
/include
) ac_x_includes
= ;;
4277 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
4279 case $ac_im_usrlibdir in
4280 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
4281 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
4285 rm -f -r conftest.dir
4288 # Standard set of common directories for X headers.
4289 # Check X11 before X11Rn because it is often a symlink to the current release.
4303 /usr/local/X11/include
4304 /usr/local/X11R7/include
4305 /usr/local/X11R6/include
4306 /usr/local/X11R5/include
4307 /usr/local/X11R4/include
4309 /usr/local/include/X11
4310 /usr/local/include/X11R7
4311 /usr/local/include/X11R6
4312 /usr/local/include/X11R5
4313 /usr/local/include/X11R4
4317 /usr/XFree86/include/X11
4321 /usr/unsupported/include
4323 /usr/local/x11r5/include
4324 /usr/lpp/Xamples/include
4326 /usr/openwin/include
4327 /usr/openwin/share/include'
4329 if test "$ac_x_includes" = no
; then
4330 # Guess where to find include files, by looking for Xlib.h.
4331 # First, try using that file with no special directory specified.
4332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <X11/Xlib.h>
4336 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4337 # We can compile using X headers with no special include directory.
4340 for ac_dir
in $ac_x_header_dirs; do
4341 if test -r "$ac_dir/X11/Xlib.h"; then
4342 ac_x_includes
=$ac_dir
4347 rm -f conftest.err conftest.
$ac_ext
4348 fi # $ac_x_includes = no
4350 if test "$ac_x_libraries" = no
; then
4351 # Check for the libraries.
4352 # See if we find them without any special options.
4353 # Don't add to $LIBS permanently.
4356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4358 #include <X11/Xlib.h>
4367 if ac_fn_cxx_try_link
"$LINENO"; then :
4369 # We can link X programs with no special library path.
4373 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4375 # Don't even attempt the hair of trying to link an X program!
4376 for ac_extension
in a so sl dylib la dll
; do
4377 if test -r "$ac_dir/libX11.$ac_extension"; then
4378 ac_x_libraries
=$ac_dir
4384 rm -f core conftest.err conftest.
$ac_objext \
4385 conftest
$ac_exeext conftest.
$ac_ext
4386 fi # $ac_x_libraries = no
4388 case $ac_x_includes,$ac_x_libraries in #(
4390 # Didn't find X, or a directory has "'" in its name.
4391 ac_cv_have_x
="have_x=no";; #(
4393 # Record where we found X for the cache.
4394 ac_cv_have_x
="have_x=yes\
4395 ac_x_includes='$ac_x_includes'\
4396 ac_x_libraries='$ac_x_libraries'"
4402 eval "$ac_cv_have_x"
4405 if test "$have_x" != yes; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4407 $as_echo "$have_x" >&6; }
4410 # If each of the values was on the command line, it overrides each guess.
4411 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4412 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4413 # Update the cache value to reflect the command line values.
4414 ac_cv_have_x
="have_x=yes\
4415 ac_x_includes='$x_includes'\
4416 ac_x_libraries='$x_libraries'"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4418 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4421 if test "$no_x" = yes; then
4422 # Not all programs may use this symbol, but it does not hurt to define it.
4424 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4426 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
4428 if test -n "$x_includes"; then
4429 X_CFLAGS
="$X_CFLAGS -I$x_includes"
4432 # It would also be nice to do this for all -L options, not just this one.
4433 if test -n "$x_libraries"; then
4434 X_LIBS
="$X_LIBS -L$x_libraries"
4435 # For Solaris; some versions of Sun CC require a space after -R and
4436 # others require no space. Words are not sufficient . . . .
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4438 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4439 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
4440 ac_xsave_cxx_werror_flag
=$ac_cxx_werror_flag
4441 ac_cxx_werror_flag
=yes
4442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4453 if ac_fn_cxx_try_link
"$LINENO"; then :
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 X_LIBS
="$X_LIBS -R$x_libraries"
4458 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4470 if ac_fn_cxx_try_link
"$LINENO"; then :
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4473 X_LIBS
="$X_LIBS -R $x_libraries"
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4476 $as_echo "neither works" >&6; }
4478 rm -f core conftest.err conftest.
$ac_objext \
4479 conftest
$ac_exeext conftest.
$ac_ext
4481 rm -f core conftest.err conftest.
$ac_objext \
4482 conftest
$ac_exeext conftest.
$ac_ext
4483 ac_cxx_werror_flag
=$ac_xsave_cxx_werror_flag
4487 # Check for system-dependent libraries X programs must link with.
4488 # Do this before checking for the system-independent R6 libraries
4489 # (-lICE), since we may need -lsocket or whatever for X linking.
4491 if test "$ISC" = yes; then
4492 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
4494 # Martyn Johnson says this is needed for Ultrix, if the X
4495 # libraries were built with DECnet support. And Karl Berry says
4496 # the Alpha needs dnet_stub (dnet does not exist).
4497 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
4498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4501 /* Override any GCC internal prototype to avoid an error.
4502 Use char because int might match the return type of a GCC
4503 builtin and then its argument prototype would still apply. */
4507 char XOpenDisplay ();
4511 return XOpenDisplay ();
4516 if ac_fn_cxx_try_link
"$LINENO"; then :
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4520 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4521 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4524 ac_check_lib_save_LIBS
=$LIBS
4526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4529 /* Override any GCC internal prototype to avoid an error.
4530 Use char because int might match the return type of a GCC
4531 builtin and then its argument prototype would still apply. */
4539 return dnet_ntoa ();
4544 if ac_fn_cxx_try_link
"$LINENO"; then :
4545 ac_cv_lib_dnet_dnet_ntoa
=yes
4547 ac_cv_lib_dnet_dnet_ntoa
=no
4549 rm -f core conftest.err conftest.
$ac_objext \
4550 conftest
$ac_exeext conftest.
$ac_ext
4551 LIBS
=$ac_check_lib_save_LIBS
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4554 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4555 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
4556 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
4559 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4561 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4562 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4565 ac_check_lib_save_LIBS
=$LIBS
4566 LIBS
="-ldnet_stub $LIBS"
4567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4570 /* Override any GCC internal prototype to avoid an error.
4571 Use char because int might match the return type of a GCC
4572 builtin and then its argument prototype would still apply. */
4580 return dnet_ntoa ();
4585 if ac_fn_cxx_try_link
"$LINENO"; then :
4586 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4588 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4590 rm -f core conftest.err conftest.
$ac_objext \
4591 conftest
$ac_exeext conftest.
$ac_ext
4592 LIBS
=$ac_check_lib_save_LIBS
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4595 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4596 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x
""yes; then :
4597 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4602 rm -f core conftest.err conftest.
$ac_objext \
4603 conftest
$ac_exeext conftest.
$ac_ext
4604 LIBS
="$ac_xsave_LIBS"
4606 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4607 # to get the SysV transport functions.
4608 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4610 # The nsl library prevents programs from opening the X display
4611 # on Irix 5.2, according to T.E. Dickey.
4612 # The functions gethostbyname, getservbyname, and inet_addr are
4613 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4614 ac_fn_cxx_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4615 if test "x$ac_cv_func_gethostbyname" = x
""yes; then :
4619 if test $ac_cv_func_gethostbyname = no
; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4621 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4622 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 ac_check_lib_save_LIBS
=$LIBS
4627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4630 /* Override any GCC internal prototype to avoid an error.
4631 Use char because int might match the return type of a GCC
4632 builtin and then its argument prototype would still apply. */
4636 char gethostbyname ();
4640 return gethostbyname ();
4645 if ac_fn_cxx_try_link
"$LINENO"; then :
4646 ac_cv_lib_nsl_gethostbyname
=yes
4648 ac_cv_lib_nsl_gethostbyname
=no
4650 rm -f core conftest.err conftest.
$ac_objext \
4651 conftest
$ac_exeext conftest.
$ac_ext
4652 LIBS
=$ac_check_lib_save_LIBS
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4655 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4656 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4657 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4660 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4662 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4663 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4666 ac_check_lib_save_LIBS
=$LIBS
4668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4671 /* Override any GCC internal prototype to avoid an error.
4672 Use char because int might match the return type of a GCC
4673 builtin and then its argument prototype would still apply. */
4677 char gethostbyname ();
4681 return gethostbyname ();
4686 if ac_fn_cxx_try_link
"$LINENO"; then :
4687 ac_cv_lib_bsd_gethostbyname
=yes
4689 ac_cv_lib_bsd_gethostbyname
=no
4691 rm -f core conftest.err conftest.
$ac_objext \
4692 conftest
$ac_exeext conftest.
$ac_ext
4693 LIBS
=$ac_check_lib_save_LIBS
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4696 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4697 if test "x$ac_cv_lib_bsd_gethostbyname" = x
""yes; then :
4698 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
4704 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4705 # socket/setsockopt and other routines are undefined under SCO ODT
4706 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4707 # on later versions), says Simon Leinen: it contains gethostby*
4708 # variants that don't use the name server (or something). -lsocket
4709 # must be given before -lnsl if both are needed. We assume that
4710 # if connect needs -lnsl, so does gethostbyname.
4711 ac_fn_cxx_check_func
"$LINENO" "connect" "ac_cv_func_connect"
4712 if test "x$ac_cv_func_connect" = x
""yes; then :
4716 if test $ac_cv_func_connect = no
; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4718 $as_echo_n "checking for connect in -lsocket... " >&6; }
4719 if test "${ac_cv_lib_socket_connect+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4722 ac_check_lib_save_LIBS
=$LIBS
4723 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4727 /* Override any GCC internal prototype to avoid an error.
4728 Use char because int might match the return type of a GCC
4729 builtin and then its argument prototype would still apply. */
4742 if ac_fn_cxx_try_link
"$LINENO"; then :
4743 ac_cv_lib_socket_connect
=yes
4745 ac_cv_lib_socket_connect
=no
4747 rm -f core conftest.err conftest.
$ac_objext \
4748 conftest
$ac_exeext conftest.
$ac_ext
4749 LIBS
=$ac_check_lib_save_LIBS
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4752 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4753 if test "x$ac_cv_lib_socket_connect" = x
""yes; then :
4754 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4759 # Guillermo Gomez says -lposix is necessary on A/UX.
4760 ac_fn_cxx_check_func
"$LINENO" "remove" "ac_cv_func_remove"
4761 if test "x$ac_cv_func_remove" = x
""yes; then :
4765 if test $ac_cv_func_remove = no
; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4767 $as_echo_n "checking for remove in -lposix... " >&6; }
4768 if test "${ac_cv_lib_posix_remove+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4771 ac_check_lib_save_LIBS
=$LIBS
4772 LIBS
="-lposix $LIBS"
4773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4776 /* Override any GCC internal prototype to avoid an error.
4777 Use char because int might match the return type of a GCC
4778 builtin and then its argument prototype would still apply. */
4791 if ac_fn_cxx_try_link
"$LINENO"; then :
4792 ac_cv_lib_posix_remove
=yes
4794 ac_cv_lib_posix_remove
=no
4796 rm -f core conftest.err conftest.
$ac_objext \
4797 conftest
$ac_exeext conftest.
$ac_ext
4798 LIBS
=$ac_check_lib_save_LIBS
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4801 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4802 if test "x$ac_cv_lib_posix_remove" = x
""yes; then :
4803 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4808 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4809 ac_fn_cxx_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
4810 if test "x$ac_cv_func_shmat" = x
""yes; then :
4814 if test $ac_cv_func_shmat = no
; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4816 $as_echo_n "checking for shmat in -lipc... " >&6; }
4817 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4820 ac_check_lib_save_LIBS
=$LIBS
4822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4825 /* Override any GCC internal prototype to avoid an error.
4826 Use char because int might match the return type of a GCC
4827 builtin and then its argument prototype would still apply. */
4840 if ac_fn_cxx_try_link
"$LINENO"; then :
4841 ac_cv_lib_ipc_shmat
=yes
4843 ac_cv_lib_ipc_shmat
=no
4845 rm -f core conftest.err conftest.
$ac_objext \
4846 conftest
$ac_exeext conftest.
$ac_ext
4847 LIBS
=$ac_check_lib_save_LIBS
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4850 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4851 if test "x$ac_cv_lib_ipc_shmat" = x
""yes; then :
4852 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4858 # Check for libraries that X11R6 Xt/Xaw programs need.
4859 ac_save_LDFLAGS
=$LDFLAGS
4860 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4861 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4862 # check for ICE first), but we must link in the order -lSM -lICE or
4863 # we get undefined symbols. So assume we have SM if we have ICE.
4864 # These have to be linked with before -lX11, unlike the other
4865 # libraries we check for below, so use a different variable.
4866 # John Interrante, Karl Berry
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4868 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4869 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4872 ac_check_lib_save_LIBS
=$LIBS
4873 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4877 /* Override any GCC internal prototype to avoid an error.
4878 Use char because int might match the return type of a GCC
4879 builtin and then its argument prototype would still apply. */
4883 char IceConnectionNumber ();
4887 return IceConnectionNumber ();
4892 if ac_fn_cxx_try_link
"$LINENO"; then :
4893 ac_cv_lib_ICE_IceConnectionNumber
=yes
4895 ac_cv_lib_ICE_IceConnectionNumber
=no
4897 rm -f core conftest.err conftest.
$ac_objext \
4898 conftest
$ac_exeext conftest.
$ac_ext
4899 LIBS
=$ac_check_lib_save_LIBS
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4902 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4903 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x
""yes; then :
4904 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4907 LDFLAGS
=$ac_save_LDFLAGS
4911 for ac_header
in pty.h util.h
4913 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4914 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4915 eval as_val
=\$
$as_ac_Header
4916 if test "x$as_val" = x
""yes; then :
4917 cat >>confdefs.h
<<_ACEOF
4918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4925 for ac_func
in gettimeofday
4927 ac_fn_cxx_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
4928 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
4929 cat >>confdefs.h
<<_ACEOF
4930 #define HAVE_GETTIMEOFDAY 1
4937 #--------------------------------------------------------------------
4938 # Checks for dl library
4939 #--------------------------------------------------------------------
4941 ac_fn_cxx_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
4942 if test "x$ac_cv_func_dlopen" = x
""yes; then :
4946 if test "$ac_cv_func_dl" = "yes"; then
4948 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4956 ac_check_lib_save_LIBS
=$LIBS
4958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4961 /* Override any GCC internal prototype to avoid an error.
4962 Use char because int might match the return type of a GCC
4963 builtin and then its argument prototype would still apply. */
4976 if ac_fn_cxx_try_link
"$LINENO"; then :
4977 ac_cv_lib_dl_dlopen
=yes
4979 ac_cv_lib_dl_dlopen
=no
4981 rm -f core conftest.err conftest.
$ac_objext \
4982 conftest
$ac_exeext conftest.
$ac_ext
4983 LIBS
=$ac_check_lib_save_LIBS
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4987 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
4988 cat >>confdefs.h
<<_ACEOF
4989 #define HAVE_LIBDL 1
4996 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
4997 for ac_func
in dlopen
4999 ac_fn_cxx_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5000 if test "x$ac_cv_func_dlopen" = x
""yes; then :
5001 cat >>confdefs.h
<<_ACEOF
5002 #define HAVE_DLOPEN 1
5010 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
5014 $as_echo_n "checking for dld_link in -ldld... " >&6; }
5015 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5018 ac_check_lib_save_LIBS
=$LIBS
5020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5023 /* Override any GCC internal prototype to avoid an error.
5024 Use char because int might match the return type of a GCC
5025 builtin and then its argument prototype would still apply. */
5038 if ac_fn_cxx_try_link
"$LINENO"; then :
5039 ac_cv_lib_dld_dld_link
=yes
5041 ac_cv_lib_dld_dld_link
=no
5043 rm -f core conftest.err conftest.
$ac_objext \
5044 conftest
$ac_exeext conftest.
$ac_ext
5045 LIBS
=$ac_check_lib_save_LIBS
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
5048 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
5049 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
5050 cat >>confdefs.h
<<_ACEOF
5051 #define HAVE_LIBDLD 1
5058 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
5061 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5064 for ac_func
in shl_load
5066 ac_fn_cxx_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
5067 if test "x$ac_cv_func_shl_load" = x
""yes; then :
5068 cat >>confdefs.h
<<_ACEOF
5069 #define HAVE_SHL_LOAD 1
5075 if test "$ac_cv_func_shl_load" = "yes"; then
5078 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5081 for ac_func
in dlopen
5083 ac_fn_cxx_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5084 if test "x$ac_cv_func_dlopen" = x
""yes; then :
5085 cat >>confdefs.h
<<_ACEOF
5086 #define HAVE_DLOPEN 1
5092 if test "$ac_cv_func_dlopen" = "yes"; then
5094 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5103 #--------------------------------------------------------------------
5104 # Checks for iconv library
5105 #--------------------------------------------------------------------
5108 # Check whether --with-iconv was given.
5109 if test "${with_iconv+set}" = set; then :
5110 withval
=$with_iconv;
5115 # Modified from GNOME's libxml2 configure.in
5118 ac_cpp
='$CPP $CPPFLAGS'
5119 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5122 # compile C to avoid the 'const char**' problem
5124 SAVE_CPPFLAGS
="$CPPFLAGS"
5125 SAVE_LDFLAGS
="$LDFLAGS"
5127 if test "$with_iconv" = "no" ; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling iconv support" >&5
5129 $as_echo "disabling iconv support" >&6; }
5131 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
5132 CPPFLAGS
="$ICONV_CFLAGS" # for AC_TRY_LINK
5133 LDFLAGS
="$ICONV_LDFLAGS"
5135 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
5136 CPPFLAGS
="-I$with_iconv/include" # for AC_TRY_LINK
5137 LDFLAGS
="-L$with_iconv/lib"
5138 ICONV_CFLAGS
="-I$with_iconv/include"
5139 ICONV_LDFLAGS
="-L$with_iconv/lib"
5143 ac_cpp
='$CPP $CPPFLAGS'
5144 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5148 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5149 # On Suns, sometimes $CPP names a directory.
5150 if test -n "$CPP" && test -d "$CPP"; then
5153 if test -z "$CPP"; then
5154 if test "${ac_cv_prog_CPP+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5157 # Double quotes because CPP needs to be expanded
5158 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5161 for ac_c_preproc_warn_flag
in '' yes
5163 # Use a header file that comes with gcc, so configuring glibc
5164 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser,
5168 # not just through cpp. "Syntax error" is here to catch this case.
5169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5172 # include <limits.h>
5174 # include <assert.h>
5178 if ac_fn_c_try_cpp
"$LINENO"; then :
5181 # Broken: fails on valid input.
5184 rm -f conftest.err conftest.
$ac_ext
5186 # OK, works on sane cases. Now check whether nonexistent headers
5187 # can be detected and how.
5188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190 #include <ac_nonexistent.h>
5192 if ac_fn_c_try_cpp
"$LINENO"; then :
5193 # Broken: success on invalid input.
5196 # Passes both tests.
5200 rm -f conftest.err conftest.
$ac_ext
5203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204 rm -f conftest.err conftest.
$ac_ext
5205 if $ac_preproc_ok; then :
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5218 $as_echo "$CPP" >&6; }
5220 for ac_c_preproc_warn_flag
in '' yes
5222 # Use a header file that comes with gcc, so configuring glibc
5223 # with a fresh cross-compiler works.
5224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 # <limits.h> exists even on freestanding compilers.
5226 # On the NeXT, cc -E runs the code through the compiler's parser,
5227 # not just through cpp. "Syntax error" is here to catch this case.
5228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5231 # include <limits.h>
5233 # include <assert.h>
5237 if ac_fn_c_try_cpp
"$LINENO"; then :
5240 # Broken: fails on valid input.
5243 rm -f conftest.err conftest.
$ac_ext
5245 # OK, works on sane cases. Now check whether nonexistent headers
5246 # can be detected and how.
5247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <ac_nonexistent.h>
5251 if ac_fn_c_try_cpp
"$LINENO"; then :
5252 # Broken: success on invalid input.
5255 # Passes both tests.
5259 rm -f conftest.err conftest.
$ac_ext
5262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5263 rm -f conftest.err conftest.
$ac_ext
5264 if $ac_preproc_ok; then :
5267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5269 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5270 See \`config.log' for more details." "$LINENO" 5; }
5274 ac_cpp
='$CPP $CPPFLAGS'
5275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5280 ac_fn_c_check_header_mongrel
"$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5281 if test "x$ac_cv_header_iconv_h" = x
""yes; then :
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5283 $as_echo_n "checking for iconv... " >&6; }
5286 # ac_fn_c_try_link LINENO
5287 # -----------------------
5288 # Try to link conftest.$ac_ext, and return whether this succeeded.
5291 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5292 rm -f conftest.
$ac_objext conftest
$ac_exeext
5293 if { { ac_try
="$ac_link"
5295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5299 $as_echo "$ac_try_echo"; } >&5
5300 (eval "$ac_link") 2>conftest.err
5302 if test -s conftest.err; then
5303 grep -v '^ *+' conftest.err >conftest.er1
5304 cat conftest.er1 >&5
5305 mv -f conftest.er1 conftest.err
5307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308 test $ac_status = 0; } && {
5309 test -z "$ac_c_werror_flag" ||
5310 test ! -s conftest.err
5311 } && test -s conftest$ac_exeext && {
5312 test "$cross_compiling" = yes ||
5313 $as_test_x conftest$ac_exeext
5317 $as_echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5322 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
5323 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
5324 # interfere with the next link command; also delete a directory that is
5325 # left behind by Apple's compiler. We do this before executing the actions.
5326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5330 } # ac_fn_c_try_link
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5341 iconv_t cd = iconv_open ("","");
5342 iconv (cd, NULL, NULL, NULL, NULL);
5348 if ac_fn_c_try_link "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5353 $as_echo "#define USE_ICONV 1" >>confdefs.h
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
5361 $as_echo_n "checking for iconv in -liconv... " >&6; }
5362 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
5363 LIBS="-liconv" # for AC_TRY_LINK
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5374 iconv_t cd = iconv_open ("","");
5375 iconv (cd, NULL, NULL, NULL, NULL);
5381 if ac_fn_c_try_link "$LINENO"; then :
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384 $as_echo "yes" >&6; }
5386 $as_echo "#define USE_ICONV 1" >>confdefs.h
5388 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: absence of iconv may crash HTML import" >&5
5395 $as_echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
5398 rm -f core conftest.err conftest.$ac_objext \
5399 conftest$ac_exeext conftest.$ac_ext
5401 rm -f core conftest.err conftest.$ac_objext \
5402 conftest$ac_exeext conftest.$ac_ext
5408 CPPFLAGS="$SAVE_CPPFLAGS"
5409 LDFLAGS="$SAVE_LDFLAGS"
5412 ac_cpp='$CXXCPP $CPPFLAGS'
5413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5416 # restore C++ language
5420 #--------------------------------------------------------------------
5421 # Checks for freetype library
5422 #--------------------------------------------------------------------
5425 # Check whether --with-freetype was given.
5426 if test "${with_freetype+set}" = set; then :
5427 withval=$with_freetype;
5431 SAVE_CPPFLAGS="$CPPFLAGS"
5432 SAVE_LDFLAGS="$LDFLAGS"
5434 if test "$with_freetype" = "no" ; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling freetype support" >&5
5436 $as_echo "disabling freetype support" >&6; }
5438 if test -z "$FREETYPE_CFLAGS"; then
5439 FREETYPE_CFLAGS=`freetype-config
--cflags`
5441 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
5442 if test -z "$FREETYPE_LDFLAGS"; then
5443 FREETYPE_LDFLAGS=`freetype-config
--libs`
5445 LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
5446 ac_fn_cxx_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5447 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
5449 $as_echo_n "checking for freetype... " >&6; }
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5453 #include <ft2build.h>
5454 #include FT_FREETYPE_H
5460 FT_Library ft_library;
5461 (void) FT_Init_FreeType (&ft_library);
5467 if ac_fn_cxx_try_link "$LINENO"; then :
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470 $as_echo "yes" >&6; }
5472 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
5474 FREETYPE_CFLAGS="$CPPFLAGS"
5475 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
5476 FREETYPE_LDFLAGS="$LIBS"
5478 $as_echo "#define LINKED_FREETYPE 1" >>confdefs.h
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5487 rm -f core conftest.err conftest.$ac_objext \
5488 conftest$ac_exeext conftest.$ac_ext
5494 CPPFLAGS="$SAVE_CPPFLAGS"
5495 LDFLAGS="$SAVE_LDFLAGS"
5501 #--------------------------------------------------------------------
5502 # Checks for Cairo library
5503 #--------------------------------------------------------------------
5506 # Check whether --with-cairo was given.
5507 if test "${with_cairo+set}" = set; then :
5508 withval=$with_cairo;
5512 SAVE_CPPFLAGS="$CPPFLAGS"
5513 SAVE_LDFLAGS="$LDFLAGS"
5515 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling cairo support" >&5
5517 $as_echo "disabling cairo support" >&6; }
5519 CPPFLAGS=`pkg-config
--cflags cairo
`
5520 LIBS=`pkg-config
--libs cairo
`
5521 ac_fn_cxx_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
5522 if test "x$ac_cv_header_cairo_h" = x""yes; then :
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
5524 $as_echo_n "checking for cairo... " >&6; }
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5534 cairo_surface_t *surface;
5535 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
5541 if ac_fn_cxx_try_link "$LINENO"; then :
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5544 $as_echo "yes" >&6; }
5546 $as_echo "#define USE_CAIRO 1" >>confdefs.h
5548 CAIRO_CFLAGS="$CPPFLAGS"
5549 if test "$with_cairo" = "linked" ; then
5550 CAIRO_LDFLAGS="$LIBS"
5552 $as_echo "#define LINKED_CAIRO 1" >>confdefs.h
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5561 rm -f core conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
5568 CPPFLAGS="$SAVE_CPPFLAGS"
5569 LDFLAGS="$SAVE_LDFLAGS"
5575 #--------------------------------------------------------------------
5576 # Checks for Imlib2 library
5577 #--------------------------------------------------------------------
5580 # Check whether --with-imlib2 was given.
5581 if test "${with_imlib2+set}" = set; then :
5582 withval=$with_imlib2;
5586 SAVE_CPPFLAGS="$CPPFLAGS"
5587 SAVE_LDFLAGS="$LDFLAGS"
5589 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling imlib2 support" >&5
5591 $as_echo "disabling imlib2 support" >&6; }
5593 CPPFLAGS=`imlib2-config
--cflags`
5594 LIBS=`imlib2-config
--libs`
5595 ac_fn_cxx_check_header_mongrel "$LINENO" "Imlib2.h" "ac_cv_header_Imlib2_h" "$ac_includes_default"
5596 if test "x$ac_cv_header_Imlib2_h" = x""yes; then :
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib2" >&5
5598 $as_echo_n "checking for imlib2... " >&6; }
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5602 #include <X11/Xlib.h>
5611 Imlib_Image image= imlib_load_image("");
5617 if ac_fn_cxx_try_link "$LINENO"; then :
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620 $as_echo "yes" >&6; }
5622 $as_echo "#define USE_IMLIB2 1" >>confdefs.h
5624 IMLIB2_CFLAGS="$CPPFLAGS"
5625 if test "$with_imlib2" = "linked" ; then
5626 IMLIB2_LDFLAGS="$LIBS"
5628 $as_echo "#define LINKED_IMLIB2 1" >>confdefs.h
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5637 rm -f core conftest.err conftest.$ac_objext \
5638 conftest$ac_exeext conftest.$ac_ext
5644 CPPFLAGS="$SAVE_CPPFLAGS"
5645 LDFLAGS="$SAVE_LDFLAGS"
5651 #--------------------------------------------------------------------
5652 # Checks for Axel library
5653 #--------------------------------------------------------------------
5656 # Check whether --with-axel was given.
5657 if test "${with_axel+set}" = set; then :
5662 SAVE_CPPFLAGS="$CPPFLAGS"
5663 SAVE_LDFLAGS="$LDFLAGS"
5665 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling axel support" >&5
5667 $as_echo "disabling axel support" >&6; }
5669 CPPFLAGS=`axel-config
--cflags`
5670 LIBS=`axel-config
--libs`
5671 ac_fn_cxx_check_header_mongrel "$LINENO" "QGui/Viewer.h" "ac_cv_header_QGui_Viewer_h" "$ac_includes_default"
5672 if test "x$ac_cv_header_QGui_Viewer_h" = x""yes; then :
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for axel" >&5
5674 $as_echo_n "checking for axel... " >&6; }
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5678 #include <QGui/Viewer.h>
5690 if ac_fn_cxx_try_link "$LINENO"; then :
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 $as_echo "yes" >&6; }
5695 $as_echo "#define USE_AXEL 1" >>confdefs.h
5697 AXEL_CFLAGS="$CPPFLAGS"
5698 if test "$with_axel" = "linked" ; then
5699 AXEL_LDFLAGS="$LIBS"
5701 $as_echo "#define LINKED_AXEL 1" >>confdefs.h
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5710 rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5717 CPPFLAGS="$SAVE_CPPFLAGS"
5718 LDFLAGS="$SAVE_LDFLAGS"
5724 #--------------------------------------------------------------------
5725 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
5726 #--------------------------------------------------------------------
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ... arguments behave correctly" >&5
5729 $as_echo_n "checking whether ... arguments behave correctly... " >&6; }
5730 if test -z "$GUILE_CFLAGS"; then
5731 CXXFLAGS="`guile-config compile
`"
5733 CXXFLAGS="$GUILE_CFLAGS"
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5738 #include <guile/gh.h>
5739 #include <libguile.h>
5740 typedef SCM (*FN)(...);
5741 static SCM identity (SCM x) { return x; }
5742 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
5753 if ac_fn_cxx_try_compile "$LINENO"; then :
5756 $as_echo "#define DOTS_OK 1" >>confdefs.h
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the size_t of guile strings" >&5
5771 $as_echo_n "checking the size_t of guile strings... " >&6; }
5772 if test -z "$GUILE_CFLAGS"; then
5773 CXXFLAGS="`guile-config compile
`"
5775 CXXFLAGS="$GUILE_CFLAGS"
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5780 #include <guile/gh.h>
5781 #include <libguile.h>
5782 void print_string (SCM s) {
5784 char* r= gh_scm2newstr (s, &len_r); }
5795 if ac_fn_cxx_try_compile "$LINENO"; then :
5798 $as_echo "#define guile_str_size_t int" >>confdefs.h
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
5801 $as_echo "int" >&6; }
5806 $as_echo "#define guile_str_size_t size_t" >>confdefs.h
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
5809 $as_echo "size_t" >&6; }
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if statically linking with guile works" >&5
5816 $as_echo_n "checking if statically linking with guile works... " >&6; }
5817 SAVE_CPPFLAGS="$CPPFLAGS"
5818 SAVE_LDFLAGS="$LDFLAGS"
5820 CPPFLAGS="$GUILE_CFLAGS"
5822 LIBS="$GUILE_LDFLAGS"
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5826 #include <guile/gh.h>
5834 static void my_main (int argc, char** argv) {}
5835 static void install_guile () {
5837 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5839 gh_enter (0, NULL, my_main);
5843 dummy::install_guile ();
5849 if ac_fn_cxx_try_link "$LINENO"; then :
5850 tm_link_guile_static="yes"
5852 tm_link_guile_static="no"
5854 rm -f core conftest.err conftest.$ac_objext \
5855 conftest$ac_exeext conftest.$ac_ext
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static\"" >&5
5858 $as_echo "\"$tm_link_guile_static\"" >&6; }
5859 if test "$tm_link_guile_static" = "no" ; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl" >&5
5861 $as_echo_n "checking if it works with -lltdl... " >&6; }
5862 LIBS="$GUILE_LDFLAGS -lltdl"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5866 #include <guile/gh.h>
5874 static void my_main (int argc, char** argv) {}
5875 static void install_guile () {
5877 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5879 gh_enter (0, NULL, my_main);
5883 dummy::install_guile ();
5889 if ac_fn_cxx_try_link "$LINENO"; then :
5890 tm_link_guile_static_ltdl="yes"
5892 tm_link_guile_static_ltdl="no"
5894 rm -f core conftest.err conftest.$ac_objext \
5895 conftest$ac_exeext conftest.$ac_ext
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl\"" >&5
5898 $as_echo "\"$tm_link_guile_static_ltdl\"" >&6; }
5899 if test "$tm_link_guile_static_ltdl" = "yes" ; then
5900 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl -ldl" >&5
5903 $as_echo_n "checking if it works with -lltdl -ldl... " >&6; }
5904 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5908 #include <guile/gh.h>
5916 static void my_main (int argc, char** argv) {}
5917 static void install_guile () {
5919 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5921 gh_enter (0, NULL, my_main);
5925 dummy::install_guile ();
5931 if ac_fn_cxx_try_link "$LINENO"; then :
5932 tm_link_guile_static_ltdl_ldl="yes"
5934 tm_link_guile_static_ltdl_ldl="no"
5936 rm -f core conftest.err conftest.$ac_objext \
5937 conftest$ac_exeext conftest.$ac_ext
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
5940 $as_echo "\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
5941 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
5942 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to link statically with guile" >&5
5945 $as_echo "$as_me: WARNING: unable to link statically with guile" >&2;}
5949 CPPFLAGS="$SAVE_CPPFLAGS"
5950 LDFLAGS="$SAVE_LDFLAGS"
5953 #--------------------------------------------------------------------
5954 # Handle different systems case by case
5955 #--------------------------------------------------------------------
5957 CONFIG_OS="GNU_LINUX"
5958 CONFIG_OS_SUFFIX="gnu-linux"
5959 CONFIG_OS_COMPAT="Unix"
5962 CONFIG_CXXTEMPLATE=""
5963 CONFIG_STD_SETENV="#define STD_SETENV"
5965 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
5966 CONFIG_CHMOD="chmod -f"
5967 CONFIG_CXXOPTIMIZE="-O2"
5968 CONFIG_BSTATIC="-Wl,-Bstatic"
5969 CONFIG_BSHARED="-Wl,-Bdynamic"
5971 CONFIG_BPATH="-Wl,-rpath,"
5973 CONFIG_WORD_LENGTH="4"
5974 CONFIG_WORD_LENGTH_INC="3"
5975 CONFIG_WORD_MASK="0xfffffffc"
5976 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
5977 # tweak for XCode project
5978 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
5980 X11_CFLAGS="$X_CFLAGS"
5981 X11_LDFLAGS="$X_LIBS -lXext -lX11"
5983 # The cast to long int works around a bug in the HP C Compiler
5984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5985 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
5986 # This bug is HP SR number 8606223364.
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5988 $as_echo_n "checking size of void *... " >&6; }
5989 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5992 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5995 if test "$ac_cv_type_void_p" = yes; then
5996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5997 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
5998 { as_fn_set_status 77
5999 as_fn_error "cannot compute sizeof (void *)
6000 See \`config.log
' for more details." "$LINENO" 5; }; }
6002 ac_cv_sizeof_void_p=0
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6008 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6012 cat >>confdefs.h <<_ACEOF
6013 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on a 64-bits computer" >&5
6018 $as_echo_n "checking if we are on a 64-bits computer... " >&6; }
6019 if test "$ac_cv_sizeof_void_p" = "8"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6021 $as_echo "yes" >&6; }
6022 CONFIG_WORD_LENGTH="8"
6023 CONFIG_WORD_LENGTH_INC="7"
6024 CONFIG_WORD_MASK="0xfffffffffffffff8"
6025 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6032 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6033 for ac_t in install-sh install.sh shtool; do
6034 if test -f "$ac_dir/$ac_t"; then
6036 ac_install_sh="$ac_aux_dir/$ac_t -c"
6041 if test -z "$ac_aux_dir"; then
6042 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6045 # These three variables are undocumented and unsupported,
6046 # and are intended to be withdrawn in a future Autoconf release.
6047 # They can cause serious problems if a builder's
source tree is
in a directory
6048 # whose full name contains unusual characters.
6049 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6050 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6051 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6054 # Make sure we can run config.sub.
6055 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
6056 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6059 $as_echo_n "checking build system type... " >&6; }
6060 if test "${ac_cv_build+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6063 ac_build_alias
=$build_alias
6064 test "x$ac_build_alias" = x
&&
6065 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
6066 test "x$ac_build_alias" = x
&&
6067 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
6068 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6069 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6073 $as_echo "$ac_cv_build" >&6; }
6074 case $ac_cv_build in
6076 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
6079 ac_save_IFS
=$IFS; IFS
='-'
6085 # Remember, the first character of IFS is used to create $*,
6086 # except with old shells:
6089 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6093 $as_echo_n "checking host system type... " >&6; }
6094 if test "${ac_cv_host+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6097 if test "x$host_alias" = x
; then
6098 ac_cv_host
=$ac_cv_build
6100 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6101 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6106 $as_echo "$ac_cv_host" >&6; }
6109 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
6112 ac_save_IFS
=$IFS; IFS
='-'
6118 # Remember, the first character of IFS is used to create $*,
6119 # except with old shells:
6122 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
6126 i
*86-*-linux* | x86_64-
*-linux*)
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
6128 $as_echo "final adjustments for an Intel or AMD GNU/Linux host" >&6; }
6129 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
6131 i
*86-*-freebsd* | x86_64-
*-freebsd*)
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
6133 $as_echo "final adjustments for an Intel or AMD GNU/BSD host" >&6; }
6134 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMS Solaris host" >&5
6138 $as_echo "final adjustments for an Intel or AMS Solaris host" >&6; }
6139 CONFIG_CXXOPTIMIZE
="-O3"
6140 CONFIG_BPATH
="-Wl,-R,"
6141 X11_LDFLAGS
="$X_LIBS -lXext -lX11 -lsocket"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for mingw host" >&5
6145 $as_echo "final adjustments for mingw host" >&6; }
6146 CONFIG_OS_COMPAT
="Windows"
6147 CONFIG_LDRT
="-lmingw32 -lmingwex"
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for cygwin host" >&5
6151 $as_echo "final adjustments for cygwin host" >&6; }
6153 CONFIG_BFLAGS
="-Wl,-stack,8388608"
6154 # CXX="export CYGWIN=check_case:strict; $CXX"
6158 echo "$ac_t""final adjustments for a MacOS host" 1>&6
6160 CONFIG_CXXFLAGS
="-I${prefix}/include"
6162 CONFIG_BFLAGS
="-framework Cocoa"
6165 CONFIG_LIB_PATH
="DYLD_LIBRARY_PATH"
6168 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
6169 CONFIG_CXXFLAGS
="-I${prefix}/include"
6173 CONFIG_LIB_PATH
="DYLD_LIBRARY_PATH"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a PowerPC/GNU-linux host" >&5
6177 $as_echo "final adjustments for a PowerPC/GNU-linux host" >&6; }
6178 CONFIG_OS
="POWERPC_GNU_LINUX"
6179 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a SUN/solaris host" >&5
6183 $as_echo "final adjustments for a SUN/solaris host" >&6; }
6185 CONFIG_OS_SUFFIX
="sun"
6188 CONFIG_BPATH
="-Wl,-R,"
6189 X11_LDFLAGS
="$X_LIBS -lXext -lX11 -lsocket"
6190 CONFIG_WORD_LENGTH
="8"
6191 CONFIG_WORD_LENGTH_INC
="7"
6192 CONFIG_WORD_MASK
="0xfffffff8"
6193 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
6194 CONFIG_STD_SETENV
=""
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a Sparc host running GNU/Linux" >&5
6198 $as_echo "final adjustments for a Sparc host running GNU/Linux" >&6; }
6199 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
6200 CONFIG_WORD_LENGTH
="8"
6201 CONFIG_WORD_LENGTH_INC
="7"
6202 CONFIG_WORD_MASK
="0xfffffff8"
6203 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
6204 CONFIG_STD_SETENV
=""
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a DEC/alpha host" >&5
6208 $as_echo "final adjustments for a DEC/alpha host" >&6; }
6210 CONFIG_BSHARED
="-shared"
6211 CONFIG_STD_SETENV
=""
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Alpha GNU/Linux host" >&5
6215 $as_echo "final adjustments for an Alpha GNU/Linux host" >&6; }
6217 CONFIG_BSHARED
="-shared"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
6221 $as_echo "final adjustments for an IBM S/390 GNU/Linux host" >&6; }
6222 CONFIG_STD_SETENV
=""
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Itanium GNU/Linux host" >&5
6226 $as_echo "final adjustments for an Itanium GNU/Linux host" >&6; }
6228 CONFIG_BSHARED
="-shared"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
6232 $as_echo "final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
6233 CONFIG_CXXFLAGS
="$CONFIG_CXXFLAGS -fPIC"
6235 CONFIG_BSHARED
="-shared"
6238 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
6245 X11_LDFLAGS
="$X_LIBS -lX11"
6246 CONFIG_WORD_MASK
="0xfffffff8"
6247 CONFIG_STD_SETENV
=""
6248 CONFIG_CHMOD
="chmod"
6249 CONFIG_LIB_PATH
="LD_LIBRARYN32_PATH"
6251 m68k-
*-linux* | mips-
*-linux* | mipsel-
*-linux* | arm
*-*-linux*)
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a supported GNU/Linux host" >&5
6253 $as_echo "final adjustments for a supported GNU/Linux host" >&6; }
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic GNU/Linux host" >&5
6257 $as_echo "final adjustments for a generic GNU/Linux host" >&6; }
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic host" >&5
6261 $as_echo "final adjustments for a generic host" >&6; }
6267 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
6268 CONFIG_NATIVE_ARCH_TAG
="NATIVE_ARCH_ACTUAL"
6272 #--------------------------------------------------------------------
6273 # Temporary fix for link problem
6274 #--------------------------------------------------------------------
6276 case "$GXX_VERSION" in
6278 CONFIG_BSTATIC
="-static"
6279 CONFIG_BSHARED
="-dynamic"
6283 #--------------------------------------------------------------------
6284 # Memory allocation options
6285 #--------------------------------------------------------------------
6287 # Check whether --enable-fastalloc was given.
6288 if test "${enable_fastalloc+set}" = set; then :
6289 enableval
=$enable_fastalloc;
6291 enable_fastalloc
="yes"
6294 case "$enable_fastalloc" in
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling fast allocator for small objects" >&5
6299 $as_echo "disabling fast allocator for small objects" >&6; }
6301 $as_echo "#define NO_FAST_ALLOC 1" >>confdefs.h
6305 as_fn_error
"bad option --enable-fastalloc=$enable_fastalloc" "$LINENO" 5
6309 #--------------------------------------------------------------------
6310 # Experimental options
6311 #--------------------------------------------------------------------
6313 # Check whether --enable-experimental was given.
6314 if test "${enable_experimental+set}" = set; then :
6315 enableval
=$enable_experimental;
6317 enable_experimental
="no"
6320 case "$enable_experimental" in
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental style rewriting code" >&5
6323 $as_echo "enabling experimental style rewriting code" >&6; }
6325 $as_echo "#define EXPERIMENTAL 1" >>confdefs.h
6327 CONFIG_EXPERIMENTAL
="Memorizer Environment Evaluate"
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental style rewriting code" >&5
6331 $as_echo "disabling experimental style rewriting code" >&6; }
6332 CONFIG_EXPERIMENTAL
=""
6335 as_fn_error
"bad option --enable-experimental=$enable_experimental" "$LINENO" 5
6340 #--------------------------------------------------------------------
6341 # MacOS X extensions (spellchecker, image loading)
6342 #--------------------------------------------------------------------
6344 # Check whether --enable-macosx-extensions was given.
6345 if test "${enable_macosx_extensions+set}" = set; then :
6346 enableval
=$enable_macosx_extensions;
6348 enable_macosx_extensions
="no"
6351 case "$enable_macosx_extensions" in
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Mac OSX extensions" >&5
6354 $as_echo "enabling Mac OSX extensions" >&6; }
6356 $as_echo "#define MACOSX_EXTENSIONS 1" >>confdefs.h
6358 CONFIG_MACOS
="MacOS"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Mac OSX extensions" >&5
6362 $as_echo "disabling Mac OSX extensions" >&6; }
6366 as_fn_error
"bad option --enable-macosx-extensions=$enable_macosx_extensions" "$LINENO" 5
6371 #--------------------------------------------------------------------
6373 #--------------------------------------------------------------------
6379 # Check whether --enable-qt was given.
6380 if test "${enable_qt+set}" = set; then :
6381 enableval
=$enable_qt;
6387 case "$enable_qt" in
6390 if test -r "/c/Qt"; then
6392 qt_bin
="`dirname $MOC`"
6393 qt_home
="`dirname $qt_bin`"
6394 qt_version
="`basename $qt_home`"
6395 qt_parent
="`dirname $qt_home`"
6396 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."
6397 QT_CXXFLAGS
="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
6398 QT_LDFLAGS
="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
6399 QT_LIBS
="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
6400 if test "$qt_parent" != "/c/Qt"; then
6408 test x
"$TROLL" != x
&& echo 'ViM rox emacs.'
6411 # Check whether --with-qt was given.
6412 if test "${with_qt+set}" = set; then :
6413 withval
=$with_qt; QT_PATH
=$withval
6420 if test -d /usr
/local
/Trolltech
; then
6421 # Try to find the latest version.
6422 tmp_qt_paths
=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
6423 | xargs | sed 's/ */:/g'`
6427 if test -z "$QMAKE"; then
6428 for ac_prog
in qmake
6430 # Extract the first word of "$ac_prog", so it can be a program name with args.
6431 set dummy
$ac_prog; ac_word
=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_path_QMAKE+set}" = set; then :
6435 $as_echo_n "(cached) " >&6
6439 ac_cv_path_QMAKE
="$QMAKE" # Let the user override the test with a path.
6442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6443 as_dummy
="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
6444 for as_dir
in $as_dummy
6447 test -z "$as_dir" && as_dir
=.
6448 for ac_exec_ext
in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_path_QMAKE
="$as_dir/$ac_word$ac_exec_ext"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 QMAKE
=$ac_cv_path_QMAKE
6462 if test -n "$QMAKE"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6464 $as_echo "$QMAKE" >&6; }
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6471 test -n "$QMAKE" && break
6473 test -n "$QMAKE" || QMAKE
="missing"
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QMAKE to use with Qt" >&5
6477 $as_echo_n "checking for the QMAKE to use with Qt... " >&6; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6479 $as_echo "$QMAKE" >&6; }
6481 if test x
"$QMAKE" = xmissing
; then
6482 as_fn_error
"Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
6485 # Find moc (Meta Object Compiler).
6486 if test -z "$MOC"; then
6489 # Extract the first word of "$ac_prog", so it can be a program name with args.
6490 set dummy
$ac_prog; ac_word
=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if test "${ac_cv_path_MOC+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
6498 ac_cv_path_MOC
="$MOC" # Let the user override the test with a path.
6501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6502 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
6503 for as_dir
in $as_dummy
6506 test -z "$as_dir" && as_dir
=.
6507 for ac_exec_ext
in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_path_MOC
="$as_dir/$ac_word$ac_exec_ext"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 if test -n "$MOC"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6523 $as_echo "$MOC" >&6; }
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6530 test -n "$MOC" && break
6532 test -n "$MOC" || MOC
="missing"
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the MOC to use with Qt" >&5
6536 $as_echo_n "checking for the MOC to use with Qt... " >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6538 $as_echo "$MOC" >&6; }
6540 if test x
"$MOC" = xmissing
; then
6541 as_fn_error
"Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6544 # Find uic (User Interface Compiler).
6545 if test -z "$UIC"; then
6548 # Extract the first word of "$ac_prog", so it can be a program name with args.
6549 set dummy
$ac_prog; ac_word
=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_path_UIC+set}" = set; then :
6553 $as_echo_n "(cached) " >&6
6557 ac_cv_path_UIC
="$UIC" # Let the user override the test with a path.
6560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6561 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
6562 for as_dir
in $as_dummy
6565 test -z "$as_dir" && as_dir
=.
6566 for ac_exec_ext
in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_path_UIC
="$as_dir/$ac_word$ac_exec_ext"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 if test -n "$UIC"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6582 $as_echo "$UIC" >&6; }
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6589 test -n "$UIC" && break
6591 test -n "$UIC" || UIC
="missing"
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the UIC to use with Qt" >&5
6595 $as_echo_n "checking for the UIC to use with Qt... " >&6; }
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6597 $as_echo "$UIC" >&6; }
6599 if test x
"$UIC" = xmissing
; then
6600 as_fn_error
"Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6603 # Find rcc (Qt Resource Compiler).
6606 # Extract the first word of "$ac_prog", so it can be a program name with args.
6607 set dummy
$ac_prog; ac_word
=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if test "${ac_cv_path_RCC+set}" = set; then :
6611 $as_echo_n "(cached) " >&6
6615 ac_cv_path_RCC
="$RCC" # Let the user override the test with a path.
6618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6619 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
6620 for as_dir
in $as_dummy
6623 test -z "$as_dir" && as_dir
=.
6624 for ac_exec_ext
in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_path_RCC
="$as_dir/$ac_word$ac_exec_ext"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 if test -n "$RCC"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
6640 $as_echo "$RCC" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6647 test -n "$RCC" && break
6649 test -n "$RCC" || RCC
="false"
6651 if test x
"$UIC" = xfalse
; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
6653 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
6656 # If we don't know the path to Qt, guess it from the path to qmake.
6657 if test x
"$QT_PATH" = x
; then
6658 QT_PATH
=`dirname "$QMAKE"`
6660 if test x
"$QT_PATH" = x
; then
6661 as_fn_error
"Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_PATH to use with Qt" >&5
6665 $as_echo_n "checking for the QT_PATH to use with Qt... " >&6; }
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_PATH" >&5
6667 $as_echo "$QT_PATH" >&6; }
6669 # Get ready to build a test-app with Qt.
6671 # Look for a writable temporary directory.
6673 if test x
"$TMPDIR" = x ||
test ! -d "$TMPDIR" ||
test ! -w "$TMPDIR"; then
6674 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
6676 for i
in /tmp
/var
/tmp
; do
6677 if test -d "$i" && test -w "$i"; then
6680 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
6686 # Kludge!! QMake has a very strange behavior. For instance, if you
6687 # install Qt under your $HOME and run QMake somewhere else under your
6688 # $HOME, it will try to be clever and produce Makefiles with relative
6689 # include paths. In order to avoid this, we will test QMake from a
6690 # temporary directory (usually /tmp). Note that this problem was only
6691 # observed with Qt 4.
6692 my_configure_pwd
=`pwd`
6693 my_tmpdir
="$TMPDIR/conftest$$.dir"
6694 test -d "$my_tmpdir" || mkdir
"$my_tmpdir"
6695 if test -w "$my_tmpdir" && cd "$my_tmpdir"
6699 as_fn_error
"Cannot cd to or write in $my_tmpdir" "$LINENO" 5
6701 cat >conftest.h
<<_ASEOF
6704 class Foo: public QObject
6711 void setValue(int value);
6713 void valueChanged(int newValue);
6719 cat >conftest.cpp
<<_ASEOF
6720 #include "conftest.h"
6724 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
6727 void Foo::setValue(int value)
6737 if $QMAKE -project; then :; else
6738 as_fn_error
"Calling $QMAKE -project failed." "$LINENO" 5
6741 # Find the .pro file generated by qmake.
6742 pro_file
='conftest.dir.pro'
6743 test -f $pro_file || pro_file
=`echo *.pro`
6744 if test -f "$pro_file"; then :; else
6745 as_fn_error
"Can't find the .pro file generated by Qmake." "$LINENO" 5
6754 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
6755 sed 's/^/| /' "$pro_file" >&5
6757 additional_qmake_flags
=""
6760 additional_qmake_flags
="-spec macx-g++"
6764 if $QMAKE ${additional_qmake_flags} ; then :; else
6765 as_fn_error
"Calling $QMAKE failed." "$LINENO" 5
6767 # Try to compile a simple Qt app.
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
6769 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
6770 if test "${at_cv_qt_build+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6776 if $MAKE >&5 2>&1; then
6777 at_cv_qt_build
='ok, looks like Qt 4'
6779 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
6781 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
6782 if $MAKE >&5 2>&1; then
6783 at_cv_qt_build
='ok, looks like Qt 3'
6785 # Sometimes (such as on Debian) build will fail because Qt hasn't been
6786 # installed in debug mode and qmake tries (by default) to build apps in
6787 # debug mode => Try again in release mode.
6788 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
6791 # Tweak the value of CONFIG in the .pro file for +release.
6794 for at_mod
in +release
; do
6795 at_mod
=`echo "$at_mod" | sed 's/^-//; tough
6804 echo "$qt_conf" |
sed 1d
>>"$pro_file"
6807 sed 's/<qobject.h>/<QObject>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
6808 if $MAKE >&5 2>&1; then
6809 at_cv_qt_build
='ok, looks like Qt 4, release mode forced'
6811 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
6813 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
6814 if $MAKE >&5 2>&1; then
6815 at_cv_qt_build
='ok, looks like Qt 3, release mode forced'
6818 echo "$as_me:$LINENO: failed program was:" >&5
6819 sed 's/^/| /' conftest.h
>&5
6820 echo "$as_me:$LINENO: failed program was:" >&5
6821 sed 's/^/| /' conftest.cpp
>&5
6822 fi # if make with Qt3-style #include and release mode forced.
6823 fi # if make with Qt4-style #include and release mode forced.
6824 fi # if make with Qt3-style #include.
6825 fi # if make with Qt4-style #include.
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
6829 $as_echo "$at_cv_qt_build" >&6; }
6830 if test x
"$at_cv_qt_build" = xko
; then
6831 as_fn_error
"Cannot build a test Qt program" "$LINENO" 5
6833 QT_VERSION_MAJOR
=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
6836 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
6837 # It starts by removing the beginning of the line, removing references to
6838 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
6839 # all variable uses by QT_.
6840 qt_sed_filter
='s///;
6843 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
6845 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
6846 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
6847 # Makefile.Release. The reason is that the main difference is that release
6848 # uses -Os and debug -g. We can override -Os by passing another -O but we
6849 # usually don't override -g.
6850 if test -f Makefile.Release
; then
6851 at_mfile
='Makefile.Release'
6855 if test -f $at_mfile; then :; else
6856 cd "$my_configure_pwd"
6857 as_fn_error
"Cannot find the Makefile generated by qmake." "$LINENO" 5
6860 # Find the DEFINES of Qt (should have been named CPPFLAGS).
6861 if test -z "$QT_DEFINES"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
6863 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
6864 if test "${at_cv_env_QT_DEFINES+set}" = set; then :
6865 $as_echo_n "(cached) " >&6
6867 at_cv_env_QT_DEFINES
=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
6870 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
6871 QT_DEFINES
="$at_cv_env_QT_DEFINES"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_DEFINES to use with Qt" >&5
6875 $as_echo_n "checking for the QT_DEFINES to use with Qt... " >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_DEFINES" >&5
6877 $as_echo "$QT_DEFINES" >&6; }
6879 # Find the CFLAGS of Qt (We can use Qt in C?!)
6880 if test -z "$QT_CFLAGS"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
6882 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
6883 if test "${at_cv_env_QT_CFLAGS+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6886 at_cv_env_QT_CFLAGS
=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
6889 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
6890 QT_CFLAGS
="$at_cv_env_QT_CFLAGS"
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CFLAGS to use with Qt" >&5
6894 $as_echo_n "checking for the QT_CFLAGS to use with Qt... " >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
6896 $as_echo "$QT_CFLAGS" >&6; }
6898 # Find the CXXFLAGS of Qt.
6899 if test -z "$QT_CXXFLAGS"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
6901 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
6902 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then :
6903 $as_echo_n "(cached) " >&6
6905 at_cv_env_QT_CXXFLAGS
=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
6908 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
6909 QT_CXXFLAGS
="$at_cv_env_QT_CXXFLAGS"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CXXFLAGS to use with Qt" >&5
6913 $as_echo_n "checking for the QT_CXXFLAGS to use with Qt... " >&6; }
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CXXFLAGS" >&5
6915 $as_echo "$QT_CXXFLAGS" >&6; }
6917 # Find the INCPATH of Qt.
6918 if test -z "$QT_INCPATH"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
6920 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
6921 if test "${at_cv_env_QT_INCPATH+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6924 at_cv_env_QT_INCPATH
=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
6927 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
6928 QT_INCPATH
="$at_cv_env_QT_INCPATH"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_INCPATH to use with Qt" >&5
6932 $as_echo_n "checking for the QT_INCPATH to use with Qt... " >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_INCPATH" >&5
6934 $as_echo "$QT_INCPATH" >&6; }
6936 QT_CPPFLAGS
="$QT_DEFINES $QT_INCPATH"
6939 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
6940 if test -z "$QT_LDFLAGS"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
6942 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
6943 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6946 at_cv_env_QT_LDFLAGS
=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
6949 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
6950 QT_LDFLAGS
="$at_cv_env_QT_LDFLAGS"
6953 QT_LFLAGS
=$QT_LDFLAGS
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LDFLAGS to use with Qt" >&5
6956 $as_echo_n "checking for the QT_LDFLAGS to use with Qt... " >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LDFLAGS" >&5
6958 $as_echo "$QT_LDFLAGS" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
6961 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
6969 $as_echo "$at_darwin" >&6; }
6971 # Find the LIBS of Qt.
6972 if test -z "$QT_LIBS"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
6974 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
6975 if test "${at_cv_env_QT_LIBS+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6978 at_cv_env_QT_LIBS
=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
6979 if test x
$at_darwin = xyes
; then
6980 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
6981 # -F properly. The "bug" has been fixed on 22 October 2006
6982 # by Peter O'Gorman but we provide backward compatibility here.
6983 at_cv_env_QT_LIBS
=`echo "$at_cv_env_QT_LIBS" \
6984 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
6989 $as_echo "$at_cv_env_QT_LIBS" >&6; }
6990 QT_LIBS
="$at_cv_env_QT_LIBS"
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LIBS to use with Qt" >&5
6994 $as_echo_n "checking for the QT_LIBS to use with Qt... " >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
6996 $as_echo "$QT_LIBS" >&6; }
6998 cd "$my_configure_pwd" ||
echo 'WTF!'
7003 if test x
"$at_cv_qt_build" = xko
; then
7004 as_fn_error
"cannot find Qt!" "$LINENO" 5
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Qt port" >&5
7007 $as_echo "enabling experimental Qt port" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Qt port" >&5
7013 $as_echo "disabling experimental Qt port" >&6; }
7016 as_fn_error
"bad option --enable-qt=$enable_qt" "$LINENO" 5
7020 # Check whether --enable-cocoa was given.
7021 if test "${enable_cocoa+set}" = set; then :
7022 enableval
=$enable_cocoa;
7027 case "$enable_cocoa" in
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Cocoa port" >&5
7030 $as_echo "enabling experimental Cocoa port" >&6; }
7032 COCOA_LDFLAGS
="-framework Cocoa"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Cocoa port" >&5
7037 $as_echo "disabling experimental Cocoa port" >&6; }
7040 as_fn_error
"bad option --enable-cocoa=$enable_cocoa" "$LINENO" 5
7044 case "$CONFIG_GUI" in
7046 CONFIG_X11
="X11 Widkit Ghostscript"
7047 CONFIG_GUI_DEFINE
="X11TEXMACS"
7048 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
7051 CONFIG_COCOA
="Cocoa"
7052 CONFIG_GUI_DEFINE
="AQUATEXMACS"
7053 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
7057 CONFIG_GUI_DEFINE
="QTTEXMACS"
7058 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
7075 #--------------------------------------------------------------------
7077 #--------------------------------------------------------------------
7079 STD_DEBUG_FLAGS
="-fno-rtti -fno-exceptions"
7080 if test "$enable_cocoa" = "yes"; then
7081 STD_DEBUG_FLAGS
="-fno-exceptions"
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports $STD_DEBUG_FLAGS" >&5
7085 $as_echo_n "checking if compiler supports $STD_DEBUG_FLAGS... " >&6; }
7086 CXXFLAGS
="$STD_DEBUG_FLAGS"
7087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7090 int some_variable = 0;
7101 if ac_fn_cxx_try_compile
"$LINENO"; then :
7103 CONFIG_CXXDIALECT
="$STD_DEBUG_FLAGS"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7105 $as_echo "yes" >&6; }
7109 CONFIG_CXXDIALECT
=""
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7118 # Check whether --enable-debug was given.
7119 if test "${enable_debug+set}" = set; then :
7120 enableval
=$enable_debug;
7126 if test "$enable_debug" = "yes"; then
7127 if test "$GXX" = "yes"; then
7128 enable_debug
="-ggdb"
7134 if test "$enable_debug" = "no"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling debugging" >&5
7136 $as_echo "disabling debugging" >&6; }
7137 CONFIG_STRIP
="strip"
7139 optimize_default
="yes"
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling debugging, $enable_debug" >&5
7142 $as_echo "enabling debugging, $enable_debug" >&6; }
7144 CONFIG_CXXDEBUG
="$enable_debug"
7145 optimize_default
="no"
7148 # Check whether --enable-assert was given.
7149 if test "${enable_assert+set}" = set; then :
7150 enableval
=$enable_assert;
7156 if test "$enable_assert" = "no"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling assertion checking" >&5
7158 $as_echo "disabling assertion checking" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling assertion checking" >&5
7161 $as_echo "enabling assertion checking" >&6; }
7163 $as_echo "#define DEBUG_ASSERT 1" >>confdefs.h
7167 #--------------------------------------------------------------------
7169 #--------------------------------------------------------------------
7171 case "$GXX_VERSION" in
7173 CONFIG_CXXWARNING
="";
7176 CONFIG_CXXWARNING
="-Wall -Wno-return-type"
7180 # Check whether --enable-warnings was given.
7181 if test "${enable_warnings+set}" = set; then :
7182 enableval
=$enable_warnings;
7184 enable_warnings
="yes"
7187 case "$enable_warnings" in
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7190 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7192 CONFIG_CXXWARNING
=""
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling warning flags" >&5
7194 $as_echo "disabling warning flags" >&6; } ;;
7196 CONFIG_CXXWARNING
="$enable_warnings"
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7198 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7201 #--------------------------------------------------------------------
7202 # Optimization options
7203 #--------------------------------------------------------------------
7205 if test "$optimize_default" = "yes"; then
7206 case "$GXX_VERSION" in
7207 3.3.3 |
3.3.4 |
4.
*)
7209 2.96 |
3.0 |
3.0.
* |
3.1 |
3.1.
* |
3.2 |
3.2.
* |
3.3 |
3.3.
*)
7211 i
*86-*-linux-gnu* | i
*86-*-freebsd*)
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7213 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7214 optimize_default
="no-inline"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7218 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7219 optimize_default
="no-inline"
7226 # Check whether --enable-optimize was given.
7227 if test "${enable_optimize+set}" = set; then :
7228 enableval
=$enable_optimize;
7230 enable_optimize
="$optimize_default"
7234 case "$enable_optimize" in
7236 # keep optimization options
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7238 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7240 optimize_no_inline
="-fno-default-inline -fno-inline"
7241 CONFIG_CXXOPTIMIZE
="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7243 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7245 CONFIG_CXXOPTIMIZE
=""
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling optimizations" >&5
7247 $as_echo "disabling optimizations" >&6; } ;;
7249 CONFIG_CXXOPTIMIZE
="$enable_optimize"
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: customizing optimizations, $enable_optimize" >&5
7251 $as_echo "customizing optimizations, $enable_optimize" >&6; } ;;
7254 #--------------------------------------------------------------------
7255 # Substitute TeXmacs specific configuration parameters
7256 #--------------------------------------------------------------------
7282 #--------------------------------------------------------------------
7283 # Default paths for installation
7284 #--------------------------------------------------------------------
7286 if test "$prefix" = ""; then
7289 if test "$prefix" = "NONE"; then
7292 if test "$exec_prefix" = ""; then
7293 exec_prefix
='${prefix}'
7295 if test "$exec_prefix" = "NONE"; then
7296 exec_prefix
='${prefix}'
7298 if test "$exec_prefix" = '${prefix}'; then
7299 exec_prefix
='${prefix}'
7301 if test "$includedir" = ""; then
7302 includedir
='${prefix}/include'
7304 if test "$includedir" = "NONE"; then
7305 includedir
='${prefix}/include'
7307 if test "$includedir" = '${prefix}/include'; then
7308 includedir
='${prefix}/include'
7310 if test "$libdir" = ""; then
7311 libdir
='${exec_prefix}/lib'
7313 if test "$libdir" = "NONE"; then
7314 libdir
='${exec_prefix}/lib'
7316 if test "$libdir" = '${exec_prefix}/lib'; then
7317 libdir
='${exec_prefix}/lib'
7319 if test "$bindir" = ""; then
7320 bindir
='${exec_prefix}/bin'
7322 if test "$bindir" = "NONE"; then
7323 bindir
=${exec_prefix}/bin
7325 if test "$bindir" = '${exec_prefix}/bin'; then
7326 bindir
='${exec_prefix}/bin'
7328 if test "$datarootdir" = ""; then
7329 datarootdir
='${prefix}/share'
7331 if test "$datarootdir" = "NONE"; then
7332 datarootdir
='${prefix}/share'
7334 if test "$datarootdir" = '${prefix}/share'; then
7335 datarootdir
='${prefix}/share'
7337 if test "$datadir" = ""; then
7338 datadir
='${prefix}/share'
7340 if test "$datadir" = "NONE"; then
7341 datadir
='${prefix}/share'
7343 if test "$datadir" = '${prefix}/share'; then
7344 datadir
='${prefix}/share'
7346 if test "$mandir" = ""; then
7347 mandir
='${datarootdir}/man'
7349 if test "$mandir" = "NONE"; then
7350 mandir
='${datarootdir}/man'
7352 if test "$mandir" = '${datarootdir}/man'; then
7353 mandir
='${datarootdir}/man'
7355 if test "$libexecdir" = ""; then
7356 libexecdir
='${exec_prefix}/libexec'
7358 if test "$libexecdir" = "NONE"; then
7359 libexecdir
='${exec_prefix}/libexec'
7361 if test "$libexecdir" = '${exec_prefix}/libexec'; then
7362 libexecdir
='${exec_prefix}/libexec'
7368 tmsrc
=${curdir}/${tmdir}
7369 tmbin
=${libexecdir}/${tmdir}
7370 tmdata
=${datadir}/${tmdir}
7377 if test "$DEVEL_RELEASE" = "1"; then
7378 tmtgz
=${PACKAGE}-${DEVEL_VERSION}
7380 tmtgz
=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
7382 tmrpm
=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
7383 if test "$STABLE_RELEASE" = "1"; then
7384 tmstgz
=${PACKAGE}-${STABLE_VERSION}
7386 tmstgz
=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
7388 tmsrpm
=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
7389 if test "$WINDOWS_RELEASE" = "1"; then
7390 tmwin
=wintexmacs-
${WINDOWS_VERSION}
7392 tmwin
=wintexmacs-
${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
7400 #--------------------------------------------------------------------
7402 #--------------------------------------------------------------------
7404 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"
7406 cat >confcache
<<\_ACEOF
7407 # This file is a shell script that caches the results of configure
7408 # tests run on this system so they can be shared between configure
7409 # scripts and configure runs, see configure's option --config-cache.
7410 # It is not useful on other systems. If it contains results you don't
7411 # want to keep, you may remove or edit it.
7413 # config.status only pays attention to the cache file if you give it
7414 # the --recheck option to rerun configure.
7416 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7417 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7422 # The following way of writing the cache mishandles newlines in values,
7423 # but we know of no workaround that is simple, portable, and efficient.
7424 # So, we kill variables containing newlines.
7425 # Ultrix sh set writes to stderr and can't be redirected directly,
7426 # and sets the high bit in the cache file unless we assign to the vars.
7428 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7429 eval ac_val
=\$
$ac_var
7433 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7437 _ | IFS | as_nl
) ;; #(
7438 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7439 *) { eval $ac_var=; unset $ac_var;} ;;
7445 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7446 *${as_nl}ac_space
=\
*)
7447 # `set' does not quote correctly, so add quotes: double-quote
7448 # substitution turns \\\\ into \\, and sed turns \\ into \.
7451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7454 # `set' quotes correctly as required by POSIX, so do not add quotes.
7455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7464 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7466 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7468 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7469 if test -w "$cache_file"; then
7470 test "x$cache_file" != "x/dev/null" &&
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7472 $as_echo "$as_me: updating cache $cache_file" >&6;}
7473 cat confcache
>$cache_file
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7476 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7481 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7482 # Let make expand exec_prefix.
7483 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7485 DEFS
=-DHAVE_CONFIG_H
7489 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7490 # 1. Remove the extension, and $U if already installed.
7491 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7492 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7493 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7494 # will be set to the directory where LIBOBJS objects are built.
7495 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7496 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7500 LTLIBOBJS
=$ac_ltlibobjs
7504 : ${CONFIG_STATUS=./config.status}
7506 ac_clean_files_save
=$ac_clean_files
7507 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7509 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7511 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7513 # Generated by $as_me.
7514 # Run this file to recreate the current configuration.
7515 # Compiler output produced by configure, useful for debugging
7516 # configure, is in config.log if it exists.
7522 SHELL=\${CONFIG_SHELL-$SHELL}
7525 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7526 ## -------------------- ##
7527 ## M4sh Initialization. ##
7528 ## -------------------- ##
7530 # Be more Bourne compatible
7531 DUALCASE
=1; export DUALCASE
# for MKS sh
7532 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7536 # is contrary to our usage. Disable this feature.
7537 alias -g '${1+"$@"}'='"$@"'
7538 setopt NO_GLOB_SUBST
7540 case `(set -o) 2>/dev/null` in #(
7552 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7553 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7556 # Prefer a ksh shell builtin over an external printf program on Solaris,
7557 # but without wasting forks for bash or zsh.
7558 if test -z "$BASH_VERSION$ZSH_VERSION" \
7559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7560 as_echo='print
-r --'
7561 as_echo_n='print
-rn --'
7562 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7563 as_echo='printf %s
\n'
7564 as_echo_n='printf %s
'
7566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7567 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7568 as_echo_n='/usr
/ucb
/echo -n'
7570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7571 as_echo_n_body='eval
7575 expr "X$arg" : "X\\(.*\\)$as_nl";
7576 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7578 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7580 export as_echo_n_body
7581 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7584 as_echo='sh
-c $as_echo_body as_echo
'
7587 # The user is always right.
7588 if test "${PATH_SEPARATOR+set}" != set; then
7590 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7591 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7598 # We need space, tab and new line, in precisely that order. Quoting is
7599 # there to prevent editors from complaining about space-tab.
7600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7601 # splitting by setting IFS to empty value.)
7604 # Find who we are. Look in the path if we contain no directory separator.
7606 *[\\/]* ) as_myself=$0 ;;
7607 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 test -z "$as_dir" && as_dir=.
7612 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7618 # We did not find ourselves, most probably we were run as `sh COMMAND'
7619 # in which case we are not to be found in the path.
7620 if test "x$as_myself" = x
; then
7623 if test ! -f "$as_myself"; then
7624 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7628 # Unset variables that we do not need and which cause bugs (e.g. in
7629 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7630 # suppresses any "Segmentation fault" message there. '((' could
7631 # trigger a bug in pdksh 5.2.14.
7632 for as_var
in BASH_ENV ENV MAIL MAILPATH
7633 do eval test x\
${$as_var+set} = xset \
7634 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7647 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7650 # as_fn_error ERROR [LINENO LOG_FD]
7651 # ---------------------------------
7652 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7653 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7654 # script with status $?, using 1 if that was 0.
7657 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7659 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7660 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7662 $as_echo "$as_me: error: $1" >&2
7663 as_fn_exit
$as_status
7667 # as_fn_set_status STATUS
7668 # -----------------------
7669 # Set $? to STATUS, without forking.
7673 } # as_fn_set_status
7677 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7687 # Portably unset VAR.
7690 { eval $1=; unset $1;}
7692 as_unset
=as_fn_unset
7693 # as_fn_append VAR VALUE
7694 # ----------------------
7695 # Append the text in VALUE to the end of the definition contained in VAR. Take
7696 # advantage of any shell optimizations that allow amortized linear growth over
7697 # repeated appends, instead of the typical quadratic growth present in naive
7699 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7700 eval 'as_fn_append ()
7711 # as_fn_arith ARG...
7712 # ------------------
7713 # Perform arithmetic evaluation on the ARGs, and store the result in the
7714 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7715 # must be portable across $(()) and expr.
7716 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7717 eval 'as_fn_arith ()
7724 as_val
=`expr "$@" || test $? -eq 1`
7729 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7730 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7736 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7737 as_basename
=basename
7742 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7748 as_me
=`$as_basename -- "$0" ||
7749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7750 X"$0" : 'X\(//\)$' \| \
7751 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7753 sed '/^.*\/\([^/][^/]*\)\/*$/{
7767 # Avoid depending upon Character Ranges.
7768 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7769 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7770 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7771 as_cr_digits
='0123456789'
7772 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7774 ECHO_C
= ECHO_N
= ECHO_T
=
7775 case `echo -n x` in #(((((
7777 case `echo 'xy\c'` in
7778 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7780 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7787 rm -f conf$$ conf$$.exe conf$$.
file
7788 if test -d conf$$.dir
; then
7789 rm -f conf$$.dir
/conf$$.
file
7792 mkdir conf$$.dir
2>/dev
/null
7794 if (echo >conf$$.
file) 2>/dev
/null
; then
7795 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7797 # ... but there are two gotchas:
7798 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7799 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7800 # In both cases, we have to default to `cp -p'.
7801 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7803 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7811 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7812 rmdir conf$$.dir
2>/dev
/null
7817 # Create "$as_dir" as a directory, including parents if necessary.
7822 -*) as_dir
=.
/$as_dir;;
7824 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7828 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7829 *) as_qdir
=$as_dir;;
7831 as_dirs
="'$as_qdir' $as_dirs"
7832 as_dir
=`$as_dirname -- "$as_dir" ||
7833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7834 X"$as_dir" : 'X\(//\)[^/]' \| \
7835 X"$as_dir" : 'X\(//\)$' \| \
7836 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7837 $as_echo X"$as_dir" |
7838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7855 test -d "$as_dir" && break
7857 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7858 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
7862 if mkdir
-p .
2>/dev
/null
; then
7863 as_mkdir_p
='mkdir -p "$as_dir"'
7865 test -d .
/-p && rmdir .
/-p
7869 if test -x / >/dev
/null
2>&1; then
7872 if ls -dL / >/dev
/null
2>&1; then
7879 if test -d "$1"; then
7885 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7886 ???[sx]*):;;*)false;;esac;fi
7890 as_executable_p
=$as_test_x
7892 # Sed expression to map a string onto a valid CPP name.
7893 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7895 # Sed expression to map a string onto a valid variable name.
7896 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7900 ## ----------------------------------- ##
7901 ## Main body of $CONFIG_STATUS script. ##
7902 ## ----------------------------------- ##
7904 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7907 # Save the log message, to keep $0 and so on meaningful, and to
7908 # report actual input values of CONFIG_FILES etc. instead of their
7909 # values after options handling.
7911 This file was extended by $as_me, which was
7912 generated by GNU Autoconf 2.64. Invocation command line was
7914 CONFIG_FILES = $CONFIG_FILES
7915 CONFIG_HEADERS = $CONFIG_HEADERS
7916 CONFIG_LINKS = $CONFIG_LINKS
7917 CONFIG_COMMANDS = $CONFIG_COMMANDS
7920 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7925 case $ac_config_files in *"
7926 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7929 case $ac_config_headers in *"
7930 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7935 # Files that config.status was made for.
7936 config_files="$ac_config_files"
7937 config_headers="$ac_config_headers"
7941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7943 \`$as_me' instantiates files and other configuration actions
7944 from templates according to the current configuration. Unless the files
7945 and actions are specified as TAGs, all are instantiated by default.
7947 Usage: $0 [OPTION]... [TAG]...
7949 -h, --help print this help, then exit
7950 -V, --version print version number and configuration settings, then exit
7951 -q, --quiet, --silent
7952 do not print progress messages
7953 -d, --debug don't remove temporary files
7954 --recheck update $as_me by reconfiguring in the same conditions
7955 --file=FILE[:TEMPLATE]
7956 instantiate the configuration file FILE
7957 --header=FILE[:TEMPLATE]
7958 instantiate the configuration header FILE
7960 Configuration files:
7963 Configuration headers:
7966 Report bugs to the package provider."
7969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7972 configured by $0, generated by GNU Autoconf 2.64,
7973 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7975 Copyright (C) 2009 Free Software Foundation, Inc.
7976 This config.status script is free software; the Free Software Foundation
7977 gives unlimited permission to copy, distribute and modify it."
7981 test -n "\$AWK" || AWK=awk
7984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7985 # The default lists apply if the user does not specify any file.
7991 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7992 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8003 # Handling of the options.
8004 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8006 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8007 $as_echo "$ac_cs_version"; exit ;;
8008 --debug |
--debu |
--deb |
--de |
--d |
-d )
8010 --file |
--fil |
--fi |
--f )
8013 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8015 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8016 ac_need_defaults
=false
;;
8017 --header |
--heade |
--head |
--hea )
8020 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8022 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8023 ac_need_defaults
=false
;;
8025 # Conflict between --help and --header
8026 as_fn_error
"ambiguous option: \`$1'
8027 Try \`$0 --help' for more information.";;
8028 --help |
--hel |
-h )
8029 $as_echo "$ac_cs_usage"; exit ;;
8030 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8031 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8035 -*) as_fn_error
"unrecognized option: \`$1'
8036 Try \`$0 --help' for more information." ;;
8038 *) as_fn_append ac_config_targets
" $1"
8039 ac_need_defaults
=false
;;
8045 ac_configure_extra_args
=
8047 if $ac_cs_silent; then
8049 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8054 if \$ac_cs_recheck; then
8055 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8057 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8058 CONFIG_SHELL='$SHELL'
8064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8068 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8069 ## Running $as_me. ##
8075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8080 # Handling of arguments.
8081 for ac_config_target
in $ac_config_targets
8083 case $ac_config_target in
8084 "src/System/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
8085 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile:Makefile.in" ;;
8086 "src/makefile") CONFIG_FILES
="$CONFIG_FILES src/makefile:src/makefile.in" ;;
8087 "src/System/tm_configure.hpp") CONFIG_FILES
="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
8088 "misc/admin/admin.makefile") CONFIG_FILES
="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
8089 "misc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
8090 "misc/man/texmacs.1") CONFIG_FILES
="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
8091 "misc/rpm/TeXmacs.spec") CONFIG_FILES
="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
8092 "misc/scripts/fig2ps") CONFIG_FILES
="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
8093 "misc/scripts/texmacs") CONFIG_FILES
="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
8094 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES
="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
8095 "misc/bundle/Base.xcconfig") CONFIG_FILES
="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
8097 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8102 # If the user did not use the arguments to specify the items to instantiate,
8103 # then the envvar interface is used. Set only those that are not.
8104 # We use the long form for the default assignment because of an extremely
8105 # bizarre bug on SunOS 4.1.3.
8106 if $ac_need_defaults; then
8107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8111 # Have a temporary directory for convenience. Make it in the build tree
8112 # simply because there is no reason against having it here, and in addition,
8113 # creating and moving files from /tmp can sometimes cause problems.
8114 # Hook for its removal unless debugging.
8115 # Note that there is a small window in which the directory will not be cleaned:
8116 # after its creation but before its name has been assigned to `$tmp'.
8120 trap 'exit_status=$?
8121 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8123 trap 'as_fn_exit 1' 1 2 13 15
8125 # Create a (secure) tmp directory for tmp files.
8128 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8129 test -n "$tmp" && test -d "$tmp"
8132 tmp
=.
/conf$$
-$RANDOM
8133 (umask 077 && mkdir
"$tmp")
8134 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8136 # Set up the scripts for CONFIG_FILES section.
8137 # No need to generate them if there are no CONFIG_FILES.
8138 # This happens for instance with `./config.status config.h'.
8139 if test -n "$CONFIG_FILES"; then
8142 ac_cr
=`echo X | tr X '\015'`
8143 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8144 # But we know of no other shell where ac_cr would be empty at this
8145 # point, so we can use a bashism as a fallback.
8146 if test "x$ac_cr" = x
; then
8147 eval ac_cr
=\$
\'\\r
\'
8149 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8150 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8156 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8161 echo "cat >conf$$subs.awk <<_ACEOF" &&
8162 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8165 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8166 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8168 for ac_last_try in false false false false false :; do
8169 . ./conf$$subs.sh ||
8170 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8172 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8173 if test $ac_delim_n = $ac_delim_num; then
8175 elif $ac_last_try; then
8176 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8178 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8184 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8188 s/^/S["/; s
/!.
*/"]=/
8198 s/\(.\{148\}\).*/\1/
8200 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8205 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8212 s/\(.\{148\}\).*/\1/
8214 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8218 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8223 ' <conf$$subs.awk | sed '
8228 ' >>$CONFIG_STATUS || ac_write_fail=1
8229 rm -f conf$$subs.awk
8230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8232 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8233 for (key in S) S_is_set[key] = 1
8239 nfields = split(line, field, "@
")
8241 len = length(field[1])
8242 for (i = 2; i < nfields; i++) {
8244 keylen = length(key)
8245 if (S_is_set[key]) {
8247 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8248 len += length(value) + length(field[++i])
8259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8260 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8261 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8264 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8265 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8268 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8269 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8270 # trailing colons and then remove the whole line if VPATH becomes empty
8271 # (actually we leave an empty line to preserve line numbers).
8272 if test "x
$srcdir" = x.; then
8273 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8277 s/^\([^=]*=[ ]*\):*/\1/
8283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8284 fi # test -n "$CONFIG_FILES"
8286 # Set up the scripts for CONFIG_HEADERS section.
8287 # No need to generate them if there are no CONFIG_HEADERS.
8288 # This happens for instance with `./config.status Makefile'.
8289 if test -n "$CONFIG_HEADERS"; then
8290 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8294 # Transform confdefs.h into an awk script `defines.awk', embedded as
8295 # here-document in config.status, that substitutes the proper values into
8296 # config.h.in to produce config.h.
8298 # Create a delimiter string that does not exist in confdefs.h, to ease
8299 # handling of long lines.
8301 for ac_last_try in false false :; do
8302 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8303 if test -z "$ac_t"; then
8305 elif $ac_last_try; then
8306 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8308 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8312 # For the awk script, D is an array of macro values keyed by name,
8313 # likewise P contains macro parameters if any. Preserve backslash
8314 # newline sequences.
8316 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8318 s/.\{148\}/&'"$ac_delim"'/g
8321 s/^[ ]*#[ ]*define[ ][ ]*/ /
8328 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8330 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8334 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8335 D["\
1"]=" \
3\\\\\\n
"\\/p
8337 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8342 s/.\{148\}/&'"$ac_delim"'/g
8347 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8350 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8352 ' <confdefs.h | sed '
8353 s/'"$ac_delim"'/"\\\
8354 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8357 for (key in D) D_is_set[key] = 1
8360 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8362 split(line, arg, " ")
8363 if (arg[1] == "#") {
8367 defundef
= substr
(arg
[1], 2)
8370 split(mac1
, mac2
, "(") #)
8372 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8373 if (D_is_set
[macro
]) {
8374 # Preserve the white space surrounding the "#".
8375 print prefix
"define", macro P
[macro
] D
[macro
]
8378 # Replace #undef with comments. This is necessary, for example,
8379 # in the case of _POSIX_SOURCE, which is predefined and required
8380 # on some systems where configure will not decide to define it.
8381 if (defundef
== "undef") {
8382 print
"/*", prefix defundef
, macro
, "*/"
8390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8391 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8392 fi # test -n "$CONFIG_HEADERS"
8395 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
8400 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8402 case $ac_mode$ac_tag in
8404 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8405 :[FH
]-) ac_tag
=-:-;;
8406 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8423 -) ac_f
="$tmp/stdin";;
8424 *) # Look for the file first in the build tree, then in the source tree
8425 # (if the path is not absolute). The absolute path cannot be DOS-style,
8426 # because $ac_f cannot contain `:'.
8430 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8432 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8434 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8435 as_fn_append ac_file_inputs
" '$ac_f'"
8438 # Let's still pretend it is `configure' which instantiates (i.e., don't
8439 # use $as_me), people would be surprised to read:
8440 # /* config.h. Generated by config.status. */
8441 configure_input
='Generated from '`
8442 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8444 if test x
"$ac_file" != x-
; then
8445 configure_input
="$ac_file. $configure_input"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8447 $as_echo "$as_me: creating $ac_file" >&6;}
8449 # Neutralize special characters interpreted by sed in replacement strings.
8450 case $configure_input in #(
8451 *\
&* |
*\|
* |
*\\* )
8452 ac_sed_conf_input
=`$as_echo "$configure_input" |
8453 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8454 *) ac_sed_conf_input
=$configure_input;;
8458 *:-:* |
*:-) cat >"$tmp/stdin" \
8459 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8464 ac_dir
=`$as_dirname -- "$ac_file" ||
8465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8466 X"$ac_file" : 'X\(//\)[^/]' \| \
8467 X"$ac_file" : 'X\(//\)$' \| \
8468 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8469 $as_echo X"$ac_file" |
8470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8487 as_dir
="$ac_dir"; as_fn_mkdir_p
8491 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8493 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8494 # A ".." for each directory in $ac_dir_suffix.
8495 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8496 case $ac_top_builddir_sub in
8497 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8498 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8501 ac_abs_top_builddir
=$ac_pwd
8502 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8503 # for backward compatibility:
8504 ac_top_builddir
=$ac_top_build_prefix
8507 .
) # We are building in place.
8509 ac_top_srcdir
=$ac_top_builddir_sub
8510 ac_abs_top_srcdir
=$ac_pwd ;;
8511 [\\/]* | ?
:[\\/]* ) # Absolute name.
8512 ac_srcdir
=$srcdir$ac_dir_suffix;
8513 ac_top_srcdir
=$srcdir
8514 ac_abs_top_srcdir
=$srcdir ;;
8516 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8517 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8518 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8520 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8532 # If the template does not know about datarootdir, expand it.
8533 # FIXME: This hack should be removed a few years after 2.60.
8534 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8545 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8546 *datarootdir
*) ac_datarootdir_seen
=yes;;
8547 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8549 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8552 ac_datarootdir_hack='
8553 s&@datadir@&$datadir&g
8554 s&@docdir@&$docdir&g
8555 s&@infodir@&$infodir&g
8556 s&@localedir@&$localedir&g
8557 s&@mandir@&$mandir&g
8558 s&\\\${datarootdir}&$datarootdir&g' ;;
8562 # Neutralize VPATH when `$srcdir' = `.'.
8563 # Shell code in configure.ac might set extrasub.
8564 # FIXME: do we really want to maintain this feature?
8565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8566 ac_sed_extra="$ac_vpsub
8569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8571 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8572 s|@configure_input@|
$ac_sed_conf_input|
;t t
8573 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8574 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8575 s
&@srcdir@
&$ac_srcdir&;t t
8576 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8577 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8578 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8579 s
&@builddir@
&$ac_builddir&;t t
8580 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8581 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8582 $ac_datarootdir_hack
8584 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8585 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8588 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8591 which seems to be undefined. Please make sure it is defined." >&5
8592 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8593 which seems to be undefined. Please make sure it is defined." >&2;}
8597 -) cat "$tmp/out" && rm -f "$tmp/out";;
8598 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8600 || as_fn_error "could not create $ac_file" "$LINENO" 5
8606 if test x"$ac_file" != x-; then
8608 $as_echo "/* $configure_input */" \
8609 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8610 } >"$tmp/config.h" \
8611 || as_fn_error "could not create $ac_file" "$LINENO" 5
8612 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8614 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8617 mv "$tmp/config.h" "$ac_file" \
8618 || as_fn_error "could not create $ac_file" "$LINENO" 5
8621 $as_echo "/* $configure_input */" \
8622 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8623 || as_fn_error "could not create -" "$LINENO" 5
8635 ac_clean_files=$ac_clean_files_save
8637 test $ac_write_fail = 0 ||
8638 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8641 # configure is writing to config.log, and then calls config.status.
8642 # config.status does its own redirection, appending to config.log.
8643 # Unfortunately, on DOS this fails, as config.log is still kept open
8644 # by configure, so config.status won't be able to
write to it
; its
8645 # output is simply discarded. So we exec the FD to /dev/null,
8646 # effectively closing config.log, so it can be properly (re)opened and
8647 # appended to by config.status. When coming back to configure, we
8648 # need to make the FD available again.
8649 if test "$no_create" != yes; then
8651 ac_config_status_args
=
8652 test "$silent" = yes &&
8653 ac_config_status_args
="$ac_config_status_args --quiet"
8655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8658 # would make configure fail if this is the last instruction.
8659 $ac_cs_success || as_fn_exit $?
8661 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8663 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}