2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
557 # Factoring default headers for most tests.
558 ac_includes_default
="\
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
570 # ifdef HAVE_STDLIB_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
593 ac_subst_vars
='LTLIBOBJS
605 CONFIG_NATIVE_ARCH_TAG
615 CONFIG_WORD_LENGTH_INC
734 program_transform_name
747 enable_option_checking
757 enable_macosx_extensions
768 ac_precious_vars
='build_alias
785 # Initialize some variables set by options.
787 ac_init_version
=false
788 ac_unrecognized_opts
=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
799 program_transform_name
=s
,x
,x
,
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir
='${exec_prefix}/bin'
814 sbindir
='${exec_prefix}/sbin'
815 libexecdir
='${exec_prefix}/libexec'
816 datarootdir
='${prefix}/share'
817 datadir
='${datarootdir}'
818 sysconfdir
='${prefix}/etc'
819 sharedstatedir
='${prefix}/com'
820 localstatedir
='${prefix}/var'
821 includedir
='${prefix}/include'
822 oldincludedir
='/usr/include'
823 docdir
='${datarootdir}/doc/${PACKAGE}'
824 infodir
='${datarootdir}/info'
829 libdir
='${exec_prefix}/lib'
830 localedir
='${datarootdir}/locale'
831 mandir
='${datarootdir}/man'
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\
$ac_option
845 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
856 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
858 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
861 -build |
--build |
--buil |
--bui |
--bu)
862 ac_prev
=build_alias
;;
863 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
864 build_alias
=$ac_optarg ;;
866 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
867 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
868 ac_prev
=cache_file
;;
869 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
870 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
871 cache_file
=$ac_optarg ;;
874 cache_file
=config.cache
;;
876 -datadir |
--datadir |
--datadi |
--datad)
878 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
879 datadir
=$ac_optarg ;;
881 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
882 |
--dataroo |
--dataro |
--datar)
883 ac_prev
=datarootdir
;;
884 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
885 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
886 datarootdir
=$ac_optarg ;;
888 -disable-* |
--disable-*)
889 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
892 as_fn_error $?
"invalid feature name: $ac_useropt"
893 ac_useropt_orig
=$ac_useropt
894 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep
=', ';;
902 eval enable_
$ac_useropt=no
;;
904 -docdir |
--docdir |
--docdi |
--doc |
--do)
906 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
909 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
911 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
914 -enable-* |
--enable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 as_fn_error $?
"invalid feature name: $ac_useropt"
919 ac_useropt_orig
=$ac_useropt
920 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep
=', ';;
928 eval enable_
$ac_useropt=\
$ac_optarg ;;
930 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
931 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
932 |
--exec |
--exe |
--ex)
933 ac_prev
=exec_prefix
;;
934 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
935 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
936 |
--exec=* |
--exe=* |
--ex=*)
937 exec_prefix
=$ac_optarg ;;
939 -gas |
--gas |
--ga |
--g)
940 # Obsolete; use --with-gas.
943 -help |
--help |
--hel |
--he |
-h)
945 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
946 ac_init_help
=recursive
;;
947 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
948 ac_init_help
=short
;;
950 -host |
--host |
--hos |
--ho)
951 ac_prev
=host_alias
;;
952 -host=* |
--host=* |
--hos=* |
--ho=*)
953 host_alias
=$ac_optarg ;;
955 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
957 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
959 htmldir
=$ac_optarg ;;
961 -includedir |
--includedir |
--includedi |
--included |
--include \
962 |
--includ |
--inclu |
--incl |
--inc)
963 ac_prev
=includedir
;;
964 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
965 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
966 includedir
=$ac_optarg ;;
968 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
970 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
971 infodir
=$ac_optarg ;;
973 -libdir |
--libdir |
--libdi |
--libd)
975 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
978 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
979 |
--libexe |
--libex |
--libe)
980 ac_prev
=libexecdir
;;
981 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
982 |
--libexe=* |
--libex=* |
--libe=*)
983 libexecdir
=$ac_optarg ;;
985 -localedir |
--localedir |
--localedi |
--localed |
--locale)
987 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
988 localedir
=$ac_optarg ;;
990 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
991 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
992 ac_prev
=localstatedir
;;
993 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
994 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
995 localstatedir
=$ac_optarg ;;
997 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
999 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1000 mandir
=$ac_optarg ;;
1002 -nfp |
--nfp |
--nf)
1003 # Obsolete; use --without-fp.
1006 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1007 |
--no-cr |
--no-c |
-n)
1010 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1011 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1014 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1015 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1016 |
--oldin |
--oldi |
--old |
--ol |
--o)
1017 ac_prev
=oldincludedir
;;
1018 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1019 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1020 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1021 oldincludedir
=$ac_optarg ;;
1023 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1025 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1026 prefix
=$ac_optarg ;;
1028 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1029 |
--program-pre |
--program-pr |
--program-p)
1030 ac_prev
=program_prefix
;;
1031 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1032 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1033 program_prefix
=$ac_optarg ;;
1035 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1036 |
--program-suf |
--program-su |
--program-s)
1037 ac_prev
=program_suffix
;;
1038 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1039 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1040 program_suffix
=$ac_optarg ;;
1042 -program-transform-name |
--program-transform-name \
1043 |
--program-transform-nam |
--program-transform-na \
1044 |
--program-transform-n |
--program-transform- \
1045 |
--program-transform |
--program-transfor \
1046 |
--program-transfo |
--program-transf \
1047 |
--program-trans |
--program-tran \
1048 |
--progr-tra |
--program-tr |
--program-t)
1049 ac_prev
=program_transform_name
;;
1050 -program-transform-name=* |
--program-transform-name=* \
1051 |
--program-transform-nam=* |
--program-transform-na=* \
1052 |
--program-transform-n=* |
--program-transform-=* \
1053 |
--program-transform=* |
--program-transfor=* \
1054 |
--program-transfo=* |
--program-transf=* \
1055 |
--program-trans=* |
--program-tran=* \
1056 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1057 program_transform_name
=$ac_optarg ;;
1059 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1061 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1062 pdfdir
=$ac_optarg ;;
1064 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1066 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1070 |
-silent |
--silent |
--silen |
--sile |
--sil)
1073 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1075 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1077 sbindir
=$ac_optarg ;;
1079 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1080 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1081 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1083 ac_prev
=sharedstatedir
;;
1084 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1085 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1086 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1088 sharedstatedir
=$ac_optarg ;;
1090 -site |
--site |
--sit)
1092 -site=* |
--site=* |
--sit=*)
1095 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1097 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1098 srcdir
=$ac_optarg ;;
1100 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1101 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1102 ac_prev
=sysconfdir
;;
1103 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1104 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1105 sysconfdir
=$ac_optarg ;;
1107 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1108 ac_prev
=target_alias
;;
1109 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1110 target_alias
=$ac_optarg ;;
1112 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1115 -version |
--version |
--versio |
--versi |
--vers |
-V)
1116 ac_init_version
=: ;;
1119 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1122 as_fn_error $?
"invalid package name: $ac_useropt"
1123 ac_useropt_orig
=$ac_useropt
1124 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep
=', ';;
1132 eval with_
$ac_useropt=\
$ac_optarg ;;
1134 -without-* |
--without-*)
1135 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1138 as_fn_error $?
"invalid package name: $ac_useropt"
1139 ac_useropt_orig
=$ac_useropt
1140 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep
=', ';;
1148 eval with_
$ac_useropt=no
;;
1151 # Obsolete; use --with-x.
1154 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1155 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1156 ac_prev
=x_includes
;;
1157 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1158 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1159 x_includes
=$ac_optarg ;;
1161 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1162 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1163 ac_prev
=x_libraries
;;
1164 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1165 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1166 x_libraries
=$ac_optarg ;;
1168 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1173 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1177 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1179 eval $ac_envvar=\
$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 if test -n "$ac_prev"; then
1194 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $?
"missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1201 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 # Check all directory arguments for consistency.
1207 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val
=\$
$ac_var
1213 # Remove trailing slashes.
1216 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\
$ac_val;;
1219 # Be sure to have absolute directory names.
1221 [\\/$
]* | ?
:[\\/]* ) continue;;
1222 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1224 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target
=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x
; then
1236 if test "x$build_alias" = x
; then
1237 cross_compiling
=maybe
1238 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used" >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1248 test "$silent" = yes && exec 6>/dev
/null
1251 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di
=`ls -di .` &&
1253 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $?
"working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $?
"pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted
=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir
=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted
=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1295 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var
in $ac_precious_vars; do
1312 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1314 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures this package to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --x-includes=DIR X include files are
in DIR
1384 --x-libraries=DIR X library files are
in DIR
1387 --build=BUILD configure
for building on BUILD
[guessed
]
1388 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1392 if test -n "$ac_init_help"; then
1397 --disable-option-checking ignore unrecognized
--enable/--with options
1398 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1399 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1400 --disable-fastalloc omit fast allocator
for small objects
1401 --enable-experimental support new style rewriting code
1402 --enable-macosx-extensions support new style rewriting code
1403 --enable-pdf-renderer use experimental PDF renderer
for pdf
export
1404 --enable-qt replace X11 by Qt interface
1405 --enable-qtpipes replace UNIX pipes by Qt pipes
1406 --enable-cocoa replace X11 by Cocoa interface
1407 --enable-debug=ARG
install a debugging
enable executable
-ggdb
1408 --enable-assert exit on failed assertions
in code
1409 --enable-warnings print warning messages during compilation
1410 --enable-optimize=ARG compile with optimizations guessed
1413 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1414 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1415 --with-x use the X Window System
1416 --with-iconv=DIR where to
find iconv system
1417 --with-freetype=ARG with freetype support ARG
=linked
1418 --with-cairo=ARG with cairo support ARG
=no
1419 --with-imlib2=ARG with imlib2 support ARG
=no
1420 --with-axel=ARG with axel support ARG
=no
1421 --with-gs=ARG with ghostscript support ARG
=yes
1422 --with-qt Path to Qt
[Look
in PATH and
/usr
/local
/Trolltech
]
1424 Some influential environment variables
:
1425 CC C compiler
command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1428 nonstandard directory
<lib dir
>
1429 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1430 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1431 you have headers
in a nonstandard directory
<include dir
>
1432 CXX C
++ compiler
command
1433 CXXFLAGS C
++ compiler flags
1434 CXXCPP C
++ preprocessor
1435 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1437 TMPDIR A temporary directory with
write access
[/tmp
]
1439 Use these variables to override the choices made by
`configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1442 Report bugs to the package provider.
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1472 .) # We are building in place.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1506 generated by GNU Autoconf 2.67
1508 Copyright (C) 2010 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1519 # ac_fn_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_compile ()
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1529 *) ac_try_echo
=$ac_try;;
1531 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1535 if test -s conftest.err
; then
1536 grep -v '^ *+' conftest.err
>conftest.er1
1537 cat conftest.er1
>&5
1538 mv -f conftest.er1 conftest.err
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.
$ac_objext; then :
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.
$ac_ext >&5
1552 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1553 as_fn_set_status
$ac_retval
1555 } # ac_fn_c_try_compile
1557 # ac_fn_cxx_try_compile LINENO
1558 # ----------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_cxx_try_compile
()
1562 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1563 rm -f conftest.
$ac_objext
1564 if { { ac_try
="$ac_compile"
1566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_cxx_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 as_fn_set_status $ac_retval
1593 } # ac_fn_cxx_try_compile
1595 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1596 # ---------------------------------------------
1597 # Tests whether TYPE exists after having included INCLUDES, setting cache
1598 # variable VAR accordingly.
1599 ac_fn_cxx_check_type ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if eval "test \"\${$3+set}\"" = set; then :
1605 $as_echo_n "(cached) " >&6
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1620 if ac_fn_cxx_try_compile "$LINENO"; then :
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1633 if ac_fn_cxx_try_compile "$LINENO"; then :
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 } # ac_fn_cxx_check_type
1649 # ac_fn_cxx_try_cpp LINENO
1650 # ------------------------
1651 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_cxx_try_cpp ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1658 *) ac_try_echo
=$ac_try;;
1660 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1664 if test -s conftest.err
; then
1665 grep -v '^ *+' conftest.err
>conftest.er1
1666 cat conftest.er1
>&5
1667 mv -f conftest.er1 conftest.err
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } > conftest.i
&& {
1671 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1672 test ! -s conftest.err
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.
$ac_ext >&5
1681 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1682 as_fn_set_status
$ac_retval
1684 } # ac_fn_cxx_try_cpp
1686 # ac_fn_cxx_try_run LINENO
1687 # ------------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689 # that executables *can* be run.
1690 ac_fn_cxx_try_run
()
1692 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1693 if { { ac_try
="$ac_link"
1695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1706 *) ac_try_echo
=$ac_try;;
1708 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.
$ac_ext >&5
1720 ac_retval
=$ac_status
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1724 as_fn_set_status
$ac_retval
1726 } # ac_fn_cxx_try_run
1728 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1729 # ---------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_cxx_check_header_compile
()
1734 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval "test \"\${$3+set}\"" = set; then :
1738 $as_echo_n "(cached) " >&6
1740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1745 if ac_fn_cxx_try_compile
"$LINENO"; then :
1750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1757 } # ac_fn_cxx_check_header_compile
1759 # ac_fn_cxx_try_link LINENO
1760 # -------------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_cxx_try_link
()
1764 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1765 rm -f conftest.
$ac_objext conftest
$ac_exeext
1766 if { { ac_try
="$ac_link"
1768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_cxx_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
1786 $as_test_x conftest$ac_exeext
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_cxx_try_link
1805 # ac_fn_cxx_check_func LINENO FUNC VAR
1806 # ------------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_cxx_check_func ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval "test \"\${$3+set}\"" = set; then :
1814 $as_echo_n "(cached) " >&6
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1828 # include <limits.h>
1830 # include <assert.h>
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1857 if ac_fn_cxx_try_link "$LINENO"; then :
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 } # ac_fn_cxx_check_func
1872 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1873 # ---------------------------------------------------------
1874 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1875 # the include files in INCLUDES and setting the cache variable VAR
1877 ac_fn_cxx_check_header_mongrel ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if eval "test \"\${$3+set}\"" = set; then :
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval "test \"\${$3+set}\"" = set; then :
1884 $as_echo_n "(cached) " >&6
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1890 # Is the header compilable?
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1892 $as_echo_n "checking $2 usability... " >&6; }
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1898 if ac_fn_cxx_try_compile "$LINENO"; then :
1899 ac_header_compiler=yes
1901 ac_header_compiler=no
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1905 $as_echo "$ac_header_compiler" >&6; }
1907 # Is the header present?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1909 $as_echo_n "checking $2 presence... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1914 if ac_fn_cxx_try_cpp "$LINENO"; then :
1915 ac_header_preproc=yes
1917 ac_header_preproc=no
1919 rm -f conftest.err conftest.i conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1921 $as_echo "$ac_header_preproc" >&6; }
1923 # So? What about this header?
1924 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1927 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1933 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1935 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1937 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1939 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval "test \"\${$3+set}\"" = set; then :
1947 $as_echo_n "(cached) " >&6
1949 eval "$3=\$ac_header_compiler"
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 } # ac_fn_cxx_check_header_mongrel
1959 # ac_fn_c_try_cpp LINENO
1960 # ----------------------
1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_cpp conftest.$ac_ext"
1967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1968 *) ac_try_echo
=$ac_try;;
1970 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1974 if test -s conftest.err
; then
1975 grep -v '^ *+' conftest.err
>conftest.er1
1976 cat conftest.er1
>&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } > conftest.i
&& {
1981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.
$ac_ext >&5
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1992 as_fn_set_status
$ac_retval
1996 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1999 # the include files in INCLUDES and setting the cache variable VAR
2001 ac_fn_c_check_header_mongrel
()
2003 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2004 if eval "test \"\${$3+set}\"" = set; then :
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval "test \"\${$3+set}\"" = set; then :
2008 $as_echo_n "(cached) " >&6
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2014 # Is the header compilable?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2016 $as_echo_n "checking $2 usability... " >&6; }
2017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2022 if ac_fn_c_try_compile
"$LINENO"; then :
2023 ac_header_compiler
=yes
2025 ac_header_compiler
=no
2027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2029 $as_echo "$ac_header_compiler" >&6; }
2031 # Is the header present?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2033 $as_echo_n "checking $2 presence... " >&6; }
2034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 if ac_fn_c_try_cpp
"$LINENO"; then :
2039 ac_header_preproc
=yes
2041 ac_header_preproc
=no
2043 rm -f conftest.err conftest.i conftest.
$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2045 $as_echo "$ac_header_preproc" >&6; }
2047 # So? What about this header?
2048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2051 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2057 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2059 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2061 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2063 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2065 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval "test \"\${$3+set}\"" = set; then :
2071 $as_echo_n "(cached) " >&6
2073 eval "$3=\$ac_header_compiler"
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2081 } # ac_fn_c_check_header_mongrel
2083 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2084 # ----------------------------------------------
2085 # Tries to find the compile-time value of EXPR in a program that includes
2086 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2088 ac_fn_cxx_compute_int
()
2090 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2091 if test "$cross_compiling" = yes; then
2092 # Depending upon the size, compute the lo and hi bounds.
2093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 static int test_array [1 - 2 * !(($2) >= 0)];
2106 if ac_fn_cxx_try_compile
"$LINENO"; then :
2109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2115 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2122 if ac_fn_cxx_try_compile
"$LINENO"; then :
2123 ac_hi
=$ac_mid; break
2125 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2126 if test $ac_lo -le $ac_mid; then
2130 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) < 0)];
2148 if ac_fn_cxx_try_compile
"$LINENO"; then :
2151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2164 if ac_fn_cxx_try_compile
"$LINENO"; then :
2165 ac_lo
=$ac_mid; break
2167 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2168 if test $ac_mid -le $ac_hi; then
2172 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2182 # Binary search between lo and hi bounds.
2183 while test "x$ac_lo" != "x$ac_hi"; do
2184 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198 if ac_fn_cxx_try_compile
"$LINENO"; then :
2201 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2206 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2213 static long int longval () { return $2; }
2214 static unsigned long int ulongval () { return $2; }
2221 FILE *f = fopen ("conftest.val", "w");
2226 long int i = longval ();
2229 fprintf (f, "%ld", i);
2233 unsigned long int i = ulongval ();
2236 fprintf (f, "%lu", i);
2238 /* Do not output a trailing newline, as this causes \r\n confusion
2239 on some platforms. */
2240 return ferror (f) || fclose (f) != 0;
2246 if ac_fn_cxx_try_run
"$LINENO"; then :
2247 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2257 as_fn_set_status
$ac_retval
2259 } # ac_fn_cxx_compute_int
2260 cat >config.log
<<_ACEOF
2261 This file contains any messages produced by compilers while
2262 running configure, to aid debugging if configure makes a mistake.
2264 It was created by $as_me, which was
2265 generated by GNU Autoconf 2.67. Invocation command line was
2277 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2278 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2279 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2280 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2281 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2283 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2284 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2286 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2287 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2288 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2289 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2290 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2291 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2292 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir
=.
2301 $as_echo "PATH: $as_dir"
2317 # Keep a trace of the command line.
2318 # Strip out --no-create and --no-recursion so they do not pile up.
2319 # Strip out --silent because we don't want to record it for future runs.
2320 # Also quote any args containing shell meta-characters.
2321 # Make two passes to allow for proper duplicate-argument suppression.
2325 ac_must_keep_next
=false
2331 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2332 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2333 |
-silent |
--silent |
--silen |
--sile |
--sil)
2336 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2341 as_fn_append ac_configure_args1
" '$ac_arg'"
2342 if test $ac_must_keep_next = true
; then
2343 ac_must_keep_next
=false
# Got value, back to normal.
2346 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2347 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2348 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2349 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2350 case "$ac_configure_args0 " in
2351 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354 -* ) ac_must_keep_next
=true
;;
2357 as_fn_append ac_configure_args
" '$ac_arg'"
2362 { ac_configure_args0
=; unset ac_configure_args0
;}
2363 { ac_configure_args1
=; unset ac_configure_args1
;}
2365 # When interrupted or exit'd, cleanup temporary files, and complete
2366 # config.log. We remove comments because anyway the quotes in there
2367 # would cause problems or look ugly.
2368 # WARNING: Use '\'' to represent an apostrophe within the trap.
2369 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2370 trap 'exit_status=$?
2371 # Save into config.log some information that might help in debugging.
2375 $as_echo "## ---------------- ##
2376 ## Cache variables. ##
2377 ## ---------------- ##"
2379 # The following way of writing the cache mishandles newlines in values,
2381 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2382 eval ac_val=\$$ac_var
2386 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2387 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2390 _ | IFS | as_nl) ;; #(
2391 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2392 *) { eval $ac_var=; unset $ac_var;} ;;
2397 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2398 *${as_nl}ac_space=\ *)
2400 "s/'\''/'\''\\\\'\'''\''/g;
2401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411 $as_echo "## ----------------- ##
2412 ## Output variables. ##
2413 ## ----------------- ##"
2415 for ac_var in $ac_subst_vars
2417 eval ac_val=\$$ac_var
2419 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421 $as_echo "$ac_var='\''$ac_val'\''"
2425 if test -n "$ac_subst_files"; then
2426 $as_echo "## ------------------- ##
2427 ## File substitutions. ##
2428 ## ------------------- ##"
2430 for ac_var
in $ac_subst_files
2432 eval ac_val
=\$
$ac_var
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 $as_echo "$ac_var='\''$ac_val'\''"
2441 if test -s confdefs.h; then
2442 $as_echo "## ----------- ##
2449 test "$ac_signal" != 0 &&
2450 $as_echo "$as_me: caught signal $ac_signal"
2451 $as_echo "$as_me: exit $exit_status"
2453 rm -f core *.core core.conftest.* &&
2454 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2457 for ac_signal
in 1 2 13 15; do
2458 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2463 rm -f -r conftest
* confdefs.h
2465 $as_echo "/* confdefs.h */" > confdefs.h
2467 # Predefined preprocessor variables.
2469 cat >>confdefs.h
<<_ACEOF
2470 #define PACKAGE_NAME "$PACKAGE_NAME"
2473 cat >>confdefs.h
<<_ACEOF
2474 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477 cat >>confdefs.h
<<_ACEOF
2478 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2481 cat >>confdefs.h
<<_ACEOF
2482 #define PACKAGE_STRING "$PACKAGE_STRING"
2485 cat >>confdefs.h
<<_ACEOF
2486 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489 cat >>confdefs.h
<<_ACEOF
2490 #define PACKAGE_URL "$PACKAGE_URL"
2494 # Let the site file select an alternate cache file if it wants to.
2495 # Prefer an explicitly selected file to automatically selected ones.
2498 if test -n "$CONFIG_SITE"; then
2499 # We do not want a PATH search for config.site.
2500 case $CONFIG_SITE in #((
2501 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2502 */*) ac_site_file1
=$CONFIG_SITE;;
2503 *) ac_site_file1
=.
/$CONFIG_SITE;;
2505 elif test "x$prefix" != xNONE
; then
2506 ac_site_file1
=$prefix/share
/config.site
2507 ac_site_file2
=$prefix/etc
/config.site
2509 ac_site_file1
=$ac_default_prefix/share
/config.site
2510 ac_site_file2
=$ac_default_prefix/etc
/config.site
2512 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2514 test "x$ac_site_file" = xNONE
&& continue
2515 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2518 sed 's/^/| /' "$ac_site_file" >&5
2520 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522 as_fn_error $?
"failed to load site script $ac_site_file
2523 See \`config.log' for more details" "$LINENO" 5; }
2527 if test -r "$cache_file"; then
2528 # Some versions of bash will fail to source /dev/null (special files
2529 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2530 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2532 $as_echo "$as_me: loading cache $cache_file" >&6;}
2534 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2535 *) .
"./$cache_file";;
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2540 $as_echo "$as_me: creating cache $cache_file" >&6;}
2544 # Check that the precious variables saved in the cache have kept the same
2546 ac_cache_corrupted
=false
2547 for ac_var
in $ac_precious_vars; do
2548 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2549 eval ac_new_set
=\
$ac_env_${ac_var}_set
2550 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2551 eval ac_new_val
=\
$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted
=: ;;
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted
=: ;;
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w
=`echo x $ac_old_val`
2566 ac_new_val_w
=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted
=:
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\
$ac_old_val
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2585 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg
=$ac_var=$ac_new_val ;;
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2594 if $ac_cache_corrupted; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2601 ## -------------------- ##
2602 ## Main body of script. ##
2603 ## -------------------- ##
2606 ac_cpp
='$CPP $CPPFLAGS'
2607 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2612 ac_config_headers
="$ac_config_headers src/System/config.h:src/System/config.in"
2615 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2616 if test -f "$ac_dir/install-sh"; then
2618 ac_install_sh
="$ac_aux_dir/install-sh -c"
2620 elif test -f "$ac_dir/install.sh"; then
2622 ac_install_sh
="$ac_aux_dir/install.sh -c"
2624 elif test -f "$ac_dir/shtool"; then
2626 ac_install_sh
="$ac_aux_dir/shtool install -c"
2630 if test -z "$ac_aux_dir"; then
2631 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2634 # These three variables are undocumented and unsupported,
2635 # and are intended to be withdrawn in a future Autoconf release.
2636 # They can cause serious problems if a builder's source tree is in a directory
2637 # whose full name contains unusual characters.
2638 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2639 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2640 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2643 # Make sure we can run config.sub.
2644 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2645 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2648 $as_echo_n "checking build system type... " >&6; }
2649 if test "${ac_cv_build+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2652 ac_build_alias
=$build_alias
2653 test "x$ac_build_alias" = x
&&
2654 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2655 test "x$ac_build_alias" = x
&&
2656 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2657 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2662 $as_echo "$ac_cv_build" >&6; }
2663 case $ac_cv_build in
2665 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2668 ac_save_IFS
=$IFS; IFS
='-'
2674 # Remember, the first character of IFS is used to create $*,
2675 # except with old shells:
2678 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2682 $as_echo_n "checking host system type... " >&6; }
2683 if test "${ac_cv_host+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2686 if test "x$host_alias" = x
; then
2687 ac_cv_host
=$ac_cv_build
2689 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2690 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2695 $as_echo "$ac_cv_host" >&6; }
2698 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2701 ac_save_IFS
=$IFS; IFS
='-'
2707 # Remember, the first character of IFS is used to create $*,
2708 # except with old shells:
2711 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2716 DEVEL_VERSION
="1.0.7.6"
2718 STABLE_VERSION
="1.0.7"
2720 WINDOWS_VERSION
="1.0.5"
2728 #--------------------------------------------------------------------
2729 # Checks for C++ compiler
2730 #--------------------------------------------------------------------
2733 ac_cpp
='$CPP $CPPFLAGS'
2734 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2739 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC
="$CC" # Let the user override the test.
2748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir
=.
2753 for ac_exec_ext
in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2776 if test -z "$ac_cv_prog_CC"; then
2778 # Extract the first word of "gcc", so it can be a program name with args.
2779 set dummy gcc
; ac_word
=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2785 if test -n "$ac_ct_CC"; then
2786 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir
=.
2793 for ac_exec_ext
in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_ac_ct_CC
="gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808 $as_echo "$ac_ct_CC" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2814 if test "x$ac_ct_CC" = x
; then
2817 case $cross_compiling:$ac_tool_warned in
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned
=yes ;;
2829 if test -z "$CC"; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2832 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if test "${ac_cv_prog_CC+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC
="$CC" # Let the user override the test.
2841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir
=.
2846 for ac_exec_ext
in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2870 if test -z "$CC"; then
2871 # Extract the first word of "cc", so it can be a program name with args.
2872 set dummy cc
; ac_word
=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if test "${ac_cv_prog_CC+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC
="$CC" # Let the user override the test.
2882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir
=.
2887 for ac_exec_ext
in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2890 ac_prog_rejected
=yes
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 if test $ac_prog_rejected = yes; then
2902 # We found a bogon in the path, so make sure we never use it.
2903 set dummy
$ac_cv_prog_CC
2905 if test $# != 0; then
2906 # We chose a different compiler from the bogus one.
2907 # However, it has the same basename, so the bogon will be chosen
2908 # first if we set CC to just the basename; use the full file name.
2910 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2926 if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 for ac_prog
in cl.exe
2930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if test "${ac_cv_prog_CC+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC
="$CC" # Let the user override the test.
2940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir
=.
2945 for ac_exec_ext
in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2967 test -n "$CC" && break
2970 if test -z "$CC"; then
2972 for ac_prog
in cl.exe
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy
$ac_prog; ac_word
=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2981 if test -n "$ac_ct_CC"; then
2982 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir
=.
2989 for ac_exec_ext
in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_ac_ct_CC
="$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3004 $as_echo "$ac_ct_CC" >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3011 test -n "$ac_ct_CC" && break
3014 if test "x$ac_ct_CC" = x
; then
3017 case $cross_compiling:$ac_tool_warned in
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned
=yes ;;
3030 test -z "$CC" && { { $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_error $?
"no acceptable C compiler found in \$PATH
3033 See \`config.log' for more details" "$LINENO" 5; }
3035 # Provide some information about the compiler.
3036 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3039 for ac_option
in --version -v -V -qversion; do
3040 { { ac_try
="$ac_compiler $ac_option >&5"
3042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3049 if test -s conftest.err; then
3051 ... rest of stderr output deleted ...
3052 10q' conftest.err >conftest.er1
3053 cat conftest.er1 >&5
3055 rm -f conftest.er1 conftest.err
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3071 ac_clean_files_save=$ac_clean_files
3072 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3073 # Try to create an executable without -o first, disregard a.out.
3074 # It will help us diagnose broken compilers, and finding out an intuition
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3077 $as_echo_n "checking whether the C compiler works... " >&6; }
3078 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3080 # The possible output files:
3081 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3084 for ac_file in $ac_files
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3093 if { { ac_try="$ac_link_default"
3095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3096 *) ac_try_echo
=$ac_try;;
3098 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100 (eval "$ac_link_default") 2>&5
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }; then :
3104 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3105 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3106 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3107 # so that the user can short-circuit this test for compilers unknown to
3109 for ac_file
in $ac_files ''
3111 test -f "$ac_file" ||
continue
3113 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3116 # We found the default executable, but exeext='' is most
3120 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3122 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 # We set ac_cv_exeext here because the later test for it is not
3125 # safe: cross compilers may not add the suffix if given an `-o'
3126 # argument, so we may need to know it at that point already.
3127 # Even if this section looks crufty: it has the advantage of
3134 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3139 if test -z "$ac_file"; then :
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.
$ac_ext >&5
3145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error
77 "C compiler cannot create executables
3148 See \`config.log' for more details" "$LINENO" 5; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3151 $as_echo "yes" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3154 $as_echo_n "checking for C compiler default output file name... " >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3156 $as_echo "$ac_file" >&6; }
3157 ac_exeext
=$ac_cv_exeext
3159 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3160 ac_clean_files
=$ac_clean_files_save
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3162 $as_echo_n "checking for suffix of executables... " >&6; }
3163 if { { ac_try
="$ac_link"
3165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link") 2>&5
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; then :
3174 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3175 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3176 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 for ac_file
in conftest.exe conftest conftest.
*; do
3179 test -f "$ac_file" ||
continue
3181 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3182 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details" "$LINENO" 5; }
3193 rm -f conftest conftest
$ac_cv_exeext
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3195 $as_echo "$ac_cv_exeext" >&6; }
3197 rm -f conftest.
$ac_ext
3198 EXEEXT
=$ac_cv_exeext
3200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3206 FILE *f = fopen ("conftest.out", "w");
3207 return ferror (f) || fclose (f) != 0;
3213 ac_clean_files
="$ac_clean_files conftest.out"
3214 # Check that the compiler produces executables we can run. If not, either
3215 # the compiler is broken, or we cross compile.
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3217 $as_echo_n "checking whether we are cross compiling... " >&6; }
3218 if test "$cross_compiling" != yes; then
3219 { { ac_try
="$ac_link"
3221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link") 2>&5
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }
3230 if { ac_try='./conftest$ac_cv_exeext'
3231 { { case "(($ac_try" in
3232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3233 *) ac_try_echo
=$ac_try;;
3235 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_try") 2>&5
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; }; then
3243 if test "$cross_compiling" = maybe
; then
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $?
"cannot run C compiled programs.
3249 If you meant to cross compile, use \`--host'.
3250 See \`config.log' for more details" "$LINENO" 5; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3255 $as_echo "$cross_compiling" >&6; }
3257 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3258 ac_clean_files
=$ac_clean_files_save
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3260 $as_echo_n "checking for suffix of object files... " >&6; }
3261 if test "${ac_cv_objext+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3275 rm -f conftest.o conftest.obj
3276 if { { ac_try
="$ac_compile"
3278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_compile") 2>&5
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
3287 for ac_file in conftest.o conftest.obj conftest.*; do
3288 test -f "$ac_file" || continue;
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3291 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3302 See \
`config.log' for more details" "$LINENO" 5; }
3304 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3307 $as_echo "$ac_cv_objext" >&6; }
3308 OBJEXT=$ac_cv_objext
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3311 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3312 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3313 $as_echo_n "(cached) " >&6
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3329 if ac_fn_c_try_compile "$LINENO"; then :
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3339 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3340 if test $ac_compiler_gnu = yes; then
3345 ac_test_CFLAGS=${CFLAGS+set}
3346 ac_save_CFLAGS=$CFLAGS
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3348 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3349 if test "${ac_cv_prog_cc_g+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3352 ac_save_c_werror_flag=$ac_c_werror_flag
3353 ac_c_werror_flag=yes
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3367 if ac_fn_c_try_compile "$LINENO"; then :
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3382 if ac_fn_c_try_compile "$LINENO"; then :
3385 ac_c_werror_flag=$ac_save_c_werror_flag
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3398 if ac_fn_c_try_compile "$LINENO"; then :
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 ac_c_werror_flag=$ac_save_c_werror_flag
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3409 $as_echo "$ac_cv_prog_cc_g" >&6; }
3410 if test "$ac_test_CFLAGS" = set; then
3411 CFLAGS=$ac_save_CFLAGS
3412 elif test $ac_cv_prog_cc_g = yes; then
3413 if test "$GCC" = yes; then
3419 if test "$GCC" = yes; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3426 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3427 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
3430 ac_cv_prog_cc_c89=no
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3436 #include <sys/types.h>
3437 #include <sys/stat.h>
3438 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3439 struct buf { int x; };
3440 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3441 static char *e (p, i)
3447 static char *f (char * (*g) (char **, int), char **p, ...)
3452 s = g (p, va_arg (v,int));
3457 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3458 function prototypes and stuff, but not '\xHH' hex character constants.
3459 These don't provoke an error unfortunately, instead are silently treated
3460 as 'x'. The following induces an error, until -std is added to get
3461 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3462 array size at least. It's necessary to write '\x00'==0 to get something
3463 that's true only with -std. */
3464 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3466 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3467 inside strings and character constants. */
3469 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3471 int test (int i, double x);
3472 struct s1 {int (*f) (int a);};
3473 struct s2 {int (*f) (double a);};
3474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3485 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3486 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3488 CC="$ac_save_CC $ac_arg"
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490 ac_cv_prog_cc_c89=$ac_arg
3492 rm -f core conftest.err conftest.$ac_objext
3493 test "x$ac_cv_prog_cc_c89" != "xno" && break
3495 rm -f conftest.$ac_ext
3500 case "x$ac_cv_prog_cc_c89" in
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3503 $as_echo "none needed" >&6; } ;;
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3506 $as_echo "unsupported" >&6; } ;;
3508 CC="$CC $ac_cv_prog_cc_c89"
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3510 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3512 if test "x$ac_cv_prog_cc_c89" != xno; then :
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 ac_cpp='$CXXCPP $CPPFLAGS'
3524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3527 if test -z "$CXX"; then
3528 if test -n "$CCC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_CXX+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$CXX"; then
3542 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 if test -n "$CXX"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3564 $as_echo "$CXX" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3571 test -n "$CXX" && break
3574 if test -z "$CXX"; then
3576 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3578 # Extract the first word of "$ac_prog", so it can be a program name with args.
3579 set dummy $ac_prog; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
3585 if test -n "$ac_ct_CXX"; then
3586 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595 ac_cv_prog_ac_ct_CXX="$ac_prog"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3606 if test -n "$ac_ct_CXX"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3608 $as_echo "$ac_ct_CXX" >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3615 test -n "$ac_ct_CXX" && break
3618 if test "x$ac_ct_CXX" = x; then
3621 case $cross_compiling:$ac_tool_warned in
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3633 # Provide some information about the compiler.
3634 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3637 for ac_option in --version -v -V -qversion; do
3638 { { ac_try="$ac_compiler $ac_option >&5"
3640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3641 *) ac_try_echo
=$ac_try;;
3643 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3647 if test -s conftest.err
; then
3649 ... rest of stderr output deleted ...
3650 10q' conftest.err
>conftest.er1
3651 cat conftest.er1
>&5
3653 rm -f conftest.er1 conftest.err
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3659 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3660 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3677 if ac_fn_cxx_try_compile
"$LINENO"; then :
3682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3683 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3687 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3688 if test $ac_compiler_gnu = yes; then
3693 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3694 ac_save_CXXFLAGS
=$CXXFLAGS
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3696 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3697 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3700 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3701 ac_cxx_werror_flag
=yes
3704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3715 if ac_fn_cxx_try_compile
"$LINENO"; then :
3716 ac_cv_prog_cxx_g
=yes
3719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3730 if ac_fn_cxx_try_compile
"$LINENO"; then :
3733 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3746 if ac_fn_cxx_try_compile
"$LINENO"; then :
3747 ac_cv_prog_cxx_g
=yes
3749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3754 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3757 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3758 if test "$ac_test_CXXFLAGS" = set; then
3759 CXXFLAGS
=$ac_save_CXXFLAGS
3760 elif test $ac_cv_prog_cxx_g = yes; then
3761 if test "$GXX" = yes; then
3767 if test "$GXX" = yes; then
3774 ac_cpp
='$CPP $CPPFLAGS'
3775 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3780 ac_cpp
='$CXXCPP $CPPFLAGS'
3781 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU C++ compiler is default" >&5
3787 $as_echo_n "checking whether GNU C++ compiler is default... " >&6; }
3790 GCC_VERSION
=`$CC -dumpversion`
3791 GXX_VERSION
=`$CXX -dumpversion`
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3793 $as_echo "yes" >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of gcc" >&5
3795 $as_echo_n "checking version of gcc... " >&6; }
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
3797 $as_echo "$GCC_VERSION" >&6; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of g++" >&5
3799 $as_echo_n "checking version of g++... " >&6; }
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GXX_VERSION" >&5
3801 $as_echo "$GXX_VERSION" >&6; }
3802 case "$GXX_VERSION" in
3804 echo "old style GNU compiler"
3805 $as_echo "#define OLD_GNU_COMPILER /**/" >>confdefs.h
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find GNU C++ compiler" >&5
3816 $as_echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3820 #--------------------------------------------------------------------
3822 #--------------------------------------------------------------------
3824 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3826 ## The GUILE_FLAGS macro.
3827 ## First, let's just see if we can find Guile at all.
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile" >&5
3829 $as_echo_n "checking for Guile... " >&6; }
3830 guile-config link
> /dev
/null ||
{
3831 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3834 GUILE_ORIGINAL_CFLAGS
="`guile-config compile`"
3835 GUILE_CFLAGS
="$GUILE_ORIGINAL_CFLAGS"
3836 GUILE_VARIANT_CFLAGS
="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3837 GUILE_LDFLAGS
="`guile-config link`"
3838 GUILE_VARIANT_LDFLAGS
="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3842 $as_echo "yes" >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of guile" >&5
3846 $as_echo_n "checking version of guile... " >&6; }
3847 if test -z "$GUILE_VERSION" ; then
3848 GUILE_VERSION
=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_VERSION" >&5
3851 $as_echo "$GUILE_VERSION" >&6; }
3853 case "$GUILE_VERSION" in
3854 1.0* |
1.1* |
1.2* |
1.3* |
1.4* |
1.5*)
3855 CONFIG_GUILE_SERIAL
="A"
3858 CONFIG_GUILE_SERIAL
="B"
3861 CONFIG_GUILE_SERIAL
="C"
3866 #--------------------------------------------------------------------
3867 # Checks for standard functionality
3868 #--------------------------------------------------------------------
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++-compatible X header files" >&5
3873 $as_echo_n "checking for C++-compatible X header files... " >&6; }
3874 ac_save_cppflags
="$CPPFLAGS"
3875 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
3876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <X11/Xlib.h>
3879 #include <X11/Xutil.h>
3888 if ac_fn_cxx_try_compile
"$LINENO"; then :
3895 /usr
/X11R
6/include \
3896 /usr
/X11R
5/include \
3897 /usr
/X11R
4/include \
3900 /usr
/include
/X11R6 \
3901 /usr
/include
/X11R5 \
3902 /usr
/include
/X11R4 \
3904 /usr
/local
/X11
/include \
3905 /usr
/local
/X11R
6/include \
3906 /usr
/local
/X11R
5/include \
3907 /usr
/local
/X11R
4/include \
3909 /usr
/local
/include
/X11 \
3910 /usr
/local
/include
/X11R6 \
3911 /usr
/local
/include
/X11R5 \
3912 /usr
/local
/include
/X11R4 \
3916 /usr
/XFree86
/include
/X11 \
3919 /usr
/local
/include \
3920 /usr
/unsupported
/include \
3921 /usr
/athena
/include \
3922 /usr
/local
/x11r
5/include \
3923 /usr
/lpp
/Xamples
/include \
3925 /usr
/openwin
/include \
3926 /usr
/openwin
/share
/include \
3929 if test -r "$ac_dir/X11/Xlib.h"; then
3930 tm_x_includes
=$ac_dir
3934 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3935 < "$tm_x_includes/X11/Xlib.h" > X11
/Xlib.h
3936 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3937 < "$tm_x_includes/X11/Xutil.h" > X11
/Xutil.h
3938 X_CFLAGS
="-I.. $X_CFLAGS"
3941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3942 CPPFLAGS
="$ac_save_cppflags"
3945 ac_cpp
='$CXXCPP $CPPFLAGS'
3946 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3950 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3951 if test -z "$CXXCPP"; then
3952 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3955 # Double quotes because CXXCPP needs to be expanded
3956 for CXXCPP
in "$CXX -E" "/lib/cpp"
3959 for ac_cxx_preproc_warn_flag
in '' yes
3961 # Use a header file that comes with gcc, so configuring glibc
3962 # with a fresh cross-compiler works.
3963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3964 # <limits.h> exists even on freestanding compilers.
3965 # On the NeXT, cc -E runs the code through the compiler's parser,
3966 # not just through cpp. "Syntax error" is here to catch this case.
3967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3970 # include <limits.h>
3972 # include <assert.h>
3976 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3979 # Broken: fails on valid input.
3982 rm -f conftest.err conftest.i conftest.
$ac_ext
3984 # OK, works on sane cases. Now check whether nonexistent headers
3985 # can be detected and how.
3986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <ac_nonexistent.h>
3990 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3991 # Broken: success on invalid input.
3994 # Passes both tests.
3998 rm -f conftest.err conftest.i conftest.
$ac_ext
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.i conftest.err conftest.
$ac_ext
4003 if $ac_preproc_ok; then :
4008 ac_cv_prog_CXXCPP
=$CXXCPP
4011 CXXCPP
=$ac_cv_prog_CXXCPP
4013 ac_cv_prog_CXXCPP
=$CXXCPP
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4016 $as_echo "$CXXCPP" >&6; }
4018 for ac_cxx_preproc_warn_flag
in '' yes
4020 # Use a header file that comes with gcc, so configuring glibc
4021 # with a fresh cross-compiler works.
4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 # <limits.h> exists even on freestanding compilers.
4024 # On the NeXT, cc -E runs the code through the compiler's parser,
4025 # not just through cpp. "Syntax error" is here to catch this case.
4026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4029 # include <limits.h>
4031 # include <assert.h>
4035 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4038 # Broken: fails on valid input.
4041 rm -f conftest.err conftest.i conftest.
$ac_ext
4043 # OK, works on sane cases. Now check whether nonexistent headers
4044 # can be detected and how.
4045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #include <ac_nonexistent.h>
4049 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4050 # Broken: success on invalid input.
4053 # Passes both tests.
4057 rm -f conftest.err conftest.i conftest.
$ac_ext
4060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4061 rm -f conftest.i conftest.err conftest.
$ac_ext
4062 if $ac_preproc_ok; then :
4065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
4068 See \`config.log' for more details" "$LINENO" 5; }
4072 ac_cpp
='$CXXCPP $CPPFLAGS'
4073 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4079 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4080 if test "${ac_cv_path_GREP+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 if test -z "$GREP"; then
4084 ac_path_GREP_found
=false
4085 # Loop through the user's path and test for each of PROGNAME-LIST
4086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4087 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4090 test -z "$as_dir" && as_dir
=.
4091 for ac_prog
in grep ggrep
; do
4092 for ac_exec_ext
in '' $ac_executable_extensions; do
4093 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4094 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4095 # Check for GNU ac_path_GREP and select it if it is found.
4096 # Check for GNU $ac_path_GREP
4097 case `"$ac_path_GREP" --version 2>&1` in
4099 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4102 $as_echo_n 0123456789 >"conftest.in"
4105 cat "conftest.in" "conftest.in" >"conftest.tmp"
4106 mv "conftest.tmp" "conftest.in"
4107 cp "conftest.in" "conftest.nl"
4108 $as_echo 'GREP' >> "conftest.nl"
4109 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4110 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4111 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4112 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4113 # Best one so far, save it but keep looking for a better one
4114 ac_cv_path_GREP
="$ac_path_GREP"
4115 ac_path_GREP_max
=$ac_count
4117 # 10*(2^10) chars as input seems more than enough
4118 test $ac_count -gt 10 && break
4120 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4123 $ac_path_GREP_found && break 3
4128 if test -z "$ac_cv_path_GREP"; then
4129 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132 ac_cv_path_GREP
=$GREP
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4137 $as_echo "$ac_cv_path_GREP" >&6; }
4138 GREP
="$ac_cv_path_GREP"
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4142 $as_echo_n "checking for egrep... " >&6; }
4143 if test "${ac_cv_path_EGREP+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4146 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4147 then ac_cv_path_EGREP
="$GREP -E"
4149 if test -z "$EGREP"; then
4150 ac_path_EGREP_found
=false
4151 # Loop through the user's path and test for each of PROGNAME-LIST
4152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4153 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4156 test -z "$as_dir" && as_dir
=.
4157 for ac_prog
in egrep; do
4158 for ac_exec_ext
in '' $ac_executable_extensions; do
4159 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4160 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4161 # Check for GNU ac_path_EGREP and select it if it is found.
4162 # Check for GNU $ac_path_EGREP
4163 case `"$ac_path_EGREP" --version 2>&1` in
4165 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4168 $as_echo_n 0123456789 >"conftest.in"
4171 cat "conftest.in" "conftest.in" >"conftest.tmp"
4172 mv "conftest.tmp" "conftest.in"
4173 cp "conftest.in" "conftest.nl"
4174 $as_echo 'EGREP' >> "conftest.nl"
4175 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4176 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4177 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4178 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4179 # Best one so far, save it but keep looking for a better one
4180 ac_cv_path_EGREP
="$ac_path_EGREP"
4181 ac_path_EGREP_max
=$ac_count
4183 # 10*(2^10) chars as input seems more than enough
4184 test $ac_count -gt 10 && break
4186 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4189 $ac_path_EGREP_found && break 3
4194 if test -z "$ac_cv_path_EGREP"; then
4195 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198 ac_cv_path_EGREP
=$EGREP
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4204 $as_echo "$ac_cv_path_EGREP" >&6; }
4205 EGREP
="$ac_cv_path_EGREP"
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4209 $as_echo_n "checking for ANSI C header files... " >&6; }
4210 if test "${ac_cv_header_stdc+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4228 if ac_fn_cxx_try_compile
"$LINENO"; then :
4229 ac_cv_header_stdc
=yes
4231 ac_cv_header_stdc
=no
4233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4235 if test $ac_cv_header_stdc = yes; then
4236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4243 $EGREP "memchr" >/dev
/null
2>&1; then :
4246 ac_cv_header_stdc
=no
4252 if test $ac_cv_header_stdc = yes; then
4253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260 $EGREP "free" >/dev
/null
2>&1; then :
4263 ac_cv_header_stdc
=no
4269 if test $ac_cv_header_stdc = yes; then
4270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4271 if test "$cross_compiling" = yes; then :
4274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4278 #if ((' ' & 0x0FF) == 0x020)
4279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4282 # define ISLOWER(c) \
4283 (('a' <= (c) && (c) <= 'i') \
4284 || ('j' <= (c) && (c) <= 'r') \
4285 || ('s' <= (c) && (c) <= 'z'))
4286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4294 for (i = 0; i < 256; i++)
4295 if (XOR (islower (i), ISLOWER (i))
4296 || toupper (i) != TOUPPER (i))
4301 if ac_fn_cxx_try_run
"$LINENO"; then :
4304 ac_cv_header_stdc
=no
4306 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4307 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4313 $as_echo "$ac_cv_header_stdc" >&6; }
4314 if test $ac_cv_header_stdc = yes; then
4316 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4321 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4322 inttypes.h stdint.h unistd.h
4324 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4327 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4328 cat >>confdefs.h
<<_ACEOF
4329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337 ac_fn_cxx_check_type
"$LINENO" "FILE" "ac_cv_type_FILE" "$ac_includes_default"
4338 if test "x$ac_cv_type_FILE" = x
""yes; then :
4340 cat >>confdefs.h
<<_ACEOF
4347 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
4348 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
4350 cat >>confdefs.h
<<_ACEOF
4351 #define HAVE_INTPTR_T 1
4357 ac_fn_cxx_check_type
"$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
4358 if test "x$ac_cv_type_time_t" = x
""yes; then :
4360 cat >>confdefs.h
<<_ACEOF
4361 #define HAVE_TIME_T 1
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4368 $as_echo_n "checking for X... " >&6; }
4371 # Check whether --with-x was given.
4372 if test "${with_x+set}" = set; then :
4376 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4377 if test "x$with_x" = xno
; then
4378 # The user explicitly disabled X.
4381 case $x_includes,$x_libraries in #(
4382 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
4383 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4386 # One or both of the vars are not set, and there is no cached value.
4387 ac_x_includes
=no ac_x_libraries
=no
4388 rm -f -r conftest.dir
4389 if mkdir conftest.dir
; then
4391 cat >Imakefile
<<'_ACEOF'
4393 @echo incroot='${INCROOT}'
4395 @echo usrlibdir='${USRLIBDIR}'
4397 @echo libdir='${LIBDIR}'
4399 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4400 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4401 for ac_var
in incroot usrlibdir libdir
; do
4402 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4404 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4405 for ac_extension
in a so sl dylib la dll
; do
4406 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4407 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4408 ac_im_usrlibdir
=$ac_im_libdir; break
4411 # Screen out bogus values from the imake configuration. They are
4412 # bogus both because they are the default anyway, and because
4413 # using them would break gcc on systems where it needs fixed includes.
4414 case $ac_im_incroot in
4415 /usr
/include
) ac_x_includes
= ;;
4416 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
4418 case $ac_im_usrlibdir in
4419 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
4420 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
4424 rm -f -r conftest.dir
4427 # Standard set of common directories for X headers.
4428 # Check X11 before X11Rn because it is often a symlink to the current release.
4442 /usr/local/X11/include
4443 /usr/local/X11R7/include
4444 /usr/local/X11R6/include
4445 /usr/local/X11R5/include
4446 /usr/local/X11R4/include
4448 /usr/local/include/X11
4449 /usr/local/include/X11R7
4450 /usr/local/include/X11R6
4451 /usr/local/include/X11R5
4452 /usr/local/include/X11R4
4456 /usr/XFree86/include/X11
4460 /usr/unsupported/include
4462 /usr/local/x11r5/include
4463 /usr/lpp/Xamples/include
4465 /usr/openwin/include
4466 /usr/openwin/share/include'
4468 if test "$ac_x_includes" = no
; then
4469 # Guess where to find include files, by looking for Xlib.h.
4470 # First, try using that file with no special directory specified.
4471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 #include <X11/Xlib.h>
4475 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4476 # We can compile using X headers with no special include directory.
4479 for ac_dir
in $ac_x_header_dirs; do
4480 if test -r "$ac_dir/X11/Xlib.h"; then
4481 ac_x_includes
=$ac_dir
4486 rm -f conftest.err conftest.i conftest.
$ac_ext
4487 fi # $ac_x_includes = no
4489 if test "$ac_x_libraries" = no
; then
4490 # Check for the libraries.
4491 # See if we find them without any special options.
4492 # Don't add to $LIBS permanently.
4495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <X11/Xlib.h>
4506 if ac_fn_cxx_try_link
"$LINENO"; then :
4508 # We can link X programs with no special library path.
4512 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4514 # Don't even attempt the hair of trying to link an X program!
4515 for ac_extension
in a so sl dylib la dll
; do
4516 if test -r "$ac_dir/libX11.$ac_extension"; then
4517 ac_x_libraries
=$ac_dir
4523 rm -f core conftest.err conftest.
$ac_objext \
4524 conftest
$ac_exeext conftest.
$ac_ext
4525 fi # $ac_x_libraries = no
4527 case $ac_x_includes,$ac_x_libraries in #(
4529 # Didn't find X, or a directory has "'" in its name.
4530 ac_cv_have_x
="have_x=no";; #(
4532 # Record where we found X for the cache.
4533 ac_cv_have_x
="have_x=yes\
4534 ac_x_includes='$ac_x_includes'\
4535 ac_x_libraries='$ac_x_libraries'"
4541 eval "$ac_cv_have_x"
4544 if test "$have_x" != yes; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4546 $as_echo "$have_x" >&6; }
4549 # If each of the values was on the command line, it overrides each guess.
4550 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4551 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4552 # Update the cache value to reflect the command line values.
4553 ac_cv_have_x
="have_x=yes\
4554 ac_x_includes='$x_includes'\
4555 ac_x_libraries='$x_libraries'"
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4557 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4560 if test "$no_x" = yes; then
4561 # Not all programs may use this symbol, but it does not hurt to define it.
4563 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4565 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
4567 if test -n "$x_includes"; then
4568 X_CFLAGS
="$X_CFLAGS -I$x_includes"
4571 # It would also be nice to do this for all -L options, not just this one.
4572 if test -n "$x_libraries"; then
4573 X_LIBS
="$X_LIBS -L$x_libraries"
4574 # For Solaris; some versions of Sun CC require a space after -R and
4575 # others require no space. Words are not sufficient . . . .
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4577 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4578 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
4579 ac_xsave_cxx_werror_flag
=$ac_cxx_werror_flag
4580 ac_cxx_werror_flag
=yes
4581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4592 if ac_fn_cxx_try_link
"$LINENO"; then :
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 X_LIBS
="$X_LIBS -R$x_libraries"
4597 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4609 if ac_fn_cxx_try_link
"$LINENO"; then :
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4611 $as_echo "yes" >&6; }
4612 X_LIBS
="$X_LIBS -R $x_libraries"
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4615 $as_echo "neither works" >&6; }
4617 rm -f core conftest.err conftest.
$ac_objext \
4618 conftest
$ac_exeext conftest.
$ac_ext
4620 rm -f core conftest.err conftest.
$ac_objext \
4621 conftest
$ac_exeext conftest.
$ac_ext
4622 ac_cxx_werror_flag
=$ac_xsave_cxx_werror_flag
4626 # Check for system-dependent libraries X programs must link with.
4627 # Do this before checking for the system-independent R6 libraries
4628 # (-lICE), since we may need -lsocket or whatever for X linking.
4630 if test "$ISC" = yes; then
4631 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
4633 # Martyn Johnson says this is needed for Ultrix, if the X
4634 # libraries were built with DECnet support. And Karl Berry says
4635 # the Alpha needs dnet_stub (dnet does not exist).
4636 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
4637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4640 /* Override any GCC internal prototype to avoid an error.
4641 Use char because int might match the return type of a GCC
4642 builtin and then its argument prototype would still apply. */
4646 char XOpenDisplay ();
4650 return XOpenDisplay ();
4655 if ac_fn_cxx_try_link
"$LINENO"; then :
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4659 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4660 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4663 ac_check_lib_save_LIBS
=$LIBS
4665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4668 /* Override any GCC internal prototype to avoid an error.
4669 Use char because int might match the return type of a GCC
4670 builtin and then its argument prototype would still apply. */
4678 return dnet_ntoa ();
4683 if ac_fn_cxx_try_link
"$LINENO"; then :
4684 ac_cv_lib_dnet_dnet_ntoa
=yes
4686 ac_cv_lib_dnet_dnet_ntoa
=no
4688 rm -f core conftest.err conftest.
$ac_objext \
4689 conftest
$ac_exeext conftest.
$ac_ext
4690 LIBS
=$ac_check_lib_save_LIBS
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4693 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4694 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
4695 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
4698 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4700 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4701 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 ac_check_lib_save_LIBS
=$LIBS
4705 LIBS
="-ldnet_stub $LIBS"
4706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4709 /* Override any GCC internal prototype to avoid an error.
4710 Use char because int might match the return type of a GCC
4711 builtin and then its argument prototype would still apply. */
4719 return dnet_ntoa ();
4724 if ac_fn_cxx_try_link
"$LINENO"; then :
4725 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4727 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4729 rm -f core conftest.err conftest.
$ac_objext \
4730 conftest
$ac_exeext conftest.
$ac_ext
4731 LIBS
=$ac_check_lib_save_LIBS
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4734 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4735 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x
""yes; then :
4736 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4741 rm -f core conftest.err conftest.
$ac_objext \
4742 conftest
$ac_exeext conftest.
$ac_ext
4743 LIBS
="$ac_xsave_LIBS"
4745 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4746 # to get the SysV transport functions.
4747 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4749 # The nsl library prevents programs from opening the X display
4750 # on Irix 5.2, according to T.E. Dickey.
4751 # The functions gethostbyname, getservbyname, and inet_addr are
4752 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4753 ac_fn_cxx_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4754 if test "x$ac_cv_func_gethostbyname" = x
""yes; then :
4758 if test $ac_cv_func_gethostbyname = no
; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4760 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4761 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4764 ac_check_lib_save_LIBS
=$LIBS
4766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4769 /* Override any GCC internal prototype to avoid an error.
4770 Use char because int might match the return type of a GCC
4771 builtin and then its argument prototype would still apply. */
4775 char gethostbyname ();
4779 return gethostbyname ();
4784 if ac_fn_cxx_try_link
"$LINENO"; then :
4785 ac_cv_lib_nsl_gethostbyname
=yes
4787 ac_cv_lib_nsl_gethostbyname
=no
4789 rm -f core conftest.err conftest.
$ac_objext \
4790 conftest
$ac_exeext conftest.
$ac_ext
4791 LIBS
=$ac_check_lib_save_LIBS
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4794 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4795 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4796 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4799 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4801 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4802 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4805 ac_check_lib_save_LIBS
=$LIBS
4807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4810 /* Override any GCC internal prototype to avoid an error.
4811 Use char because int might match the return type of a GCC
4812 builtin and then its argument prototype would still apply. */
4816 char gethostbyname ();
4820 return gethostbyname ();
4825 if ac_fn_cxx_try_link
"$LINENO"; then :
4826 ac_cv_lib_bsd_gethostbyname
=yes
4828 ac_cv_lib_bsd_gethostbyname
=no
4830 rm -f core conftest.err conftest.
$ac_objext \
4831 conftest
$ac_exeext conftest.
$ac_ext
4832 LIBS
=$ac_check_lib_save_LIBS
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4835 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4836 if test "x$ac_cv_lib_bsd_gethostbyname" = x
""yes; then :
4837 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
4843 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4844 # socket/setsockopt and other routines are undefined under SCO ODT
4845 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4846 # on later versions), says Simon Leinen: it contains gethostby*
4847 # variants that don't use the name server (or something). -lsocket
4848 # must be given before -lnsl if both are needed. We assume that
4849 # if connect needs -lnsl, so does gethostbyname.
4850 ac_fn_cxx_check_func
"$LINENO" "connect" "ac_cv_func_connect"
4851 if test "x$ac_cv_func_connect" = x
""yes; then :
4855 if test $ac_cv_func_connect = no
; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4857 $as_echo_n "checking for connect in -lsocket... " >&6; }
4858 if test "${ac_cv_lib_socket_connect+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4861 ac_check_lib_save_LIBS
=$LIBS
4862 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4866 /* Override any GCC internal prototype to avoid an error.
4867 Use char because int might match the return type of a GCC
4868 builtin and then its argument prototype would still apply. */
4881 if ac_fn_cxx_try_link
"$LINENO"; then :
4882 ac_cv_lib_socket_connect
=yes
4884 ac_cv_lib_socket_connect
=no
4886 rm -f core conftest.err conftest.
$ac_objext \
4887 conftest
$ac_exeext conftest.
$ac_ext
4888 LIBS
=$ac_check_lib_save_LIBS
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4891 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4892 if test "x$ac_cv_lib_socket_connect" = x
""yes; then :
4893 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4898 # Guillermo Gomez says -lposix is necessary on A/UX.
4899 ac_fn_cxx_check_func
"$LINENO" "remove" "ac_cv_func_remove"
4900 if test "x$ac_cv_func_remove" = x
""yes; then :
4904 if test $ac_cv_func_remove = no
; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4906 $as_echo_n "checking for remove in -lposix... " >&6; }
4907 if test "${ac_cv_lib_posix_remove+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4910 ac_check_lib_save_LIBS
=$LIBS
4911 LIBS
="-lposix $LIBS"
4912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4915 /* Override any GCC internal prototype to avoid an error.
4916 Use char because int might match the return type of a GCC
4917 builtin and then its argument prototype would still apply. */
4930 if ac_fn_cxx_try_link
"$LINENO"; then :
4931 ac_cv_lib_posix_remove
=yes
4933 ac_cv_lib_posix_remove
=no
4935 rm -f core conftest.err conftest.
$ac_objext \
4936 conftest
$ac_exeext conftest.
$ac_ext
4937 LIBS
=$ac_check_lib_save_LIBS
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4940 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4941 if test "x$ac_cv_lib_posix_remove" = x
""yes; then :
4942 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4947 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4948 ac_fn_cxx_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
4949 if test "x$ac_cv_func_shmat" = x
""yes; then :
4953 if test $ac_cv_func_shmat = no
; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4955 $as_echo_n "checking for shmat in -lipc... " >&6; }
4956 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4959 ac_check_lib_save_LIBS
=$LIBS
4961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4964 /* Override any GCC internal prototype to avoid an error.
4965 Use char because int might match the return type of a GCC
4966 builtin and then its argument prototype would still apply. */
4979 if ac_fn_cxx_try_link
"$LINENO"; then :
4980 ac_cv_lib_ipc_shmat
=yes
4982 ac_cv_lib_ipc_shmat
=no
4984 rm -f core conftest.err conftest.
$ac_objext \
4985 conftest
$ac_exeext conftest.
$ac_ext
4986 LIBS
=$ac_check_lib_save_LIBS
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4989 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4990 if test "x$ac_cv_lib_ipc_shmat" = x
""yes; then :
4991 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4997 # Check for libraries that X11R6 Xt/Xaw programs need.
4998 ac_save_LDFLAGS
=$LDFLAGS
4999 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
5000 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5001 # check for ICE first), but we must link in the order -lSM -lICE or
5002 # we get undefined symbols. So assume we have SM if we have ICE.
5003 # These have to be linked with before -lX11, unlike the other
5004 # libraries we check for below, so use a different variable.
5005 # John Interrante, Karl Berry
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5007 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5008 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5011 ac_check_lib_save_LIBS
=$LIBS
5012 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
5013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5016 /* Override any GCC internal prototype to avoid an error.
5017 Use char because int might match the return type of a GCC
5018 builtin and then its argument prototype would still apply. */
5022 char IceConnectionNumber ();
5026 return IceConnectionNumber ();
5031 if ac_fn_cxx_try_link
"$LINENO"; then :
5032 ac_cv_lib_ICE_IceConnectionNumber
=yes
5034 ac_cv_lib_ICE_IceConnectionNumber
=no
5036 rm -f core conftest.err conftest.
$ac_objext \
5037 conftest
$ac_exeext conftest.
$ac_ext
5038 LIBS
=$ac_check_lib_save_LIBS
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5041 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5042 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x
""yes; then :
5043 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5046 LDFLAGS
=$ac_save_LDFLAGS
5050 for ac_header
in pty.h util.h
5052 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5053 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5054 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5055 cat >>confdefs.h
<<_ACEOF
5056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5063 for ac_func
in gettimeofday
5065 ac_fn_cxx_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5066 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
5067 cat >>confdefs.h
<<_ACEOF
5068 #define HAVE_GETTIMEOFDAY 1
5075 #--------------------------------------------------------------------
5076 # Checks for dl library
5077 #--------------------------------------------------------------------
5079 ac_fn_cxx_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5080 if test "x$ac_cv_func_dlopen" = x
""yes; then :
5084 if test "$ac_cv_func_dl" = "yes"; then
5086 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5090 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5091 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5094 ac_check_lib_save_LIBS
=$LIBS
5096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5099 /* Override any GCC internal prototype to avoid an error.
5100 Use char because int might match the return type of a GCC
5101 builtin and then its argument prototype would still apply. */
5114 if ac_fn_cxx_try_link
"$LINENO"; then :
5115 ac_cv_lib_dl_dlopen
=yes
5117 ac_cv_lib_dl_dlopen
=no
5119 rm -f core conftest.err conftest.
$ac_objext \
5120 conftest
$ac_exeext conftest.
$ac_ext
5121 LIBS
=$ac_check_lib_save_LIBS
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5124 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5125 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
5126 cat >>confdefs.h
<<_ACEOF
5127 #define HAVE_LIBDL 1
5134 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5135 for ac_func
in dlopen
5137 ac_fn_cxx_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5138 if test "x$ac_cv_func_dlopen" = x
""yes; then :
5139 cat >>confdefs.h
<<_ACEOF
5140 #define HAVE_DLOPEN 1
5148 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
5152 $as_echo_n "checking for dld_link in -ldld... " >&6; }
5153 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5156 ac_check_lib_save_LIBS
=$LIBS
5158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5161 /* Override any GCC internal prototype to avoid an error.
5162 Use char because int might match the return type of a GCC
5163 builtin and then its argument prototype would still apply. */
5176 if ac_fn_cxx_try_link
"$LINENO"; then :
5177 ac_cv_lib_dld_dld_link
=yes
5179 ac_cv_lib_dld_dld_link
=no
5181 rm -f core conftest.err conftest.
$ac_objext \
5182 conftest
$ac_exeext conftest.
$ac_ext
5183 LIBS
=$ac_check_lib_save_LIBS
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
5186 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
5187 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
5188 cat >>confdefs.h
<<_ACEOF
5189 #define HAVE_LIBDLD 1
5196 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
5199 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5202 for ac_func
in shl_load
5204 ac_fn_cxx_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
5205 if test "x$ac_cv_func_shl_load" = x
""yes; then :
5206 cat >>confdefs.h
<<_ACEOF
5207 #define HAVE_SHL_LOAD 1
5213 if test "$ac_cv_func_shl_load" = "yes"; then
5216 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5219 for ac_func
in dlopen
5221 ac_fn_cxx_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5222 if test "x$ac_cv_func_dlopen" = x
""yes; then :
5223 cat >>confdefs.h
<<_ACEOF
5224 #define HAVE_DLOPEN 1
5230 if test "$ac_cv_func_dlopen" = "yes"; then
5232 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5241 #--------------------------------------------------------------------
5242 # Checks for iconv library
5243 #--------------------------------------------------------------------
5246 # Check whether --with-iconv was given.
5247 if test "${with_iconv+set}" = set; then :
5248 withval
=$with_iconv;
5253 # Modified from GNOME's libxml2 configure.in
5256 ac_cpp
='$CPP $CPPFLAGS'
5257 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5260 # compile C to avoid the 'const char**' problem
5262 SAVE_CPPFLAGS
="$CPPFLAGS"
5263 SAVE_LDFLAGS
="$LDFLAGS"
5265 if test "$with_iconv" = "no" ; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling iconv support" >&5
5267 $as_echo "disabling iconv support" >&6; }
5269 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
5270 CPPFLAGS
="$ICONV_CFLAGS" # for AC_TRY_LINK
5271 LDFLAGS
="$ICONV_LDFLAGS"
5273 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
5274 CPPFLAGS
="-I$with_iconv/include" # for AC_TRY_LINK
5275 LDFLAGS
="-L$with_iconv/lib"
5276 ICONV_CFLAGS
="-I$with_iconv/include"
5277 ICONV_LDFLAGS
="-L$with_iconv/lib"
5281 ac_cpp
='$CPP $CPPFLAGS'
5282 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5286 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5287 # On Suns, sometimes $CPP names a directory.
5288 if test -n "$CPP" && test -d "$CPP"; then
5291 if test -z "$CPP"; then
5292 if test "${ac_cv_prog_CPP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5295 # Double quotes because CPP needs to be expanded
5296 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5299 for ac_c_preproc_warn_flag
in '' yes
5301 # Use a header file that comes with gcc, so configuring glibc
5302 # with a fresh cross-compiler works.
5303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5304 # <limits.h> exists even on freestanding compilers.
5305 # On the NeXT, cc -E runs the code through the compiler's parser,
5306 # not just through cpp. "Syntax error" is here to catch this case.
5307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5310 # include <limits.h>
5312 # include <assert.h>
5316 if ac_fn_c_try_cpp
"$LINENO"; then :
5319 # Broken: fails on valid input.
5322 rm -f conftest.err conftest.i conftest.
$ac_ext
5324 # OK, works on sane cases. Now check whether nonexistent headers
5325 # can be detected and how.
5326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 #include <ac_nonexistent.h>
5330 if ac_fn_c_try_cpp
"$LINENO"; then :
5331 # Broken: success on invalid input.
5334 # Passes both tests.
5338 rm -f conftest.err conftest.i conftest.
$ac_ext
5341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5342 rm -f conftest.i conftest.err conftest.
$ac_ext
5343 if $ac_preproc_ok; then :
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5356 $as_echo "$CPP" >&6; }
5358 for ac_c_preproc_warn_flag
in '' yes
5360 # Use a header file that comes with gcc, so configuring glibc
5361 # with a fresh cross-compiler works.
5362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363 # <limits.h> exists even on freestanding compilers.
5364 # On the NeXT, cc -E runs the code through the compiler's parser,
5365 # not just through cpp. "Syntax error" is here to catch this case.
5366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5369 # include <limits.h>
5371 # include <assert.h>
5375 if ac_fn_c_try_cpp
"$LINENO"; then :
5378 # Broken: fails on valid input.
5381 rm -f conftest.err conftest.i conftest.
$ac_ext
5383 # OK, works on sane cases. Now check whether nonexistent headers
5384 # can be detected and how.
5385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <ac_nonexistent.h>
5389 if ac_fn_c_try_cpp
"$LINENO"; then :
5390 # Broken: success on invalid input.
5393 # Passes both tests.
5397 rm -f conftest.err conftest.i conftest.
$ac_ext
5400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5401 rm -f conftest.i conftest.err conftest.
$ac_ext
5402 if $ac_preproc_ok; then :
5405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5407 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5408 See \`config.log' for more details" "$LINENO" 5; }
5412 ac_cpp
='$CPP $CPPFLAGS'
5413 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5418 ac_fn_c_check_header_mongrel
"$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5419 if test "x$ac_cv_header_iconv_h" = x
""yes; then :
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5421 $as_echo_n "checking for iconv... " >&6; }
5424 # ac_fn_c_try_link LINENO
5425 # -----------------------
5426 # Try to link conftest.$ac_ext, and return whether this succeeded.
5429 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5430 rm -f conftest.
$ac_objext conftest
$ac_exeext
5431 if { { ac_try
="$ac_link"
5433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5437 $as_echo "$ac_try_echo"; } >&5
5438 (eval "$ac_link") 2>conftest.err
5440 if test -s conftest.err; then
5441 grep -v '^ *+' conftest.err >conftest.er1
5442 cat conftest.er1 >&5
5443 mv -f conftest.er1 conftest.err
5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446 test $ac_status = 0; } && {
5447 test -z "$ac_c_werror_flag" ||
5448 test ! -s conftest.err
5449 } && test -s conftest$ac_exeext && {
5450 test "$cross_compiling" = yes ||
5451 $as_test_x conftest$ac_exeext
5455 $as_echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5460 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
5461 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
5462 # interfere with the next link command; also delete a directory that is
5463 # left behind by Apple's compiler. We do this before executing the actions.
5464 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5466 as_fn_set_status $ac_retval
5468 } # ac_fn_c_try_link
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5479 iconv_t cd = iconv_open ("","");
5480 iconv (cd, NULL, NULL, NULL, NULL);
5486 if ac_fn_c_try_link "$LINENO"; then :
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5489 $as_echo "yes" >&6; }
5491 $as_echo "#define USE_ICONV 1" >>confdefs.h
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
5499 $as_echo_n "checking for iconv in -liconv... " >&6; }
5500 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
5501 LIBS="-liconv" # for AC_TRY_LINK
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5512 iconv_t cd = iconv_open ("","");
5513 iconv (cd, NULL, NULL, NULL, NULL);
5519 if ac_fn_c_try_link "$LINENO"; then :
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5522 $as_echo "yes" >&6; }
5524 $as_echo "#define USE_ICONV 1" >>confdefs.h
5526 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: absence of iconv may crash HTML import" >&5
5533 $as_echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
5536 rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext conftest.$ac_ext
5539 rm -f core conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5546 CPPFLAGS="$SAVE_CPPFLAGS"
5547 LDFLAGS="$SAVE_LDFLAGS"
5550 ac_cpp='$CXXCPP $CPPFLAGS'
5551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5554 # restore C++ language
5558 #--------------------------------------------------------------------
5559 # Checks for freetype library
5560 #--------------------------------------------------------------------
5563 # Check whether --with-freetype was given.
5564 if test "${with_freetype+set}" = set; then :
5565 withval=$with_freetype;
5569 SAVE_CPPFLAGS="$CPPFLAGS"
5570 SAVE_LDFLAGS="$LDFLAGS"
5572 if test "$with_freetype" = "no" ; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling freetype support" >&5
5574 $as_echo "disabling freetype support" >&6; }
5576 if test -z "$FREETYPE_CFLAGS"; then
5577 FREETYPE_CFLAGS=`freetype-config
--cflags`
5579 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
5580 if test -z "$FREETYPE_LDFLAGS"; then
5581 FREETYPE_LDFLAGS=`freetype-config
--libs`
5583 LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
5584 ac_fn_cxx_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5585 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
5587 $as_echo_n "checking for freetype... " >&6; }
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5591 #include <ft2build.h>
5592 #include FT_FREETYPE_H
5598 FT_Library ft_library;
5599 (void) FT_Init_FreeType (&ft_library);
5605 if ac_fn_cxx_try_link "$LINENO"; then :
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5608 $as_echo "yes" >&6; }
5610 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
5612 FREETYPE_CFLAGS="$CPPFLAGS"
5613 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
5614 FREETYPE_LDFLAGS="$LIBS"
5616 $as_echo "#define LINKED_FREETYPE 1" >>confdefs.h
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5625 rm -f core conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5632 CPPFLAGS="$SAVE_CPPFLAGS"
5633 LDFLAGS="$SAVE_LDFLAGS"
5639 #--------------------------------------------------------------------
5640 # Checks for Cairo library
5641 #--------------------------------------------------------------------
5644 # Check whether --with-cairo was given.
5645 if test "${with_cairo+set}" = set; then :
5646 withval=$with_cairo;
5650 SAVE_CPPFLAGS="$CPPFLAGS"
5651 SAVE_LDFLAGS="$LDFLAGS"
5653 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling cairo support" >&5
5655 $as_echo "disabling cairo support" >&6; }
5657 CPPFLAGS=`pkg-config
--cflags cairo
`
5658 LIBS=`pkg-config
--libs cairo
`
5659 ac_fn_cxx_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
5660 if test "x$ac_cv_header_cairo_h" = x""yes; then :
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
5662 $as_echo_n "checking for cairo... " >&6; }
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5672 cairo_surface_t *surface;
5673 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
5679 if ac_fn_cxx_try_link "$LINENO"; then :
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5682 $as_echo "yes" >&6; }
5684 $as_echo "#define USE_CAIRO 1" >>confdefs.h
5686 CAIRO_CFLAGS="$CPPFLAGS"
5687 if test "$with_cairo" = "linked" ; then
5688 CAIRO_LDFLAGS="$LIBS"
5690 $as_echo "#define LINKED_CAIRO 1" >>confdefs.h
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5699 rm -f core conftest.err conftest.$ac_objext \
5700 conftest$ac_exeext conftest.$ac_ext
5706 CPPFLAGS="$SAVE_CPPFLAGS"
5707 LDFLAGS="$SAVE_LDFLAGS"
5713 #--------------------------------------------------------------------
5714 # Checks for Imlib2 library
5715 #--------------------------------------------------------------------
5718 # Check whether --with-imlib2 was given.
5719 if test "${with_imlib2+set}" = set; then :
5720 withval=$with_imlib2;
5724 SAVE_CPPFLAGS="$CPPFLAGS"
5725 SAVE_LDFLAGS="$LDFLAGS"
5727 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling imlib2 support" >&5
5729 $as_echo "disabling imlib2 support" >&6; }
5731 CPPFLAGS=`imlib2-config
--cflags`
5732 LIBS=`imlib2-config
--libs`
5733 ac_fn_cxx_check_header_mongrel "$LINENO" "Imlib2.h" "ac_cv_header_Imlib2_h" "$ac_includes_default"
5734 if test "x$ac_cv_header_Imlib2_h" = x""yes; then :
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib2" >&5
5736 $as_echo_n "checking for imlib2... " >&6; }
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5740 #include <X11/Xlib.h>
5749 Imlib_Image image= imlib_load_image("");
5755 if ac_fn_cxx_try_link "$LINENO"; then :
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758 $as_echo "yes" >&6; }
5760 $as_echo "#define USE_IMLIB2 1" >>confdefs.h
5762 IMLIB2_CFLAGS="$CPPFLAGS"
5763 if test "$with_imlib2" = "linked" ; then
5764 IMLIB2_LDFLAGS="$LIBS"
5766 $as_echo "#define LINKED_IMLIB2 1" >>confdefs.h
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5775 rm -f core conftest.err conftest.$ac_objext \
5776 conftest$ac_exeext conftest.$ac_ext
5782 CPPFLAGS="$SAVE_CPPFLAGS"
5783 LDFLAGS="$SAVE_LDFLAGS"
5789 #--------------------------------------------------------------------
5790 # Checks for Axel library
5791 #--------------------------------------------------------------------
5794 # Check whether --with-axel was given.
5795 if test "${with_axel+set}" = set; then :
5800 SAVE_CPPFLAGS="$CPPFLAGS"
5801 SAVE_LDFLAGS="$LDFLAGS"
5803 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling axel support" >&5
5805 $as_echo "disabling axel support" >&6; }
5807 CPPFLAGS=`axel-config
--cflags`
5808 LIBS=`axel-config
--libs`
5809 ac_fn_cxx_check_header_mongrel "$LINENO" "QGui/Viewer.h" "ac_cv_header_QGui_Viewer_h" "$ac_includes_default"
5810 if test "x$ac_cv_header_QGui_Viewer_h" = x""yes; then :
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for axel" >&5
5812 $as_echo_n "checking for axel... " >&6; }
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5816 #include <QGui/Viewer.h>
5828 if ac_fn_cxx_try_link "$LINENO"; then :
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5831 $as_echo "yes" >&6; }
5833 $as_echo "#define USE_AXEL 1" >>confdefs.h
5835 AXEL_CFLAGS="$CPPFLAGS"
5836 if test "$with_axel" = "linked" ; then
5837 AXEL_LDFLAGS="$LIBS"
5839 $as_echo "#define LINKED_AXEL 1" >>confdefs.h
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5848 rm -f core conftest.err conftest.$ac_objext \
5849 conftest$ac_exeext conftest.$ac_ext
5855 CPPFLAGS="$SAVE_CPPFLAGS"
5856 LDFLAGS="$SAVE_LDFLAGS"
5862 #--------------------------------------------------------------------
5863 # Checks for ghostscript library
5864 #--------------------------------------------------------------------
5867 # Check whether --with-gs was given.
5868 if test "${with_gs+set}" = set; then :
5873 if test "$with_gs" = "no" ; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling ghostscript support" >&5
5875 $as_echo "disabling ghostscript support" >&6; }
5879 GS_EXE="gswin32c.exe"
5880 GS_DLL="gsdll32.dll"
5881 # Extract the first word of "${GS_EXE}", so it can be a program name with args.
5882 set dummy ${GS_EXE}; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5888 if test -n "$HAS_GS_EXE"; then
5889 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_HAS_GS_EXE="yes"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
5909 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
5910 if test -n "$HAS_GS_EXE"; then
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_EXE" >&5
5912 $as_echo "$HAS_GS_EXE" >&6; }
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915 $as_echo "no" >&6; }
5919 # Extract the first word of "${GS_DLL}", so it can be a program name with args.
5920 set dummy ${GS_DLL}; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if test "${ac_cv_prog_HAS_GS_LIB+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5926 if test -n "$HAS_GS_LIB"; then
5927 ac_cv_prog_HAS_GS_LIB="$HAS_GS_LIB" # Let the user override the test.
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_HAS_GS_LIB="yes"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 test -z "$ac_cv_prog_HAS_GS_LIB" && ac_cv_prog_HAS_GS_LIB="no"
5947 HAS_GS_LIB=$ac_cv_prog_HAS_GS_LIB
5948 if test -n "$HAS_GS_LIB"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_LIB" >&5
5950 $as_echo "$HAS_GS_LIB" >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5959 # Extract the first word of "gs", so it can be a program name with args.
5960 set dummy gs; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5966 if test -n "$HAS_GS_EXE"; then
5967 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_HAS_GS_EXE="yes"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
5987 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
5988 if test -n "$HAS_GS_EXE"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_EXE" >&5
5990 $as_echo "$HAS_GS_EXE" >&6; }
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
6000 if test "x${HAS_GS_EXE}" = "xyes" -a "x${HAS_GS_LIB}" = "xyes"; then
6002 $as_echo "#define USE_GS 1" >>confdefs.h
6004 CONFIG_GS="Ghostscript"
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling ghostscript support" >&5
6010 $as_echo "disabling ghostscript support" >&6; }
6014 #--------------------------------------------------------------------
6015 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
6016 #--------------------------------------------------------------------
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ... arguments behave correctly" >&5
6019 $as_echo_n "checking whether ... arguments behave correctly... " >&6; }
6020 if test -z "$GUILE_CFLAGS"; then
6021 CXXFLAGS="`guile-config compile
`"
6023 CXXFLAGS="$GUILE_CFLAGS"
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6028 #include <guile/gh.h>
6029 #include <libguile.h>
6030 typedef SCM (*FN)(...);
6031 static SCM identity (SCM x) { return x; }
6032 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
6043 if ac_fn_cxx_try_compile "$LINENO"; then :
6046 $as_echo "#define DOTS_OK 1" >>confdefs.h
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6049 $as_echo "yes" >&6; }
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the size_t of guile strings" >&5
6061 $as_echo_n "checking the size_t of guile strings... " >&6; }
6062 if test -z "$GUILE_CFLAGS"; then
6063 CXXFLAGS="`guile-config compile
`"
6065 CXXFLAGS="$GUILE_CFLAGS"
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6070 #include <guile/gh.h>
6071 #include <libguile.h>
6072 void print_string (SCM s) {
6074 char* r= gh_scm2newstr (s, &len_r); }
6085 if ac_fn_cxx_try_compile "$LINENO"; then :
6088 $as_echo "#define guile_str_size_t int" >>confdefs.h
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
6091 $as_echo "int" >&6; }
6096 $as_echo "#define guile_str_size_t size_t" >>confdefs.h
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
6099 $as_echo "size_t" >&6; }
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if statically linking with guile works" >&5
6106 $as_echo_n "checking if statically linking with guile works... " >&6; }
6107 SAVE_CPPFLAGS="$CPPFLAGS"
6108 SAVE_LDFLAGS="$LDFLAGS"
6110 CPPFLAGS="$GUILE_CFLAGS"
6112 LIBS="$GUILE_LDFLAGS"
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6116 #include <guile/gh.h>
6124 static void my_main (int argc, char** argv) {}
6125 static void install_guile () {
6127 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6129 gh_enter (0, NULL, my_main);
6133 dummy::install_guile ();
6139 if ac_fn_cxx_try_link "$LINENO"; then :
6140 tm_link_guile_static="yes"
6142 tm_link_guile_static="no"
6144 rm -f core conftest.err conftest.$ac_objext \
6145 conftest$ac_exeext conftest.$ac_ext
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static\"" >&5
6148 $as_echo "\"$tm_link_guile_static\"" >&6; }
6149 if test "$tm_link_guile_static" = "no" ; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl" >&5
6151 $as_echo_n "checking if it works with -lltdl... " >&6; }
6152 LIBS="$GUILE_LDFLAGS -lltdl"
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6156 #include <guile/gh.h>
6164 static void my_main (int argc, char** argv) {}
6165 static void install_guile () {
6167 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6169 gh_enter (0, NULL, my_main);
6173 dummy::install_guile ();
6179 if ac_fn_cxx_try_link "$LINENO"; then :
6180 tm_link_guile_static_ltdl="yes"
6182 tm_link_guile_static_ltdl="no"
6184 rm -f core conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl\"" >&5
6188 $as_echo "\"$tm_link_guile_static_ltdl\"" >&6; }
6189 if test "$tm_link_guile_static_ltdl" = "yes" ; then
6190 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl -ldl" >&5
6193 $as_echo_n "checking if it works with -lltdl -ldl... " >&6; }
6194 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6198 #include <guile/gh.h>
6206 static void my_main (int argc, char** argv) {}
6207 static void install_guile () {
6209 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6211 gh_enter (0, NULL, my_main);
6215 dummy::install_guile ();
6221 if ac_fn_cxx_try_link "$LINENO"; then :
6222 tm_link_guile_static_ltdl_ldl="yes"
6224 tm_link_guile_static_ltdl_ldl="no"
6226 rm -f core conftest.err conftest.$ac_objext \
6227 conftest$ac_exeext conftest.$ac_ext
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
6230 $as_echo "\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
6231 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
6232 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to link statically with guile" >&5
6235 $as_echo "$as_me: WARNING: unable to link statically with guile" >&2;}
6239 CPPFLAGS="$SAVE_CPPFLAGS"
6240 LDFLAGS="$SAVE_LDFLAGS"
6243 #--------------------------------------------------------------------
6244 # Handle different systems case by case
6245 #--------------------------------------------------------------------
6247 CONFIG_OS="GNU_LINUX"
6248 CONFIG_OS_SUFFIX="gnu-linux"
6249 CONFIG_OS_COMPAT="Unix"
6252 CONFIG_CXXTEMPLATE=""
6253 CONFIG_STD_SETENV="#define STD_SETENV"
6255 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
6256 CONFIG_CHMOD="chmod -f"
6257 CONFIG_CXXOPTIMIZE="-O2"
6258 CONFIG_BSTATIC="-Wl,-Bstatic"
6259 CONFIG_BSHARED="-Wl,-Bdynamic"
6261 CONFIG_BPATH="-Wl,-rpath,"
6263 CONFIG_WORD_LENGTH="4"
6264 CONFIG_WORD_LENGTH_INC="3"
6265 CONFIG_WORD_MASK="0xfffffffc"
6266 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
6267 # tweak for XCode project
6268 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
6270 X11_CFLAGS="$X_CFLAGS"
6271 X11_LDFLAGS="$X_LIBS -lXext -lX11"
6273 # The cast to long int works around a bug in the HP C Compiler
6274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6275 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6276 # This bug is HP SR number 8606223364.
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6278 $as_echo_n "checking size of void *... " >&6; }
6279 if test "${ac_cv_sizeof_void_p+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6282 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6285 if test "$ac_cv_type_void_p" = yes; then
6286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6287 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
6288 as_fn_error 77 "cannot compute sizeof (void *)
6289 See \`config.log
' for more details" "$LINENO" 5; }
6291 ac_cv_sizeof_void_p=0
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6297 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6301 cat >>confdefs.h <<_ACEOF
6302 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on a 64-bits computer" >&5
6307 $as_echo_n "checking if we are on a 64-bits computer... " >&6; }
6308 if test "$ac_cv_sizeof_void_p" = "8"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6310 $as_echo "yes" >&6; }
6311 CONFIG_WORD_LENGTH="8"
6312 CONFIG_WORD_LENGTH_INC="7"
6313 CONFIG_WORD_MASK="0xfffffffffffffff8"
6314 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6321 i*86-*-linux* | x86_64-*-linux*)
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
6323 $as_echo "final adjustments for an Intel or AMD GNU/Linux host" >&6; }
6324 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6326 i*86-*-freebsd* | x86_64-*-freebsd*)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
6328 $as_echo "final adjustments for an Intel or AMD GNU/BSD host" >&6; }
6329 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMS Solaris host" >&5
6333 $as_echo "final adjustments for an Intel or AMS Solaris host" >&6; }
6334 CONFIG_CXXOPTIMIZE="-O3"
6335 CONFIG_BPATH="-Wl,-R,"
6336 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for mingw host" >&5
6340 $as_echo "final adjustments for mingw host" >&6; }
6341 CONFIG_OS_COMPAT="Windows"
6342 CONFIG_LDRT="-lmingw32 -lmingwex -mwindows"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for cygwin host" >&5
6346 $as_echo "final adjustments for cygwin host" >&6; }
6348 CONFIG_BFLAGS="-Wl,-stack,8388608"
6349 # CXX="export CYGWIN=check_case:strict; $CXX"
6353 echo "$ac_t""final adjustments for a MacOS host" 1>&6
6355 CONFIG_CXXFLAGS="-I${prefix}/include"
6357 CONFIG_BFLAGS="-framework Cocoa"
6360 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6363 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
6364 CONFIG_CXXFLAGS="-I${prefix}/include"
6368 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a PowerPC/GNU-linux host" >&5
6372 $as_echo "final adjustments for a PowerPC/GNU-linux host" >&6; }
6373 CONFIG_OS="POWERPC_GNU_LINUX"
6374 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a SUN/solaris host" >&5
6378 $as_echo "final adjustments for a SUN/solaris host" >&6; }
6380 CONFIG_OS_SUFFIX="sun"
6383 CONFIG_BPATH="-Wl,-R,"
6384 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
6385 CONFIG_WORD_LENGTH="8"
6386 CONFIG_WORD_LENGTH_INC="7"
6387 CONFIG_WORD_MASK="0xfffffff8"
6388 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6389 CONFIG_STD_SETENV=""
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a Sparc host running GNU/Linux" >&5
6393 $as_echo "final adjustments for a Sparc host running GNU/Linux" >&6; }
6394 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6395 CONFIG_WORD_LENGTH="8"
6396 CONFIG_WORD_LENGTH_INC="7"
6397 CONFIG_WORD_MASK="0xfffffff8"
6398 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6399 CONFIG_STD_SETENV=""
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a DEC/alpha host" >&5
6403 $as_echo "final adjustments for a DEC/alpha host" >&6; }
6405 CONFIG_BSHARED="-shared"
6406 CONFIG_STD_SETENV=""
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Alpha GNU/Linux host" >&5
6410 $as_echo "final adjustments for an Alpha GNU/Linux host" >&6; }
6412 CONFIG_BSHARED="-shared"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
6416 $as_echo "final adjustments for an IBM S/390 GNU/Linux host" >&6; }
6417 CONFIG_STD_SETENV=""
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Itanium GNU/Linux host" >&5
6421 $as_echo "final adjustments for an Itanium GNU/Linux host" >&6; }
6423 CONFIG_BSHARED="-shared"
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
6427 $as_echo "final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
6428 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
6430 CONFIG_BSHARED="-shared"
6433 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
6440 X11_LDFLAGS="$X_LIBS -lX11"
6441 CONFIG_WORD_MASK="0xfffffff8"
6442 CONFIG_STD_SETENV=""
6443 CONFIG_CHMOD="chmod"
6444 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
6446 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a supported GNU/Linux host" >&5
6448 $as_echo "final adjustments for a supported GNU/Linux host" >&6; }
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic GNU/Linux host" >&5
6452 $as_echo "final adjustments for a generic GNU/Linux host" >&6; }
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic host" >&5
6456 $as_echo "final adjustments for a generic host" >&6; }
6462 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
6463 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH_ACTUAL"
6467 #--------------------------------------------------------------------
6468 # Temporary fix for link problem
6469 #--------------------------------------------------------------------
6471 case "$GXX_VERSION" in
6473 CONFIG_BSTATIC="-static"
6474 CONFIG_BSHARED="-dynamic"
6478 #--------------------------------------------------------------------
6479 # Memory allocation options
6480 #--------------------------------------------------------------------
6482 # Check whether --enable-fastalloc was given.
6483 if test "${enable_fastalloc+set}" = set; then :
6484 enableval=$enable_fastalloc;
6486 enable_fastalloc="yes"
6489 case "$enable_fastalloc" in
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling fast allocator for small objects" >&5
6494 $as_echo "disabling fast allocator for small objects" >&6; }
6496 $as_echo "#define NO_FAST_ALLOC 1" >>confdefs.h
6500 as_fn_error $? "bad option --enable-fastalloc=$enable_fastalloc" "$LINENO" 5
6504 #--------------------------------------------------------------------
6505 # Experimental options
6506 #--------------------------------------------------------------------
6508 # Check whether --enable-experimental was given.
6509 if test "${enable_experimental+set}" = set; then :
6510 enableval=$enable_experimental;
6512 enable_experimental="no"
6515 case "$enable_experimental" in
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental style rewriting code" >&5
6518 $as_echo "enabling experimental style rewriting code" >&6; }
6520 $as_echo "#define EXPERIMENTAL 1" >>confdefs.h
6522 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental style rewriting code" >&5
6526 $as_echo "disabling experimental style rewriting code" >&6; }
6527 CONFIG_EXPERIMENTAL=""
6530 as_fn_error $? "bad option --enable-experimental=$enable_experimental" "$LINENO" 5
6535 #--------------------------------------------------------------------
6536 # MacOS X extensions (spellchecker, image loading)
6537 #--------------------------------------------------------------------
6539 # Check whether --enable-macosx-extensions was given.
6540 if test "${enable_macosx_extensions+set}" = set; then :
6541 enableval=$enable_macosx_extensions;
6543 enable_macosx_extensions="no"
6546 case "$enable_macosx_extensions" in
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Mac OSX extensions" >&5
6549 $as_echo "enabling Mac OSX extensions" >&6; }
6551 $as_echo "#define MACOSX_EXTENSIONS 1" >>confdefs.h
6553 CONFIG_MACOS="MacOS"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Mac OSX extensions" >&5
6557 $as_echo "disabling Mac OSX extensions" >&6; }
6561 as_fn_error $? "bad option --enable-macosx-extensions=$enable_macosx_extensions" "$LINENO" 5
6566 #--------------------------------------------------------------------
6567 # Experimental PDF renderer
6568 #--------------------------------------------------------------------
6570 # Check whether --enable-pdf-renderer was given.
6571 if test "${enable_pdf_renderer+set}" = set; then :
6572 enableval=$enable_pdf_renderer;
6574 enable_pdf_renderer="no"
6577 case "$enable_pdf_renderer" in
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental PDF renderer" >&5
6580 $as_echo "enabling experimental PDF renderer" >&6; }
6582 $as_echo "#define PDF_RENDERER 1" >>confdefs.h
6584 CONFIG_PDF="Pdf Pdf/dvipdfmx"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental PDF renderer" >&5
6588 $as_echo "disabling experimental PDF renderer" >&6; }
6592 as_fn_error $? "bad option --enable-pdf-renderer=$enable_pdf_renderer" "$LINENO" 5
6597 #--------------------------------------------------------------------
6599 #--------------------------------------------------------------------
6605 # Check whether --enable-qt was given.
6606 if test "${enable_qt+set}" = set; then :
6607 enableval=$enable_qt;
6613 case "$enable_qt" in
6616 if test -r "/c/Qt"; then
6618 qt_bin="`dirname $MOC`"
6619 qt_home="`dirname $qt_bin`"
6620 qt_version="`basename $qt_home`"
6621 qt_parent="`dirname $qt_home`"
6622 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."
6623 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
6624 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
6625 QT_LIBS="-L'c
:/Qt
/$qt_version/lib
' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
6626 if test "$qt_parent" != "/c/Qt"; then
6634 test x"$TROLL" != x && echo 'ViM rox emacs.
'
6637 # Check whether --with-qt was given.
6638 if test "${with_qt+set}" = set; then :
6639 withval=$with_qt; QT_PATH=$withval
6646 if test -d /usr/local/Trolltech; then
6647 # Try to find the latest version.
6648 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
6649 | xargs | sed 's
/ */:/g
'`
6653 if test -z "$QMAKE"; then
6654 for ac_prog in qmake
6656 # Extract the first word of "$ac_prog", so it can be a program name with args.
6657 set dummy $ac_prog; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_path_QMAKE+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6665 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
6670 for as_dir in $as_dummy
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 QMAKE=$ac_cv_path_QMAKE
6688 if test -n "$QMAKE"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6690 $as_echo "$QMAKE" >&6; }
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6697 test -n "$QMAKE" && break
6699 test -n "$QMAKE" || QMAKE="missing"
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QMAKE to use with Qt" >&5
6703 $as_echo_n "checking for the QMAKE to use with Qt... " >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6705 $as_echo "$QMAKE" >&6; }
6707 if test x"$QMAKE" = xmissing; then
6708 as_fn_error $? "Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
6711 # Find moc (Meta Object Compiler).
6712 if test -z "$MOC"; then
6715 # Extract the first word of "$ac_prog", so it can be a program name with args.
6716 set dummy $ac_prog; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if test "${ac_cv_path_MOC+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6724 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6729 for as_dir in $as_dummy
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 if test -n "$MOC"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6749 $as_echo "$MOC" >&6; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6756 test -n "$MOC" && break
6758 test -n "$MOC" || MOC="missing"
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the MOC to use with Qt" >&5
6762 $as_echo_n "checking for the MOC to use with Qt... " >&6; }
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6764 $as_echo "$MOC" >&6; }
6766 if test x"$MOC" = xmissing; then
6767 as_fn_error $? "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6770 # Find uic (User Interface Compiler).
6771 if test -z "$UIC"; then
6774 # Extract the first word of "$ac_prog", so it can be a program name with args.
6775 set dummy $ac_prog; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if test "${ac_cv_path_UIC+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6783 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6788 for as_dir in $as_dummy
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 if test -n "$UIC"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6808 $as_echo "$UIC" >&6; }
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6815 test -n "$UIC" && break
6817 test -n "$UIC" || UIC="missing"
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the UIC to use with Qt" >&5
6821 $as_echo_n "checking for the UIC to use with Qt... " >&6; }
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6823 $as_echo "$UIC" >&6; }
6825 if test x"$UIC" = xmissing; then
6826 as_fn_error $? "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6829 # Find rcc (Qt Resource Compiler).
6832 # Extract the first word of "$ac_prog", so it can be a program name with args.
6833 set dummy $ac_prog; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if test "${ac_cv_path_RCC+set}" = set; then :
6837 $as_echo_n "(cached) " >&6
6841 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6846 for as_dir in $as_dummy
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 if test -n "$RCC"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
6866 $as_echo "$RCC" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6873 test -n "$RCC" && break
6875 test -n "$RCC" || RCC="false"
6877 if test x"$UIC" = xfalse; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
6879 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
6882 # If we don't know the path to Qt
, guess it from the path to qmake.
6883 if test x
"$QT_PATH" = x
; then
6884 QT_PATH
=`dirname "$QMAKE"`
6886 if test x
"$QT_PATH" = x
; then
6887 as_fn_error $?
"Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_PATH to use with Qt" >&5
6891 $as_echo_n "checking for the QT_PATH to use with Qt... " >&6; }
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_PATH" >&5
6893 $as_echo "$QT_PATH" >&6; }
6895 # Get ready to build a test-app with Qt.
6897 # Look for a writable temporary directory.
6899 if test x
"$TMPDIR" = x ||
test ! -d "$TMPDIR" ||
test ! -w "$TMPDIR"; then
6900 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
6902 for i
in /tmp
/var
/tmp
; do
6903 if test -d "$i" && test -w "$i"; then
6906 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
6912 # Kludge!! QMake has a very strange behavior. For instance, if you
6913 # install Qt under your $HOME and run QMake somewhere else under your
6914 # $HOME, it will try to be clever and produce Makefiles with relative
6915 # include paths. In order to avoid this, we will test QMake from a
6916 # temporary directory (usually /tmp). Note that this problem was only
6917 # observed with Qt 4.
6918 my_configure_pwd
=`pwd`
6919 my_tmpdir
="$TMPDIR/conftest$$.dir"
6920 test -d "$my_tmpdir" || mkdir
"$my_tmpdir"
6921 if test -w "$my_tmpdir" && cd "$my_tmpdir"
6925 as_fn_error $?
"Cannot cd to or write in $my_tmpdir" "$LINENO" 5
6927 cat >conftest.h
<<_ASEOF
6930 class Foo: public QObject
6937 void setValue(int value);
6939 void valueChanged(int newValue);
6945 cat >conftest.cpp
<<_ASEOF
6946 #include "conftest.h"
6950 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
6953 void Foo::setValue(int value)
6963 if $QMAKE -project; then :; else
6964 as_fn_error $?
"Calling $QMAKE -project failed." "$LINENO" 5
6967 # Find the .pro file generated by qmake.
6968 pro_file
='conftest.dir.pro'
6969 test -f $pro_file || pro_file
=`echo *.pro`
6970 if test -f "$pro_file"; then :; else
6971 as_fn_error $?
"Can't find the .pro file generated by Qmake." "$LINENO" 5
6980 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
6981 sed 's/^/| /' "$pro_file" >&5
6983 additional_qmake_flags
=""
6986 additional_qmake_flags
="-spec macx-g++"
6990 if $QMAKE ${additional_qmake_flags} ; then :; else
6991 as_fn_error $?
"Calling $QMAKE failed." "$LINENO" 5
6993 # Try to compile a simple Qt app.
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
6995 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
6996 if test "${at_cv_qt_build+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
7002 if $MAKE >&5 2>&1; then
7003 at_cv_qt_build
='ok, looks like Qt 4'
7005 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
7007 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
7008 if $MAKE >&5 2>&1; then
7009 at_cv_qt_build
='ok, looks like Qt 3'
7011 # Sometimes (such as on Debian) build will fail because Qt hasn't been
7012 # installed in debug mode and qmake tries (by default) to build apps in
7013 # debug mode => Try again in release mode.
7014 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
7017 # Tweak the value of CONFIG in the .pro file for +release.
7020 for at_mod
in +release
; do
7021 at_mod
=`echo "$at_mod" | sed 's/^-//; tough
7030 echo "$qt_conf" |
sed 1d
>>"$pro_file"
7033 sed 's/<qobject.h>/<QObject>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
7034 if $MAKE >&5 2>&1; then
7035 at_cv_qt_build
='ok, looks like Qt 4, release mode forced'
7037 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
7039 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
7040 if $MAKE >&5 2>&1; then
7041 at_cv_qt_build
='ok, looks like Qt 3, release mode forced'
7044 echo "$as_me:$LINENO: failed program was:" >&5
7045 sed 's/^/| /' conftest.h
>&5
7046 echo "$as_me:$LINENO: failed program was:" >&5
7047 sed 's/^/| /' conftest.cpp
>&5
7048 fi # if make with Qt3-style #include and release mode forced.
7049 fi # if make with Qt4-style #include and release mode forced.
7050 fi # if make with Qt3-style #include.
7051 fi # if make with Qt4-style #include.
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
7055 $as_echo "$at_cv_qt_build" >&6; }
7056 if test x
"$at_cv_qt_build" = xko
; then
7057 as_fn_error $?
"Cannot build a test Qt program" "$LINENO" 5
7059 QT_VERSION_MAJOR
=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
7062 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
7063 # It starts by removing the beginning of the line, removing references to
7064 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
7065 # all variable uses by QT_.
7066 qt_sed_filter
='s///;
7069 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
7071 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
7072 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
7073 # Makefile.Release. The reason is that the main difference is that release
7074 # uses -Os and debug -g. We can override -Os by passing another -O but we
7075 # usually don't override -g.
7076 if test -f Makefile.Release
; then
7077 at_mfile
='Makefile.Release'
7081 if test -f $at_mfile; then :; else
7082 cd "$my_configure_pwd"
7083 as_fn_error $?
"Cannot find the Makefile generated by qmake." "$LINENO" 5
7086 # Find the DEFINES of Qt (should have been named CPPFLAGS).
7087 if test -z "$QT_DEFINES"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
7089 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
7090 if test "${at_cv_env_QT_DEFINES+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7093 at_cv_env_QT_DEFINES
=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
7096 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
7097 QT_DEFINES
="$at_cv_env_QT_DEFINES"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_DEFINES to use with Qt" >&5
7101 $as_echo_n "checking for the QT_DEFINES to use with Qt... " >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_DEFINES" >&5
7103 $as_echo "$QT_DEFINES" >&6; }
7105 # Find the CFLAGS of Qt (We can use Qt in C?!)
7106 if test -z "$QT_CFLAGS"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
7108 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
7109 if test "${at_cv_env_QT_CFLAGS+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
7112 at_cv_env_QT_CFLAGS
=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
7115 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
7116 QT_CFLAGS
="$at_cv_env_QT_CFLAGS"
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CFLAGS to use with Qt" >&5
7120 $as_echo_n "checking for the QT_CFLAGS to use with Qt... " >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
7122 $as_echo "$QT_CFLAGS" >&6; }
7124 # Find the CXXFLAGS of Qt.
7125 if test -z "$QT_CXXFLAGS"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
7127 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
7128 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
7131 at_cv_env_QT_CXXFLAGS
=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
7134 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
7135 QT_CXXFLAGS
="$at_cv_env_QT_CXXFLAGS"
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CXXFLAGS to use with Qt" >&5
7139 $as_echo_n "checking for the QT_CXXFLAGS to use with Qt... " >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CXXFLAGS" >&5
7141 $as_echo "$QT_CXXFLAGS" >&6; }
7143 # Find the INCPATH of Qt.
7144 if test -z "$QT_INCPATH"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
7146 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
7147 if test "${at_cv_env_QT_INCPATH+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
7150 at_cv_env_QT_INCPATH
=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
7153 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
7154 QT_INCPATH
="$at_cv_env_QT_INCPATH"
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_INCPATH to use with Qt" >&5
7158 $as_echo_n "checking for the QT_INCPATH to use with Qt... " >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_INCPATH" >&5
7160 $as_echo "$QT_INCPATH" >&6; }
7162 QT_CPPFLAGS
="$QT_DEFINES $QT_INCPATH"
7165 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
7166 if test -z "$QT_LDFLAGS"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
7168 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
7169 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7172 at_cv_env_QT_LDFLAGS
=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
7175 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
7176 QT_LDFLAGS
="$at_cv_env_QT_LDFLAGS"
7179 QT_LFLAGS
=$QT_LDFLAGS
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LDFLAGS to use with Qt" >&5
7182 $as_echo_n "checking for the QT_LDFLAGS to use with Qt... " >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LDFLAGS" >&5
7184 $as_echo "$QT_LDFLAGS" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
7187 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
7195 $as_echo "$at_darwin" >&6; }
7197 # Find the LIBS of Qt.
7198 if test -z "$QT_LIBS"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
7200 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
7201 if test "${at_cv_env_QT_LIBS+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7204 at_cv_env_QT_LIBS
=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7205 if test x
$at_darwin = xyes
; then
7206 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
7207 # -F properly. The "bug" has been fixed on 22 October 2006
7208 # by Peter O'Gorman but we provide backward compatibility here.
7209 at_cv_env_QT_LIBS
=`echo "$at_cv_env_QT_LIBS" \
7210 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
7215 $as_echo "$at_cv_env_QT_LIBS" >&6; }
7216 QT_LIBS
="$at_cv_env_QT_LIBS"
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LIBS to use with Qt" >&5
7220 $as_echo_n "checking for the QT_LIBS to use with Qt... " >&6; }
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
7222 $as_echo "$QT_LIBS" >&6; }
7224 cd "$my_configure_pwd" ||
echo 'WTF!'
7229 if test x
"$at_cv_qt_build" = xko
; then
7230 as_fn_error $?
"cannot find Qt!" "$LINENO" 5
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Qt port" >&5
7233 $as_echo "enabling experimental Qt port" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Qt port" >&5
7239 $as_echo "disabling experimental Qt port" >&6; }
7242 as_fn_error $?
"bad option --enable-qt=$enable_qt" "$LINENO" 5
7246 # Check whether --enable-qtpipes was given.
7247 if test "${enable_qtpipes+set}" = set; then :
7248 enableval
=$enable_qtpipes;
7254 case "$enable_qtpipes" in
7256 if test x
"$CONFIG_GUI" = xQT
; then
7258 $as_echo "#define QTPIPES 1" >>confdefs.h
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Qt pipes" >&5
7261 $as_echo "enabling Qt pipes" >&6; }
7263 as_fn_error $?
"QT not enabled!" "$LINENO" 5
7267 if test x
"$CONFIG_GUI" = xQT
; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Qt pipes" >&5
7269 $as_echo "disabling Qt pipes" >&6; }
7273 as_fn_error $?
"bad option --enable-qtpipes=$enable_qt" "$LINENO" 5
7277 # Check whether --enable-cocoa was given.
7278 if test "${enable_cocoa+set}" = set; then :
7279 enableval
=$enable_cocoa;
7284 case "$enable_cocoa" in
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Cocoa port" >&5
7287 $as_echo "enabling experimental Cocoa port" >&6; }
7289 COCOA_LDFLAGS
="-framework Cocoa"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Cocoa port" >&5
7294 $as_echo "disabling experimental Cocoa port" >&6; }
7297 as_fn_error $?
"bad option --enable-cocoa=$enable_cocoa" "$LINENO" 5
7301 case "$CONFIG_GUI" in
7303 CONFIG_X11
="X11 Widkit"
7304 if test "x${CONFIG_GS}" != "xGhostscript"; then
7305 CONFIG_X11
="$CONFIG_X11 Ghostscript"
7307 CONFIG_GUI_DEFINE
="X11TEXMACS"
7308 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
7311 CONFIG_COCOA
="Cocoa"
7312 CONFIG_GUI_DEFINE
="AQUATEXMACS"
7313 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
7317 CONFIG_GUI_DEFINE
="QTTEXMACS"
7318 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
7335 #--------------------------------------------------------------------
7337 #--------------------------------------------------------------------
7339 STD_DEBUG_FLAGS
="-fno-rtti -fno-exceptions"
7340 if test "$enable_cocoa" = "yes"; then
7341 STD_DEBUG_FLAGS
="-fno-exceptions"
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports $STD_DEBUG_FLAGS" >&5
7345 $as_echo_n "checking if compiler supports $STD_DEBUG_FLAGS... " >&6; }
7346 CXXFLAGS
="$STD_DEBUG_FLAGS"
7347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7350 int some_variable = 0;
7361 if ac_fn_cxx_try_compile
"$LINENO"; then :
7363 CONFIG_CXXDIALECT
="$STD_DEBUG_FLAGS"
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7365 $as_echo "yes" >&6; }
7369 CONFIG_CXXDIALECT
=""
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 # Check whether --enable-debug was given.
7379 if test "${enable_debug+set}" = set; then :
7380 enableval
=$enable_debug;
7386 if test "$enable_debug" = "yes"; then
7387 if test "$GXX" = "yes"; then
7388 enable_debug
="-ggdb"
7394 if test "$enable_debug" = "no"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling debugging" >&5
7396 $as_echo "disabling debugging" >&6; }
7397 CONFIG_STRIP
="strip"
7399 optimize_default
="yes"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling debugging, $enable_debug" >&5
7402 $as_echo "enabling debugging, $enable_debug" >&6; }
7404 CONFIG_CXXDEBUG
="$enable_debug"
7405 optimize_default
="no"
7408 # Check whether --enable-assert was given.
7409 if test "${enable_assert+set}" = set; then :
7410 enableval
=$enable_assert;
7416 if test "$enable_assert" = "no"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling assertion checking" >&5
7418 $as_echo "disabling assertion checking" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling assertion checking" >&5
7421 $as_echo "enabling assertion checking" >&6; }
7423 $as_echo "#define DEBUG_ASSERT 1" >>confdefs.h
7427 #--------------------------------------------------------------------
7429 #--------------------------------------------------------------------
7431 case "$GXX_VERSION" in
7433 CONFIG_CXXWARNING
="";
7436 CONFIG_CXXWARNING
="-Wall -Wno-return-type"
7440 # Check whether --enable-warnings was given.
7441 if test "${enable_warnings+set}" = set; then :
7442 enableval
=$enable_warnings;
7444 enable_warnings
="yes"
7447 case "$enable_warnings" in
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7450 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7452 CONFIG_CXXWARNING
=""
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling warning flags" >&5
7454 $as_echo "disabling warning flags" >&6; } ;;
7456 CONFIG_CXXWARNING
="$enable_warnings"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7458 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7461 #--------------------------------------------------------------------
7462 # Optimization options
7463 #--------------------------------------------------------------------
7465 if test "$optimize_default" = "yes"; then
7466 case "$GXX_VERSION" in
7467 3.3.3 |
3.3.4 |
4.
*)
7469 2.96 |
3.0 |
3.0.
* |
3.1 |
3.1.
* |
3.2 |
3.2.
* |
3.3 |
3.3.
*)
7471 i
*86-*-linux-gnu* | i
*86-*-freebsd*)
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7473 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7474 optimize_default
="no-inline"
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7478 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7479 optimize_default
="no-inline"
7486 # Check whether --enable-optimize was given.
7487 if test "${enable_optimize+set}" = set; then :
7488 enableval
=$enable_optimize;
7490 enable_optimize
="$optimize_default"
7494 case "$enable_optimize" in
7496 # keep optimization options
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7498 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7500 optimize_no_inline
="-fno-default-inline -fno-inline"
7501 CONFIG_CXXOPTIMIZE
="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7503 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7505 CONFIG_CXXOPTIMIZE
=""
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling optimizations" >&5
7507 $as_echo "disabling optimizations" >&6; } ;;
7509 CONFIG_CXXOPTIMIZE
="$enable_optimize"
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: customizing optimizations, $enable_optimize" >&5
7511 $as_echo "customizing optimizations, $enable_optimize" >&6; } ;;
7514 #--------------------------------------------------------------------
7515 # Substitute TeXmacs specific configuration parameters
7516 #--------------------------------------------------------------------
7542 #--------------------------------------------------------------------
7543 # Default paths for installation
7544 #--------------------------------------------------------------------
7546 if test "$prefix" = ""; then
7549 if test "$prefix" = "NONE"; then
7552 if test "$exec_prefix" = ""; then
7553 exec_prefix
='${prefix}'
7555 if test "$exec_prefix" = "NONE"; then
7556 exec_prefix
='${prefix}'
7558 if test "$exec_prefix" = '${prefix}'; then
7559 exec_prefix
='${prefix}'
7561 if test "$includedir" = ""; then
7562 includedir
='${prefix}/include'
7564 if test "$includedir" = "NONE"; then
7565 includedir
='${prefix}/include'
7567 if test "$includedir" = '${prefix}/include'; then
7568 includedir
='${prefix}/include'
7570 if test "$libdir" = ""; then
7571 libdir
='${exec_prefix}/lib'
7573 if test "$libdir" = "NONE"; then
7574 libdir
='${exec_prefix}/lib'
7576 if test "$libdir" = '${exec_prefix}/lib'; then
7577 libdir
='${exec_prefix}/lib'
7579 if test "$bindir" = ""; then
7580 bindir
='${exec_prefix}/bin'
7582 if test "$bindir" = "NONE"; then
7583 bindir
=${exec_prefix}/bin
7585 if test "$bindir" = '${exec_prefix}/bin'; then
7586 bindir
='${exec_prefix}/bin'
7588 if test "$datarootdir" = ""; then
7589 datarootdir
='${prefix}/share'
7591 if test "$datarootdir" = "NONE"; then
7592 datarootdir
='${prefix}/share'
7594 if test "$datarootdir" = '${prefix}/share'; then
7595 datarootdir
='${prefix}/share'
7597 if test "$datadir" = ""; then
7598 datadir
='${prefix}/share'
7600 if test "$datadir" = "NONE"; then
7601 datadir
='${prefix}/share'
7603 if test "$datadir" = '${prefix}/share'; then
7604 datadir
='${prefix}/share'
7606 if test "$mandir" = ""; then
7607 mandir
='${datarootdir}/man'
7609 if test "$mandir" = "NONE"; then
7610 mandir
='${datarootdir}/man'
7612 if test "$mandir" = '${datarootdir}/man'; then
7613 mandir
='${datarootdir}/man'
7615 if test "$libexecdir" = ""; then
7616 libexecdir
='${exec_prefix}/libexec'
7618 if test "$libexecdir" = "NONE"; then
7619 libexecdir
='${exec_prefix}/libexec'
7621 if test "$libexecdir" = '${exec_prefix}/libexec'; then
7622 libexecdir
='${exec_prefix}/libexec'
7628 tmsrc
=${curdir}/${tmdir}
7629 tmbin
=${libexecdir}/${tmdir}
7630 tmdata
=${datadir}/${tmdir}
7637 if test "$DEVEL_RELEASE" = "1"; then
7638 tmtgz
=${PACKAGE}-${DEVEL_VERSION}
7640 tmtgz
=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
7642 tmrpm
=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
7643 if test "$STABLE_RELEASE" = "1"; then
7644 tmstgz
=${PACKAGE}-${STABLE_VERSION}
7646 tmstgz
=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
7648 tmsrpm
=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
7649 if test "$WINDOWS_RELEASE" = "1"; then
7650 tmwin
=wintexmacs-
${WINDOWS_VERSION}
7652 tmwin
=wintexmacs-
${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
7660 #--------------------------------------------------------------------
7662 #--------------------------------------------------------------------
7664 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"
7666 cat >confcache
<<\_ACEOF
7667 # This file is a shell script that caches the results of configure
7668 # tests run on this system so they can be shared between configure
7669 # scripts and configure runs, see configure's option --config-cache.
7670 # It is not useful on other systems. If it contains results you don't
7671 # want to keep, you may remove or edit it.
7673 # config.status only pays attention to the cache file if you give it
7674 # the --recheck option to rerun configure.
7676 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7677 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7682 # The following way of writing the cache mishandles newlines in values,
7683 # but we know of no workaround that is simple, portable, and efficient.
7684 # So, we kill variables containing newlines.
7685 # Ultrix sh set writes to stderr and can't be redirected directly,
7686 # and sets the high bit in the cache file unless we assign to the vars.
7688 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7689 eval ac_val
=\$
$ac_var
7693 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7697 _ | IFS | as_nl
) ;; #(
7698 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7699 *) { eval $ac_var=; unset $ac_var;} ;;
7705 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7706 *${as_nl}ac_space
=\
*)
7707 # `set' does not quote correctly, so add quotes: double-quote
7708 # substitution turns \\\\ into \\, and sed turns \\ into \.
7711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7714 # `set' quotes correctly as required by POSIX, so do not add quotes.
7715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7724 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7726 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7728 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7729 if test -w "$cache_file"; then
7730 test "x$cache_file" != "x/dev/null" &&
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7732 $as_echo "$as_me: updating cache $cache_file" >&6;}
7733 cat confcache
>$cache_file
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7736 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7741 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7742 # Let make expand exec_prefix.
7743 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7745 DEFS
=-DHAVE_CONFIG_H
7750 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7751 # 1. Remove the extension, and $U if already installed.
7752 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7753 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7755 # will be set to the directory where LIBOBJS objects are built.
7756 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7757 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7761 LTLIBOBJS
=$ac_ltlibobjs
7765 : ${CONFIG_STATUS=./config.status}
7767 ac_clean_files_save
=$ac_clean_files
7768 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7770 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7774 # Generated by $as_me.
7775 # Run this file to recreate the current configuration.
7776 # Compiler output produced by configure, useful for debugging
7777 # configure, is in config.log if it exists.
7783 SHELL=\${CONFIG_SHELL-$SHELL}
7786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7787 ## -------------------- ##
7788 ## M4sh Initialization. ##
7789 ## -------------------- ##
7791 # Be more Bourne compatible
7792 DUALCASE
=1; export DUALCASE
# for MKS sh
7793 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7797 # is contrary to our usage. Disable this feature.
7798 alias -g '${1+"$@"}'='"$@"'
7799 setopt NO_GLOB_SUBST
7801 case `(set -o) 2>/dev/null` in #(
7813 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7814 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7817 # Prefer a ksh shell builtin over an external printf program on Solaris,
7818 # but without wasting forks for bash or zsh.
7819 if test -z "$BASH_VERSION$ZSH_VERSION" \
7820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7821 as_echo='print
-r --'
7822 as_echo_n='print
-rn --'
7823 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7824 as_echo='printf %s
\n'
7825 as_echo_n='printf %s
'
7827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7828 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7829 as_echo_n='/usr
/ucb
/echo -n'
7831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7832 as_echo_n_body='eval
7836 expr "X$arg" : "X\\(.*\\)$as_nl";
7837 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7839 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7841 export as_echo_n_body
7842 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7845 as_echo='sh
-c $as_echo_body as_echo
'
7848 # The user is always right.
7849 if test "${PATH_SEPARATOR+set}" != set; then
7851 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7852 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7859 # We need space, tab and new line, in precisely that order. Quoting is
7860 # there to prevent editors from complaining about space-tab.
7861 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7862 # splitting by setting IFS to empty value.)
7865 # Find who we are. Look in the path if we contain no directory separator.
7867 *[\\/]* ) as_myself=$0 ;;
7868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 test -z "$as_dir" && as_dir=.
7873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7879 # We did not find ourselves, most probably we were run as `sh COMMAND'
7880 # in which case we are not to be found in the path.
7881 if test "x$as_myself" = x
; then
7884 if test ! -f "$as_myself"; then
7885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7889 # Unset variables that we do not need and which cause bugs (e.g. in
7890 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7891 # suppresses any "Segmentation fault" message there. '((' could
7892 # trigger a bug in pdksh 5.2.14.
7893 for as_var
in BASH_ENV ENV MAIL MAILPATH
7894 do eval test x\
${$as_var+set} = xset \
7895 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7908 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7911 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7912 # ----------------------------------------
7913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7915 # script with STATUS, using 1 if that was 0.
7918 as_status
=$1; test $as_status -eq 0 && as_status
=1
7920 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7923 $as_echo "$as_me: error: $2" >&2
7924 as_fn_exit
$as_status
7928 # as_fn_set_status STATUS
7929 # -----------------------
7930 # Set $? to STATUS, without forking.
7934 } # as_fn_set_status
7938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7948 # Portably unset VAR.
7951 { eval $1=; unset $1;}
7953 as_unset
=as_fn_unset
7954 # as_fn_append VAR VALUE
7955 # ----------------------
7956 # Append the text in VALUE to the end of the definition contained in VAR. Take
7957 # advantage of any shell optimizations that allow amortized linear growth over
7958 # repeated appends, instead of the typical quadratic growth present in naive
7960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7961 eval 'as_fn_append ()
7972 # as_fn_arith ARG...
7973 # ------------------
7974 # Perform arithmetic evaluation on the ARGs, and store the result in the
7975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7976 # must be portable across $(()) and expr.
7977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7978 eval 'as_fn_arith ()
7985 as_val
=`expr "$@" || test $? -eq 1`
7990 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7991 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7997 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7998 as_basename
=basename
8003 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8009 as_me
=`$as_basename -- "$0" ||
8010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8011 X"$0" : 'X\(//\)$' \| \
8012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8014 sed '/^.*\/\([^/][^/]*\)\/*$/{
8028 # Avoid depending upon Character Ranges.
8029 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8030 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8031 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8032 as_cr_digits
='0123456789'
8033 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8035 ECHO_C
= ECHO_N
= ECHO_T
=
8036 case `echo -n x` in #(((((
8038 case `echo 'xy\c'` in
8039 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8041 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8048 rm -f conf$$ conf$$.exe conf$$.
file
8049 if test -d conf$$.dir
; then
8050 rm -f conf$$.dir
/conf$$.
file
8053 mkdir conf$$.dir
2>/dev
/null
8055 if (echo >conf$$.
file) 2>/dev
/null
; then
8056 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8058 # ... but there are two gotchas:
8059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8061 # In both cases, we have to default to `cp -p'.
8062 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8064 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8072 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8073 rmdir conf$$.dir
2>/dev
/null
8078 # Create "$as_dir" as a directory, including parents if necessary.
8083 -*) as_dir
=.
/$as_dir;;
8085 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8089 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8090 *) as_qdir
=$as_dir;;
8092 as_dirs
="'$as_qdir' $as_dirs"
8093 as_dir
=`$as_dirname -- "$as_dir" ||
8094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8095 X"$as_dir" : 'X\(//\)[^/]' \| \
8096 X"$as_dir" : 'X\(//\)$' \| \
8097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8098 $as_echo X"$as_dir" |
8099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8116 test -d "$as_dir" && break
8118 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8119 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8123 if mkdir
-p .
2>/dev
/null
; then
8124 as_mkdir_p
='mkdir -p "$as_dir"'
8126 test -d .
/-p && rmdir .
/-p
8130 if test -x / >/dev
/null
2>&1; then
8133 if ls -dL / >/dev
/null
2>&1; then
8140 if test -d "$1"; then
8146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8147 ???[sx]*):;;*)false;;esac;fi
8151 as_executable_p
=$as_test_x
8153 # Sed expression to map a string onto a valid CPP name.
8154 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8156 # Sed expression to map a string onto a valid variable name.
8157 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8161 ## ----------------------------------- ##
8162 ## Main body of $CONFIG_STATUS script. ##
8163 ## ----------------------------------- ##
8165 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8168 # Save the log message, to keep $0 and so on meaningful, and to
8169 # report actual input values of CONFIG_FILES etc. instead of their
8170 # values after options handling.
8172 This file was extended by $as_me, which was
8173 generated by GNU Autoconf 2.67. Invocation command line was
8175 CONFIG_FILES = $CONFIG_FILES
8176 CONFIG_HEADERS = $CONFIG_HEADERS
8177 CONFIG_LINKS = $CONFIG_LINKS
8178 CONFIG_COMMANDS = $CONFIG_COMMANDS
8181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8186 case $ac_config_files in *"
8187 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8190 case $ac_config_headers in *"
8191 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8196 # Files that config.status was made for.
8197 config_files="$ac_config_files"
8198 config_headers="$ac_config_headers"
8202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8204 \`$as_me' instantiates files and other configuration actions
8205 from templates according to the current configuration. Unless the files
8206 and actions are specified as TAGs, all are instantiated by default.
8208 Usage: $0 [OPTION]... [TAG]...
8210 -h, --help print this help, then exit
8211 -V, --version print version number and configuration settings, then exit
8212 --config print configuration, then exit
8213 -q, --quiet, --silent
8214 do not print progress messages
8215 -d, --debug don't remove temporary files
8216 --recheck update $as_me by reconfiguring in the same conditions
8217 --file=FILE[:TEMPLATE]
8218 instantiate the configuration file FILE
8219 --header=FILE[:TEMPLATE]
8220 instantiate the configuration header FILE
8222 Configuration files:
8225 Configuration headers:
8228 Report bugs to the package provider."
8231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8232 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8235 configured by $0, generated by GNU Autoconf 2.67,
8236 with options \\"\$ac_cs_config\\"
8238 Copyright (C) 2010 Free Software Foundation, Inc.
8239 This config.status script is free software; the Free Software Foundation
8240 gives unlimited permission to copy, distribute and modify it."
8244 test -n "\$AWK" || AWK=awk
8247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8248 # The default lists apply if the user does not specify any file.
8254 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8255 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8259 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8271 # Handling of the options.
8272 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8274 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8275 $as_echo "$ac_cs_version"; exit ;;
8276 --config |
--confi |
--conf |
--con |
--co |
--c )
8277 $as_echo "$ac_cs_config"; exit ;;
8278 --debug |
--debu |
--deb |
--de |
--d |
-d )
8280 --file |
--fil |
--fi |
--f )
8283 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8284 '') as_fn_error $?
"missing file argument" ;;
8286 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8287 ac_need_defaults
=false
;;
8288 --header |
--heade |
--head |
--hea )
8291 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8293 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8294 ac_need_defaults
=false
;;
8296 # Conflict between --help and --header
8297 as_fn_error $?
"ambiguous option: \`$1'
8298 Try \`$0 --help' for more information.";;
8299 --help |
--hel |
-h )
8300 $as_echo "$ac_cs_usage"; exit ;;
8301 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8302 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8306 -*) as_fn_error $?
"unrecognized option: \`$1'
8307 Try \`$0 --help' for more information." ;;
8309 *) as_fn_append ac_config_targets
" $1"
8310 ac_need_defaults
=false
;;
8316 ac_configure_extra_args
=
8318 if $ac_cs_silent; then
8320 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8325 if \$ac_cs_recheck; then
8326 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8328 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8329 CONFIG_SHELL='$SHELL'
8335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8339 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8340 ## Running $as_me. ##
8346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8351 # Handling of arguments.
8352 for ac_config_target
in $ac_config_targets
8354 case $ac_config_target in
8355 "src/System/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
8356 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile:Makefile.in" ;;
8357 "src/makefile") CONFIG_FILES
="$CONFIG_FILES src/makefile:src/makefile.in" ;;
8358 "src/System/tm_configure.hpp") CONFIG_FILES
="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
8359 "misc/admin/admin.makefile") CONFIG_FILES
="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
8360 "misc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
8361 "misc/man/texmacs.1") CONFIG_FILES
="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
8362 "misc/rpm/TeXmacs.spec") CONFIG_FILES
="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
8363 "misc/scripts/fig2ps") CONFIG_FILES
="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
8364 "misc/scripts/texmacs") CONFIG_FILES
="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
8365 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES
="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
8366 "misc/bundle/Base.xcconfig") CONFIG_FILES
="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
8368 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8373 # If the user did not use the arguments to specify the items to instantiate,
8374 # then the envvar interface is used. Set only those that are not.
8375 # We use the long form for the default assignment because of an extremely
8376 # bizarre bug on SunOS 4.1.3.
8377 if $ac_need_defaults; then
8378 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8379 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8382 # Have a temporary directory for convenience. Make it in the build tree
8383 # simply because there is no reason against having it here, and in addition,
8384 # creating and moving files from /tmp can sometimes cause problems.
8385 # Hook for its removal unless debugging.
8386 # Note that there is a small window in which the directory will not be cleaned:
8387 # after its creation but before its name has been assigned to `$tmp'.
8391 trap 'exit_status=$?
8392 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8394 trap 'as_fn_exit 1' 1 2 13 15
8396 # Create a (secure) tmp directory for tmp files.
8399 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8400 test -n "$tmp" && test -d "$tmp"
8403 tmp
=.
/conf$$
-$RANDOM
8404 (umask 077 && mkdir
"$tmp")
8405 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8407 # Set up the scripts for CONFIG_FILES section.
8408 # No need to generate them if there are no CONFIG_FILES.
8409 # This happens for instance with `./config.status config.h'.
8410 if test -n "$CONFIG_FILES"; then
8413 ac_cr
=`echo X | tr X '\015'`
8414 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8415 # But we know of no other shell where ac_cr would be empty at this
8416 # point, so we can use a bashism as a fallback.
8417 if test "x$ac_cr" = x
; then
8418 eval ac_cr
=\$
\'\\r
\'
8420 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8421 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8427 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8432 echo "cat >conf$$subs.awk <<_ACEOF" &&
8433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8436 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8437 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8439 for ac_last_try in false false false false false :; do
8440 . ./conf$$subs.sh ||
8441 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8443 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8444 if test $ac_delim_n = $ac_delim_num; then
8446 elif $ac_last_try; then
8447 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8449 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8455 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8459 s/^/S["/; s
/!.
*/"]=/
8469 s/\(.\{148\}\)..*/\1/
8471 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8476 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8483 s/\(.\{148\}\)..*/\1/
8485 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8489 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8494 ' <conf$$subs.awk | sed '
8499 ' >>$CONFIG_STATUS || ac_write_fail=1
8500 rm -f conf$$subs.awk
8501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8503 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8504 for (key in S) S_is_set[key] = 1
8510 nfields = split(line, field, "@
")
8512 len = length(field[1])
8513 for (i = 2; i < nfields; i++) {
8515 keylen = length(key)
8516 if (S_is_set[key]) {
8518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8519 len += length(value) + length(field[++i])
8530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8531 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8532 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8535 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8536 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8539 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8540 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8541 # trailing colons and then remove the whole line if VPATH becomes empty
8542 # (actually we leave an empty line to preserve line numbers).
8543 if test "x
$srcdir" = x.; then
8544 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8563 fi # test -n "$CONFIG_FILES"
8565 # Set up the scripts for CONFIG_HEADERS section.
8566 # No need to generate them if there are no CONFIG_HEADERS.
8567 # This happens for instance with `./config.status Makefile'.
8568 if test -n "$CONFIG_HEADERS"; then
8569 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8573 # Transform confdefs.h into an awk script `defines.awk', embedded as
8574 # here-document in config.status, that substitutes the proper values into
8575 # config.h.in to produce config.h.
8577 # Create a delimiter string that does not exist in confdefs.h, to ease
8578 # handling of long lines.
8580 for ac_last_try in false false :; do
8581 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8582 if test -z "$ac_t"; then
8584 elif $ac_last_try; then
8585 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8587 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8591 # For the awk script, D is an array of macro values keyed by name,
8592 # likewise P contains macro parameters if any. Preserve backslash
8593 # newline sequences.
8595 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8597 s/.\{148\}/&'"$ac_delim"'/g
8600 s/^[ ]*#[ ]*define[ ][ ]*/ /
8607 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8609 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8613 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8614 D["\
1"]=" \
3\\\\\\n
"\\/p
8616 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8621 s/.\{148\}/&'"$ac_delim"'/g
8626 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8629 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8631 ' <confdefs.h | sed '
8632 s/'"$ac_delim"'/"\\\
8633 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8636 for (key in D) D_is_set[key] = 1
8639 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8641 split(line, arg, " ")
8642 if (arg[1] == "#") {
8646 defundef
= substr
(arg
[1], 2)
8649 split(mac1
, mac2
, "(") #)
8651 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8652 if (D_is_set
[macro
]) {
8653 # Preserve the white space surrounding the "#".
8654 print prefix
"define", macro P
[macro
] D
[macro
]
8657 # Replace #undef with comments. This is necessary, for example,
8658 # in the case of _POSIX_SOURCE, which is predefined and required
8659 # on some systems where configure will not decide to define it.
8660 if (defundef
== "undef") {
8661 print
"/*", prefix defundef
, macro
, "*/"
8669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8670 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8671 fi # test -n "$CONFIG_HEADERS"
8674 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
8679 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8681 case $ac_mode$ac_tag in
8683 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8684 :[FH
]-) ac_tag
=-:-;;
8685 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8702 -) ac_f
="$tmp/stdin";;
8703 *) # Look for the file first in the build tree, then in the source tree
8704 # (if the path is not absolute). The absolute path cannot be DOS-style,
8705 # because $ac_f cannot contain `:'.
8709 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8711 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8713 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8714 as_fn_append ac_file_inputs
" '$ac_f'"
8717 # Let's still pretend it is `configure' which instantiates (i.e., don't
8718 # use $as_me), people would be surprised to read:
8719 # /* config.h. Generated by config.status. */
8720 configure_input
='Generated from '`
8721 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8723 if test x
"$ac_file" != x-
; then
8724 configure_input
="$ac_file. $configure_input"
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8726 $as_echo "$as_me: creating $ac_file" >&6;}
8728 # Neutralize special characters interpreted by sed in replacement strings.
8729 case $configure_input in #(
8730 *\
&* |
*\|
* |
*\\* )
8731 ac_sed_conf_input
=`$as_echo "$configure_input" |
8732 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8733 *) ac_sed_conf_input
=$configure_input;;
8737 *:-:* |
*:-) cat >"$tmp/stdin" \
8738 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8743 ac_dir
=`$as_dirname -- "$ac_file" ||
8744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8745 X"$ac_file" : 'X\(//\)[^/]' \| \
8746 X"$ac_file" : 'X\(//\)$' \| \
8747 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8748 $as_echo X"$ac_file" |
8749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8766 as_dir
="$ac_dir"; as_fn_mkdir_p
8770 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8772 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8773 # A ".." for each directory in $ac_dir_suffix.
8774 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8775 case $ac_top_builddir_sub in
8776 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8777 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8780 ac_abs_top_builddir
=$ac_pwd
8781 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8782 # for backward compatibility:
8783 ac_top_builddir
=$ac_top_build_prefix
8786 .
) # We are building in place.
8788 ac_top_srcdir
=$ac_top_builddir_sub
8789 ac_abs_top_srcdir
=$ac_pwd ;;
8790 [\\/]* | ?
:[\\/]* ) # Absolute name.
8791 ac_srcdir
=$srcdir$ac_dir_suffix;
8792 ac_top_srcdir
=$srcdir
8793 ac_abs_top_srcdir
=$srcdir ;;
8795 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8796 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8797 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8799 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8811 # If the template does not know about datarootdir, expand it.
8812 # FIXME: This hack should be removed a few years after 2.60.
8813 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8824 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8825 *datarootdir
*) ac_datarootdir_seen
=yes;;
8826 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8828 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8831 ac_datarootdir_hack='
8832 s&@datadir@&$datadir&g
8833 s&@docdir@&$docdir&g
8834 s&@infodir@&$infodir&g
8835 s&@localedir@&$localedir&g
8836 s&@mandir@&$mandir&g
8837 s&\\\${datarootdir}&$datarootdir&g' ;;
8841 # Neutralize VPATH when `$srcdir' = `.'.
8842 # Shell code in configure.ac might set extrasub.
8843 # FIXME: do we really want to maintain this feature?
8844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8845 ac_sed_extra="$ac_vpsub
8848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8850 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8851 s|@configure_input@|
$ac_sed_conf_input|
;t t
8852 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8853 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8854 s
&@srcdir@
&$ac_srcdir&;t t
8855 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8856 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8857 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8858 s
&@builddir@
&$ac_builddir&;t t
8859 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8860 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8861 $ac_datarootdir_hack
8863 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8864 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8866 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8867 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8868 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8870 which seems to be undefined. Please make sure it is defined" >&5
8871 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8872 which seems to be undefined. Please make sure it is defined" >&2;}
8876 -) cat "$tmp/out" && rm -f "$tmp/out";;
8877 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8885 if test x"$ac_file" != x-; then
8887 $as_echo "/* $configure_input */" \
8888 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8889 } >"$tmp/config.h" \
8890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8891 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8893 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8896 mv "$tmp/config.h" "$ac_file" \
8897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8900 $as_echo "/* $configure_input */" \
8901 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8902 || as_fn_error $? "could not create -" "$LINENO" 5
8914 ac_clean_files=$ac_clean_files_save
8916 test $ac_write_fail = 0 ||
8917 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8920 # configure is writing to config.log, and then calls config.status.
8921 # config.status does its own redirection, appending to config.log.
8922 # Unfortunately, on DOS this fails, as config.log is still kept open
8923 # by configure, so config.status won't be able to
write to it
; its
8924 # output is simply discarded. So we exec the FD to /dev/null,
8925 # effectively closing config.log, so it can be properly (re)opened and
8926 # appended to by config.status. When coming back to configure, we
8927 # need to make the FD available again.
8928 if test "$no_create" != yes; then
8930 ac_config_status_args
=
8931 test "$silent" = yes &&
8932 ac_config_status_args
="$ac_config_status_args --quiet"
8934 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8936 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8937 # would make configure fail if this is the last instruction.
8938 $ac_cs_success || as_fn_exit
1
8940 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}