Fixes
[texmacs.git] / src / configure
blob74351393bbdad2920b45b1edae294aff5ca5d19e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 # Factoring default headers for most tests.
555 ac_includes_default="\
556 #include <stdio.h>
557 #ifdef HAVE_SYS_TYPES_H
558 # include <sys/types.h>
559 #endif
560 #ifdef HAVE_SYS_STAT_H
561 # include <sys/stat.h>
562 #endif
563 #ifdef STDC_HEADERS
564 # include <stdlib.h>
565 # include <stddef.h>
566 #else
567 # ifdef HAVE_STDLIB_H
568 # include <stdlib.h>
569 # endif
570 #endif
571 #ifdef HAVE_STRING_H
572 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
573 # include <memory.h>
574 # endif
575 # include <string.h>
576 #endif
577 #ifdef HAVE_STRINGS_H
578 # include <strings.h>
579 #endif
580 #ifdef HAVE_INTTYPES_H
581 # include <inttypes.h>
582 #endif
583 #ifdef HAVE_STDINT_H
584 # include <stdint.h>
585 #endif
586 #ifdef HAVE_UNISTD_H
587 # include <unistd.h>
588 #endif"
590 ac_subst_vars='LTLIBOBJS
591 LIBOBJS
592 tmwin
593 tmsrpm
594 tmstgz
595 tmrpm
596 tmtgz
597 tmdata
598 tmbin
599 tmsrc
600 tmdir
601 tmorig
602 CONFIG_NATIVE_ARCH_TAG
603 CONFIG_LDRT
604 CONFIG_CHMOD
605 CONFIG_STRIP
606 CONFIG_LIB_PATH
607 CONFIG_SO
608 CONFIG_STD_SETENV
609 CONFIG_CXXFLAGS
610 CONFIG_MAX_FAST
611 CONFIG_WORD_MASK
612 CONFIG_WORD_LENGTH_INC
613 CONFIG_WORD_LENGTH
614 CONFIG_BPATH
615 CONFIG_BSHARED
616 CONFIG_BSTATIC
617 CONFIG_BFLAGS
618 CONFIG_CXXDEBUG
619 CONFIG_CXXOPTIMIZE
620 CONFIG_CXXTEMPLATE
621 CONFIG_CXXWARNING
622 CONFIG_OS_COMPAT
623 CONFIG_OS_SUFFIX
624 CONFIG_OS
625 CONFIG_CXXDIALECT
626 CONFIG_GUI_DEFINE
627 CONFIG_GUI
628 CONFIG_QT
629 CONFIG_COCOA
630 CONFIG_X11
631 COCOA_LDFLAGS
632 COCOA_CFLAGS
633 X11_LDFLAGS
634 X11_CFLAGS
635 QT_LIBS
636 QT_LFLAGS
637 QT_LDFLAGS
638 QT_CPPFLAGS
639 QT_INCPATH
640 QT_CXXFLAGS
641 QT_CFLAGS
642 QT_DEFINES
643 QT_VERSION_MAJOR
644 TMPDIR
645 QT_PATH
649 QMAKE
650 CONFIG_MACOS
651 CONFIG_EXPERIMENTAL
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 AXEL_LDFLAGS
661 AXEL_CFLAGS
662 IMLIB2_LDFLAGS
663 IMLIB2_CFLAGS
664 CAIRO_LDFLAGS
665 CAIRO_CFLAGS
666 FREETYPE_LDFLAGS
667 FREETYPE_CFLAGS
668 ICONV_LDFLAGS
669 ICONV_CFLAGS
671 CONFIG_BDL
672 X_EXTRA_LIBS
673 X_LIBS
674 X_PRE_LIBS
675 X_CFLAGS
676 XMKMF
677 EGREP
678 GREP
679 CXXCPP
680 CONFIG_GUILE_SERIAL
681 GUILE_LDFLAGS
682 GUILE_CFLAGS
683 ac_ct_CXX
684 CXXFLAGS
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
693 STABLE_RELEASE
694 STABLE_VERSION
695 DEVEL_RELEASE
696 DEVEL_VERSION
697 PACKAGE
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 localstatedir
718 sharedstatedir
719 sysconfdir
720 datadir
721 datarootdir
722 libexecdir
723 sbindir
724 bindir
725 program_transform_name
726 prefix
727 exec_prefix
728 PACKAGE_URL
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 with_x
740 with_iconv
741 with_freetype
742 with_cairo
743 with_imlib2
744 with_axel
745 enable_fastalloc
746 enable_experimental
747 enable_macosx_extensions
748 enable_qt
749 with_qt
750 enable_cocoa
751 enable_debug
752 enable_assert
753 enable_warnings
754 enable_optimize
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
760 CFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
765 CXXFLAGS
767 CXXCPP
768 XMKMF
770 TMPDIR'
773 # Initialize some variables set by options.
774 ac_init_help=
775 ac_init_version=false
776 ac_unrecognized_opts=
777 ac_unrecognized_sep=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
780 cache_file=/dev/null
781 exec_prefix=NONE
782 no_create=
783 no_recursion=
784 prefix=NONE
785 program_prefix=NONE
786 program_suffix=NONE
787 program_transform_name=s,x,x,
788 silent=
789 site=
790 srcdir=
791 verbose=
792 x_includes=NONE
793 x_libraries=NONE
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE}'
812 infodir='${datarootdir}/info'
813 htmldir='${docdir}'
814 dvidir='${docdir}'
815 pdfdir='${docdir}'
816 psdir='${docdir}'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
821 ac_prev=
822 ac_dashdash=
823 for ac_option
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
832 case $ac_option in
833 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *) ac_optarg=yes ;;
835 esac
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
841 ac_dashdash=yes ;;
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
860 --config-cache | -C)
861 cache_file=config.cache ;;
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1155 -*) as_fn_error "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information."
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 esac
1178 done
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error "missing argument to $ac_option"
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1212 done
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1228 cross_compiling=yes
1232 ac_tool_prefix=
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error "pwd does not report name of working directory"
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 s//\1/
1260 /^X\(\/\/\)[^/].*/{
1261 s//\1/
1264 /^X\(\/\/\)$/{
1265 s//\1/
1268 /^X\(\/\).*/{
1269 s//\1/
1272 s/.*/./; q'`
1273 srcdir=$ac_confdir
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 srcdir=..
1277 else
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1287 pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 srcdir=.
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1311 cat <<_ACEOF
1312 \`configure' configures this package to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1321 Configuration:
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 [PREFIX]
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1365 _ACEOF
1367 cat <<\_ACEOF
1369 X features:
1370 --x-includes=DIR X include files are in DIR
1371 --x-libraries=DIR X library files are in DIR
1373 System types:
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 _ACEOF
1379 if test -n "$ac_init_help"; then
1381 cat <<\_ACEOF
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --disable-fastalloc omit fast allocator for small objects
1388 --enable-experimental support new style rewriting code
1389 --enable-macosx-extensions support new style rewriting code
1390 --enable-qt replace X11 by Qt interface
1391 --enable-cocoa replace X11 by Cocoa interface
1392 --enable-debug=ARG install a debugging enable executable -ggdb
1393 --enable-assert exit on failed assertions in code
1394 --enable-warnings print warning messages during compilation
1395 --enable-optimize=ARG compile with optimizations guessed
1397 Optional Packages:
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-x use the X Window System
1401 --with-iconv=DIR where to find iconv system
1402 --with-freetype=ARG with freetype support ARG=linked
1403 --with-cairo=ARG with cairo support ARG=no
1404 --with-imlib2=ARG with imlib2 support ARG=no
1405 --with-axel=ARG with axel support ARG=no
1406 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1416 CXX C++ compiler command
1417 CXXFLAGS C++ compiler flags
1418 CXXCPP C++ preprocessor
1419 XMKMF Path to xmkmf, Makefile generator for X Window System
1420 CPP C preprocessor
1421 TMPDIR A temporary directory with write access [/tmp]
1423 Use these variables to override the choices made by `configure' or to help
1424 it to find libraries and programs with nonstandard names/locations.
1426 Report bugs to the package provider.
1427 _ACEOF
1428 ac_status=$?
1431 if test "$ac_init_help" = "recursive"; then
1432 # If there are subdirs, report their specific --help.
1433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1434 test -d "$ac_dir" ||
1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436 continue
1437 ac_builddir=.
1439 case "$ac_dir" in
1440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1443 # A ".." for each directory in $ac_dir_suffix.
1444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1445 case $ac_top_builddir_sub in
1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448 esac ;;
1449 esac
1450 ac_abs_top_builddir=$ac_pwd
1451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452 # for backward compatibility:
1453 ac_top_builddir=$ac_top_build_prefix
1455 case $srcdir in
1456 .) # We are building in place.
1457 ac_srcdir=.
1458 ac_top_srcdir=$ac_top_builddir_sub
1459 ac_abs_top_srcdir=$ac_pwd ;;
1460 [\\/]* | ?:[\\/]* ) # Absolute name.
1461 ac_srcdir=$srcdir$ac_dir_suffix;
1462 ac_top_srcdir=$srcdir
1463 ac_abs_top_srcdir=$srcdir ;;
1464 *) # Relative name.
1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466 ac_top_srcdir=$ac_top_build_prefix$srcdir
1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468 esac
1469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471 cd "$ac_dir" || { ac_status=$?; continue; }
1472 # Check for guested configure.
1473 if test -f "$ac_srcdir/configure.gnu"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476 elif test -f "$ac_srcdir/configure"; then
1477 echo &&
1478 $SHELL "$ac_srcdir/configure" --help=recursive
1479 else
1480 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 fi || ac_status=$?
1482 cd "$ac_pwd" || { ac_status=$?; break; }
1483 done
1486 test -n "$ac_init_help" && exit $ac_status
1487 if $ac_init_version; then
1488 cat <<\_ACEOF
1489 configure
1490 generated by GNU Autoconf 2.64
1492 Copyright (C) 2009 Free Software Foundation, Inc.
1493 This configure script is free software; the Free Software Foundation
1494 gives unlimited permission to copy, distribute and modify it.
1495 _ACEOF
1496 exit
1499 ## ------------------------ ##
1500 ## Autoconf initialization. ##
1501 ## ------------------------ ##
1503 # ac_fn_c_try_compile LINENO
1504 # --------------------------
1505 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1506 ac_fn_c_try_compile ()
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 rm -f conftest.$ac_objext
1510 if { { ac_try="$ac_compile"
1511 case "(($ac_try" in
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1514 esac
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_compile") 2>conftest.err
1518 ac_status=$?
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } && {
1526 test -z "$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 } && test -s conftest.$ac_objext; then :
1529 ac_retval=0
1530 else
1531 $as_echo "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.$ac_ext >&5
1534 ac_retval=1
1536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1537 return $ac_retval
1539 } # ac_fn_c_try_compile
1541 # ac_fn_cxx_try_compile LINENO
1542 # ----------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_cxx_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_cxx_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1572 ac_retval=1
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 return $ac_retval
1577 } # ac_fn_cxx_try_compile
1579 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1580 # ---------------------------------------------
1581 # Tests whether TYPE exists after having included INCLUDES, setting cache
1582 # variable VAR accordingly.
1583 ac_fn_cxx_check_type ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 $as_echo_n "(cached) " >&6
1590 else
1591 eval "$3=no"
1592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593 /* end confdefs.h. */
1596 main ()
1598 if (sizeof ($2))
1599 return 0;
1601 return 0;
1603 _ACEOF
1604 if ac_fn_cxx_try_compile "$LINENO"; then :
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1609 main ()
1611 if (sizeof (($2)))
1612 return 0;
1614 return 0;
1616 _ACEOF
1617 if ac_fn_cxx_try_compile "$LINENO"; then :
1619 else
1620 eval "$3=yes"
1622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626 eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 $as_echo "$ac_res" >&6; }
1629 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 } # ac_fn_cxx_check_type
1633 # ac_fn_cxx_try_cpp LINENO
1634 # ------------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_cxx_try_cpp ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } >/dev/null && {
1655 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1656 test ! -s conftest.err
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_retval=1
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 return $ac_retval
1668 } # ac_fn_cxx_try_cpp
1670 # ac_fn_cxx_try_run LINENO
1671 # ------------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_cxx_try_run ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=$ac_status
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1710 } # ac_fn_cxx_try_run
1712 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1713 # ---------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_cxx_check_header_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_cxx_try_compile "$LINENO"; then :
1730 eval "$3=yes"
1731 else
1732 eval "$3=no"
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 } # ac_fn_cxx_check_header_compile
1743 # ac_fn_cxx_try_link LINENO
1744 # -------------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_cxx_try_link ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext conftest$ac_exeext
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_cxx_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest$ac_exeext && {
1769 test "$cross_compiling" = yes ||
1770 $as_test_x conftest$ac_exeext
1771 }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=1
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 return $ac_retval
1787 } # ac_fn_cxx_try_link
1789 # ac_fn_cxx_check_func LINENO FUNC VAR
1790 # ------------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_cxx_check_func ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1811 #ifdef __STDC__
1812 # include <limits.h>
1813 #else
1814 # include <assert.h>
1815 #endif
1817 #undef $2
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1822 #ifdef __cplusplus
1823 extern "C"
1824 #endif
1825 char $2 ();
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1830 choke me
1831 #endif
1834 main ()
1836 return $2 ();
1838 return 0;
1840 _ACEOF
1841 if ac_fn_cxx_try_link "$LINENO"; then :
1842 eval "$3=yes"
1843 else
1844 eval "$3=no"
1846 rm -f core conftest.err conftest.$ac_objext \
1847 conftest$ac_exeext conftest.$ac_ext
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 } # ac_fn_cxx_check_func
1856 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1857 # ---------------------------------------------------------
1858 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1859 # the include files in INCLUDES and setting the cache variable VAR
1860 # accordingly.
1861 ac_fn_cxx_check_header_mongrel ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 else
1874 # Is the header compilable?
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1876 $as_echo_n "checking $2 usability... " >&6; }
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1880 #include <$2>
1881 _ACEOF
1882 if ac_fn_cxx_try_compile "$LINENO"; then :
1883 ac_header_compiler=yes
1884 else
1885 ac_header_compiler=no
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1889 $as_echo "$ac_header_compiler" >&6; }
1891 # Is the header present?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1893 $as_echo_n "checking $2 presence... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 #include <$2>
1897 _ACEOF
1898 if ac_fn_cxx_try_cpp "$LINENO"; then :
1899 ac_header_preproc=yes
1900 else
1901 ac_header_preproc=no
1903 rm -f conftest.err conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1905 $as_echo "$ac_header_preproc" >&6; }
1907 # So? What about this header?
1908 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1909 yes:no: )
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1911 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915 no:yes:* )
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1917 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1919 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1921 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1923 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1927 esac
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 eval "$3=\$ac_header_compiler"
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 } # ac_fn_cxx_check_header_mongrel
1943 # ac_fn_c_try_cpp LINENO
1944 # ----------------------
1945 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_c_try_cpp ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_cpp conftest.$ac_ext"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } >/dev/null && {
1965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1966 test ! -s conftest.err
1967 }; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1973 ac_retval=1
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 return $ac_retval
1978 } # ac_fn_c_try_cpp
1980 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1983 # the include files in INCLUDES and setting the cache variable VAR
1984 # accordingly.
1985 ac_fn_c_check_header_mongrel ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1992 $as_echo_n "(cached) " >&6
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 else
1998 # Is the header compilable?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2000 $as_echo_n "checking $2 usability... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_header_compiler=yes
2008 else
2009 ac_header_compiler=no
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2013 $as_echo "$ac_header_compiler" >&6; }
2015 # Is the header present?
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2017 $as_echo_n "checking $2 presence... " >&6; }
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 #include <$2>
2021 _ACEOF
2022 if ac_fn_c_try_cpp "$LINENO"; then :
2023 ac_header_preproc=yes
2024 else
2025 ac_header_preproc=no
2027 rm -f conftest.err conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2029 $as_echo "$ac_header_preproc" >&6; }
2031 # So? What about this header?
2032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2033 yes:no: )
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2035 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039 no:yes:* )
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2041 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2043 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2045 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2047 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051 esac
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2055 $as_echo_n "(cached) " >&6
2056 else
2057 eval "$3=\$ac_header_compiler"
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 } # ac_fn_c_check_header_mongrel
2067 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2068 # ----------------------------------------------
2069 # Tries to find the compile-time value of EXPR in a program that includes
2070 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2071 # computed
2072 ac_fn_cxx_compute_int ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if test "$cross_compiling" = yes; then
2076 # Depending upon the size, compute the lo and hi bounds.
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 static int test_array [1 - 2 * !(($2) >= 0)];
2084 test_array [0] = 0
2087 return 0;
2089 _ACEOF
2090 if ac_fn_cxx_try_compile "$LINENO"; then :
2091 ac_lo=0 ac_mid=0
2092 while :; do
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2097 main ()
2099 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2100 test_array [0] = 0
2103 return 0;
2105 _ACEOF
2106 if ac_fn_cxx_try_compile "$LINENO"; then :
2107 ac_hi=$ac_mid; break
2108 else
2109 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2110 if test $ac_lo -le $ac_mid; then
2111 ac_lo= ac_hi=
2112 break
2114 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 done
2118 else
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2123 main ()
2125 static int test_array [1 - 2 * !(($2) < 0)];
2126 test_array [0] = 0
2129 return 0;
2131 _ACEOF
2132 if ac_fn_cxx_try_compile "$LINENO"; then :
2133 ac_hi=-1 ac_mid=-1
2134 while :; do
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 main ()
2141 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2142 test_array [0] = 0
2145 return 0;
2147 _ACEOF
2148 if ac_fn_cxx_try_compile "$LINENO"; then :
2149 ac_lo=$ac_mid; break
2150 else
2151 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2152 if test $ac_mid -le $ac_hi; then
2153 ac_lo= ac_hi=
2154 break
2156 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 done
2160 else
2161 ac_lo= ac_hi=
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 # Binary search between lo and hi bounds.
2167 while test "x$ac_lo" != "x$ac_hi"; do
2168 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2173 main ()
2175 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2176 test_array [0] = 0
2179 return 0;
2181 _ACEOF
2182 if ac_fn_cxx_try_compile "$LINENO"; then :
2183 ac_hi=$ac_mid
2184 else
2185 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 done
2189 case $ac_lo in #((
2190 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2191 '') ac_retval=1 ;;
2192 esac
2193 else
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2197 static long int longval () { return $2; }
2198 static unsigned long int ulongval () { return $2; }
2199 #include <stdio.h>
2200 #include <stdlib.h>
2202 main ()
2205 FILE *f = fopen ("conftest.val", "w");
2206 if (! f)
2207 return 1;
2208 if (($2) < 0)
2210 long int i = longval ();
2211 if (i != ($2))
2212 return 1;
2213 fprintf (f, "%ld", i);
2215 else
2217 unsigned long int i = ulongval ();
2218 if (i != ($2))
2219 return 1;
2220 fprintf (f, "%lu", i);
2222 /* Do not output a trailing newline, as this causes \r\n confusion
2223 on some platforms. */
2224 return ferror (f) || fclose (f) != 0;
2227 return 0;
2229 _ACEOF
2230 if ac_fn_cxx_try_run "$LINENO"; then :
2231 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2232 else
2233 ac_retval=1
2235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2236 conftest.$ac_objext conftest.beam conftest.$ac_ext
2237 rm -f conftest.val
2240 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2241 return $ac_retval
2243 } # ac_fn_cxx_compute_int
2244 cat >config.log <<_ACEOF
2245 This file contains any messages produced by compilers while
2246 running configure, to aid debugging if configure makes a mistake.
2248 It was created by $as_me, which was
2249 generated by GNU Autoconf 2.64. Invocation command line was
2251 $ $0 $@
2253 _ACEOF
2254 exec 5>>config.log
2256 cat <<_ASUNAME
2257 ## --------- ##
2258 ## Platform. ##
2259 ## --------- ##
2261 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2262 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2263 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2264 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2265 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2267 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2268 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2270 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2271 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2272 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2273 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2274 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2275 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2276 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2278 _ASUNAME
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 $as_echo "PATH: $as_dir"
2286 done
2287 IFS=$as_save_IFS
2289 } >&5
2291 cat >&5 <<_ACEOF
2294 ## ----------- ##
2295 ## Core tests. ##
2296 ## ----------- ##
2298 _ACEOF
2301 # Keep a trace of the command line.
2302 # Strip out --no-create and --no-recursion so they do not pile up.
2303 # Strip out --silent because we don't want to record it for future runs.
2304 # Also quote any args containing shell meta-characters.
2305 # Make two passes to allow for proper duplicate-argument suppression.
2306 ac_configure_args=
2307 ac_configure_args0=
2308 ac_configure_args1=
2309 ac_must_keep_next=false
2310 for ac_pass in 1 2
2312 for ac_arg
2314 case $ac_arg in
2315 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2317 | -silent | --silent | --silen | --sile | --sil)
2318 continue ;;
2319 *\'*)
2320 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2321 esac
2322 case $ac_pass in
2323 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2325 as_fn_append ac_configure_args1 " '$ac_arg'"
2326 if test $ac_must_keep_next = true; then
2327 ac_must_keep_next=false # Got value, back to normal.
2328 else
2329 case $ac_arg in
2330 *=* | --config-cache | -C | -disable-* | --disable-* \
2331 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2332 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2333 | -with-* | --with-* | -without-* | --without-* | --x)
2334 case "$ac_configure_args0 " in
2335 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2336 esac
2338 -* ) ac_must_keep_next=true ;;
2339 esac
2341 as_fn_append ac_configure_args " '$ac_arg'"
2343 esac
2344 done
2345 done
2346 { ac_configure_args0=; unset ac_configure_args0;}
2347 { ac_configure_args1=; unset ac_configure_args1;}
2349 # When interrupted or exit'd, cleanup temporary files, and complete
2350 # config.log. We remove comments because anyway the quotes in there
2351 # would cause problems or look ugly.
2352 # WARNING: Use '\'' to represent an apostrophe within the trap.
2353 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2354 trap 'exit_status=$?
2355 # Save into config.log some information that might help in debugging.
2357 echo
2359 cat <<\_ASBOX
2360 ## ---------------- ##
2361 ## Cache variables. ##
2362 ## ---------------- ##
2363 _ASBOX
2364 echo
2365 # The following way of writing the cache mishandles newlines in values,
2367 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2368 eval ac_val=\$$ac_var
2369 case $ac_val in #(
2370 *${as_nl}*)
2371 case $ac_var in #(
2372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2374 esac
2375 case $ac_var in #(
2376 _ | IFS | as_nl) ;; #(
2377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2378 *) { eval $ac_var=; unset $ac_var;} ;;
2379 esac ;;
2380 esac
2381 done
2382 (set) 2>&1 |
2383 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2384 *${as_nl}ac_space=\ *)
2385 sed -n \
2386 "s/'\''/'\''\\\\'\'''\''/g;
2387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2388 ;; #(
2390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2392 esac |
2393 sort
2395 echo
2397 cat <<\_ASBOX
2398 ## ----------------- ##
2399 ## Output variables. ##
2400 ## ----------------- ##
2401 _ASBOX
2402 echo
2403 for ac_var in $ac_subst_vars
2405 eval ac_val=\$$ac_var
2406 case $ac_val in
2407 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2408 esac
2409 $as_echo "$ac_var='\''$ac_val'\''"
2410 done | sort
2411 echo
2413 if test -n "$ac_subst_files"; then
2414 cat <<\_ASBOX
2415 ## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##
2418 _ASBOX
2419 echo
2420 for ac_var in $ac_subst_files
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 $as_echo "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2431 if test -s confdefs.h; then
2432 cat <<\_ASBOX
2433 ## ----------- ##
2434 ## confdefs.h. ##
2435 ## ----------- ##
2436 _ASBOX
2437 echo
2438 cat confdefs.h
2439 echo
2441 test "$ac_signal" != 0 &&
2442 $as_echo "$as_me: caught signal $ac_signal"
2443 $as_echo "$as_me: exit $exit_status"
2444 } >&5
2445 rm -f core *.core core.conftest.* &&
2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2447 exit $exit_status
2449 for ac_signal in 1 2 13 15; do
2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2451 done
2452 ac_signal=0
2454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2455 rm -f -r conftest* confdefs.h
2457 $as_echo "/* confdefs.h */" > confdefs.h
2459 # Predefined preprocessor variables.
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_NAME "$PACKAGE_NAME"
2463 _ACEOF
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_STRING "$PACKAGE_STRING"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2479 _ACEOF
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_URL "$PACKAGE_URL"
2483 _ACEOF
2486 # Let the site file select an alternate cache file if it wants to.
2487 # Prefer an explicitly selected file to automatically selected ones.
2488 ac_site_file1=NONE
2489 ac_site_file2=NONE
2490 if test -n "$CONFIG_SITE"; then
2491 ac_site_file1=$CONFIG_SITE
2492 elif test "x$prefix" != xNONE; then
2493 ac_site_file1=$prefix/share/config.site
2494 ac_site_file2=$prefix/etc/config.site
2495 else
2496 ac_site_file1=$ac_default_prefix/share/config.site
2497 ac_site_file2=$ac_default_prefix/etc/config.site
2499 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2501 test "x$ac_site_file" = xNONE && continue
2502 if test -r "$ac_site_file"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2504 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2505 sed 's/^/| /' "$ac_site_file" >&5
2506 . "$ac_site_file"
2508 done
2510 if test -r "$cache_file"; then
2511 # Some versions of bash will fail to source /dev/null (special
2512 # files actually), so we avoid doing that.
2513 if test -f "$cache_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2515 $as_echo "$as_me: loading cache $cache_file" >&6;}
2516 case $cache_file in
2517 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2518 *) . "./$cache_file";;
2519 esac
2521 else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2523 $as_echo "$as_me: creating cache $cache_file" >&6;}
2524 >$cache_file
2527 # Check that the precious variables saved in the cache have kept the same
2528 # value.
2529 ac_cache_corrupted=false
2530 for ac_var in $ac_precious_vars; do
2531 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2532 eval ac_new_set=\$ac_env_${ac_var}_set
2533 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2534 eval ac_new_val=\$ac_env_${ac_var}_value
2535 case $ac_old_set,$ac_new_set in
2536 set,)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2538 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2539 ac_cache_corrupted=: ;;
2540 ,set)
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2544 ,);;
2546 if test "x$ac_old_val" != "x$ac_new_val"; then
2547 # differences in whitespace do not lead to failure.
2548 ac_old_val_w=`echo x $ac_old_val`
2549 ac_new_val_w=`echo x $ac_new_val`
2550 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2552 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2553 ac_cache_corrupted=:
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2556 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2557 eval $ac_var=\$ac_old_val
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2560 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2562 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2563 fi;;
2564 esac
2565 # Pass precious variables to config.status.
2566 if test "$ac_new_set" = set; then
2567 case $ac_new_val in
2568 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2569 *) ac_arg=$ac_var=$ac_new_val ;;
2570 esac
2571 case " $ac_configure_args " in
2572 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2573 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2574 esac
2576 done
2577 if $ac_cache_corrupted; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2581 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2582 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2584 ## -------------------- ##
2585 ## Main body of script. ##
2586 ## -------------------- ##
2588 ac_ext=c
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
2598 PACKAGE="TeXmacs"
2599 DEVEL_VERSION="1.0.7.3"
2600 DEVEL_RELEASE="1"
2601 STABLE_VERSION="1.0.7"
2602 STABLE_RELEASE="1"
2603 WINDOWS_VERSION="1.0.5"
2604 WINDOWS_RELEASE="1"
2611 #--------------------------------------------------------------------
2612 # Checks for C++ compiler
2613 #--------------------------------------------------------------------
2615 ac_ext=c
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2620 if test -n "$ac_tool_prefix"; then
2621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2622 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_CC+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2642 done
2643 done
2644 IFS=$as_save_IFS
2648 CC=$ac_cv_prog_CC
2649 if test -n "$CC"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2651 $as_echo "$CC" >&6; }
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2659 if test -z "$ac_cv_prog_CC"; then
2660 ac_ct_CC=$CC
2661 # Extract the first word of "gcc", so it can be a program name with args.
2662 set dummy gcc; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$ac_ct_CC"; then
2669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_ac_ct_CC="gcc"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2682 done
2683 done
2684 IFS=$as_save_IFS
2688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2689 if test -n "$ac_ct_CC"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2691 $as_echo "$ac_ct_CC" >&6; }
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2697 if test "x$ac_ct_CC" = x; then
2698 CC=""
2699 else
2700 case $cross_compiling:$ac_tool_warned in
2701 yes:)
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2704 ac_tool_warned=yes ;;
2705 esac
2706 CC=$ac_ct_CC
2708 else
2709 CC="$ac_cv_prog_CC"
2712 if test -z "$CC"; then
2713 if test -n "$ac_tool_prefix"; then
2714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2715 set dummy ${ac_tool_prefix}cc; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_CC+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_CC="${ac_tool_prefix}cc"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2735 done
2736 done
2737 IFS=$as_save_IFS
2741 CC=$ac_cv_prog_CC
2742 if test -n "$CC"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2744 $as_echo "$CC" >&6; }
2745 else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2753 if test -z "$CC"; then
2754 # Extract the first word of "cc", so it can be a program name with args.
2755 set dummy cc; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 ac_prog_rejected=no
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2773 ac_prog_rejected=yes
2774 continue
2776 ac_cv_prog_CC="cc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2780 done
2781 done
2782 IFS=$as_save_IFS
2784 if test $ac_prog_rejected = yes; then
2785 # We found a bogon in the path, so make sure we never use it.
2786 set dummy $ac_cv_prog_CC
2787 shift
2788 if test $# != 0; then
2789 # We chose a different compiler from the bogus one.
2790 # However, it has the same basename, so the bogon will be chosen
2791 # first if we set CC to just the basename; use the full file name.
2792 shift
2793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2809 if test -z "$CC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 for ac_prog in cl.exe
2813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_CC+set}" = set; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2834 done
2835 done
2836 IFS=$as_save_IFS
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2844 else
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2850 test -n "$CC" && break
2851 done
2853 if test -z "$CC"; then
2854 ac_ct_CC=$CC
2855 for ac_prog in cl.exe
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 if test -n "$ac_ct_CC"; then
2865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_ac_ct_CC="$ac_prog"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2878 done
2879 done
2880 IFS=$as_save_IFS
2884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885 if test -n "$ac_ct_CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2887 $as_echo "$ac_ct_CC" >&6; }
2888 else
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2894 test -n "$ac_ct_CC" && break
2895 done
2897 if test "x$ac_ct_CC" = x; then
2898 CC=""
2899 else
2900 case $cross_compiling:$ac_tool_warned in
2901 yes:)
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906 CC=$ac_ct_CC
2913 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915 as_fn_error "no acceptable C compiler found in \$PATH
2916 See \`config.log' for more details." "$LINENO" 5; }
2918 # Provide some information about the compiler.
2919 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2920 set X $ac_compile
2921 ac_compiler=$2
2922 for ac_option in --version -v -V -qversion; do
2923 { { ac_try="$ac_compiler $ac_option >&5"
2924 case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929 $as_echo "$ac_try_echo"; } >&5
2930 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2931 ac_status=$?
2932 if test -s conftest.err; then
2933 sed '10a\
2934 ... rest of stderr output deleted ...
2935 10q' conftest.err >conftest.er1
2936 cat conftest.er1 >&5
2937 rm -f conftest.er1 conftest.err
2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }
2941 done
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h. */
2945 #include <stdio.h>
2947 main ()
2949 FILE *f = fopen ("conftest.out", "w");
2950 return ferror (f) || fclose (f) != 0;
2953 return 0;
2955 _ACEOF
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2960 # of exeext.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2962 $as_echo_n "checking for C compiler default output file name... " >&6; }
2963 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965 # The possible output files:
2966 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2968 ac_rmfiles=
2969 for ac_file in $ac_files
2971 case $ac_file in
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2973 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2974 esac
2975 done
2976 rm -f $ac_rmfiles
2978 if { { ac_try="$ac_link_default"
2979 case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_link_default") 2>&5
2986 ac_status=$?
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; then :
2989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2990 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2991 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2992 # so that the user can short-circuit this test for compilers unknown to
2993 # Autoconf.
2994 for ac_file in $ac_files ''
2996 test -f "$ac_file" || continue
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3000 [ab].out )
3001 # We found the default executable, but exeext='' is most
3002 # certainly right.
3003 break;;
3004 *.* )
3005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3006 then :; else
3007 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3009 # We set ac_cv_exeext here because the later test for it is not
3010 # safe: cross compilers may not add the suffix if given an `-o'
3011 # argument, so we may need to know it at that point already.
3012 # Even if this section looks crufty: it has the advantage of
3013 # actually working.
3014 break;;
3016 break;;
3017 esac
3018 done
3019 test "$ac_cv_exeext" = no && ac_cv_exeext=
3021 else
3022 ac_file=''
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3025 $as_echo "$ac_file" >&6; }
3026 if test -z "$ac_file"; then :
3027 $as_echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 { as_fn_set_status 77
3033 as_fn_error "C compiler cannot create executables
3034 See \`config.log' for more details." "$LINENO" 5; }; }
3036 ac_exeext=$ac_cv_exeext
3038 # Check that the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3041 $as_echo_n "checking whether the C compiler works... " >&6; }
3042 # If not cross compiling, check that we can run a simple program.
3043 if test "$cross_compiling" != yes; then
3044 if { ac_try='./$ac_file'
3045 { { case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_try") 2>&5
3052 ac_status=$?
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; }; then
3055 cross_compiling=no
3056 else
3057 if test "$cross_compiling" = maybe; then
3058 cross_compiling=yes
3059 else
3060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 as_fn_error "cannot run C compiled programs.
3063 If you meant to cross compile, use \`--host'.
3064 See \`config.log' for more details." "$LINENO" 5; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3071 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3072 ac_clean_files=$ac_clean_files_save
3073 # Check that the compiler produces executables we can run. If not, either
3074 # the compiler is broken, or we cross compile.
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3076 $as_echo_n "checking whether we are cross compiling... " >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3078 $as_echo "$cross_compiling" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3081 $as_echo_n "checking for suffix of executables... " >&6; }
3082 if { { ac_try="$ac_link"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_link") 2>&5
3090 ac_status=$?
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }; then :
3093 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3094 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3095 # work properly (i.e., refer to `conftest.exe'), while it won't with
3096 # `rm'.
3097 for ac_file in conftest.exe conftest conftest.*; do
3098 test -f "$ac_file" || continue
3099 case $ac_file in
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3101 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102 break;;
3103 * ) break;;
3104 esac
3105 done
3106 else
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error "cannot compute suffix of executables: cannot compile and link
3110 See \`config.log' for more details." "$LINENO" 5; }
3112 rm -f conftest$ac_cv_exeext
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3114 $as_echo "$ac_cv_exeext" >&6; }
3116 rm -f conftest.$ac_ext
3117 EXEEXT=$ac_cv_exeext
3118 ac_exeext=$EXEEXT
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3120 $as_echo_n "checking for suffix of object files... " >&6; }
3121 if test "${ac_cv_objext+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3128 main ()
3132 return 0;
3134 _ACEOF
3135 rm -f conftest.o conftest.obj
3136 if { { ac_try="$ac_compile"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compile") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 for ac_file in conftest.o conftest.obj conftest.*; do
3148 test -f "$ac_file" || continue;
3149 case $ac_file in
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3152 break;;
3153 esac
3154 done
3155 else
3156 $as_echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error "cannot compute suffix of object files: cannot compile
3162 See \`config.log' for more details." "$LINENO" 5; }
3164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3167 $as_echo "$ac_cv_objext" >&6; }
3168 OBJEXT=$ac_cv_objext
3169 ac_objext=$OBJEXT
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3171 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3172 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3179 main ()
3181 #ifndef __GNUC__
3182 choke me
3183 #endif
3186 return 0;
3188 _ACEOF
3189 if ac_fn_c_try_compile "$LINENO"; then :
3190 ac_compiler_gnu=yes
3191 else
3192 ac_compiler_gnu=no
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3199 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3200 if test $ac_compiler_gnu = yes; then
3201 GCC=yes
3202 else
3203 GCC=
3205 ac_test_CFLAGS=${CFLAGS+set}
3206 ac_save_CFLAGS=$CFLAGS
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3208 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3209 if test "${ac_cv_prog_cc_g+set}" = set; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 ac_save_c_werror_flag=$ac_c_werror_flag
3213 ac_c_werror_flag=yes
3214 ac_cv_prog_cc_g=no
3215 CFLAGS="-g"
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3220 main ()
3224 return 0;
3226 _ACEOF
3227 if ac_fn_c_try_compile "$LINENO"; then :
3228 ac_cv_prog_cc_g=yes
3229 else
3230 CFLAGS=""
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3235 main ()
3239 return 0;
3241 _ACEOF
3242 if ac_fn_c_try_compile "$LINENO"; then :
3244 else
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3246 CFLAGS="-g"
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3251 main ()
3255 return 0;
3257 _ACEOF
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_cv_prog_cc_g=yes
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3269 $as_echo "$ac_cv_prog_cc_g" >&6; }
3270 if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS=$ac_save_CFLAGS
3272 elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3274 CFLAGS="-g -O2"
3275 else
3276 CFLAGS="-g"
3278 else
3279 if test "$GCC" = yes; then
3280 CFLAGS="-O2"
3281 else
3282 CFLAGS=
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3286 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3287 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 ac_cv_prog_cc_c89=no
3291 ac_save_CC=$CC
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294 #include <stdarg.h>
3295 #include <stdio.h>
3296 #include <sys/types.h>
3297 #include <sys/stat.h>
3298 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3299 struct buf { int x; };
3300 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3301 static char *e (p, i)
3302 char **p;
3303 int i;
3305 return p[i];
3307 static char *f (char * (*g) (char **, int), char **p, ...)
3309 char *s;
3310 va_list v;
3311 va_start (v,p);
3312 s = g (p, va_arg (v,int));
3313 va_end (v);
3314 return s;
3317 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3318 function prototypes and stuff, but not '\xHH' hex character constants.
3319 These don't provoke an error unfortunately, instead are silently treated
3320 as 'x'. The following induces an error, until -std is added to get
3321 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3322 array size at least. It's necessary to write '\x00'==0 to get something
3323 that's true only with -std. */
3324 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3326 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3327 inside strings and character constants. */
3328 #define FOO(x) 'x'
3329 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3331 int test (int i, double x);
3332 struct s1 {int (*f) (int a);};
3333 struct s2 {int (*f) (double a);};
3334 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3335 int argc;
3336 char **argv;
3338 main ()
3340 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3342 return 0;
3344 _ACEOF
3345 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3346 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3348 CC="$ac_save_CC $ac_arg"
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350 ac_cv_prog_cc_c89=$ac_arg
3352 rm -f core conftest.err conftest.$ac_objext
3353 test "x$ac_cv_prog_cc_c89" != "xno" && break
3354 done
3355 rm -f conftest.$ac_ext
3356 CC=$ac_save_CC
3359 # AC_CACHE_VAL
3360 case "x$ac_cv_prog_cc_c89" in
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3363 $as_echo "none needed" >&6; } ;;
3364 xno)
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3366 $as_echo "unsupported" >&6; } ;;
3368 CC="$CC $ac_cv_prog_cc_c89"
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3370 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3371 esac
3372 if test "x$ac_cv_prog_cc_c89" != xno; then :
3376 ac_ext=c
3377 ac_cpp='$CPP $CPPFLAGS'
3378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382 ac_ext=cpp
3383 ac_cpp='$CXXCPP $CPPFLAGS'
3384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3387 if test -z "$CXX"; then
3388 if test -n "$CCC"; then
3389 CXX=$CCC
3390 else
3391 if test -n "$ac_tool_prefix"; then
3392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_CXX+set}" = set; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$CXX"; then
3402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3415 done
3416 done
3417 IFS=$as_save_IFS
3421 CXX=$ac_cv_prog_CXX
3422 if test -n "$CXX"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3424 $as_echo "$CXX" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 test -n "$CXX" && break
3432 done
3434 if test -z "$CXX"; then
3435 ac_ct_CXX=$CXX
3436 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3438 # Extract the first word of "$ac_prog", so it can be a program name with args.
3439 set dummy $ac_prog; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 if test -n "$ac_ct_CXX"; then
3446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_ac_ct_CXX="$ac_prog"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3459 done
3460 done
3461 IFS=$as_save_IFS
3465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3466 if test -n "$ac_ct_CXX"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3468 $as_echo "$ac_ct_CXX" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3475 test -n "$ac_ct_CXX" && break
3476 done
3478 if test "x$ac_ct_CXX" = x; then
3479 CXX="g++"
3480 else
3481 case $cross_compiling:$ac_tool_warned in
3482 yes:)
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3485 ac_tool_warned=yes ;;
3486 esac
3487 CXX=$ac_ct_CXX
3493 # Provide some information about the compiler.
3494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3495 set X $ac_compile
3496 ac_compiler=$2
3497 for ac_option in --version -v -V -qversion; do
3498 { { ac_try="$ac_compiler $ac_option >&5"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3506 ac_status=$?
3507 if test -s conftest.err; then
3508 sed '10a\
3509 ... rest of stderr output deleted ...
3510 10q' conftest.err >conftest.er1
3511 cat conftest.er1 >&5
3512 rm -f conftest.er1 conftest.err
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }
3516 done
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3527 main ()
3529 #ifndef __GNUC__
3530 choke me
3531 #endif
3534 return 0;
3536 _ACEOF
3537 if ac_fn_cxx_try_compile "$LINENO"; then :
3538 ac_compiler_gnu=yes
3539 else
3540 ac_compiler_gnu=no
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3548 if test $ac_compiler_gnu = yes; then
3549 GXX=yes
3550 else
3551 GXX=
3553 ac_test_CXXFLAGS=${CXXFLAGS+set}
3554 ac_save_CXXFLAGS=$CXXFLAGS
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3561 ac_cxx_werror_flag=yes
3562 ac_cv_prog_cxx_g=no
3563 CXXFLAGS="-g"
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3568 main ()
3572 return 0;
3574 _ACEOF
3575 if ac_fn_cxx_try_compile "$LINENO"; then :
3576 ac_cv_prog_cxx_g=yes
3577 else
3578 CXXFLAGS=""
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3583 main ()
3587 return 0;
3589 _ACEOF
3590 if ac_fn_cxx_try_compile "$LINENO"; then :
3592 else
3593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3594 CXXFLAGS="-g"
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3599 main ()
3603 return 0;
3605 _ACEOF
3606 if ac_fn_cxx_try_compile "$LINENO"; then :
3607 ac_cv_prog_cxx_g=yes
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3618 if test "$ac_test_CXXFLAGS" = set; then
3619 CXXFLAGS=$ac_save_CXXFLAGS
3620 elif test $ac_cv_prog_cxx_g = yes; then
3621 if test "$GXX" = yes; then
3622 CXXFLAGS="-g -O2"
3623 else
3624 CXXFLAGS="-g"
3626 else
3627 if test "$GXX" = yes; then
3628 CXXFLAGS="-O2"
3629 else
3630 CXXFLAGS=
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 ac_ext=cpp
3640 ac_cpp='$CXXCPP $CPPFLAGS'
3641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU C++ compiler is default" >&5
3647 $as_echo_n "checking whether GNU C++ compiler is default... " >&6; }
3648 case "$GXX" in
3649 yes )
3650 GCC_VERSION=`$CC -dumpversion`
3651 GXX_VERSION=`$CXX -dumpversion`
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 $as_echo "yes" >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of gcc" >&5
3655 $as_echo_n "checking version of gcc... " >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
3657 $as_echo "$GCC_VERSION" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of g++" >&5
3659 $as_echo_n "checking version of g++... " >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GXX_VERSION" >&5
3661 $as_echo "$GXX_VERSION" >&6; }
3662 case "$GXX_VERSION" in
3663 0* | 1* | 2*)
3664 echo "old style GNU compiler"
3665 $as_echo "#define OLD_GNU_COMPILER /**/" >>confdefs.h
3668 esac
3671 GCC_VERSION="none"
3672 GXX_VERSION="none"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find GNU C++ compiler" >&5
3676 $as_echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3678 esac
3680 #--------------------------------------------------------------------
3681 # Checks for Guile
3682 #--------------------------------------------------------------------
3684 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3686 ## The GUILE_FLAGS macro.
3687 ## First, let's just see if we can find Guile at all.
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile" >&5
3689 $as_echo_n "checking for Guile... " >&6; }
3690 guile-config link > /dev/null || {
3691 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3692 exit 1
3694 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
3695 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3696 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3697 GUILE_LDFLAGS="`guile-config link`"
3698 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3702 $as_echo "yes" >&6; }
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of guile" >&5
3706 $as_echo_n "checking version of guile... " >&6; }
3707 if test -z "$GUILE_VERSION" ; then
3708 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_VERSION" >&5
3711 $as_echo "$GUILE_VERSION" >&6; }
3713 case "$GUILE_VERSION" in
3714 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3715 CONFIG_GUILE_SERIAL="A"
3717 1.6* | 1.7*)
3718 CONFIG_GUILE_SERIAL="B"
3721 CONFIG_GUILE_SERIAL="C"
3723 esac
3726 #--------------------------------------------------------------------
3727 # Checks for standard functionality
3728 #--------------------------------------------------------------------
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++-compatible X header files" >&5
3733 $as_echo_n "checking for C++-compatible X header files... " >&6; }
3734 ac_save_cppflags="$CPPFLAGS"
3735 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 #include <X11/Xlib.h>
3739 #include <X11/Xutil.h>
3741 main ()
3745 return 0;
3747 _ACEOF
3748 if ac_fn_cxx_try_compile "$LINENO"; then :
3749 echo yes
3750 else
3751 rm -rf X11
3752 mkdir X11
3753 for ac_dir in \
3754 /usr/X11/include \
3755 /usr/X11R6/include \
3756 /usr/X11R5/include \
3757 /usr/X11R4/include \
3759 /usr/include/X11 \
3760 /usr/include/X11R6 \
3761 /usr/include/X11R5 \
3762 /usr/include/X11R4 \
3764 /usr/local/X11/include \
3765 /usr/local/X11R6/include \
3766 /usr/local/X11R5/include \
3767 /usr/local/X11R4/include \
3769 /usr/local/include/X11 \
3770 /usr/local/include/X11R6 \
3771 /usr/local/include/X11R5 \
3772 /usr/local/include/X11R4 \
3774 /usr/X386/include \
3775 /usr/x386/include \
3776 /usr/XFree86/include/X11 \
3778 /usr/include \
3779 /usr/local/include \
3780 /usr/unsupported/include \
3781 /usr/athena/include \
3782 /usr/local/x11r5/include \
3783 /usr/lpp/Xamples/include \
3785 /usr/openwin/include \
3786 /usr/openwin/share/include \
3789 if test -r "$ac_dir/X11/Xlib.h"; then
3790 tm_x_includes=$ac_dir
3791 break
3793 done
3794 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3795 < "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
3796 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3797 < "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
3798 X_CFLAGS="-I.. $X_CFLAGS"
3799 echo "no; fixing"
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 CPPFLAGS="$ac_save_cppflags"
3804 ac_ext=cpp
3805 ac_cpp='$CXXCPP $CPPFLAGS'
3806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3810 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3811 if test -z "$CXXCPP"; then
3812 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 # Double quotes because CXXCPP needs to be expanded
3816 for CXXCPP in "$CXX -E" "/lib/cpp"
3818 ac_preproc_ok=false
3819 for ac_cxx_preproc_warn_flag in '' yes
3821 # Use a header file that comes with gcc, so configuring glibc
3822 # with a fresh cross-compiler works.
3823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3824 # <limits.h> exists even on freestanding compilers.
3825 # On the NeXT, cc -E runs the code through the compiler's parser,
3826 # not just through cpp. "Syntax error" is here to catch this case.
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3829 #ifdef __STDC__
3830 # include <limits.h>
3831 #else
3832 # include <assert.h>
3833 #endif
3834 Syntax error
3835 _ACEOF
3836 if ac_fn_cxx_try_cpp "$LINENO"; then :
3838 else
3839 # Broken: fails on valid input.
3840 continue
3842 rm -f conftest.err conftest.$ac_ext
3844 # OK, works on sane cases. Now check whether nonexistent headers
3845 # can be detected and how.
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <ac_nonexistent.h>
3849 _ACEOF
3850 if ac_fn_cxx_try_cpp "$LINENO"; then :
3851 # Broken: success on invalid input.
3852 continue
3853 else
3854 # Passes both tests.
3855 ac_preproc_ok=:
3856 break
3858 rm -f conftest.err conftest.$ac_ext
3860 done
3861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3862 rm -f conftest.err conftest.$ac_ext
3863 if $ac_preproc_ok; then :
3864 break
3867 done
3868 ac_cv_prog_CXXCPP=$CXXCPP
3871 CXXCPP=$ac_cv_prog_CXXCPP
3872 else
3873 ac_cv_prog_CXXCPP=$CXXCPP
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3876 $as_echo "$CXXCPP" >&6; }
3877 ac_preproc_ok=false
3878 for ac_cxx_preproc_warn_flag in '' yes
3880 # Use a header file that comes with gcc, so configuring glibc
3881 # with a fresh cross-compiler works.
3882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3883 # <limits.h> exists even on freestanding compilers.
3884 # On the NeXT, cc -E runs the code through the compiler's parser,
3885 # not just through cpp. "Syntax error" is here to catch this case.
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888 #ifdef __STDC__
3889 # include <limits.h>
3890 #else
3891 # include <assert.h>
3892 #endif
3893 Syntax error
3894 _ACEOF
3895 if ac_fn_cxx_try_cpp "$LINENO"; then :
3897 else
3898 # Broken: fails on valid input.
3899 continue
3901 rm -f conftest.err conftest.$ac_ext
3903 # OK, works on sane cases. Now check whether nonexistent headers
3904 # can be detected and how.
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3908 _ACEOF
3909 if ac_fn_cxx_try_cpp "$LINENO"; then :
3910 # Broken: success on invalid input.
3911 continue
3912 else
3913 # Passes both tests.
3914 ac_preproc_ok=:
3915 break
3917 rm -f conftest.err conftest.$ac_ext
3919 done
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.$ac_ext
3922 if $ac_preproc_ok; then :
3924 else
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
3928 See \`config.log' for more details." "$LINENO" 5; }
3931 ac_ext=cpp
3932 ac_cpp='$CXXCPP $CPPFLAGS'
3933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3939 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -z "$GREP"; then
3944 ac_path_GREP_found=false
3945 # Loop through the user's path and test for each of PROGNAME-LIST
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_prog in grep ggrep; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3954 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3955 # Check for GNU ac_path_GREP and select it if it is found.
3956 # Check for GNU $ac_path_GREP
3957 case `"$ac_path_GREP" --version 2>&1` in
3958 *GNU*)
3959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3961 ac_count=0
3962 $as_echo_n 0123456789 >"conftest.in"
3963 while :
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 $as_echo 'GREP' >> "conftest.nl"
3969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971 as_fn_arith $ac_count + 1 && ac_count=$as_val
3972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_GREP="$ac_path_GREP"
3975 ac_path_GREP_max=$ac_count
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3979 done
3980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981 esac
3983 $ac_path_GREP_found && break 3
3984 done
3985 done
3986 done
3987 IFS=$as_save_IFS
3988 if test -z "$ac_cv_path_GREP"; then
3989 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3991 else
3992 ac_cv_path_GREP=$GREP
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3997 $as_echo "$ac_cv_path_GREP" >&6; }
3998 GREP="$ac_cv_path_GREP"
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4002 $as_echo_n "checking for egrep... " >&6; }
4003 if test "${ac_cv_path_EGREP+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4007 then ac_cv_path_EGREP="$GREP -E"
4008 else
4009 if test -z "$EGREP"; then
4010 ac_path_EGREP_found=false
4011 # Loop through the user's path and test for each of PROGNAME-LIST
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_prog in egrep; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4021 # Check for GNU ac_path_EGREP and select it if it is found.
4022 # Check for GNU $ac_path_EGREP
4023 case `"$ac_path_EGREP" --version 2>&1` in
4024 *GNU*)
4025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027 ac_count=0
4028 $as_echo_n 0123456789 >"conftest.in"
4029 while :
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
4034 $as_echo 'EGREP' >> "conftest.nl"
4035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037 as_fn_arith $ac_count + 1 && ac_count=$as_val
4038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_EGREP="$ac_path_EGREP"
4041 ac_path_EGREP_max=$ac_count
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4045 done
4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047 esac
4049 $ac_path_EGREP_found && break 3
4050 done
4051 done
4052 done
4053 IFS=$as_save_IFS
4054 if test -z "$ac_cv_path_EGREP"; then
4055 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4057 else
4058 ac_cv_path_EGREP=$EGREP
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4064 $as_echo "$ac_cv_path_EGREP" >&6; }
4065 EGREP="$ac_cv_path_EGREP"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4069 $as_echo_n "checking for ANSI C header files... " >&6; }
4070 if test "${ac_cv_header_stdc+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075 #include <stdlib.h>
4076 #include <stdarg.h>
4077 #include <string.h>
4078 #include <float.h>
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_cxx_try_compile "$LINENO"; then :
4089 ac_cv_header_stdc=yes
4090 else
4091 ac_cv_header_stdc=no
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 if test $ac_cv_header_stdc = yes; then
4096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099 #include <string.h>
4101 _ACEOF
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103 $EGREP "memchr" >/dev/null 2>&1; then :
4105 else
4106 ac_cv_header_stdc=no
4108 rm -f conftest*
4112 if test $ac_cv_header_stdc = yes; then
4113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #include <stdlib.h>
4118 _ACEOF
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 $EGREP "free" >/dev/null 2>&1; then :
4122 else
4123 ac_cv_header_stdc=no
4125 rm -f conftest*
4129 if test $ac_cv_header_stdc = yes; then
4130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4131 if test "$cross_compiling" = yes; then :
4133 else
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4136 #include <ctype.h>
4137 #include <stdlib.h>
4138 #if ((' ' & 0x0FF) == 0x020)
4139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4141 #else
4142 # define ISLOWER(c) \
4143 (('a' <= (c) && (c) <= 'i') \
4144 || ('j' <= (c) && (c) <= 'r') \
4145 || ('s' <= (c) && (c) <= 'z'))
4146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4147 #endif
4149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4151 main ()
4153 int i;
4154 for (i = 0; i < 256; i++)
4155 if (XOR (islower (i), ISLOWER (i))
4156 || toupper (i) != TOUPPER (i))
4157 return 2;
4158 return 0;
4160 _ACEOF
4161 if ac_fn_cxx_try_run "$LINENO"; then :
4163 else
4164 ac_cv_header_stdc=no
4166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4167 conftest.$ac_objext conftest.beam conftest.$ac_ext
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4173 $as_echo "$ac_cv_header_stdc" >&6; }
4174 if test $ac_cv_header_stdc = yes; then
4176 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4180 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4181 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4182 inttypes.h stdint.h unistd.h
4183 do :
4184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4185 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4187 eval as_val=\$$as_ac_Header
4188 if test "x$as_val" = x""yes; then :
4189 cat >>confdefs.h <<_ACEOF
4190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4191 _ACEOF
4195 done
4198 ac_fn_cxx_check_type "$LINENO" "FILE" "ac_cv_type_FILE" "$ac_includes_default"
4199 if test "x$ac_cv_type_FILE" = x""yes; then :
4201 cat >>confdefs.h <<_ACEOF
4202 #define HAVE_FILE 1
4203 _ACEOF
4208 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
4209 if test "x$ac_cv_type_intptr_t" = x""yes; then :
4211 cat >>confdefs.h <<_ACEOF
4212 #define HAVE_INTPTR_T 1
4213 _ACEOF
4218 ac_fn_cxx_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
4219 if test "x$ac_cv_type_time_t" = x""yes; then :
4221 cat >>confdefs.h <<_ACEOF
4222 #define HAVE_TIME_T 1
4223 _ACEOF
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4229 $as_echo_n "checking for X... " >&6; }
4232 # Check whether --with-x was given.
4233 if test "${with_x+set}" = set; then :
4234 withval=$with_x;
4237 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4238 if test "x$with_x" = xno; then
4239 # The user explicitly disabled X.
4240 have_x=disabled
4241 else
4242 case $x_includes,$x_libraries in #(
4243 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
4244 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 # One or both of the vars are not set, and there is no cached value.
4248 ac_x_includes=no ac_x_libraries=no
4249 rm -f -r conftest.dir
4250 if mkdir conftest.dir; then
4251 cd conftest.dir
4252 cat >Imakefile <<'_ACEOF'
4253 incroot:
4254 @echo incroot='${INCROOT}'
4255 usrlibdir:
4256 @echo usrlibdir='${USRLIBDIR}'
4257 libdir:
4258 @echo libdir='${LIBDIR}'
4259 _ACEOF
4260 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4262 for ac_var in incroot usrlibdir libdir; do
4263 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4264 done
4265 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4266 for ac_extension in a so sl dylib la dll; do
4267 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4268 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4269 ac_im_usrlibdir=$ac_im_libdir; break
4271 done
4272 # Screen out bogus values from the imake configuration. They are
4273 # bogus both because they are the default anyway, and because
4274 # using them would break gcc on systems where it needs fixed includes.
4275 case $ac_im_incroot in
4276 /usr/include) ac_x_includes= ;;
4277 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4278 esac
4279 case $ac_im_usrlibdir in
4280 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4281 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4282 esac
4284 cd ..
4285 rm -f -r conftest.dir
4288 # Standard set of common directories for X headers.
4289 # Check X11 before X11Rn because it is often a symlink to the current release.
4290 ac_x_header_dirs='
4291 /usr/X11/include
4292 /usr/X11R7/include
4293 /usr/X11R6/include
4294 /usr/X11R5/include
4295 /usr/X11R4/include
4297 /usr/include/X11
4298 /usr/include/X11R7
4299 /usr/include/X11R6
4300 /usr/include/X11R5
4301 /usr/include/X11R4
4303 /usr/local/X11/include
4304 /usr/local/X11R7/include
4305 /usr/local/X11R6/include
4306 /usr/local/X11R5/include
4307 /usr/local/X11R4/include
4309 /usr/local/include/X11
4310 /usr/local/include/X11R7
4311 /usr/local/include/X11R6
4312 /usr/local/include/X11R5
4313 /usr/local/include/X11R4
4315 /usr/X386/include
4316 /usr/x386/include
4317 /usr/XFree86/include/X11
4319 /usr/include
4320 /usr/local/include
4321 /usr/unsupported/include
4322 /usr/athena/include
4323 /usr/local/x11r5/include
4324 /usr/lpp/Xamples/include
4326 /usr/openwin/include
4327 /usr/openwin/share/include'
4329 if test "$ac_x_includes" = no; then
4330 # Guess where to find include files, by looking for Xlib.h.
4331 # First, try using that file with no special directory specified.
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <X11/Xlib.h>
4335 _ACEOF
4336 if ac_fn_cxx_try_cpp "$LINENO"; then :
4337 # We can compile using X headers with no special include directory.
4338 ac_x_includes=
4339 else
4340 for ac_dir in $ac_x_header_dirs; do
4341 if test -r "$ac_dir/X11/Xlib.h"; then
4342 ac_x_includes=$ac_dir
4343 break
4345 done
4347 rm -f conftest.err conftest.$ac_ext
4348 fi # $ac_x_includes = no
4350 if test "$ac_x_libraries" = no; then
4351 # Check for the libraries.
4352 # See if we find them without any special options.
4353 # Don't add to $LIBS permanently.
4354 ac_save_LIBS=$LIBS
4355 LIBS="-lX11 $LIBS"
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4358 #include <X11/Xlib.h>
4360 main ()
4362 XrmInitialize ()
4364 return 0;
4366 _ACEOF
4367 if ac_fn_cxx_try_link "$LINENO"; then :
4368 LIBS=$ac_save_LIBS
4369 # We can link X programs with no special library path.
4370 ac_x_libraries=
4371 else
4372 LIBS=$ac_save_LIBS
4373 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4375 # Don't even attempt the hair of trying to link an X program!
4376 for ac_extension in a so sl dylib la dll; do
4377 if test -r "$ac_dir/libX11.$ac_extension"; then
4378 ac_x_libraries=$ac_dir
4379 break 2
4381 done
4382 done
4384 rm -f core conftest.err conftest.$ac_objext \
4385 conftest$ac_exeext conftest.$ac_ext
4386 fi # $ac_x_libraries = no
4388 case $ac_x_includes,$ac_x_libraries in #(
4389 no,* | *,no | *\'*)
4390 # Didn't find X, or a directory has "'" in its name.
4391 ac_cv_have_x="have_x=no";; #(
4393 # Record where we found X for the cache.
4394 ac_cv_have_x="have_x=yes\
4395 ac_x_includes='$ac_x_includes'\
4396 ac_x_libraries='$ac_x_libraries'"
4397 esac
4399 ;; #(
4400 *) have_x=yes;;
4401 esac
4402 eval "$ac_cv_have_x"
4403 fi # $with_x != no
4405 if test "$have_x" != yes; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4407 $as_echo "$have_x" >&6; }
4408 no_x=yes
4409 else
4410 # If each of the values was on the command line, it overrides each guess.
4411 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4412 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4413 # Update the cache value to reflect the command line values.
4414 ac_cv_have_x="have_x=yes\
4415 ac_x_includes='$x_includes'\
4416 ac_x_libraries='$x_libraries'"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4418 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4421 if test "$no_x" = yes; then
4422 # Not all programs may use this symbol, but it does not hurt to define it.
4424 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4426 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4427 else
4428 if test -n "$x_includes"; then
4429 X_CFLAGS="$X_CFLAGS -I$x_includes"
4432 # It would also be nice to do this for all -L options, not just this one.
4433 if test -n "$x_libraries"; then
4434 X_LIBS="$X_LIBS -L$x_libraries"
4435 # For Solaris; some versions of Sun CC require a space after -R and
4436 # others require no space. Words are not sufficient . . . .
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4438 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4439 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4440 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4441 ac_cxx_werror_flag=yes
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4446 main ()
4450 return 0;
4452 _ACEOF
4453 if ac_fn_cxx_try_link "$LINENO"; then :
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 X_LIBS="$X_LIBS -R$x_libraries"
4457 else
4458 LIBS="$ac_xsave_LIBS -R $x_libraries"
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4463 main ()
4467 return 0;
4469 _ACEOF
4470 if ac_fn_cxx_try_link "$LINENO"; then :
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4473 X_LIBS="$X_LIBS -R $x_libraries"
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4476 $as_echo "neither works" >&6; }
4478 rm -f core conftest.err conftest.$ac_objext \
4479 conftest$ac_exeext conftest.$ac_ext
4481 rm -f core conftest.err conftest.$ac_objext \
4482 conftest$ac_exeext conftest.$ac_ext
4483 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4484 LIBS=$ac_xsave_LIBS
4487 # Check for system-dependent libraries X programs must link with.
4488 # Do this before checking for the system-independent R6 libraries
4489 # (-lICE), since we may need -lsocket or whatever for X linking.
4491 if test "$ISC" = yes; then
4492 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4493 else
4494 # Martyn Johnson says this is needed for Ultrix, if the X
4495 # libraries were built with DECnet support. And Karl Berry says
4496 # the Alpha needs dnet_stub (dnet does not exist).
4497 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4501 /* Override any GCC internal prototype to avoid an error.
4502 Use char because int might match the return type of a GCC
4503 builtin and then its argument prototype would still apply. */
4504 #ifdef __cplusplus
4505 extern "C"
4506 #endif
4507 char XOpenDisplay ();
4509 main ()
4511 return XOpenDisplay ();
4513 return 0;
4515 _ACEOF
4516 if ac_fn_cxx_try_link "$LINENO"; then :
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4520 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4521 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 ac_check_lib_save_LIBS=$LIBS
4525 LIBS="-ldnet $LIBS"
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4529 /* Override any GCC internal prototype to avoid an error.
4530 Use char because int might match the return type of a GCC
4531 builtin and then its argument prototype would still apply. */
4532 #ifdef __cplusplus
4533 extern "C"
4534 #endif
4535 char dnet_ntoa ();
4537 main ()
4539 return dnet_ntoa ();
4541 return 0;
4543 _ACEOF
4544 if ac_fn_cxx_try_link "$LINENO"; then :
4545 ac_cv_lib_dnet_dnet_ntoa=yes
4546 else
4547 ac_cv_lib_dnet_dnet_ntoa=no
4549 rm -f core conftest.err conftest.$ac_objext \
4550 conftest$ac_exeext conftest.$ac_ext
4551 LIBS=$ac_check_lib_save_LIBS
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4554 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4555 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
4556 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4559 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4561 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4562 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 ac_check_lib_save_LIBS=$LIBS
4566 LIBS="-ldnet_stub $LIBS"
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4570 /* Override any GCC internal prototype to avoid an error.
4571 Use char because int might match the return type of a GCC
4572 builtin and then its argument prototype would still apply. */
4573 #ifdef __cplusplus
4574 extern "C"
4575 #endif
4576 char dnet_ntoa ();
4578 main ()
4580 return dnet_ntoa ();
4582 return 0;
4584 _ACEOF
4585 if ac_fn_cxx_try_link "$LINENO"; then :
4586 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4587 else
4588 ac_cv_lib_dnet_stub_dnet_ntoa=no
4590 rm -f core conftest.err conftest.$ac_objext \
4591 conftest$ac_exeext conftest.$ac_ext
4592 LIBS=$ac_check_lib_save_LIBS
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4595 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4596 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
4597 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4602 rm -f core conftest.err conftest.$ac_objext \
4603 conftest$ac_exeext conftest.$ac_ext
4604 LIBS="$ac_xsave_LIBS"
4606 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4607 # to get the SysV transport functions.
4608 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4609 # needs -lnsl.
4610 # The nsl library prevents programs from opening the X display
4611 # on Irix 5.2, according to T.E. Dickey.
4612 # The functions gethostbyname, getservbyname, and inet_addr are
4613 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4614 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4615 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
4619 if test $ac_cv_func_gethostbyname = no; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4621 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4622 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-lnsl $LIBS"
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4630 /* Override any GCC internal prototype to avoid an error.
4631 Use char because int might match the return type of a GCC
4632 builtin and then its argument prototype would still apply. */
4633 #ifdef __cplusplus
4634 extern "C"
4635 #endif
4636 char gethostbyname ();
4638 main ()
4640 return gethostbyname ();
4642 return 0;
4644 _ACEOF
4645 if ac_fn_cxx_try_link "$LINENO"; then :
4646 ac_cv_lib_nsl_gethostbyname=yes
4647 else
4648 ac_cv_lib_nsl_gethostbyname=no
4650 rm -f core conftest.err conftest.$ac_objext \
4651 conftest$ac_exeext conftest.$ac_ext
4652 LIBS=$ac_check_lib_save_LIBS
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4655 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4656 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
4657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4660 if test $ac_cv_lib_nsl_gethostbyname = no; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4662 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4663 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 ac_check_lib_save_LIBS=$LIBS
4667 LIBS="-lbsd $LIBS"
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4671 /* Override any GCC internal prototype to avoid an error.
4672 Use char because int might match the return type of a GCC
4673 builtin and then its argument prototype would still apply. */
4674 #ifdef __cplusplus
4675 extern "C"
4676 #endif
4677 char gethostbyname ();
4679 main ()
4681 return gethostbyname ();
4683 return 0;
4685 _ACEOF
4686 if ac_fn_cxx_try_link "$LINENO"; then :
4687 ac_cv_lib_bsd_gethostbyname=yes
4688 else
4689 ac_cv_lib_bsd_gethostbyname=no
4691 rm -f core conftest.err conftest.$ac_objext \
4692 conftest$ac_exeext conftest.$ac_ext
4693 LIBS=$ac_check_lib_save_LIBS
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4696 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4697 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
4698 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4704 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4705 # socket/setsockopt and other routines are undefined under SCO ODT
4706 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4707 # on later versions), says Simon Leinen: it contains gethostby*
4708 # variants that don't use the name server (or something). -lsocket
4709 # must be given before -lnsl if both are needed. We assume that
4710 # if connect needs -lnsl, so does gethostbyname.
4711 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
4712 if test "x$ac_cv_func_connect" = x""yes; then :
4716 if test $ac_cv_func_connect = no; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4718 $as_echo_n "checking for connect in -lsocket... " >&6; }
4719 if test "${ac_cv_lib_socket_connect+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 ac_check_lib_save_LIBS=$LIBS
4723 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4727 /* Override any GCC internal prototype to avoid an error.
4728 Use char because int might match the return type of a GCC
4729 builtin and then its argument prototype would still apply. */
4730 #ifdef __cplusplus
4731 extern "C"
4732 #endif
4733 char connect ();
4735 main ()
4737 return connect ();
4739 return 0;
4741 _ACEOF
4742 if ac_fn_cxx_try_link "$LINENO"; then :
4743 ac_cv_lib_socket_connect=yes
4744 else
4745 ac_cv_lib_socket_connect=no
4747 rm -f core conftest.err conftest.$ac_objext \
4748 conftest$ac_exeext conftest.$ac_ext
4749 LIBS=$ac_check_lib_save_LIBS
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4752 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4753 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
4754 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4759 # Guillermo Gomez says -lposix is necessary on A/UX.
4760 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
4761 if test "x$ac_cv_func_remove" = x""yes; then :
4765 if test $ac_cv_func_remove = no; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4767 $as_echo_n "checking for remove in -lposix... " >&6; }
4768 if test "${ac_cv_lib_posix_remove+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 ac_check_lib_save_LIBS=$LIBS
4772 LIBS="-lposix $LIBS"
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4776 /* Override any GCC internal prototype to avoid an error.
4777 Use char because int might match the return type of a GCC
4778 builtin and then its argument prototype would still apply. */
4779 #ifdef __cplusplus
4780 extern "C"
4781 #endif
4782 char remove ();
4784 main ()
4786 return remove ();
4788 return 0;
4790 _ACEOF
4791 if ac_fn_cxx_try_link "$LINENO"; then :
4792 ac_cv_lib_posix_remove=yes
4793 else
4794 ac_cv_lib_posix_remove=no
4796 rm -f core conftest.err conftest.$ac_objext \
4797 conftest$ac_exeext conftest.$ac_ext
4798 LIBS=$ac_check_lib_save_LIBS
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4801 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4802 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
4803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4808 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4809 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4810 if test "x$ac_cv_func_shmat" = x""yes; then :
4814 if test $ac_cv_func_shmat = no; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4816 $as_echo_n "checking for shmat in -lipc... " >&6; }
4817 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 ac_check_lib_save_LIBS=$LIBS
4821 LIBS="-lipc $LIBS"
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4825 /* Override any GCC internal prototype to avoid an error.
4826 Use char because int might match the return type of a GCC
4827 builtin and then its argument prototype would still apply. */
4828 #ifdef __cplusplus
4829 extern "C"
4830 #endif
4831 char shmat ();
4833 main ()
4835 return shmat ();
4837 return 0;
4839 _ACEOF
4840 if ac_fn_cxx_try_link "$LINENO"; then :
4841 ac_cv_lib_ipc_shmat=yes
4842 else
4843 ac_cv_lib_ipc_shmat=no
4845 rm -f core conftest.err conftest.$ac_objext \
4846 conftest$ac_exeext conftest.$ac_ext
4847 LIBS=$ac_check_lib_save_LIBS
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4850 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4851 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
4852 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4858 # Check for libraries that X11R6 Xt/Xaw programs need.
4859 ac_save_LDFLAGS=$LDFLAGS
4860 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4861 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4862 # check for ICE first), but we must link in the order -lSM -lICE or
4863 # we get undefined symbols. So assume we have SM if we have ICE.
4864 # These have to be linked with before -lX11, unlike the other
4865 # libraries we check for below, so use a different variable.
4866 # John Interrante, Karl Berry
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4868 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4869 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 ac_check_lib_save_LIBS=$LIBS
4873 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4877 /* Override any GCC internal prototype to avoid an error.
4878 Use char because int might match the return type of a GCC
4879 builtin and then its argument prototype would still apply. */
4880 #ifdef __cplusplus
4881 extern "C"
4882 #endif
4883 char IceConnectionNumber ();
4885 main ()
4887 return IceConnectionNumber ();
4889 return 0;
4891 _ACEOF
4892 if ac_fn_cxx_try_link "$LINENO"; then :
4893 ac_cv_lib_ICE_IceConnectionNumber=yes
4894 else
4895 ac_cv_lib_ICE_IceConnectionNumber=no
4897 rm -f core conftest.err conftest.$ac_objext \
4898 conftest$ac_exeext conftest.$ac_ext
4899 LIBS=$ac_check_lib_save_LIBS
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4902 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4903 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
4904 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4907 LDFLAGS=$ac_save_LDFLAGS
4911 for ac_header in pty.h util.h
4912 do :
4913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4914 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4915 eval as_val=\$$as_ac_Header
4916 if test "x$as_val" = x""yes; then :
4917 cat >>confdefs.h <<_ACEOF
4918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919 _ACEOF
4923 done
4925 for ac_func in gettimeofday
4926 do :
4927 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
4928 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
4929 cat >>confdefs.h <<_ACEOF
4930 #define HAVE_GETTIMEOFDAY 1
4931 _ACEOF
4934 done
4937 #--------------------------------------------------------------------
4938 # Checks for dl library
4939 #--------------------------------------------------------------------
4941 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
4942 if test "x$ac_cv_func_dlopen" = x""yes; then :
4946 if test "$ac_cv_func_dl" = "yes"; then
4948 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 ac_check_lib_save_LIBS=$LIBS
4957 LIBS="-ldl $LIBS"
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4961 /* Override any GCC internal prototype to avoid an error.
4962 Use char because int might match the return type of a GCC
4963 builtin and then its argument prototype would still apply. */
4964 #ifdef __cplusplus
4965 extern "C"
4966 #endif
4967 char dlopen ();
4969 main ()
4971 return dlopen ();
4973 return 0;
4975 _ACEOF
4976 if ac_fn_cxx_try_link "$LINENO"; then :
4977 ac_cv_lib_dl_dlopen=yes
4978 else
4979 ac_cv_lib_dl_dlopen=no
4981 rm -f core conftest.err conftest.$ac_objext \
4982 conftest$ac_exeext conftest.$ac_ext
4983 LIBS=$ac_check_lib_save_LIBS
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4987 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
4988 cat >>confdefs.h <<_ACEOF
4989 #define HAVE_LIBDL 1
4990 _ACEOF
4992 LIBS="-ldl $LIBS"
4996 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
4997 for ac_func in dlopen
4998 do :
4999 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5000 if test "x$ac_cv_func_dlopen" = x""yes; then :
5001 cat >>confdefs.h <<_ACEOF
5002 #define HAVE_DLOPEN 1
5003 _ACEOF
5006 done
5008 CONFIG_BDL="-ldl"
5010 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
5014 $as_echo_n "checking for dld_link in -ldld... " >&6; }
5015 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 ac_check_lib_save_LIBS=$LIBS
5019 LIBS="-ldld $LIBS"
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5023 /* Override any GCC internal prototype to avoid an error.
5024 Use char because int might match the return type of a GCC
5025 builtin and then its argument prototype would still apply. */
5026 #ifdef __cplusplus
5027 extern "C"
5028 #endif
5029 char dld_link ();
5031 main ()
5033 return dld_link ();
5035 return 0;
5037 _ACEOF
5038 if ac_fn_cxx_try_link "$LINENO"; then :
5039 ac_cv_lib_dld_dld_link=yes
5040 else
5041 ac_cv_lib_dld_dld_link=no
5043 rm -f core conftest.err conftest.$ac_objext \
5044 conftest$ac_exeext conftest.$ac_ext
5045 LIBS=$ac_check_lib_save_LIBS
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
5048 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
5049 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
5050 cat >>confdefs.h <<_ACEOF
5051 #define HAVE_LIBDLD 1
5052 _ACEOF
5054 LIBS="-ldld $LIBS"
5058 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
5059 CONFIG_BDL="-ldl"
5061 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5063 else
5064 for ac_func in shl_load
5065 do :
5066 ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
5067 if test "x$ac_cv_func_shl_load" = x""yes; then :
5068 cat >>confdefs.h <<_ACEOF
5069 #define HAVE_SHL_LOAD 1
5070 _ACEOF
5073 done
5075 if test "$ac_cv_func_shl_load" = "yes"; then
5076 CONFIG_BDL="-ldl"
5078 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5080 else
5081 for ac_func in dlopen
5082 do :
5083 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5084 if test "x$ac_cv_func_dlopen" = x""yes; then :
5085 cat >>confdefs.h <<_ACEOF
5086 #define HAVE_DLOPEN 1
5087 _ACEOF
5090 done
5092 if test "$ac_cv_func_dlopen" = "yes"; then
5094 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5103 #--------------------------------------------------------------------
5104 # Checks for iconv library
5105 #--------------------------------------------------------------------
5108 # Check whether --with-iconv was given.
5109 if test "${with_iconv+set}" = set; then :
5110 withval=$with_iconv;
5114 # Check for iconv
5115 # Modified from GNOME's libxml2 configure.in
5117 ac_ext=c
5118 ac_cpp='$CPP $CPPFLAGS'
5119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122 # compile C to avoid the 'const char**' problem
5124 SAVE_CPPFLAGS="$CPPFLAGS"
5125 SAVE_LDFLAGS="$LDFLAGS"
5126 SAVE_LIBS="$LIBS"
5127 if test "$with_iconv" = "no" ; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling iconv support" >&5
5129 $as_echo "disabling iconv support" >&6; }
5130 else
5131 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
5132 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
5133 LDFLAGS="$ICONV_LDFLAGS"
5135 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
5136 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
5137 LDFLAGS="-L$with_iconv/lib"
5138 ICONV_CFLAGS="-I$with_iconv/include"
5139 ICONV_LDFLAGS="-L$with_iconv/lib"
5142 ac_ext=c
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5148 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5149 # On Suns, sometimes $CPP names a directory.
5150 if test -n "$CPP" && test -d "$CPP"; then
5151 CPP=
5153 if test -z "$CPP"; then
5154 if test "${ac_cv_prog_CPP+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 # Double quotes because CPP needs to be expanded
5158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5160 ac_preproc_ok=false
5161 for ac_c_preproc_warn_flag in '' yes
5163 # Use a header file that comes with gcc, so configuring glibc
5164 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser,
5168 # not just through cpp. "Syntax error" is here to catch this case.
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171 #ifdef __STDC__
5172 # include <limits.h>
5173 #else
5174 # include <assert.h>
5175 #endif
5176 Syntax error
5177 _ACEOF
5178 if ac_fn_c_try_cpp "$LINENO"; then :
5180 else
5181 # Broken: fails on valid input.
5182 continue
5184 rm -f conftest.err conftest.$ac_ext
5186 # OK, works on sane cases. Now check whether nonexistent headers
5187 # can be detected and how.
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190 #include <ac_nonexistent.h>
5191 _ACEOF
5192 if ac_fn_c_try_cpp "$LINENO"; then :
5193 # Broken: success on invalid input.
5194 continue
5195 else
5196 # Passes both tests.
5197 ac_preproc_ok=:
5198 break
5200 rm -f conftest.err conftest.$ac_ext
5202 done
5203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204 rm -f conftest.err conftest.$ac_ext
5205 if $ac_preproc_ok; then :
5206 break
5209 done
5210 ac_cv_prog_CPP=$CPP
5213 CPP=$ac_cv_prog_CPP
5214 else
5215 ac_cv_prog_CPP=$CPP
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5218 $as_echo "$CPP" >&6; }
5219 ac_preproc_ok=false
5220 for ac_c_preproc_warn_flag in '' yes
5222 # Use a header file that comes with gcc, so configuring glibc
5223 # with a fresh cross-compiler works.
5224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 # <limits.h> exists even on freestanding compilers.
5226 # On the NeXT, cc -E runs the code through the compiler's parser,
5227 # not just through cpp. "Syntax error" is here to catch this case.
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 #ifdef __STDC__
5231 # include <limits.h>
5232 #else
5233 # include <assert.h>
5234 #endif
5235 Syntax error
5236 _ACEOF
5237 if ac_fn_c_try_cpp "$LINENO"; then :
5239 else
5240 # Broken: fails on valid input.
5241 continue
5243 rm -f conftest.err conftest.$ac_ext
5245 # OK, works on sane cases. Now check whether nonexistent headers
5246 # can be detected and how.
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <ac_nonexistent.h>
5250 _ACEOF
5251 if ac_fn_c_try_cpp "$LINENO"; then :
5252 # Broken: success on invalid input.
5253 continue
5254 else
5255 # Passes both tests.
5256 ac_preproc_ok=:
5257 break
5259 rm -f conftest.err conftest.$ac_ext
5261 done
5262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5263 rm -f conftest.err conftest.$ac_ext
5264 if $ac_preproc_ok; then :
5266 else
5267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5269 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5270 See \`config.log' for more details." "$LINENO" 5; }
5273 ac_ext=c
5274 ac_cpp='$CPP $CPPFLAGS'
5275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5281 if test "x$ac_cv_header_iconv_h" = x""yes; then :
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5283 $as_echo_n "checking for iconv... " >&6; }
5286 # ac_fn_c_try_link LINENO
5287 # -----------------------
5288 # Try to link conftest.$ac_ext, and return whether this succeeded.
5289 ac_fn_c_try_link ()
5291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5292 rm -f conftest.$ac_objext conftest$ac_exeext
5293 if { { ac_try="$ac_link"
5294 case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297 esac
5298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5299 $as_echo "$ac_try_echo"; } >&5
5300 (eval "$ac_link") 2>conftest.err
5301 ac_status=$?
5302 if test -s conftest.err; then
5303 grep -v '^ *+' conftest.err >conftest.er1
5304 cat conftest.er1 >&5
5305 mv -f conftest.er1 conftest.err
5307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308 test $ac_status = 0; } && {
5309 test -z "$ac_c_werror_flag" ||
5310 test ! -s conftest.err
5311 } && test -s conftest$ac_exeext && {
5312 test "$cross_compiling" = yes ||
5313 $as_test_x conftest$ac_exeext
5314 }; then :
5315 ac_retval=0
5316 else
5317 $as_echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5320 ac_retval=1
5322 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
5323 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
5324 # interfere with the next link command; also delete a directory that is
5325 # left behind by Apple's compiler. We do this before executing the actions.
5326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5328 return $ac_retval
5330 } # ac_fn_c_try_link
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5334 #include <stdlib.h>
5335 #include <iconv.h>
5338 main ()
5341 iconv_t cd = iconv_open ("","");
5342 iconv (cd, NULL, NULL, NULL, NULL);
5345 return 0;
5347 _ACEOF
5348 if ac_fn_c_try_link "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5353 $as_echo "#define USE_ICONV 1" >>confdefs.h
5356 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
5361 $as_echo_n "checking for iconv in -liconv... " >&6; }
5362 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
5363 LIBS="-liconv" # for AC_TRY_LINK
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5367 #include <stdlib.h>
5368 #include <iconv.h>
5371 main ()
5374 iconv_t cd = iconv_open ("","");
5375 iconv (cd, NULL, NULL, NULL, NULL);
5378 return 0;
5380 _ACEOF
5381 if ac_fn_c_try_link "$LINENO"; then :
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384 $as_echo "yes" >&6; }
5386 $as_echo "#define USE_ICONV 1" >>confdefs.h
5388 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
5390 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: absence of iconv may crash HTML import" >&5
5395 $as_echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
5398 rm -f core conftest.err conftest.$ac_objext \
5399 conftest$ac_exeext conftest.$ac_ext
5401 rm -f core conftest.err conftest.$ac_objext \
5402 conftest$ac_exeext conftest.$ac_ext
5408 CPPFLAGS="$SAVE_CPPFLAGS"
5409 LDFLAGS="$SAVE_LDFLAGS"
5410 LIBS="$SAVE_LIBS"
5411 ac_ext=cpp
5412 ac_cpp='$CXXCPP $CPPFLAGS'
5413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5416 # restore C++ language
5420 #--------------------------------------------------------------------
5421 # Checks for freetype library
5422 #--------------------------------------------------------------------
5425 # Check whether --with-freetype was given.
5426 if test "${with_freetype+set}" = set; then :
5427 withval=$with_freetype;
5431 SAVE_CPPFLAGS="$CPPFLAGS"
5432 SAVE_LDFLAGS="$LDFLAGS"
5433 SAVE_LIBS="$LIBS"
5434 if test "$with_freetype" = "no" ; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling freetype support" >&5
5436 $as_echo "disabling freetype support" >&6; }
5437 else
5438 if test -z "$FREETYPE_CFLAGS"; then
5439 FREETYPE_CFLAGS=`freetype-config --cflags`
5441 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
5442 if test -z "$FREETYPE_LDFLAGS"; then
5443 FREETYPE_LDFLAGS=`freetype-config --libs`
5445 LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
5446 ac_fn_cxx_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5447 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
5449 $as_echo_n "checking for freetype... " >&6; }
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5453 #include <ft2build.h>
5454 #include FT_FREETYPE_H
5457 main ()
5460 FT_Library ft_library;
5461 (void) FT_Init_FreeType (&ft_library);
5464 return 0;
5466 _ACEOF
5467 if ac_fn_cxx_try_link "$LINENO"; then :
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470 $as_echo "yes" >&6; }
5472 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
5474 FREETYPE_CFLAGS="$CPPFLAGS"
5475 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
5476 FREETYPE_LDFLAGS="$LIBS"
5478 $as_echo "#define LINKED_FREETYPE 1" >>confdefs.h
5482 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5487 rm -f core conftest.err conftest.$ac_objext \
5488 conftest$ac_exeext conftest.$ac_ext
5494 CPPFLAGS="$SAVE_CPPFLAGS"
5495 LDFLAGS="$SAVE_LDFLAGS"
5496 LIBS="$SAVE_LIBS"
5501 #--------------------------------------------------------------------
5502 # Checks for Cairo library
5503 #--------------------------------------------------------------------
5506 # Check whether --with-cairo was given.
5507 if test "${with_cairo+set}" = set; then :
5508 withval=$with_cairo;
5512 SAVE_CPPFLAGS="$CPPFLAGS"
5513 SAVE_LDFLAGS="$LDFLAGS"
5514 SAVE_LIBS="$LIBS"
5515 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling cairo support" >&5
5517 $as_echo "disabling cairo support" >&6; }
5518 else
5519 CPPFLAGS=`pkg-config --cflags cairo`
5520 LIBS=`pkg-config --libs cairo`
5521 ac_fn_cxx_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
5522 if test "x$ac_cv_header_cairo_h" = x""yes; then :
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
5524 $as_echo_n "checking for cairo... " >&6; }
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5528 #include <cairo.h>
5531 main ()
5534 cairo_surface_t *surface;
5535 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
5538 return 0;
5540 _ACEOF
5541 if ac_fn_cxx_try_link "$LINENO"; then :
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5544 $as_echo "yes" >&6; }
5546 $as_echo "#define USE_CAIRO 1" >>confdefs.h
5548 CAIRO_CFLAGS="$CPPFLAGS"
5549 if test "$with_cairo" = "linked" ; then
5550 CAIRO_LDFLAGS="$LIBS"
5552 $as_echo "#define LINKED_CAIRO 1" >>confdefs.h
5556 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5561 rm -f core conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
5568 CPPFLAGS="$SAVE_CPPFLAGS"
5569 LDFLAGS="$SAVE_LDFLAGS"
5570 LIBS="$SAVE_LIBS"
5575 #--------------------------------------------------------------------
5576 # Checks for Imlib2 library
5577 #--------------------------------------------------------------------
5580 # Check whether --with-imlib2 was given.
5581 if test "${with_imlib2+set}" = set; then :
5582 withval=$with_imlib2;
5586 SAVE_CPPFLAGS="$CPPFLAGS"
5587 SAVE_LDFLAGS="$LDFLAGS"
5588 SAVE_LIBS="$LIBS"
5589 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling imlib2 support" >&5
5591 $as_echo "disabling imlib2 support" >&6; }
5592 else
5593 CPPFLAGS=`imlib2-config --cflags`
5594 LIBS=`imlib2-config --libs`
5595 ac_fn_cxx_check_header_mongrel "$LINENO" "Imlib2.h" "ac_cv_header_Imlib2_h" "$ac_includes_default"
5596 if test "x$ac_cv_header_Imlib2_h" = x""yes; then :
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib2" >&5
5598 $as_echo_n "checking for imlib2... " >&6; }
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5602 #include <X11/Xlib.h>
5603 #include <Imlib2.h>
5604 #include <stdio.h>
5605 #include <string.h>
5608 main ()
5611 Imlib_Image image= imlib_load_image("");
5614 return 0;
5616 _ACEOF
5617 if ac_fn_cxx_try_link "$LINENO"; then :
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620 $as_echo "yes" >&6; }
5622 $as_echo "#define USE_IMLIB2 1" >>confdefs.h
5624 IMLIB2_CFLAGS="$CPPFLAGS"
5625 if test "$with_imlib2" = "linked" ; then
5626 IMLIB2_LDFLAGS="$LIBS"
5628 $as_echo "#define LINKED_IMLIB2 1" >>confdefs.h
5632 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5637 rm -f core conftest.err conftest.$ac_objext \
5638 conftest$ac_exeext conftest.$ac_ext
5644 CPPFLAGS="$SAVE_CPPFLAGS"
5645 LDFLAGS="$SAVE_LDFLAGS"
5646 LIBS="$SAVE_LIBS"
5651 #--------------------------------------------------------------------
5652 # Checks for Axel library
5653 #--------------------------------------------------------------------
5656 # Check whether --with-axel was given.
5657 if test "${with_axel+set}" = set; then :
5658 withval=$with_axel;
5662 SAVE_CPPFLAGS="$CPPFLAGS"
5663 SAVE_LDFLAGS="$LDFLAGS"
5664 SAVE_LIBS="$LIBS"
5665 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling axel support" >&5
5667 $as_echo "disabling axel support" >&6; }
5668 else
5669 CPPFLAGS=`axel-config --cflags`
5670 LIBS=`axel-config --libs`
5671 ac_fn_cxx_check_header_mongrel "$LINENO" "QGui/Viewer.h" "ac_cv_header_QGui_Viewer_h" "$ac_includes_default"
5672 if test "x$ac_cv_header_QGui_Viewer_h" = x""yes; then :
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for axel" >&5
5674 $as_echo_n "checking for axel... " >&6; }
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5678 #include <QGui/Viewer.h>
5681 main ()
5684 Viewer viewer(0);
5687 return 0;
5689 _ACEOF
5690 if ac_fn_cxx_try_link "$LINENO"; then :
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 $as_echo "yes" >&6; }
5695 $as_echo "#define USE_AXEL 1" >>confdefs.h
5697 AXEL_CFLAGS="$CPPFLAGS"
5698 if test "$with_axel" = "linked" ; then
5699 AXEL_LDFLAGS="$LIBS"
5701 $as_echo "#define LINKED_AXEL 1" >>confdefs.h
5705 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5710 rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5717 CPPFLAGS="$SAVE_CPPFLAGS"
5718 LDFLAGS="$SAVE_LDFLAGS"
5719 LIBS="$SAVE_LIBS"
5724 #--------------------------------------------------------------------
5725 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
5726 #--------------------------------------------------------------------
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ... arguments behave correctly" >&5
5729 $as_echo_n "checking whether ... arguments behave correctly... " >&6; }
5730 if test -z "$GUILE_CFLAGS"; then
5731 CXXFLAGS="`guile-config compile`"
5732 else
5733 CXXFLAGS="$GUILE_CFLAGS"
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5738 #include <guile/gh.h>
5739 #include <libguile.h>
5740 typedef SCM (*FN)(...);
5741 static SCM identity (SCM x) { return x; }
5742 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
5745 main ()
5750 return 0;
5752 _ACEOF
5753 if ac_fn_cxx_try_compile "$LINENO"; then :
5756 $as_echo "#define DOTS_OK 1" >>confdefs.h
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5761 else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 CXXFLAGS=""
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the size_t of guile strings" >&5
5771 $as_echo_n "checking the size_t of guile strings... " >&6; }
5772 if test -z "$GUILE_CFLAGS"; then
5773 CXXFLAGS="`guile-config compile`"
5774 else
5775 CXXFLAGS="$GUILE_CFLAGS"
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5780 #include <guile/gh.h>
5781 #include <libguile.h>
5782 void print_string (SCM s) {
5783 int len_r;
5784 char* r= gh_scm2newstr (s, &len_r); }
5787 main ()
5792 return 0;
5794 _ACEOF
5795 if ac_fn_cxx_try_compile "$LINENO"; then :
5798 $as_echo "#define guile_str_size_t int" >>confdefs.h
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
5801 $as_echo "int" >&6; }
5803 else
5806 $as_echo "#define guile_str_size_t size_t" >>confdefs.h
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
5809 $as_echo "size_t" >&6; }
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 CXXFLAGS=""
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if statically linking with guile works" >&5
5816 $as_echo_n "checking if statically linking with guile works... " >&6; }
5817 SAVE_CPPFLAGS="$CPPFLAGS"
5818 SAVE_LDFLAGS="$LDFLAGS"
5819 SAVE_LIBS="$LIBS"
5820 CPPFLAGS="$GUILE_CFLAGS"
5821 LDFLAGS="-static"
5822 LIBS="$GUILE_LDFLAGS"
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5826 #include <guile/gh.h>
5827 $CONFIG_DOTS
5830 main ()
5833 struct dummy {
5834 static void my_main (int argc, char** argv) {}
5835 static void install_guile () {
5836 #ifdef DOTS_OK
5837 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5838 #else
5839 gh_enter (0, NULL, my_main);
5840 #endif
5843 dummy::install_guile ();
5846 return 0;
5848 _ACEOF
5849 if ac_fn_cxx_try_link "$LINENO"; then :
5850 tm_link_guile_static="yes"
5851 else
5852 tm_link_guile_static="no"
5854 rm -f core conftest.err conftest.$ac_objext \
5855 conftest$ac_exeext conftest.$ac_ext
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static\"" >&5
5858 $as_echo "\"$tm_link_guile_static\"" >&6; }
5859 if test "$tm_link_guile_static" = "no" ; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl" >&5
5861 $as_echo_n "checking if it works with -lltdl... " >&6; }
5862 LIBS="$GUILE_LDFLAGS -lltdl"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5866 #include <guile/gh.h>
5867 $CONFIG_DOTS
5870 main ()
5873 struct dummy {
5874 static void my_main (int argc, char** argv) {}
5875 static void install_guile () {
5876 #ifdef DOTS_OK
5877 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5878 #else
5879 gh_enter (0, NULL, my_main);
5880 #endif
5883 dummy::install_guile ();
5886 return 0;
5888 _ACEOF
5889 if ac_fn_cxx_try_link "$LINENO"; then :
5890 tm_link_guile_static_ltdl="yes"
5891 else
5892 tm_link_guile_static_ltdl="no"
5894 rm -f core conftest.err conftest.$ac_objext \
5895 conftest$ac_exeext conftest.$ac_ext
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl\"" >&5
5898 $as_echo "\"$tm_link_guile_static_ltdl\"" >&6; }
5899 if test "$tm_link_guile_static_ltdl" = "yes" ; then
5900 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
5901 else
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl -ldl" >&5
5903 $as_echo_n "checking if it works with -lltdl -ldl... " >&6; }
5904 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5908 #include <guile/gh.h>
5909 $CONFIG_DOTS
5912 main ()
5915 struct dummy {
5916 static void my_main (int argc, char** argv) {}
5917 static void install_guile () {
5918 #ifdef DOTS_OK
5919 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5920 #else
5921 gh_enter (0, NULL, my_main);
5922 #endif
5925 dummy::install_guile ();
5928 return 0;
5930 _ACEOF
5931 if ac_fn_cxx_try_link "$LINENO"; then :
5932 tm_link_guile_static_ltdl_ldl="yes"
5933 else
5934 tm_link_guile_static_ltdl_ldl="no"
5936 rm -f core conftest.err conftest.$ac_objext \
5937 conftest$ac_exeext conftest.$ac_ext
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
5940 $as_echo "\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
5941 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
5942 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to link statically with guile" >&5
5945 $as_echo "$as_me: WARNING: unable to link statically with guile" >&2;}
5949 CPPFLAGS="$SAVE_CPPFLAGS"
5950 LDFLAGS="$SAVE_LDFLAGS"
5951 LIBS="$SAVE_LIBS"
5953 #--------------------------------------------------------------------
5954 # Handle different systems case by case
5955 #--------------------------------------------------------------------
5957 CONFIG_OS="GNU_LINUX"
5958 CONFIG_OS_SUFFIX="gnu-linux"
5959 CONFIG_OS_COMPAT="Unix"
5960 CONFIG_MACOS=""
5961 CONFIG_CXXFLAGS=""
5962 CONFIG_CXXTEMPLATE=""
5963 CONFIG_STD_SETENV="#define STD_SETENV"
5964 CONFIG_SO="so"
5965 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
5966 CONFIG_CHMOD="chmod -f"
5967 CONFIG_CXXOPTIMIZE="-O2"
5968 CONFIG_BSTATIC="-Wl,-Bstatic"
5969 CONFIG_BSHARED="-Wl,-Bdynamic"
5970 CONFIG_BFLAGS=""
5971 CONFIG_BPATH="-Wl,-rpath,"
5972 CONFIG_LDRT=""
5973 CONFIG_WORD_LENGTH="4"
5974 CONFIG_WORD_LENGTH_INC="3"
5975 CONFIG_WORD_MASK="0xfffffffc"
5976 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
5977 # tweak for XCode project
5978 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
5980 X11_CFLAGS="$X_CFLAGS"
5981 X11_LDFLAGS="$X_LIBS -lXext -lX11"
5983 # The cast to long int works around a bug in the HP C Compiler
5984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5986 # This bug is HP SR number 8606223364.
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5988 $as_echo_n "checking size of void *... " >&6; }
5989 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5994 else
5995 if test "$ac_cv_type_void_p" = yes; then
5996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5998 { as_fn_set_status 77
5999 as_fn_error "cannot compute sizeof (void *)
6000 See \`config.log' for more details." "$LINENO" 5; }; }
6001 else
6002 ac_cv_sizeof_void_p=0
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6008 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6012 cat >>confdefs.h <<_ACEOF
6013 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6014 _ACEOF
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on a 64-bits computer" >&5
6018 $as_echo_n "checking if we are on a 64-bits computer... " >&6; }
6019 if test "$ac_cv_sizeof_void_p" = "8"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6021 $as_echo "yes" >&6; }
6022 CONFIG_WORD_LENGTH="8"
6023 CONFIG_WORD_LENGTH_INC="7"
6024 CONFIG_WORD_MASK="0xfffffffffffffff8"
6025 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6026 else
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6031 ac_aux_dir=
6032 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6033 for ac_t in install-sh install.sh shtool; do
6034 if test -f "$ac_dir/$ac_t"; then
6035 ac_aux_dir=$ac_dir
6036 ac_install_sh="$ac_aux_dir/$ac_t -c"
6037 break 2
6039 done
6040 done
6041 if test -z "$ac_aux_dir"; then
6042 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6045 # These three variables are undocumented and unsupported,
6046 # and are intended to be withdrawn in a future Autoconf release.
6047 # They can cause serious problems if a builder's source tree is in a directory
6048 # whose full name contains unusual characters.
6049 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6050 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6051 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6054 # Make sure we can run config.sub.
6055 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6056 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6059 $as_echo_n "checking build system type... " >&6; }
6060 if test "${ac_cv_build+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 ac_build_alias=$build_alias
6064 test "x$ac_build_alias" = x &&
6065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6066 test "x$ac_build_alias" = x &&
6067 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6068 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6069 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6073 $as_echo "$ac_cv_build" >&6; }
6074 case $ac_cv_build in
6075 *-*-*) ;;
6076 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6077 esac
6078 build=$ac_cv_build
6079 ac_save_IFS=$IFS; IFS='-'
6080 set x $ac_cv_build
6081 shift
6082 build_cpu=$1
6083 build_vendor=$2
6084 shift; shift
6085 # Remember, the first character of IFS is used to create $*,
6086 # except with old shells:
6087 build_os=$*
6088 IFS=$ac_save_IFS
6089 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6093 $as_echo_n "checking host system type... " >&6; }
6094 if test "${ac_cv_host+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test "x$host_alias" = x; then
6098 ac_cv_host=$ac_cv_build
6099 else
6100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6101 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6106 $as_echo "$ac_cv_host" >&6; }
6107 case $ac_cv_host in
6108 *-*-*) ;;
6109 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6110 esac
6111 host=$ac_cv_host
6112 ac_save_IFS=$IFS; IFS='-'
6113 set x $ac_cv_host
6114 shift
6115 host_cpu=$1
6116 host_vendor=$2
6117 shift; shift
6118 # Remember, the first character of IFS is used to create $*,
6119 # except with old shells:
6120 host_os=$*
6121 IFS=$ac_save_IFS
6122 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6125 case "${host}" in
6126 i*86-*-linux* | x86_64-*-linux*)
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
6128 $as_echo "final adjustments for an Intel or AMD GNU/Linux host" >&6; }
6129 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6131 i*86-*-freebsd* | x86_64-*-freebsd*)
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
6133 $as_echo "final adjustments for an Intel or AMD GNU/BSD host" >&6; }
6134 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6136 i*86-*-solaris*)
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMS Solaris host" >&5
6138 $as_echo "final adjustments for an Intel or AMS Solaris host" >&6; }
6139 CONFIG_CXXOPTIMIZE="-O3"
6140 CONFIG_BPATH="-Wl,-R,"
6141 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
6143 *mingw*)
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for mingw host" >&5
6145 $as_echo "final adjustments for mingw host" >&6; }
6146 CONFIG_OS_COMPAT="Windows"
6147 CONFIG_LDRT="-lmingw32 -lmingwex"
6149 *-*-cygwin)
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for cygwin host" >&5
6151 $as_echo "final adjustments for cygwin host" >&6; }
6152 CONFIG_OS="CYGWIN"
6153 CONFIG_BFLAGS="-Wl,-stack,8388608"
6154 # CXX="export CYGWIN=check_case:strict; $CXX"
6155 # AC_SUBST(CXX)
6157 *apple*darwin*)
6158 echo "$ac_t""final adjustments for a MacOS host" 1>&6
6159 CONFIG_OS="MACOS"
6160 CONFIG_CXXFLAGS="-I${prefix}/include"
6161 CONFIG_BSHARED=""
6162 CONFIG_BFLAGS="-framework Cocoa"
6163 CONFIG_BPATH=""
6164 CONFIG_SO="dylib"
6165 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6167 *darwin*)
6168 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
6169 CONFIG_CXXFLAGS="-I${prefix}/include"
6170 CONFIG_BSHARED=""
6171 CONFIG_BPATH=""
6172 CONFIG_SO="dylib"
6173 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6175 powerpc-*-linux*)
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a PowerPC/GNU-linux host" >&5
6177 $as_echo "final adjustments for a PowerPC/GNU-linux host" >&6; }
6178 CONFIG_OS="POWERPC_GNU_LINUX"
6179 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6181 *sun*)
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a SUN/solaris host" >&5
6183 $as_echo "final adjustments for a SUN/solaris host" >&6; }
6184 CONFIG_OS="SUN"
6185 CONFIG_OS_SUFFIX="sun"
6186 CONFIG_BSTATIC=""
6187 CONFIG_BSHARED=""
6188 CONFIG_BPATH="-Wl,-R,"
6189 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
6190 CONFIG_WORD_LENGTH="8"
6191 CONFIG_WORD_LENGTH_INC="7"
6192 CONFIG_WORD_MASK="0xfffffff8"
6193 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6194 CONFIG_STD_SETENV=""
6196 sparc*-*-linux*)
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a Sparc host running GNU/Linux" >&5
6198 $as_echo "final adjustments for a Sparc host running GNU/Linux" >&6; }
6199 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6200 CONFIG_WORD_LENGTH="8"
6201 CONFIG_WORD_LENGTH_INC="7"
6202 CONFIG_WORD_MASK="0xfffffff8"
6203 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6204 CONFIG_STD_SETENV=""
6206 *dec*)
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a DEC/alpha host" >&5
6208 $as_echo "final adjustments for a DEC/alpha host" >&6; }
6209 CONFIG_BSTATIC=""
6210 CONFIG_BSHARED="-shared"
6211 CONFIG_STD_SETENV=""
6213 *alpha*-*-linux*)
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Alpha GNU/Linux host" >&5
6215 $as_echo "final adjustments for an Alpha GNU/Linux host" >&6; }
6216 CONFIG_BSTATIC=""
6217 CONFIG_BSHARED="-shared"
6219 s390-*-linux*)
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
6221 $as_echo "final adjustments for an IBM S/390 GNU/Linux host" >&6; }
6222 CONFIG_STD_SETENV=""
6224 ia64-*-linux*)
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Itanium GNU/Linux host" >&5
6226 $as_echo "final adjustments for an Itanium GNU/Linux host" >&6; }
6227 CONFIG_BSTATIC=""
6228 CONFIG_BSHARED="-shared"
6230 hppa*-*-linux*)
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
6232 $as_echo "final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
6233 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
6234 CONFIG_BSTATIC=""
6235 CONFIG_BSHARED="-shared"
6237 *sgi-irix*)
6238 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
6239 CONFIG_OS="IRIX"
6240 CONFIG_CXXFLAGS=""
6241 X_LIBS=-L/usr/lib32
6242 CONFIG_BSTATIC=""
6243 CONFIG_BSHARED=""
6244 CONFIG_BPATH=""
6245 X11_LDFLAGS="$X_LIBS -lX11"
6246 CONFIG_WORD_MASK="0xfffffff8"
6247 CONFIG_STD_SETENV=""
6248 CONFIG_CHMOD="chmod"
6249 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
6251 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a supported GNU/Linux host" >&5
6253 $as_echo "final adjustments for a supported GNU/Linux host" >&6; }
6255 *-linux*)
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic GNU/Linux host" >&5
6257 $as_echo "final adjustments for a generic GNU/Linux host" >&6; }
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic host" >&5
6261 $as_echo "final adjustments for a generic host" >&6; }
6263 esac
6265 case "${host}" in
6266 *apple*darwin10*)
6267 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
6268 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH_ACTUAL"
6270 esac
6272 #--------------------------------------------------------------------
6273 # Temporary fix for link problem
6274 #--------------------------------------------------------------------
6276 case "$GXX_VERSION" in
6277 3.* | 4.*)
6278 CONFIG_BSTATIC="-static"
6279 CONFIG_BSHARED="-dynamic"
6281 esac
6283 #--------------------------------------------------------------------
6284 # Memory allocation options
6285 #--------------------------------------------------------------------
6287 # Check whether --enable-fastalloc was given.
6288 if test "${enable_fastalloc+set}" = set; then :
6289 enableval=$enable_fastalloc;
6290 else
6291 enable_fastalloc="yes"
6294 case "$enable_fastalloc" in
6295 yes)
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling fast allocator for small objects" >&5
6299 $as_echo "disabling fast allocator for small objects" >&6; }
6301 $as_echo "#define NO_FAST_ALLOC 1" >>confdefs.h
6305 as_fn_error "bad option --enable-fastalloc=$enable_fastalloc" "$LINENO" 5
6307 esac
6309 #--------------------------------------------------------------------
6310 # Experimental options
6311 #--------------------------------------------------------------------
6313 # Check whether --enable-experimental was given.
6314 if test "${enable_experimental+set}" = set; then :
6315 enableval=$enable_experimental;
6316 else
6317 enable_experimental="no"
6320 case "$enable_experimental" in
6321 yes)
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental style rewriting code" >&5
6323 $as_echo "enabling experimental style rewriting code" >&6; }
6325 $as_echo "#define EXPERIMENTAL 1" >>confdefs.h
6327 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental style rewriting code" >&5
6331 $as_echo "disabling experimental style rewriting code" >&6; }
6332 CONFIG_EXPERIMENTAL=""
6335 as_fn_error "bad option --enable-experimental=$enable_experimental" "$LINENO" 5
6337 esac
6340 #--------------------------------------------------------------------
6341 # MacOS X extensions (spellchecker, image loading)
6342 #--------------------------------------------------------------------
6344 # Check whether --enable-macosx-extensions was given.
6345 if test "${enable_macosx_extensions+set}" = set; then :
6346 enableval=$enable_macosx_extensions;
6347 else
6348 enable_macosx_extensions="no"
6351 case "$enable_macosx_extensions" in
6352 yes)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Mac OSX extensions" >&5
6354 $as_echo "enabling Mac OSX extensions" >&6; }
6356 $as_echo "#define MACOSX_EXTENSIONS 1" >>confdefs.h
6358 CONFIG_MACOS="MacOS"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Mac OSX extensions" >&5
6362 $as_echo "disabling Mac OSX extensions" >&6; }
6363 CONFIG_MACOS=""
6366 as_fn_error "bad option --enable-macosx-extensions=$enable_macosx_extensions" "$LINENO" 5
6368 esac
6371 #--------------------------------------------------------------------
6372 # Gui selection
6373 #--------------------------------------------------------------------
6375 CONFIG_X11=""
6376 CONFIG_COCOA=""
6377 CONFIG_GUI="X11"
6379 # Check whether --enable-qt was given.
6380 if test "${enable_qt+set}" = set; then :
6381 enableval=$enable_qt;
6382 else
6383 enable_qt="no"
6387 case "$enable_qt" in
6388 yes)
6390 if test -r "/c/Qt"; then
6391 MOC="`which moc`"
6392 qt_bin="`dirname $MOC`"
6393 qt_home="`dirname $qt_bin`"
6394 qt_version="`basename $qt_home`"
6395 qt_parent="`dirname $qt_home`"
6396 QT_CPPFLAGS="-I$qt_home/mkspecs/macx-g++ -I$qt_home/include/QtCore -I$qt_home/include/QtGui -I$qt_home/include -I/$qt_home/include/ActiveQt -I."
6397 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
6398 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
6399 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
6400 if test "$qt_parent" != "/c/Qt"; then
6401 at_cv_qt_build="ko"
6403 else
6408 test x"$TROLL" != x && echo 'ViM rox emacs.'
6411 # Check whether --with-qt was given.
6412 if test "${with_qt+set}" = set; then :
6413 withval=$with_qt; QT_PATH=$withval
6414 else
6415 QT_PATH=
6419 # Find Qt.
6420 if test -d /usr/local/Trolltech; then
6421 # Try to find the latest version.
6422 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
6423 | xargs | sed 's/ */:/g'`
6426 # Find qmake.
6427 if test -z "$QMAKE"; then
6428 for ac_prog in qmake
6430 # Extract the first word of "$ac_prog", so it can be a program name with args.
6431 set dummy $ac_prog; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_path_QMAKE+set}" = set; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 case $QMAKE in
6438 [\\/]* | ?:[\\/]*)
6439 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
6444 for as_dir in $as_dummy
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6454 done
6455 done
6456 IFS=$as_save_IFS
6459 esac
6461 QMAKE=$ac_cv_path_QMAKE
6462 if test -n "$QMAKE"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6464 $as_echo "$QMAKE" >&6; }
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6471 test -n "$QMAKE" && break
6472 done
6473 test -n "$QMAKE" || QMAKE="missing"
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QMAKE to use with Qt" >&5
6477 $as_echo_n "checking for the QMAKE to use with Qt... " >&6; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6479 $as_echo "$QMAKE" >&6; }
6481 if test x"$QMAKE" = xmissing; then
6482 as_fn_error "Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
6485 # Find moc (Meta Object Compiler).
6486 if test -z "$MOC"; then
6487 for ac_prog in moc
6489 # Extract the first word of "$ac_prog", so it can be a program name with args.
6490 set dummy $ac_prog; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if test "${ac_cv_path_MOC+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 case $MOC in
6497 [\\/]* | ?:[\\/]*)
6498 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6503 for as_dir in $as_dummy
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6513 done
6514 done
6515 IFS=$as_save_IFS
6518 esac
6520 MOC=$ac_cv_path_MOC
6521 if test -n "$MOC"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6523 $as_echo "$MOC" >&6; }
6524 else
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6530 test -n "$MOC" && break
6531 done
6532 test -n "$MOC" || MOC="missing"
6534 else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the MOC to use with Qt" >&5
6536 $as_echo_n "checking for the MOC to use with Qt... " >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6538 $as_echo "$MOC" >&6; }
6540 if test x"$MOC" = xmissing; then
6541 as_fn_error "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6544 # Find uic (User Interface Compiler).
6545 if test -z "$UIC"; then
6546 for ac_prog in uic
6548 # Extract the first word of "$ac_prog", so it can be a program name with args.
6549 set dummy $ac_prog; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_path_UIC+set}" = set; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 case $UIC in
6556 [\\/]* | ?:[\\/]*)
6557 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6562 for as_dir in $as_dummy
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6572 done
6573 done
6574 IFS=$as_save_IFS
6577 esac
6579 UIC=$ac_cv_path_UIC
6580 if test -n "$UIC"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6582 $as_echo "$UIC" >&6; }
6583 else
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6589 test -n "$UIC" && break
6590 done
6591 test -n "$UIC" || UIC="missing"
6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the UIC to use with Qt" >&5
6595 $as_echo_n "checking for the UIC to use with Qt... " >&6; }
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6597 $as_echo "$UIC" >&6; }
6599 if test x"$UIC" = xmissing; then
6600 as_fn_error "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6603 # Find rcc (Qt Resource Compiler).
6604 for ac_prog in rcc
6606 # Extract the first word of "$ac_prog", so it can be a program name with args.
6607 set dummy $ac_prog; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if test "${ac_cv_path_RCC+set}" = set; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 case $RCC in
6614 [\\/]* | ?:[\\/]*)
6615 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6620 for as_dir in $as_dummy
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6630 done
6631 done
6632 IFS=$as_save_IFS
6635 esac
6637 RCC=$ac_cv_path_RCC
6638 if test -n "$RCC"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
6640 $as_echo "$RCC" >&6; }
6641 else
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6647 test -n "$RCC" && break
6648 done
6649 test -n "$RCC" || RCC="false"
6651 if test x"$UIC" = xfalse; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
6653 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
6656 # If we don't know the path to Qt, guess it from the path to qmake.
6657 if test x"$QT_PATH" = x; then
6658 QT_PATH=`dirname "$QMAKE"`
6660 if test x"$QT_PATH" = x; then
6661 as_fn_error "Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_PATH to use with Qt" >&5
6665 $as_echo_n "checking for the QT_PATH to use with Qt... " >&6; }
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_PATH" >&5
6667 $as_echo "$QT_PATH" >&6; }
6669 # Get ready to build a test-app with Qt.
6671 # Look for a writable temporary directory.
6673 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
6674 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
6676 for i in /tmp /var/tmp; do
6677 if test -d "$i" && test -w "$i"; then
6678 TMPDIR=$i
6679 export TMPDIR
6680 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
6681 break
6683 done
6686 # Kludge!! QMake has a very strange behavior. For instance, if you
6687 # install Qt under your $HOME and run QMake somewhere else under your
6688 # $HOME, it will try to be clever and produce Makefiles with relative
6689 # include paths. In order to avoid this, we will test QMake from a
6690 # temporary directory (usually /tmp). Note that this problem was only
6691 # observed with Qt 4.
6692 my_configure_pwd=`pwd`
6693 my_tmpdir="$TMPDIR/conftest$$.dir"
6694 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
6695 if test -w "$my_tmpdir" && cd "$my_tmpdir"
6696 then
6698 else
6699 as_fn_error "Cannot cd to or write in $my_tmpdir" "$LINENO" 5
6701 cat >conftest.h <<_ASEOF
6702 #include <QObject>
6704 class Foo: public QObject
6706 Q_OBJECT;
6707 public:
6708 Foo();
6709 ~Foo() {}
6710 public slots:
6711 void setValue(int value);
6712 signals:
6713 void valueChanged(int newValue);
6714 private:
6715 int value_;
6717 _ASEOF
6719 cat >conftest.cpp <<_ASEOF
6720 #include "conftest.h"
6721 Foo::Foo()
6722 : value_ (42)
6724 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
6727 void Foo::setValue(int value)
6729 value_ = value;
6732 int main()
6734 Foo f;
6736 _ASEOF
6737 if $QMAKE -project; then :; else
6738 as_fn_error "Calling $QMAKE -project failed." "$LINENO" 5
6741 # Find the .pro file generated by qmake.
6742 pro_file='conftest.dir.pro'
6743 test -f $pro_file || pro_file=`echo *.pro`
6744 if test -f "$pro_file"; then :; else
6745 as_fn_error "Can't find the .pro file generated by Qmake." "$LINENO" 5
6754 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
6755 sed 's/^/| /' "$pro_file" >&5
6757 additional_qmake_flags=""
6758 case $host_os in
6759 darwin*)
6760 additional_qmake_flags="-spec macx-g++"
6762 esac
6764 if $QMAKE ${additional_qmake_flags} ; then :; else
6765 as_fn_error "Calling $QMAKE failed." "$LINENO" 5
6767 # Try to compile a simple Qt app.
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
6769 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
6770 if test "${at_cv_qt_build+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 at_cv_qt_build=ko
6774 : ${MAKE=make}
6776 if $MAKE >&5 2>&1; then
6777 at_cv_qt_build='ok, looks like Qt 4'
6778 else
6779 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
6780 instead" >&5
6781 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
6782 if $MAKE >&5 2>&1; then
6783 at_cv_qt_build='ok, looks like Qt 3'
6784 else
6785 # Sometimes (such as on Debian) build will fail because Qt hasn't been
6786 # installed in debug mode and qmake tries (by default) to build apps in
6787 # debug mode => Try again in release mode.
6788 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
6791 # Tweak the value of CONFIG in the .pro file for +release.
6793 qt_conf=''
6794 for at_mod in +release; do
6795 at_mod=`echo "$at_mod" | sed 's/^-//; tough
6796 s/^+//; beef
6797 :ough
6798 s/^/CONFIG -= /;n
6799 :eef
6800 s/^/CONFIG += /'`
6801 qt_conf="$qt_conf
6802 $at_mod"
6803 done
6804 echo "$qt_conf" | sed 1d >>"$pro_file"
6807 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
6808 if $MAKE >&5 2>&1; then
6809 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
6810 else
6811 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
6812 instead" >&5
6813 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
6814 if $MAKE >&5 2>&1; then
6815 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
6816 else
6817 at_cv_qt_build=ko
6818 echo "$as_me:$LINENO: failed program was:" >&5
6819 sed 's/^/| /' conftest.h >&5
6820 echo "$as_me:$LINENO: failed program was:" >&5
6821 sed 's/^/| /' conftest.cpp >&5
6822 fi # if make with Qt3-style #include and release mode forced.
6823 fi # if make with Qt4-style #include and release mode forced.
6824 fi # if make with Qt3-style #include.
6825 fi # if make with Qt4-style #include.
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
6829 $as_echo "$at_cv_qt_build" >&6; }
6830 if test x"$at_cv_qt_build" = xko; then
6831 as_fn_error "Cannot build a test Qt program" "$LINENO" 5
6833 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
6836 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
6837 # It starts by removing the beginning of the line, removing references to
6838 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
6839 # all variable uses by QT_.
6840 qt_sed_filter='s///;
6841 s/$(SUBLIBS)//g;
6842 s/^ *//;
6843 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
6845 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
6846 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
6847 # Makefile.Release. The reason is that the main difference is that release
6848 # uses -Os and debug -g. We can override -Os by passing another -O but we
6849 # usually don't override -g.
6850 if test -f Makefile.Release; then
6851 at_mfile='Makefile.Release'
6852 else
6853 at_mfile='Makefile'
6855 if test -f $at_mfile; then :; else
6856 cd "$my_configure_pwd"
6857 as_fn_error "Cannot find the Makefile generated by qmake." "$LINENO" 5
6860 # Find the DEFINES of Qt (should have been named CPPFLAGS).
6861 if test -z "$QT_DEFINES"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
6863 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
6864 if test "${at_cv_env_QT_DEFINES+set}" = set; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
6870 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
6871 QT_DEFINES="$at_cv_env_QT_DEFINES"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_DEFINES to use with Qt" >&5
6875 $as_echo_n "checking for the QT_DEFINES to use with Qt... " >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_DEFINES" >&5
6877 $as_echo "$QT_DEFINES" >&6; }
6879 # Find the CFLAGS of Qt (We can use Qt in C?!)
6880 if test -z "$QT_CFLAGS"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
6882 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
6883 if test "${at_cv_env_QT_CFLAGS+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
6889 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
6890 QT_CFLAGS="$at_cv_env_QT_CFLAGS"
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CFLAGS to use with Qt" >&5
6894 $as_echo_n "checking for the QT_CFLAGS to use with Qt... " >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
6896 $as_echo "$QT_CFLAGS" >&6; }
6898 # Find the CXXFLAGS of Qt.
6899 if test -z "$QT_CXXFLAGS"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
6901 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
6902 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
6908 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
6909 QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CXXFLAGS to use with Qt" >&5
6913 $as_echo_n "checking for the QT_CXXFLAGS to use with Qt... " >&6; }
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CXXFLAGS" >&5
6915 $as_echo "$QT_CXXFLAGS" >&6; }
6917 # Find the INCPATH of Qt.
6918 if test -z "$QT_INCPATH"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
6920 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
6921 if test "${at_cv_env_QT_INCPATH+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
6927 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
6928 QT_INCPATH="$at_cv_env_QT_INCPATH"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_INCPATH to use with Qt" >&5
6932 $as_echo_n "checking for the QT_INCPATH to use with Qt... " >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_INCPATH" >&5
6934 $as_echo "$QT_INCPATH" >&6; }
6936 QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
6939 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
6940 if test -z "$QT_LDFLAGS"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
6942 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
6943 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
6949 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
6950 QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
6953 QT_LFLAGS=$QT_LDFLAGS
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LDFLAGS to use with Qt" >&5
6956 $as_echo_n "checking for the QT_LDFLAGS to use with Qt... " >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LDFLAGS" >&5
6958 $as_echo "$QT_LDFLAGS" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
6961 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
6962 at_darwin="no"
6963 case $host_os in
6964 darwin*)
6965 at_darwin="yes"
6967 esac
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
6969 $as_echo "$at_darwin" >&6; }
6971 # Find the LIBS of Qt.
6972 if test -z "$QT_LIBS"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
6974 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
6975 if test "${at_cv_env_QT_LIBS+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
6979 if test x$at_darwin = xyes; then
6980 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
6981 # -F properly. The "bug" has been fixed on 22 October 2006
6982 # by Peter O'Gorman but we provide backward compatibility here.
6983 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
6984 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
6989 $as_echo "$at_cv_env_QT_LIBS" >&6; }
6990 QT_LIBS="$at_cv_env_QT_LIBS"
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LIBS to use with Qt" >&5
6994 $as_echo_n "checking for the QT_LIBS to use with Qt... " >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
6996 $as_echo "$QT_LIBS" >&6; }
6998 cd "$my_configure_pwd" || echo 'WTF!'
6999 rm -rf "$my_tmpdir"
7003 if test x"$at_cv_qt_build" = xko; then
7004 as_fn_error "cannot find Qt!" "$LINENO" 5
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Qt port" >&5
7007 $as_echo "enabling experimental Qt port" >&6; }
7008 CONFIG_GUI="QT"
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Qt port" >&5
7013 $as_echo "disabling experimental Qt port" >&6; }
7016 as_fn_error "bad option --enable-qt=$enable_qt" "$LINENO" 5
7018 esac
7020 # Check whether --enable-cocoa was given.
7021 if test "${enable_cocoa+set}" = set; then :
7022 enableval=$enable_cocoa;
7023 else
7024 enable_cocoa="no"
7027 case "$enable_cocoa" in
7028 yes)
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Cocoa port" >&5
7030 $as_echo "enabling experimental Cocoa port" >&6; }
7031 COCOA_CFLAGS=""
7032 COCOA_LDFLAGS="-framework Cocoa"
7033 CONFIG_GUI="COCOA"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Cocoa port" >&5
7037 $as_echo "disabling experimental Cocoa port" >&6; }
7040 as_fn_error "bad option --enable-cocoa=$enable_cocoa" "$LINENO" 5
7042 esac
7044 case "$CONFIG_GUI" in
7045 X11)
7046 CONFIG_X11="X11 Widkit Ghostscript"
7047 CONFIG_GUI_DEFINE="X11TEXMACS"
7048 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
7050 COCOA)
7051 CONFIG_COCOA="Cocoa"
7052 CONFIG_GUI_DEFINE="AQUATEXMACS"
7053 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
7056 CONFIG_QT="Qt"
7057 CONFIG_GUI_DEFINE="QTTEXMACS"
7058 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
7060 esac
7075 #--------------------------------------------------------------------
7076 # Debugging options
7077 #--------------------------------------------------------------------
7079 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
7080 if test "$enable_cocoa" = "yes"; then
7081 STD_DEBUG_FLAGS="-fno-exceptions"
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports $STD_DEBUG_FLAGS" >&5
7085 $as_echo_n "checking if compiler supports $STD_DEBUG_FLAGS... " >&6; }
7086 CXXFLAGS="$STD_DEBUG_FLAGS"
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7090 int some_variable = 0;
7093 main ()
7098 return 0;
7100 _ACEOF
7101 if ac_fn_cxx_try_compile "$LINENO"; then :
7103 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7105 $as_echo "yes" >&6; }
7107 else
7109 CONFIG_CXXDIALECT=""
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 CXXFLAGS=""
7118 # Check whether --enable-debug was given.
7119 if test "${enable_debug+set}" = set; then :
7120 enableval=$enable_debug;
7121 else
7122 enable_debug="no"
7126 if test "$enable_debug" = "yes"; then
7127 if test "$GXX" = "yes"; then
7128 enable_debug="-ggdb"
7129 else
7130 enable_debug="-g3"
7134 if test "$enable_debug" = "no"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling debugging" >&5
7136 $as_echo "disabling debugging" >&6; }
7137 CONFIG_STRIP="strip"
7138 CONFIG_CXXDEBUG=""
7139 optimize_default="yes"
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling debugging, $enable_debug" >&5
7142 $as_echo "enabling debugging, $enable_debug" >&6; }
7143 CONFIG_STRIP="true"
7144 CONFIG_CXXDEBUG="$enable_debug"
7145 optimize_default="no"
7148 # Check whether --enable-assert was given.
7149 if test "${enable_assert+set}" = set; then :
7150 enableval=$enable_assert;
7151 else
7152 enable_assert="yes"
7156 if test "$enable_assert" = "no"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling assertion checking" >&5
7158 $as_echo "disabling assertion checking" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling assertion checking" >&5
7161 $as_echo "enabling assertion checking" >&6; }
7163 $as_echo "#define DEBUG_ASSERT 1" >>confdefs.h
7167 #--------------------------------------------------------------------
7168 # Warning options
7169 #--------------------------------------------------------------------
7171 case "$GXX_VERSION" in
7172 none)
7173 CONFIG_CXXWARNING="";
7176 CONFIG_CXXWARNING="-Wall -Wno-return-type"
7178 esac
7180 # Check whether --enable-warnings was given.
7181 if test "${enable_warnings+set}" = set; then :
7182 enableval=$enable_warnings;
7183 else
7184 enable_warnings="yes"
7187 case "$enable_warnings" in
7188 yes)
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7190 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7192 CONFIG_CXXWARNING=""
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling warning flags" >&5
7194 $as_echo "disabling warning flags" >&6; } ;;
7196 CONFIG_CXXWARNING="$enable_warnings"
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7198 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7199 esac
7201 #--------------------------------------------------------------------
7202 # Optimization options
7203 #--------------------------------------------------------------------
7205 if test "$optimize_default" = "yes"; then
7206 case "$GXX_VERSION" in
7207 3.3.3 | 3.3.4 | 4.*)
7209 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
7210 case "${host}" in
7211 i*86-*-linux-gnu* | i*86-*-freebsd*)
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7213 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7214 optimize_default="no-inline"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7218 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7219 optimize_default="no-inline"
7221 esac
7223 esac
7226 # Check whether --enable-optimize was given.
7227 if test "${enable_optimize+set}" = set; then :
7228 enableval=$enable_optimize;
7229 else
7230 enable_optimize="$optimize_default"
7234 case "$enable_optimize" in
7235 yes)
7236 # keep optimization options
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7238 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7239 no-inline)
7240 optimize_no_inline="-fno-default-inline -fno-inline"
7241 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7243 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7245 CONFIG_CXXOPTIMIZE=""
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling optimizations" >&5
7247 $as_echo "disabling optimizations" >&6; } ;;
7249 CONFIG_CXXOPTIMIZE="$enable_optimize"
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: customizing optimizations, $enable_optimize" >&5
7251 $as_echo "customizing optimizations, $enable_optimize" >&6; } ;;
7252 esac
7254 #--------------------------------------------------------------------
7255 # Substitute TeXmacs specific configuration parameters
7256 #--------------------------------------------------------------------
7282 #--------------------------------------------------------------------
7283 # Default paths for installation
7284 #--------------------------------------------------------------------
7286 if test "$prefix" = ""; then
7287 prefix=/usr/local
7289 if test "$prefix" = "NONE"; then
7290 prefix=/usr/local
7292 if test "$exec_prefix" = ""; then
7293 exec_prefix='${prefix}'
7295 if test "$exec_prefix" = "NONE"; then
7296 exec_prefix='${prefix}'
7298 if test "$exec_prefix" = '${prefix}'; then
7299 exec_prefix='${prefix}'
7301 if test "$includedir" = ""; then
7302 includedir='${prefix}/include'
7304 if test "$includedir" = "NONE"; then
7305 includedir='${prefix}/include'
7307 if test "$includedir" = '${prefix}/include'; then
7308 includedir='${prefix}/include'
7310 if test "$libdir" = ""; then
7311 libdir='${exec_prefix}/lib'
7313 if test "$libdir" = "NONE"; then
7314 libdir='${exec_prefix}/lib'
7316 if test "$libdir" = '${exec_prefix}/lib'; then
7317 libdir='${exec_prefix}/lib'
7319 if test "$bindir" = ""; then
7320 bindir='${exec_prefix}/bin'
7322 if test "$bindir" = "NONE"; then
7323 bindir=${exec_prefix}/bin
7325 if test "$bindir" = '${exec_prefix}/bin'; then
7326 bindir='${exec_prefix}/bin'
7328 if test "$datarootdir" = ""; then
7329 datarootdir='${prefix}/share'
7331 if test "$datarootdir" = "NONE"; then
7332 datarootdir='${prefix}/share'
7334 if test "$datarootdir" = '${prefix}/share'; then
7335 datarootdir='${prefix}/share'
7337 if test "$datadir" = ""; then
7338 datadir='${prefix}/share'
7340 if test "$datadir" = "NONE"; then
7341 datadir='${prefix}/share'
7343 if test "$datadir" = '${prefix}/share'; then
7344 datadir='${prefix}/share'
7346 if test "$mandir" = ""; then
7347 mandir='${datarootdir}/man'
7349 if test "$mandir" = "NONE"; then
7350 mandir='${datarootdir}/man'
7352 if test "$mandir" = '${datarootdir}/man'; then
7353 mandir='${datarootdir}/man'
7355 if test "$libexecdir" = ""; then
7356 libexecdir='${exec_prefix}/libexec'
7358 if test "$libexecdir" = "NONE"; then
7359 libexecdir='${exec_prefix}/libexec'
7361 if test "$libexecdir" = '${exec_prefix}/libexec'; then
7362 libexecdir='${exec_prefix}/libexec'
7365 curdir="`pwd`"
7366 tmorig=${curdir}
7367 tmdir=${PACKAGE}
7368 tmsrc=${curdir}/${tmdir}
7369 tmbin=${libexecdir}/${tmdir}
7370 tmdata=${datadir}/${tmdir}
7377 if test "$DEVEL_RELEASE" = "1"; then
7378 tmtgz=${PACKAGE}-${DEVEL_VERSION}
7379 else
7380 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
7382 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
7383 if test "$STABLE_RELEASE" = "1"; then
7384 tmstgz=${PACKAGE}-${STABLE_VERSION}
7385 else
7386 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
7388 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
7389 if test "$WINDOWS_RELEASE" = "1"; then
7390 tmwin=wintexmacs-${WINDOWS_VERSION}
7391 else
7392 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
7400 #--------------------------------------------------------------------
7401 # Done
7402 #--------------------------------------------------------------------
7404 ac_config_files="$ac_config_files Makefile:Makefile.in src/makefile:src/makefile.in src/System/tm_configure.hpp:src/System/tm_configure.in misc/admin/admin.makefile:misc/admin/admin.makefile.in misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in misc/man/texmacs.1:misc/man/texmacs.1.in misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in misc/scripts/fig2ps:misc/scripts/fig2ps.in misc/scripts/texmacs:misc/scripts/texmacs.in TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in"
7406 cat >confcache <<\_ACEOF
7407 # This file is a shell script that caches the results of configure
7408 # tests run on this system so they can be shared between configure
7409 # scripts and configure runs, see configure's option --config-cache.
7410 # It is not useful on other systems. If it contains results you don't
7411 # want to keep, you may remove or edit it.
7413 # config.status only pays attention to the cache file if you give it
7414 # the --recheck option to rerun configure.
7416 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7417 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7418 # following values.
7420 _ACEOF
7422 # The following way of writing the cache mishandles newlines in values,
7423 # but we know of no workaround that is simple, portable, and efficient.
7424 # So, we kill variables containing newlines.
7425 # Ultrix sh set writes to stderr and can't be redirected directly,
7426 # and sets the high bit in the cache file unless we assign to the vars.
7428 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7429 eval ac_val=\$$ac_var
7430 case $ac_val in #(
7431 *${as_nl}*)
7432 case $ac_var in #(
7433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7435 esac
7436 case $ac_var in #(
7437 _ | IFS | as_nl) ;; #(
7438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7439 *) { eval $ac_var=; unset $ac_var;} ;;
7440 esac ;;
7441 esac
7442 done
7444 (set) 2>&1 |
7445 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7446 *${as_nl}ac_space=\ *)
7447 # `set' does not quote correctly, so add quotes: double-quote
7448 # substitution turns \\\\ into \\, and sed turns \\ into \.
7449 sed -n \
7450 "s/'/'\\\\''/g;
7451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7452 ;; #(
7454 # `set' quotes correctly as required by POSIX, so do not add quotes.
7455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7457 esac |
7458 sort
7460 sed '
7461 /^ac_cv_env_/b end
7462 t clear
7463 :clear
7464 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7465 t end
7466 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7467 :end' >>confcache
7468 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7469 if test -w "$cache_file"; then
7470 test "x$cache_file" != "x/dev/null" &&
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7472 $as_echo "$as_me: updating cache $cache_file" >&6;}
7473 cat confcache >$cache_file
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7476 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7479 rm -f confcache
7481 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7482 # Let make expand exec_prefix.
7483 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7485 DEFS=-DHAVE_CONFIG_H
7487 ac_libobjs=
7488 ac_ltlibobjs=
7489 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7490 # 1. Remove the extension, and $U if already installed.
7491 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7492 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7493 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7494 # will be set to the directory where LIBOBJS objects are built.
7495 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7496 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7497 done
7498 LIBOBJS=$ac_libobjs
7500 LTLIBOBJS=$ac_ltlibobjs
7504 : ${CONFIG_STATUS=./config.status}
7505 ac_write_fail=0
7506 ac_clean_files_save=$ac_clean_files
7507 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7509 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7510 as_write_fail=0
7511 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7512 #! $SHELL
7513 # Generated by $as_me.
7514 # Run this file to recreate the current configuration.
7515 # Compiler output produced by configure, useful for debugging
7516 # configure, is in config.log if it exists.
7518 debug=false
7519 ac_cs_recheck=false
7520 ac_cs_silent=false
7522 SHELL=\${CONFIG_SHELL-$SHELL}
7523 export SHELL
7524 _ASEOF
7525 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7526 ## -------------------- ##
7527 ## M4sh Initialization. ##
7528 ## -------------------- ##
7530 # Be more Bourne compatible
7531 DUALCASE=1; export DUALCASE # for MKS sh
7532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7533 emulate sh
7534 NULLCMD=:
7535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7536 # is contrary to our usage. Disable this feature.
7537 alias -g '${1+"$@"}'='"$@"'
7538 setopt NO_GLOB_SUBST
7539 else
7540 case `(set -o) 2>/dev/null` in #(
7541 *posix*) :
7542 set -o posix ;; #(
7543 *) :
7545 esac
7549 as_nl='
7551 export as_nl
7552 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7553 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7556 # Prefer a ksh shell builtin over an external printf program on Solaris,
7557 # but without wasting forks for bash or zsh.
7558 if test -z "$BASH_VERSION$ZSH_VERSION" \
7559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7560 as_echo='print -r --'
7561 as_echo_n='print -rn --'
7562 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7563 as_echo='printf %s\n'
7564 as_echo_n='printf %s'
7565 else
7566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7567 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7568 as_echo_n='/usr/ucb/echo -n'
7569 else
7570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7571 as_echo_n_body='eval
7572 arg=$1;
7573 case $arg in #(
7574 *"$as_nl"*)
7575 expr "X$arg" : "X\\(.*\\)$as_nl";
7576 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7577 esac;
7578 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7580 export as_echo_n_body
7581 as_echo_n='sh -c $as_echo_n_body as_echo'
7583 export as_echo_body
7584 as_echo='sh -c $as_echo_body as_echo'
7587 # The user is always right.
7588 if test "${PATH_SEPARATOR+set}" != set; then
7589 PATH_SEPARATOR=:
7590 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7591 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7592 PATH_SEPARATOR=';'
7597 # IFS
7598 # We need space, tab and new line, in precisely that order. Quoting is
7599 # there to prevent editors from complaining about space-tab.
7600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7601 # splitting by setting IFS to empty value.)
7602 IFS=" "" $as_nl"
7604 # Find who we are. Look in the path if we contain no directory separator.
7605 case $0 in #((
7606 *[\\/]* ) as_myself=$0 ;;
7607 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7613 done
7614 IFS=$as_save_IFS
7617 esac
7618 # We did not find ourselves, most probably we were run as `sh COMMAND'
7619 # in which case we are not to be found in the path.
7620 if test "x$as_myself" = x; then
7621 as_myself=$0
7623 if test ! -f "$as_myself"; then
7624 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7625 exit 1
7628 # Unset variables that we do not need and which cause bugs (e.g. in
7629 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7630 # suppresses any "Segmentation fault" message there. '((' could
7631 # trigger a bug in pdksh 5.2.14.
7632 for as_var in BASH_ENV ENV MAIL MAILPATH
7633 do eval test x\${$as_var+set} = xset \
7634 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7635 done
7636 PS1='$ '
7637 PS2='> '
7638 PS4='+ '
7640 # NLS nuisances.
7641 LC_ALL=C
7642 export LC_ALL
7643 LANGUAGE=C
7644 export LANGUAGE
7646 # CDPATH.
7647 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7650 # as_fn_error ERROR [LINENO LOG_FD]
7651 # ---------------------------------
7652 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7653 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7654 # script with status $?, using 1 if that was 0.
7655 as_fn_error ()
7657 as_status=$?; test $as_status -eq 0 && as_status=1
7658 if test "$3"; then
7659 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7660 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7662 $as_echo "$as_me: error: $1" >&2
7663 as_fn_exit $as_status
7664 } # as_fn_error
7667 # as_fn_set_status STATUS
7668 # -----------------------
7669 # Set $? to STATUS, without forking.
7670 as_fn_set_status ()
7672 return $1
7673 } # as_fn_set_status
7675 # as_fn_exit STATUS
7676 # -----------------
7677 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7678 as_fn_exit ()
7680 set +e
7681 as_fn_set_status $1
7682 exit $1
7683 } # as_fn_exit
7685 # as_fn_unset VAR
7686 # ---------------
7687 # Portably unset VAR.
7688 as_fn_unset ()
7690 { eval $1=; unset $1;}
7692 as_unset=as_fn_unset
7693 # as_fn_append VAR VALUE
7694 # ----------------------
7695 # Append the text in VALUE to the end of the definition contained in VAR. Take
7696 # advantage of any shell optimizations that allow amortized linear growth over
7697 # repeated appends, instead of the typical quadratic growth present in naive
7698 # implementations.
7699 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7700 eval 'as_fn_append ()
7702 eval $1+=\$2
7704 else
7705 as_fn_append ()
7707 eval $1=\$$1\$2
7709 fi # as_fn_append
7711 # as_fn_arith ARG...
7712 # ------------------
7713 # Perform arithmetic evaluation on the ARGs, and store the result in the
7714 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7715 # must be portable across $(()) and expr.
7716 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7717 eval 'as_fn_arith ()
7719 as_val=$(( $* ))
7721 else
7722 as_fn_arith ()
7724 as_val=`expr "$@" || test $? -eq 1`
7726 fi # as_fn_arith
7729 if expr a : '\(a\)' >/dev/null 2>&1 &&
7730 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7731 as_expr=expr
7732 else
7733 as_expr=false
7736 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7737 as_basename=basename
7738 else
7739 as_basename=false
7742 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7743 as_dirname=dirname
7744 else
7745 as_dirname=false
7748 as_me=`$as_basename -- "$0" ||
7749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7750 X"$0" : 'X\(//\)$' \| \
7751 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7752 $as_echo X/"$0" |
7753 sed '/^.*\/\([^/][^/]*\)\/*$/{
7754 s//\1/
7757 /^X\/\(\/\/\)$/{
7758 s//\1/
7761 /^X\/\(\/\).*/{
7762 s//\1/
7765 s/.*/./; q'`
7767 # Avoid depending upon Character Ranges.
7768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7771 as_cr_digits='0123456789'
7772 as_cr_alnum=$as_cr_Letters$as_cr_digits
7774 ECHO_C= ECHO_N= ECHO_T=
7775 case `echo -n x` in #(((((
7776 -n*)
7777 case `echo 'xy\c'` in
7778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7779 xy) ECHO_C='\c';;
7780 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7781 ECHO_T=' ';;
7782 esac;;
7784 ECHO_N='-n';;
7785 esac
7787 rm -f conf$$ conf$$.exe conf$$.file
7788 if test -d conf$$.dir; then
7789 rm -f conf$$.dir/conf$$.file
7790 else
7791 rm -f conf$$.dir
7792 mkdir conf$$.dir 2>/dev/null
7794 if (echo >conf$$.file) 2>/dev/null; then
7795 if ln -s conf$$.file conf$$ 2>/dev/null; then
7796 as_ln_s='ln -s'
7797 # ... but there are two gotchas:
7798 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7799 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7800 # In both cases, we have to default to `cp -p'.
7801 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7802 as_ln_s='cp -p'
7803 elif ln conf$$.file conf$$ 2>/dev/null; then
7804 as_ln_s=ln
7805 else
7806 as_ln_s='cp -p'
7808 else
7809 as_ln_s='cp -p'
7811 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7812 rmdir conf$$.dir 2>/dev/null
7815 # as_fn_mkdir_p
7816 # -------------
7817 # Create "$as_dir" as a directory, including parents if necessary.
7818 as_fn_mkdir_p ()
7821 case $as_dir in #(
7822 -*) as_dir=./$as_dir;;
7823 esac
7824 test -d "$as_dir" || eval $as_mkdir_p || {
7825 as_dirs=
7826 while :; do
7827 case $as_dir in #(
7828 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7829 *) as_qdir=$as_dir;;
7830 esac
7831 as_dirs="'$as_qdir' $as_dirs"
7832 as_dir=`$as_dirname -- "$as_dir" ||
7833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7834 X"$as_dir" : 'X\(//\)[^/]' \| \
7835 X"$as_dir" : 'X\(//\)$' \| \
7836 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7837 $as_echo X"$as_dir" |
7838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7839 s//\1/
7842 /^X\(\/\/\)[^/].*/{
7843 s//\1/
7846 /^X\(\/\/\)$/{
7847 s//\1/
7850 /^X\(\/\).*/{
7851 s//\1/
7854 s/.*/./; q'`
7855 test -d "$as_dir" && break
7856 done
7857 test -z "$as_dirs" || eval "mkdir $as_dirs"
7858 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7861 } # as_fn_mkdir_p
7862 if mkdir -p . 2>/dev/null; then
7863 as_mkdir_p='mkdir -p "$as_dir"'
7864 else
7865 test -d ./-p && rmdir ./-p
7866 as_mkdir_p=false
7869 if test -x / >/dev/null 2>&1; then
7870 as_test_x='test -x'
7871 else
7872 if ls -dL / >/dev/null 2>&1; then
7873 as_ls_L_option=L
7874 else
7875 as_ls_L_option=
7877 as_test_x='
7878 eval sh -c '\''
7879 if test -d "$1"; then
7880 test -d "$1/.";
7881 else
7882 case $1 in #(
7883 -*)set "./$1";;
7884 esac;
7885 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7886 ???[sx]*):;;*)false;;esac;fi
7887 '\'' sh
7890 as_executable_p=$as_test_x
7892 # Sed expression to map a string onto a valid CPP name.
7893 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7895 # Sed expression to map a string onto a valid variable name.
7896 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7899 exec 6>&1
7900 ## ----------------------------------- ##
7901 ## Main body of $CONFIG_STATUS script. ##
7902 ## ----------------------------------- ##
7903 _ASEOF
7904 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7907 # Save the log message, to keep $0 and so on meaningful, and to
7908 # report actual input values of CONFIG_FILES etc. instead of their
7909 # values after options handling.
7910 ac_log="
7911 This file was extended by $as_me, which was
7912 generated by GNU Autoconf 2.64. Invocation command line was
7914 CONFIG_FILES = $CONFIG_FILES
7915 CONFIG_HEADERS = $CONFIG_HEADERS
7916 CONFIG_LINKS = $CONFIG_LINKS
7917 CONFIG_COMMANDS = $CONFIG_COMMANDS
7918 $ $0 $@
7920 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7923 _ACEOF
7925 case $ac_config_files in *"
7926 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7927 esac
7929 case $ac_config_headers in *"
7930 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7931 esac
7934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7935 # Files that config.status was made for.
7936 config_files="$ac_config_files"
7937 config_headers="$ac_config_headers"
7939 _ACEOF
7941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7942 ac_cs_usage="\
7943 \`$as_me' instantiates files and other configuration actions
7944 from templates according to the current configuration. Unless the files
7945 and actions are specified as TAGs, all are instantiated by default.
7947 Usage: $0 [OPTION]... [TAG]...
7949 -h, --help print this help, then exit
7950 -V, --version print version number and configuration settings, then exit
7951 -q, --quiet, --silent
7952 do not print progress messages
7953 -d, --debug don't remove temporary files
7954 --recheck update $as_me by reconfiguring in the same conditions
7955 --file=FILE[:TEMPLATE]
7956 instantiate the configuration file FILE
7957 --header=FILE[:TEMPLATE]
7958 instantiate the configuration header FILE
7960 Configuration files:
7961 $config_files
7963 Configuration headers:
7964 $config_headers
7966 Report bugs to the package provider."
7968 _ACEOF
7969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7970 ac_cs_version="\\
7971 config.status
7972 configured by $0, generated by GNU Autoconf 2.64,
7973 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7975 Copyright (C) 2009 Free Software Foundation, Inc.
7976 This config.status script is free software; the Free Software Foundation
7977 gives unlimited permission to copy, distribute and modify it."
7979 ac_pwd='$ac_pwd'
7980 srcdir='$srcdir'
7981 test -n "\$AWK" || AWK=awk
7982 _ACEOF
7984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7985 # The default lists apply if the user does not specify any file.
7986 ac_need_defaults=:
7987 while test $# != 0
7989 case $1 in
7990 --*=*)
7991 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7992 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7993 ac_shift=:
7996 ac_option=$1
7997 ac_optarg=$2
7998 ac_shift=shift
8000 esac
8002 case $ac_option in
8003 # Handling of the options.
8004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8005 ac_cs_recheck=: ;;
8006 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8007 $as_echo "$ac_cs_version"; exit ;;
8008 --debug | --debu | --deb | --de | --d | -d )
8009 debug=: ;;
8010 --file | --fil | --fi | --f )
8011 $ac_shift
8012 case $ac_optarg in
8013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8014 esac
8015 as_fn_append CONFIG_FILES " '$ac_optarg'"
8016 ac_need_defaults=false;;
8017 --header | --heade | --head | --hea )
8018 $ac_shift
8019 case $ac_optarg in
8020 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8021 esac
8022 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8023 ac_need_defaults=false;;
8024 --he | --h)
8025 # Conflict between --help and --header
8026 as_fn_error "ambiguous option: \`$1'
8027 Try \`$0 --help' for more information.";;
8028 --help | --hel | -h )
8029 $as_echo "$ac_cs_usage"; exit ;;
8030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8031 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8032 ac_cs_silent=: ;;
8034 # This is an error.
8035 -*) as_fn_error "unrecognized option: \`$1'
8036 Try \`$0 --help' for more information." ;;
8038 *) as_fn_append ac_config_targets " $1"
8039 ac_need_defaults=false ;;
8041 esac
8042 shift
8043 done
8045 ac_configure_extra_args=
8047 if $ac_cs_silent; then
8048 exec 6>/dev/null
8049 ac_configure_extra_args="$ac_configure_extra_args --silent"
8052 _ACEOF
8053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8054 if \$ac_cs_recheck; then
8055 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8056 shift
8057 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8058 CONFIG_SHELL='$SHELL'
8059 export CONFIG_SHELL
8060 exec "\$@"
8063 _ACEOF
8064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8065 exec 5>>config.log
8067 echo
8068 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8069 ## Running $as_me. ##
8070 _ASBOX
8071 $as_echo "$ac_log"
8072 } >&5
8074 _ACEOF
8075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8076 _ACEOF
8078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8080 # Handling of arguments.
8081 for ac_config_target in $ac_config_targets
8083 case $ac_config_target in
8084 "src/System/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
8085 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
8086 "src/makefile") CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
8087 "src/System/tm_configure.hpp") CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
8088 "misc/admin/admin.makefile") CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
8089 "misc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
8090 "misc/man/texmacs.1") CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
8091 "misc/rpm/TeXmacs.spec") CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
8092 "misc/scripts/fig2ps") CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
8093 "misc/scripts/texmacs") CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
8094 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
8095 "misc/bundle/Base.xcconfig") CONFIG_FILES="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
8097 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8098 esac
8099 done
8102 # If the user did not use the arguments to specify the items to instantiate,
8103 # then the envvar interface is used. Set only those that are not.
8104 # We use the long form for the default assignment because of an extremely
8105 # bizarre bug on SunOS 4.1.3.
8106 if $ac_need_defaults; then
8107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8111 # Have a temporary directory for convenience. Make it in the build tree
8112 # simply because there is no reason against having it here, and in addition,
8113 # creating and moving files from /tmp can sometimes cause problems.
8114 # Hook for its removal unless debugging.
8115 # Note that there is a small window in which the directory will not be cleaned:
8116 # after its creation but before its name has been assigned to `$tmp'.
8117 $debug ||
8119 tmp=
8120 trap 'exit_status=$?
8121 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8123 trap 'as_fn_exit 1' 1 2 13 15
8125 # Create a (secure) tmp directory for tmp files.
8128 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8129 test -n "$tmp" && test -d "$tmp"
8130 } ||
8132 tmp=./conf$$-$RANDOM
8133 (umask 077 && mkdir "$tmp")
8134 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8136 # Set up the scripts for CONFIG_FILES section.
8137 # No need to generate them if there are no CONFIG_FILES.
8138 # This happens for instance with `./config.status config.h'.
8139 if test -n "$CONFIG_FILES"; then
8142 ac_cr=`echo X | tr X '\015'`
8143 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8144 # But we know of no other shell where ac_cr would be empty at this
8145 # point, so we can use a bashism as a fallback.
8146 if test "x$ac_cr" = x; then
8147 eval ac_cr=\$\'\\r\'
8149 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8150 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8151 ac_cs_awk_cr='\r'
8152 else
8153 ac_cs_awk_cr=$ac_cr
8156 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8157 _ACEOF
8161 echo "cat >conf$$subs.awk <<_ACEOF" &&
8162 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8163 echo "_ACEOF"
8164 } >conf$$subs.sh ||
8165 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8166 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8167 ac_delim='%!_!# '
8168 for ac_last_try in false false false false false :; do
8169 . ./conf$$subs.sh ||
8170 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8172 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8173 if test $ac_delim_n = $ac_delim_num; then
8174 break
8175 elif $ac_last_try; then
8176 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8177 else
8178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8180 done
8181 rm -f conf$$subs.sh
8183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8184 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8185 _ACEOF
8186 sed -n '
8188 s/^/S["/; s/!.*/"]=/
8191 s/^[^!]*!//
8192 :repl
8193 t repl
8194 s/'"$ac_delim"'$//
8195 t delim
8198 s/\(.\{148\}\).*/\1/
8199 t more1
8200 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8203 b repl
8204 :more1
8205 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8208 s/.\{148\}//
8209 t nl
8210 :delim
8212 s/\(.\{148\}\).*/\1/
8213 t more2
8214 s/["\\]/\\&/g; s/^/"/; s/$/"/
8217 :more2
8218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8221 s/.\{148\}//
8222 t delim
8223 ' <conf$$subs.awk | sed '
8224 /^[^""]/{
8226 s/\n//
8228 ' >>$CONFIG_STATUS || ac_write_fail=1
8229 rm -f conf$$subs.awk
8230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8231 _ACAWK
8232 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8233 for (key in S) S_is_set[key] = 1
8234 FS = "\a"
8238 line = $ 0
8239 nfields = split(line, field, "@")
8240 substed = 0
8241 len = length(field[1])
8242 for (i = 2; i < nfields; i++) {
8243 key = field[i]
8244 keylen = length(key)
8245 if (S_is_set[key]) {
8246 value = S[key]
8247 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8248 len += length(value) + length(field[++i])
8249 substed = 1
8250 } else
8251 len += 1 + keylen
8254 print line
8257 _ACAWK
8258 _ACEOF
8259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8260 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8261 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8262 else
8264 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8265 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8266 _ACEOF
8268 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8269 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8270 # trailing colons and then remove the whole line if VPATH becomes empty
8271 # (actually we leave an empty line to preserve line numbers).
8272 if test "x$srcdir" = x.; then
8273 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8274 s/:*\$(srcdir):*/:/
8275 s/:*\${srcdir}:*/:/
8276 s/:*@srcdir@:*/:/
8277 s/^\([^=]*=[ ]*\):*/\1/
8278 s/:*$//
8279 s/^[^=]*=[ ]*$//
8283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8284 fi # test -n "$CONFIG_FILES"
8286 # Set up the scripts for CONFIG_HEADERS section.
8287 # No need to generate them if there are no CONFIG_HEADERS.
8288 # This happens for instance with `./config.status Makefile'.
8289 if test -n "$CONFIG_HEADERS"; then
8290 cat >"$tmp/defines.awk" <<\_ACAWK ||
8291 BEGIN {
8292 _ACEOF
8294 # Transform confdefs.h into an awk script `defines.awk', embedded as
8295 # here-document in config.status, that substitutes the proper values into
8296 # config.h.in to produce config.h.
8298 # Create a delimiter string that does not exist in confdefs.h, to ease
8299 # handling of long lines.
8300 ac_delim='%!_!# '
8301 for ac_last_try in false false :; do
8302 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8303 if test -z "$ac_t"; then
8304 break
8305 elif $ac_last_try; then
8306 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8307 else
8308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8310 done
8312 # For the awk script, D is an array of macro values keyed by name,
8313 # likewise P contains macro parameters if any. Preserve backslash
8314 # newline sequences.
8316 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8317 sed -n '
8318 s/.\{148\}/&'"$ac_delim"'/g
8319 t rset
8320 :rset
8321 s/^[ ]*#[ ]*define[ ][ ]*/ /
8322 t def
8324 :def
8325 s/\\$//
8326 t bsnl
8327 s/["\\]/\\&/g
8328 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8329 D["\1"]=" \3"/p
8330 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8332 :bsnl
8333 s/["\\]/\\&/g
8334 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8335 D["\1"]=" \3\\\\\\n"\\/p
8336 t cont
8337 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8338 t cont
8340 :cont
8342 s/.\{148\}/&'"$ac_delim"'/g
8343 t clear
8344 :clear
8345 s/\\$//
8346 t bsnlc
8347 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8349 :bsnlc
8350 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8351 b cont
8352 ' <confdefs.h | sed '
8353 s/'"$ac_delim"'/"\\\
8354 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8357 for (key in D) D_is_set[key] = 1
8358 FS = "\a"
8360 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8361 line = \$ 0
8362 split(line, arg, " ")
8363 if (arg[1] == "#") {
8364 defundef = arg[2]
8365 mac1 = arg[3]
8366 } else {
8367 defundef = substr(arg[1], 2)
8368 mac1 = arg[2]
8370 split(mac1, mac2, "(") #)
8371 macro = mac2[1]
8372 prefix = substr(line, 1, index(line, defundef) - 1)
8373 if (D_is_set[macro]) {
8374 # Preserve the white space surrounding the "#".
8375 print prefix "define", macro P[macro] D[macro]
8376 next
8377 } else {
8378 # Replace #undef with comments. This is necessary, for example,
8379 # in the case of _POSIX_SOURCE, which is predefined and required
8380 # on some systems where configure will not decide to define it.
8381 if (defundef == "undef") {
8382 print "/*", prefix defundef, macro, "*/"
8383 next
8387 { print }
8388 _ACAWK
8389 _ACEOF
8390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8391 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8392 fi # test -n "$CONFIG_HEADERS"
8395 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8396 shift
8397 for ac_tag
8399 case $ac_tag in
8400 :[FHLC]) ac_mode=$ac_tag; continue;;
8401 esac
8402 case $ac_mode$ac_tag in
8403 :[FHL]*:*);;
8404 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8405 :[FH]-) ac_tag=-:-;;
8406 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8407 esac
8408 ac_save_IFS=$IFS
8409 IFS=:
8410 set x $ac_tag
8411 IFS=$ac_save_IFS
8412 shift
8413 ac_file=$1
8414 shift
8416 case $ac_mode in
8417 :L) ac_source=$1;;
8418 :[FH])
8419 ac_file_inputs=
8420 for ac_f
8422 case $ac_f in
8423 -) ac_f="$tmp/stdin";;
8424 *) # Look for the file first in the build tree, then in the source tree
8425 # (if the path is not absolute). The absolute path cannot be DOS-style,
8426 # because $ac_f cannot contain `:'.
8427 test -f "$ac_f" ||
8428 case $ac_f in
8429 [\\/$]*) false;;
8430 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8431 esac ||
8432 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8433 esac
8434 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8435 as_fn_append ac_file_inputs " '$ac_f'"
8436 done
8438 # Let's still pretend it is `configure' which instantiates (i.e., don't
8439 # use $as_me), people would be surprised to read:
8440 # /* config.h. Generated by config.status. */
8441 configure_input='Generated from '`
8442 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8443 `' by configure.'
8444 if test x"$ac_file" != x-; then
8445 configure_input="$ac_file. $configure_input"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8447 $as_echo "$as_me: creating $ac_file" >&6;}
8449 # Neutralize special characters interpreted by sed in replacement strings.
8450 case $configure_input in #(
8451 *\&* | *\|* | *\\* )
8452 ac_sed_conf_input=`$as_echo "$configure_input" |
8453 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8454 *) ac_sed_conf_input=$configure_input;;
8455 esac
8457 case $ac_tag in
8458 *:-:* | *:-) cat >"$tmp/stdin" \
8459 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8460 esac
8462 esac
8464 ac_dir=`$as_dirname -- "$ac_file" ||
8465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8466 X"$ac_file" : 'X\(//\)[^/]' \| \
8467 X"$ac_file" : 'X\(//\)$' \| \
8468 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8469 $as_echo X"$ac_file" |
8470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8471 s//\1/
8474 /^X\(\/\/\)[^/].*/{
8475 s//\1/
8478 /^X\(\/\/\)$/{
8479 s//\1/
8482 /^X\(\/\).*/{
8483 s//\1/
8486 s/.*/./; q'`
8487 as_dir="$ac_dir"; as_fn_mkdir_p
8488 ac_builddir=.
8490 case "$ac_dir" in
8491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8494 # A ".." for each directory in $ac_dir_suffix.
8495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8496 case $ac_top_builddir_sub in
8497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8499 esac ;;
8500 esac
8501 ac_abs_top_builddir=$ac_pwd
8502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8503 # for backward compatibility:
8504 ac_top_builddir=$ac_top_build_prefix
8506 case $srcdir in
8507 .) # We are building in place.
8508 ac_srcdir=.
8509 ac_top_srcdir=$ac_top_builddir_sub
8510 ac_abs_top_srcdir=$ac_pwd ;;
8511 [\\/]* | ?:[\\/]* ) # Absolute name.
8512 ac_srcdir=$srcdir$ac_dir_suffix;
8513 ac_top_srcdir=$srcdir
8514 ac_abs_top_srcdir=$srcdir ;;
8515 *) # Relative name.
8516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8517 ac_top_srcdir=$ac_top_build_prefix$srcdir
8518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8519 esac
8520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8523 case $ac_mode in
8526 # CONFIG_FILE
8529 _ACEOF
8531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8532 # If the template does not know about datarootdir, expand it.
8533 # FIXME: This hack should be removed a few years after 2.60.
8534 ac_datarootdir_hack=; ac_datarootdir_seen=
8535 ac_sed_dataroot='
8536 /datarootdir/ {
8540 /@datadir@/p
8541 /@docdir@/p
8542 /@infodir@/p
8543 /@localedir@/p
8544 /@mandir@/p'
8545 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8546 *datarootdir*) ac_datarootdir_seen=yes;;
8547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8549 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8550 _ACEOF
8551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8552 ac_datarootdir_hack='
8553 s&@datadir@&$datadir&g
8554 s&@docdir@&$docdir&g
8555 s&@infodir@&$infodir&g
8556 s&@localedir@&$localedir&g
8557 s&@mandir@&$mandir&g
8558 s&\\\${datarootdir}&$datarootdir&g' ;;
8559 esac
8560 _ACEOF
8562 # Neutralize VPATH when `$srcdir' = `.'.
8563 # Shell code in configure.ac might set extrasub.
8564 # FIXME: do we really want to maintain this feature?
8565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8566 ac_sed_extra="$ac_vpsub
8567 $extrasub
8568 _ACEOF
8569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8572 s|@configure_input@|$ac_sed_conf_input|;t t
8573 s&@top_builddir@&$ac_top_builddir_sub&;t t
8574 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8575 s&@srcdir@&$ac_srcdir&;t t
8576 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8577 s&@top_srcdir@&$ac_top_srcdir&;t t
8578 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8579 s&@builddir@&$ac_builddir&;t t
8580 s&@abs_builddir@&$ac_abs_builddir&;t t
8581 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8582 $ac_datarootdir_hack
8584 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8585 || as_fn_error "could not create $ac_file" "$LINENO" 5
8587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8588 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8591 which seems to be undefined. Please make sure it is defined." >&5
8592 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8593 which seems to be undefined. Please make sure it is defined." >&2;}
8595 rm -f "$tmp/stdin"
8596 case $ac_file in
8597 -) cat "$tmp/out" && rm -f "$tmp/out";;
8598 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8599 esac \
8600 || as_fn_error "could not create $ac_file" "$LINENO" 5
8604 # CONFIG_HEADER
8606 if test x"$ac_file" != x-; then
8608 $as_echo "/* $configure_input */" \
8609 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8610 } >"$tmp/config.h" \
8611 || as_fn_error "could not create $ac_file" "$LINENO" 5
8612 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8614 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8615 else
8616 rm -f "$ac_file"
8617 mv "$tmp/config.h" "$ac_file" \
8618 || as_fn_error "could not create $ac_file" "$LINENO" 5
8620 else
8621 $as_echo "/* $configure_input */" \
8622 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8623 || as_fn_error "could not create -" "$LINENO" 5
8628 esac
8630 done # for ac_tag
8633 as_fn_exit 0
8634 _ACEOF
8635 ac_clean_files=$ac_clean_files_save
8637 test $ac_write_fail = 0 ||
8638 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8641 # configure is writing to config.log, and then calls config.status.
8642 # config.status does its own redirection, appending to config.log.
8643 # Unfortunately, on DOS this fails, as config.log is still kept open
8644 # by configure, so config.status won't be able to write to it; its
8645 # output is simply discarded. So we exec the FD to /dev/null,
8646 # effectively closing config.log, so it can be properly (re)opened and
8647 # appended to by config.status. When coming back to configure, we
8648 # need to make the FD available again.
8649 if test "$no_create" != yes; then
8650 ac_cs_success=:
8651 ac_config_status_args=
8652 test "$silent" = yes &&
8653 ac_config_status_args="$ac_config_status_args --quiet"
8654 exec 5>/dev/null
8655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8656 exec 5>>config.log
8657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8658 # would make configure fail if this is the last instruction.
8659 $ac_cs_success || as_fn_exit $?
8661 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8663 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}