Newer autotools
[gliv.git] / configure
blob5b46facf31832f70049522983332cb51faeb2ef9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for gliv 1.9.7.
5 # Report bugs to <guichaz@gmail.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and guichaz@gmail.com
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='gliv'
554 PACKAGE_TARNAME='gliv'
555 PACKAGE_VERSION='1.9.7'
556 PACKAGE_STRING='gliv 1.9.7'
557 PACKAGE_BUGREPORT='guichaz@gmail.com'
558 PACKAGE_URL=''
560 ac_unique_file="src/main.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 gt_needs=
598 ac_header_list=
599 ac_subst_vars='am__EXEEXT_FALSE
600 am__EXEEXT_TRUE
601 LTLIBOBJS
602 LIBOBJS
603 POSUB
604 LTLIBINTL
605 LIBINTL
606 INTLLIBS
607 INTL_LIBTOOL_SUFFIX_PREFIX
608 INTLOBJS
609 GENCAT
610 INSTOBJEXT
611 DATADIRNAME
612 CATOBJEXT
613 USE_INCLUDED_LIBINTL
614 BUILD_INCLUDED_LIBINTL
615 LTLIBC
616 WINDRES
617 WOE32
618 WOE32DLL
619 HAVE_WPRINTF
620 HAVE_SNPRINTF
621 HAVE_ASPRINTF
622 HAVE_POSIX_PRINTF
623 INTL_MACOSX_LIBS
624 GLIBC21
625 INTLBISON
626 LTLIBICONV
627 LIBICONV
628 LTLIBMULTITHREAD
629 LIBMULTITHREAD
630 LTLIBTHREAD
631 LIBTHREAD
632 LIBPTH_PREFIX
633 LTLIBPTH
634 LIBPTH
635 PRI_MACROS_BROKEN
636 ALLOCA
637 HAVE_VISIBILITY
638 CFLAG_VISIBILITY
639 GLIBC2
640 host_os
641 host_vendor
642 host_cpu
643 host
644 build_os
645 build_vendor
646 build_cpu
647 build
648 XGETTEXT_EXTRA_OPTIONS
649 MSGMERGE
650 XGETTEXT_015
651 XGETTEXT
652 GMSGFMT_015
653 MSGFMT_015
654 GMSGFMT
655 MSGFMT
656 GETTEXT_MACRO_VERSION
657 USE_NLS
658 GTK_LIBS
659 GTK_CFLAGS
660 GTKGLEXT_LIBS
661 GTKGLEXT_CFLAGS
662 PKG_CONFIG
663 X_EXTRA_LIBS
664 X_LIBS
665 X_PRE_LIBS
666 X_CFLAGS
667 XMKMF
668 NEED_REPLACEMENTS_FALSE
669 NEED_REPLACEMENTS_TRUE
670 GETOPT_LONG_FALSE
671 GETOPT_LONG_TRUE
672 GETDELIM_FALSE
673 GETDELIM_TRUE
674 RANLIB
675 EGREP
676 GREP
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_dependency_tracking
759 enable_largefile
760 with_x
761 enable_gtktest
762 enable_nls
763 enable_threads
764 with_gnu_ld
765 enable_rpath
766 with_libpth_prefix
767 with_libiconv_prefix
768 with_included_gettext
769 with_libintl_prefix
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
780 XMKMF
781 PKG_CONFIG
782 GTKGLEXT_CFLAGS
783 GTKGLEXT_LIBS'
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
834 ac_prev=
835 ac_dashdash=
836 for ac_option
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
845 case $ac_option in
846 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *) ac_optarg=yes ;;
848 esac
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
854 ac_dashdash=yes ;;
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
873 --config-cache | -C)
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1168 -*) as_fn_error "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information."
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 esac
1191 done
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error "missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error "pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1277 /^X\(\/\/\)$/{
1278 s//\1/
1281 /^X\(\/\).*/{
1282 s//\1/
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1290 else
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures gliv 1.9.7 to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/gliv]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1380 cat <<\_ACEOF
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387 X features:
1388 --x-includes=DIR X include files are in DIR
1389 --x-libraries=DIR X library files are in DIR
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of gliv 1.9.7:";;
1400 esac
1401 cat <<\_ACEOF
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --disable-dependency-tracking speeds up one-time build
1408 --enable-dependency-tracking do not reject slow dependency extractors
1409 --disable-largefile omit support for large files
1410 --disable-gtktest do not try to compile and run a test GTK+ program
1411 --disable-nls do not use Native Language Support
1412 --enable-threads={posix|solaris|pth|win32}
1413 specify multithreading API
1414 --disable-threads build without multithread safety
1415 --disable-rpath do not hardcode runtime library paths
1417 Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-x use the X Window System
1421 --with-gnu-ld assume the C compiler uses GNU ld default=no
1422 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1423 --without-libpth-prefix don't search for libpth in includedir and libdir
1424 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1425 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1426 --with-included-gettext use the GNU gettext library included here
1427 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1428 --without-libintl-prefix don't search for libintl in includedir and libdir
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1438 CPP C preprocessor
1439 XMKMF Path to xmkmf, Makefile generator for X Window System
1440 PKG_CONFIG path to pkg-config utility
1441 GTKGLEXT_CFLAGS
1442 C compiler flags for GTKGLEXT, overriding pkg-config
1443 GTKGLEXT_LIBS
1444 linker flags for GTKGLEXT, overriding pkg-config
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1449 Report bugs to <guichaz@gmail.com>.
1450 _ACEOF
1451 ac_status=$?
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 gliv configure 1.9.7
1513 generated by GNU Autoconf 2.65
1515 Copyright (C) 2009 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1557 ac_retval=1
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 as_fn_set_status $ac_retval
1562 } # ac_fn_c_try_compile
1564 # ac_fn_c_try_cpp LINENO
1565 # ----------------------
1566 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_cpp ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 if { { ac_try="$ac_cpp conftest.$ac_ext"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } >/dev/null && {
1586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 }; then :
1589 ac_retval=0
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1594 ac_retval=1
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597 as_fn_set_status $ac_retval
1599 } # ac_fn_c_try_cpp
1601 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1602 # -------------------------------------------------------
1603 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1604 # the include files in INCLUDES and setting the cache variable VAR
1605 # accordingly.
1606 ac_fn_c_check_header_mongrel ()
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611 $as_echo_n "checking for $2... " >&6; }
1612 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1613 $as_echo_n "(cached) " >&6
1615 eval ac_res=\$$3
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617 $as_echo "$ac_res" >&6; }
1618 else
1619 # Is the header compilable?
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1621 $as_echo_n "checking $2 usability... " >&6; }
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1625 #include <$2>
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"; then :
1628 ac_header_compiler=yes
1629 else
1630 ac_header_compiler=no
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1634 $as_echo "$ac_header_compiler" >&6; }
1636 # Is the header present?
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1638 $as_echo_n "checking $2 presence... " >&6; }
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_cpp "$LINENO"; then :
1644 ac_header_preproc=yes
1645 else
1646 ac_header_preproc=no
1648 rm -f conftest.err conftest.$ac_ext
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1650 $as_echo "$ac_header_preproc" >&6; }
1652 # So? What about this header?
1653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1654 yes:no: )
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1656 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1658 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 no:yes:* )
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1662 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1664 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1666 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1668 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1670 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1671 ( cat <<\_ASBOX
1672 ## -------------------------------- ##
1673 ## Report this to guichaz@gmail.com ##
1674 ## -------------------------------- ##
1675 _ASBOX
1676 ) | sed "s/^/$as_me: WARNING: /" >&2
1678 esac
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 eval "$3=\$ac_header_compiler"
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 } # ac_fn_c_check_header_mongrel
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 as_fn_set_status $ac_retval
1734 } # ac_fn_c_try_run
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 as_fn_set_status $ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1841 #undef $2
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1858 main ()
1860 return $2 ();
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 } # ac_fn_c_check_func
1880 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1881 # --------------------------------------------
1882 # Tries to find the compile-time value of EXPR in a program that includes
1883 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1884 # computed
1885 ac_fn_c_compute_int ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if test "$cross_compiling" = yes; then
1889 # Depending upon the size, compute the lo and hi bounds.
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1894 main ()
1896 static int test_array [1 - 2 * !(($2) >= 0)];
1897 test_array [0] = 0
1900 return 0;
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 ac_lo=0 ac_mid=0
1905 while :; do
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1910 main ()
1912 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1913 test_array [0] = 0
1916 return 0;
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_hi=$ac_mid; break
1921 else
1922 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1923 if test $ac_lo -le $ac_mid; then
1924 ac_lo= ac_hi=
1925 break
1927 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 done
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1936 main ()
1938 static int test_array [1 - 2 * !(($2) < 0)];
1939 test_array [0] = 0
1942 return 0;
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_hi=-1 ac_mid=-1
1947 while :; do
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1952 main ()
1954 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1955 test_array [0] = 0
1958 return 0;
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_lo=$ac_mid; break
1963 else
1964 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965 if test $ac_mid -le $ac_hi; then
1966 ac_lo= ac_hi=
1967 break
1969 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 done
1973 else
1974 ac_lo= ac_hi=
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 # Binary search between lo and hi bounds.
1980 while test "x$ac_lo" != "x$ac_hi"; do
1981 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 main ()
1988 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989 test_array [0] = 0
1992 return 0;
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 ac_hi=$ac_mid
1997 else
1998 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 done
2002 case $ac_lo in #((
2003 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2004 '') ac_retval=1 ;;
2005 esac
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2010 static long int longval () { return $2; }
2011 static unsigned long int ulongval () { return $2; }
2012 #include <stdio.h>
2013 #include <stdlib.h>
2015 main ()
2018 FILE *f = fopen ("conftest.val", "w");
2019 if (! f)
2020 return 1;
2021 if (($2) < 0)
2023 long int i = longval ();
2024 if (i != ($2))
2025 return 1;
2026 fprintf (f, "%ld", i);
2028 else
2030 unsigned long int i = ulongval ();
2031 if (i != ($2))
2032 return 1;
2033 fprintf (f, "%lu", i);
2035 /* Do not output a trailing newline, as this causes \r\n confusion
2036 on some platforms. */
2037 return ferror (f) || fclose (f) != 0;
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_run "$LINENO"; then :
2044 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2045 else
2046 ac_retval=1
2048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2049 conftest.$ac_objext conftest.beam conftest.$ac_ext
2050 rm -f conftest.val
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 as_fn_set_status $ac_retval
2056 } # ac_fn_c_compute_int
2058 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059 # -------------------------------------------
2060 # Tests whether TYPE exists after having included INCLUDES, setting cache
2061 # variable VAR accordingly.
2062 ac_fn_c_check_type ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2068 $as_echo_n "(cached) " >&6
2069 else
2070 eval "$3=no"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 main ()
2077 if (sizeof ($2))
2078 return 0;
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 if (sizeof (($2)))
2091 return 0;
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2098 else
2099 eval "$3=yes"
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110 } # ac_fn_c_check_type
2111 cat >config.log <<_ACEOF
2112 This file contains any messages produced by compilers while
2113 running configure, to aid debugging if configure makes a mistake.
2115 It was created by gliv $as_me 1.9.7, which was
2116 generated by GNU Autoconf 2.65. Invocation command line was
2118 $ $0 $@
2120 _ACEOF
2121 exec 5>>config.log
2123 cat <<_ASUNAME
2124 ## --------- ##
2125 ## Platform. ##
2126 ## --------- ##
2128 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2129 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2130 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2131 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2132 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2134 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2135 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2137 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2138 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2139 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2140 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2141 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2142 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2143 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2145 _ASUNAME
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 $as_echo "PATH: $as_dir"
2153 done
2154 IFS=$as_save_IFS
2156 } >&5
2158 cat >&5 <<_ACEOF
2161 ## ----------- ##
2162 ## Core tests. ##
2163 ## ----------- ##
2165 _ACEOF
2168 # Keep a trace of the command line.
2169 # Strip out --no-create and --no-recursion so they do not pile up.
2170 # Strip out --silent because we don't want to record it for future runs.
2171 # Also quote any args containing shell meta-characters.
2172 # Make two passes to allow for proper duplicate-argument suppression.
2173 ac_configure_args=
2174 ac_configure_args0=
2175 ac_configure_args1=
2176 ac_must_keep_next=false
2177 for ac_pass in 1 2
2179 for ac_arg
2181 case $ac_arg in
2182 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2184 | -silent | --silent | --silen | --sile | --sil)
2185 continue ;;
2186 *\'*)
2187 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2188 esac
2189 case $ac_pass in
2190 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2192 as_fn_append ac_configure_args1 " '$ac_arg'"
2193 if test $ac_must_keep_next = true; then
2194 ac_must_keep_next=false # Got value, back to normal.
2195 else
2196 case $ac_arg in
2197 *=* | --config-cache | -C | -disable-* | --disable-* \
2198 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2199 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2200 | -with-* | --with-* | -without-* | --without-* | --x)
2201 case "$ac_configure_args0 " in
2202 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2203 esac
2205 -* ) ac_must_keep_next=true ;;
2206 esac
2208 as_fn_append ac_configure_args " '$ac_arg'"
2210 esac
2211 done
2212 done
2213 { ac_configure_args0=; unset ac_configure_args0;}
2214 { ac_configure_args1=; unset ac_configure_args1;}
2216 # When interrupted or exit'd, cleanup temporary files, and complete
2217 # config.log. We remove comments because anyway the quotes in there
2218 # would cause problems or look ugly.
2219 # WARNING: Use '\'' to represent an apostrophe within the trap.
2220 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2221 trap 'exit_status=$?
2222 # Save into config.log some information that might help in debugging.
2224 echo
2226 cat <<\_ASBOX
2227 ## ---------------- ##
2228 ## Cache variables. ##
2229 ## ---------------- ##
2230 _ASBOX
2231 echo
2232 # The following way of writing the cache mishandles newlines in values,
2234 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2235 eval ac_val=\$$ac_var
2236 case $ac_val in #(
2237 *${as_nl}*)
2238 case $ac_var in #(
2239 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2240 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2241 esac
2242 case $ac_var in #(
2243 _ | IFS | as_nl) ;; #(
2244 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2245 *) { eval $ac_var=; unset $ac_var;} ;;
2246 esac ;;
2247 esac
2248 done
2249 (set) 2>&1 |
2250 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2251 *${as_nl}ac_space=\ *)
2252 sed -n \
2253 "s/'\''/'\''\\\\'\'''\''/g;
2254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2255 ;; #(
2257 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2259 esac |
2260 sort
2262 echo
2264 cat <<\_ASBOX
2265 ## ----------------- ##
2266 ## Output variables. ##
2267 ## ----------------- ##
2268 _ASBOX
2269 echo
2270 for ac_var in $ac_subst_vars
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2277 done | sort
2278 echo
2280 if test -n "$ac_subst_files"; then
2281 cat <<\_ASBOX
2282 ## ------------------- ##
2283 ## File substitutions. ##
2284 ## ------------------- ##
2285 _ASBOX
2286 echo
2287 for ac_var in $ac_subst_files
2289 eval ac_val=\$$ac_var
2290 case $ac_val in
2291 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292 esac
2293 $as_echo "$ac_var='\''$ac_val'\''"
2294 done | sort
2295 echo
2298 if test -s confdefs.h; then
2299 cat <<\_ASBOX
2300 ## ----------- ##
2301 ## confdefs.h. ##
2302 ## ----------- ##
2303 _ASBOX
2304 echo
2305 cat confdefs.h
2306 echo
2308 test "$ac_signal" != 0 &&
2309 $as_echo "$as_me: caught signal $ac_signal"
2310 $as_echo "$as_me: exit $exit_status"
2311 } >&5
2312 rm -f core *.core core.conftest.* &&
2313 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2314 exit $exit_status
2316 for ac_signal in 1 2 13 15; do
2317 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2318 done
2319 ac_signal=0
2321 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2322 rm -f -r conftest* confdefs.h
2324 $as_echo "/* confdefs.h */" > confdefs.h
2326 # Predefined preprocessor variables.
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_NAME "$PACKAGE_NAME"
2330 _ACEOF
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2338 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_STRING "$PACKAGE_STRING"
2342 _ACEOF
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2346 _ACEOF
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_URL "$PACKAGE_URL"
2350 _ACEOF
2353 # Let the site file select an alternate cache file if it wants to.
2354 # Prefer an explicitly selected file to automatically selected ones.
2355 ac_site_file1=NONE
2356 ac_site_file2=NONE
2357 if test -n "$CONFIG_SITE"; then
2358 ac_site_file1=$CONFIG_SITE
2359 elif test "x$prefix" != xNONE; then
2360 ac_site_file1=$prefix/share/config.site
2361 ac_site_file2=$prefix/etc/config.site
2362 else
2363 ac_site_file1=$ac_default_prefix/share/config.site
2364 ac_site_file2=$ac_default_prefix/etc/config.site
2366 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2368 test "x$ac_site_file" = xNONE && continue
2369 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2371 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2372 sed 's/^/| /' "$ac_site_file" >&5
2373 . "$ac_site_file"
2375 done
2377 if test -r "$cache_file"; then
2378 # Some versions of bash will fail to source /dev/null (special files
2379 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2380 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2382 $as_echo "$as_me: loading cache $cache_file" >&6;}
2383 case $cache_file in
2384 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2385 *) . "./$cache_file";;
2386 esac
2388 else
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2390 $as_echo "$as_me: creating cache $cache_file" >&6;}
2391 >$cache_file
2394 gt_needs="$gt_needs "
2395 as_fn_append ac_header_list " stdlib.h"
2396 as_fn_append ac_header_list " unistd.h"
2397 as_fn_append ac_header_list " sys/param.h"
2398 # Check that the precious variables saved in the cache have kept the same
2399 # value.
2400 ac_cache_corrupted=false
2401 for ac_var in $ac_precious_vars; do
2402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2403 eval ac_new_set=\$ac_env_${ac_var}_set
2404 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2405 eval ac_new_val=\$ac_env_${ac_var}_value
2406 case $ac_old_set,$ac_new_set in
2407 set,)
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2409 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2410 ac_cache_corrupted=: ;;
2411 ,set)
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2415 ,);;
2417 if test "x$ac_old_val" != "x$ac_new_val"; then
2418 # differences in whitespace do not lead to failure.
2419 ac_old_val_w=`echo x $ac_old_val`
2420 ac_new_val_w=`echo x $ac_new_val`
2421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2423 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2424 ac_cache_corrupted=:
2425 else
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2427 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2428 eval $ac_var=\$ac_old_val
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2431 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2433 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2434 fi;;
2435 esac
2436 # Pass precious variables to config.status.
2437 if test "$ac_new_set" = set; then
2438 case $ac_new_val in
2439 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2440 *) ac_arg=$ac_var=$ac_new_val ;;
2441 esac
2442 case " $ac_configure_args " in
2443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2444 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2445 esac
2447 done
2448 if $ac_cache_corrupted; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2452 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2453 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2455 ## -------------------- ##
2456 ## Main body of script. ##
2457 ## -------------------- ##
2459 ac_ext=c
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 am__api_version='1.11'
2469 ac_aux_dir=
2470 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2471 for ac_t in install-sh install.sh shtool; do
2472 if test -f "$ac_dir/$ac_t"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/$ac_t -c"
2475 break 2
2477 done
2478 done
2479 if test -z "$ac_aux_dir"; then
2480 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2483 # These three variables are undocumented and unsupported,
2484 # and are intended to be withdrawn in a future Autoconf release.
2485 # They can cause serious problems if a builder's source tree is in a directory
2486 # whose full name contains unusual characters.
2487 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2488 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2489 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2492 # Find a good install program. We prefer a C program (faster),
2493 # so one script is as good as another. But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2498 # AIX /bin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 # Reject install programs that cannot install multiple files.
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2507 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2508 if test -z "$INSTALL"; then
2509 if test "${ac_cv_path_install+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518 case $as_dir/ in #((
2519 ./ | .// | /[cC]/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2522 /usr/ucb/* ) ;;
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2526 # by default.
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2530 if test $ac_prog = install &&
2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # AIX install. It has an incompatible calling convention.
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2538 else
2539 rm -rf conftest.one conftest.two conftest.dir
2540 echo one > conftest.one
2541 echo two > conftest.two
2542 mkdir conftest.dir
2543 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2544 test -s conftest.one && test -s conftest.two &&
2545 test -s conftest.dir/conftest.one &&
2546 test -s conftest.dir/conftest.two
2547 then
2548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2549 break 3
2553 done
2554 done
2556 esac
2558 done
2559 IFS=$as_save_IFS
2561 rm -rf conftest.one conftest.two conftest.dir
2564 if test "${ac_cv_path_install+set}" = set; then
2565 INSTALL=$ac_cv_path_install
2566 else
2567 # As a last resort, use the slow shell script. Don't cache a
2568 # value for INSTALL within a source directory, because that will
2569 # break other packages using the cache if that directory is
2570 # removed, or if the value is a relative name.
2571 INSTALL=$ac_install_sh
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2575 $as_echo "$INSTALL" >&6; }
2577 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2578 # It thinks the first close brace ends the variable substitution.
2579 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2581 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2583 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2586 $as_echo_n "checking whether build environment is sane... " >&6; }
2587 # Just in case
2588 sleep 1
2589 echo timestamp > conftest.file
2590 # Reject unsafe characters in $srcdir or the absolute working directory
2591 # name. Accept space and tab only in the latter.
2592 am_lf='
2594 case `pwd` in
2595 *[\\\"\#\$\&\'\`$am_lf]*)
2596 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2597 esac
2598 case $srcdir in
2599 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2600 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2601 esac
2603 # Do `set' in a subshell so we don't clobber the current shell's
2604 # arguments. Must try -L first in case configure is actually a
2605 # symlink; some systems play weird games with the mod time of symlinks
2606 # (eg FreeBSD returns the mod time of the symlink's containing
2607 # directory).
2608 if (
2609 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2610 if test "$*" = "X"; then
2611 # -L didn't work.
2612 set X `ls -t "$srcdir/configure" conftest.file`
2614 rm -f conftest.file
2615 if test "$*" != "X $srcdir/configure conftest.file" \
2616 && test "$*" != "X conftest.file $srcdir/configure"; then
2618 # If neither matched, then we have a broken ls. This can happen
2619 # if, for instance, CONFIG_SHELL is bash and it inherits a
2620 # broken ls alias from the environment. This has actually
2621 # happened. Such a system could not be considered "sane".
2622 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2623 alias in your environment" "$LINENO" 5
2626 test "$2" = conftest.file
2628 then
2629 # Ok.
2631 else
2632 as_fn_error "newly created file is older than distributed files!
2633 Check your system clock" "$LINENO" 5
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 $as_echo "yes" >&6; }
2637 test "$program_prefix" != NONE &&
2638 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2639 # Use a double $ so make ignores it.
2640 test "$program_suffix" != NONE &&
2641 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2642 # Double any \ or $.
2643 # By default was `s,x,x', remove it if useless.
2644 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2645 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2647 # expand $ac_aux_dir to an absolute path
2648 am_aux_dir=`cd $ac_aux_dir && pwd`
2650 if test x"${MISSING+set}" != xset; then
2651 case $am_aux_dir in
2652 *\ * | *\ *)
2653 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2655 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2656 esac
2658 # Use eval to expand $SHELL
2659 if eval "$MISSING --run true"; then
2660 am_missing_run="$MISSING --run "
2661 else
2662 am_missing_run=
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2664 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2667 if test x"${install_sh}" != xset; then
2668 case $am_aux_dir in
2669 *\ * | *\ *)
2670 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2672 install_sh="\${SHELL} $am_aux_dir/install-sh"
2673 esac
2676 # Installed binaries are usually stripped using `strip' when the user
2677 # run `make install-strip'. However `strip' might not be the right
2678 # tool to use in cross-compilation environments, therefore Automake
2679 # will honor the `STRIP' environment variable to overrule this program.
2680 if test "$cross_compiling" != no; then
2681 if test -n "$ac_tool_prefix"; then
2682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2683 set dummy ${ac_tool_prefix}strip; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if test "${ac_cv_prog_STRIP+set}" = set; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test -n "$STRIP"; then
2690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2703 done
2704 done
2705 IFS=$as_save_IFS
2709 STRIP=$ac_cv_prog_STRIP
2710 if test -n "$STRIP"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2712 $as_echo "$STRIP" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2720 if test -z "$ac_cv_prog_STRIP"; then
2721 ac_ct_STRIP=$STRIP
2722 # Extract the first word of "strip", so it can be a program name with args.
2723 set dummy strip; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test -n "$ac_ct_STRIP"; then
2730 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_STRIP="strip"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2743 done
2744 done
2745 IFS=$as_save_IFS
2749 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2750 if test -n "$ac_ct_STRIP"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2752 $as_echo "$ac_ct_STRIP" >&6; }
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2758 if test "x$ac_ct_STRIP" = x; then
2759 STRIP=":"
2760 else
2761 case $cross_compiling:$ac_tool_warned in
2762 yes:)
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765 ac_tool_warned=yes ;;
2766 esac
2767 STRIP=$ac_ct_STRIP
2769 else
2770 STRIP="$ac_cv_prog_STRIP"
2774 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2777 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2778 if test -z "$MKDIR_P"; then
2779 if test "${ac_cv_path_mkdir+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_prog in mkdir gmkdir; do
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2790 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2791 'mkdir (GNU coreutils) '* | \
2792 'mkdir (coreutils) '* | \
2793 'mkdir (fileutils) '4.1*)
2794 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2795 break 3;;
2796 esac
2797 done
2798 done
2799 done
2800 IFS=$as_save_IFS
2804 test -d ./--version && rmdir ./--version
2805 if test "${ac_cv_path_mkdir+set}" = set; then
2806 MKDIR_P="$ac_cv_path_mkdir -p"
2807 else
2808 # As a last resort, use the slow shell script. Don't cache a
2809 # value for MKDIR_P within a source directory, because that will
2810 # break other packages using the cache if that directory is
2811 # removed, or if the value is a relative name.
2812 MKDIR_P="$ac_install_sh -d"
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2816 $as_echo "$MKDIR_P" >&6; }
2818 mkdir_p="$MKDIR_P"
2819 case $mkdir_p in
2820 [\\/$]* | ?:[\\/]*) ;;
2821 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2822 esac
2824 for ac_prog in gawk mawk nawk awk
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827 set dummy $ac_prog; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if test "${ac_cv_prog_AWK+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if test -n "$AWK"; then
2834 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_AWK="$ac_prog"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2849 IFS=$as_save_IFS
2853 AWK=$ac_cv_prog_AWK
2854 if test -n "$AWK"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2856 $as_echo "$AWK" >&6; }
2857 else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2863 test -n "$AWK" && break
2864 done
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2868 set x ${MAKE-make}
2869 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2870 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 cat >conftest.make <<\_ACEOF
2874 SHELL = /bin/sh
2875 all:
2876 @echo '@@@%%%=$(MAKE)=@@@%%%'
2877 _ACEOF
2878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2879 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2880 *@@@%%%=?*=@@@%%%*)
2881 eval ac_cv_prog_make_${ac_make}_set=yes;;
2883 eval ac_cv_prog_make_${ac_make}_set=no;;
2884 esac
2885 rm -f conftest.make
2887 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 SET_MAKE=
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 SET_MAKE="MAKE=${MAKE-make}"
2897 rm -rf .tst 2>/dev/null
2898 mkdir .tst 2>/dev/null
2899 if test -d .tst; then
2900 am__leading_dot=.
2901 else
2902 am__leading_dot=_
2904 rmdir .tst 2>/dev/null
2906 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2907 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2908 # is not polluted with repeated "-I."
2909 am__isrc=' -I$(srcdir)'
2910 # test to see if srcdir already configured
2911 if test -f $srcdir/config.status; then
2912 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2916 # test whether we have cygpath
2917 if test -z "$CYGPATH_W"; then
2918 if (cygpath --version) >/dev/null 2>/dev/null; then
2919 CYGPATH_W='cygpath -w'
2920 else
2921 CYGPATH_W=echo
2926 # Define the identity of the package.
2927 PACKAGE='gliv'
2928 VERSION='1.9.7'
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE "$PACKAGE"
2933 _ACEOF
2936 cat >>confdefs.h <<_ACEOF
2937 #define VERSION "$VERSION"
2938 _ACEOF
2940 # Some tools Automake needs.
2942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2956 # We need awk for the "check" target. The system "awk" is bad on
2957 # some platforms.
2958 # Always define AMTAR for backward compatibility.
2960 AMTAR=${AMTAR-"${am_missing_run}tar"}
2962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2968 ac_config_headers="$ac_config_headers config.h"
2970 ac_ext=c
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976 DEPDIR="${am__leading_dot}deps"
2978 ac_config_commands="$ac_config_commands depfiles"
2981 am_make=${MAKE-make}
2982 cat > confinc << 'END'
2983 am__doit:
2984 @echo this is the am__doit target
2985 .PHONY: am__doit
2987 # If we don't find an include directive, just comment out the code.
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2989 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2990 am__include="#"
2991 am__quote=
2992 _am_result=none
2993 # First try GNU make style include.
2994 echo "include confinc" > confmf
2995 # Ignore all kinds of additional output from `make'.
2996 case `$am_make -s -f confmf 2> /dev/null` in #(
2997 *the\ am__doit\ target*)
2998 am__include=include
2999 am__quote=
3000 _am_result=GNU
3002 esac
3003 # Now try BSD make style include.
3004 if test "$am__include" = "#"; then
3005 echo '.include "confinc"' > confmf
3006 case `$am_make -s -f confmf 2> /dev/null` in #(
3007 *the\ am__doit\ target*)
3008 am__include=.include
3009 am__quote="\""
3010 _am_result=BSD
3012 esac
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3017 $as_echo "$_am_result" >&6; }
3018 rm -f confinc confmf
3020 # Check whether --enable-dependency-tracking was given.
3021 if test "${enable_dependency_tracking+set}" = set; then :
3022 enableval=$enable_dependency_tracking;
3025 if test "x$enable_dependency_tracking" != xno; then
3026 am_depcomp="$ac_aux_dir/depcomp"
3027 AMDEPBACKSLASH='\'
3029 if test "x$enable_dependency_tracking" != xno; then
3030 AMDEP_TRUE=
3031 AMDEP_FALSE='#'
3032 else
3033 AMDEP_TRUE='#'
3034 AMDEP_FALSE=
3038 ac_ext=c
3039 ac_cpp='$CPP $CPPFLAGS'
3040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3065 done
3066 done
3067 IFS=$as_save_IFS
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3082 if test -z "$ac_cv_prog_CC"; then
3083 ac_ct_CC=$CC
3084 # Extract the first word of "gcc", so it can be a program name with args.
3085 set dummy gcc; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 ac_cv_prog_ac_ct_CC="gcc"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3105 done
3106 done
3107 IFS=$as_save_IFS
3111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3120 if test "x$ac_ct_CC" = x; then
3121 CC=""
3122 else
3123 case $cross_compiling:$ac_tool_warned in
3124 yes:)
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127 ac_tool_warned=yes ;;
3128 esac
3129 CC=$ac_ct_CC
3131 else
3132 CC="$ac_cv_prog_CC"
3135 if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}cc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC="${ac_tool_prefix}cc"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3176 if test -z "$CC"; then
3177 # Extract the first word of "cc", so it can be a program name with args.
3178 set dummy cc; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 ac_prog_rejected=no
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3196 ac_prog_rejected=yes
3197 continue
3199 ac_cv_prog_CC="cc"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3203 done
3204 done
3205 IFS=$as_save_IFS
3207 if test $ac_prog_rejected = yes; then
3208 # We found a bogon in the path, so make sure we never use it.
3209 set dummy $ac_cv_prog_CC
3210 shift
3211 if test $# != 0; then
3212 # We chose a different compiler from the bogus one.
3213 # However, it has the same basename, so the bogon will be chosen
3214 # first if we set CC to just the basename; use the full file name.
3215 shift
3216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 for ac_prog in cl.exe
3236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3257 done
3258 done
3259 IFS=$as_save_IFS
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3273 test -n "$CC" && break
3274 done
3276 if test -z "$CC"; then
3277 ac_ct_CC=$CC
3278 for ac_prog in cl.exe
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy $ac_prog; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -n "$ac_ct_CC"; then
3288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_ac_ct_CC="$ac_prog"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3301 done
3302 done
3303 IFS=$as_save_IFS
3307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3308 if test -n "$ac_ct_CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3310 $as_echo "$ac_ct_CC" >&6; }
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3317 test -n "$ac_ct_CC" && break
3318 done
3320 if test "x$ac_ct_CC" = x; then
3321 CC=""
3322 else
3323 case $cross_compiling:$ac_tool_warned in
3324 yes:)
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3327 ac_tool_warned=yes ;;
3328 esac
3329 CC=$ac_ct_CC
3336 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error "no acceptable C compiler found in \$PATH
3339 See \`config.log' for more details." "$LINENO" 5; }
3341 # Provide some information about the compiler.
3342 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3343 set X $ac_compile
3344 ac_compiler=$2
3345 for ac_option in --version -v -V -qversion; do
3346 { { ac_try="$ac_compiler $ac_option >&5"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3354 ac_status=$?
3355 if test -s conftest.err; then
3356 sed '10a\
3357 ... rest of stderr output deleted ...
3358 10q' conftest.err >conftest.er1
3359 cat conftest.er1 >&5
3361 rm -f conftest.er1 conftest.err
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }
3364 done
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3370 main ()
3374 return 0;
3376 _ACEOF
3377 ac_clean_files_save=$ac_clean_files
3378 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3379 # Try to create an executable without -o first, disregard a.out.
3380 # It will help us diagnose broken compilers, and finding out an intuition
3381 # of exeext.
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3383 $as_echo_n "checking whether the C compiler works... " >&6; }
3384 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3386 # The possible output files:
3387 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3389 ac_rmfiles=
3390 for ac_file in $ac_files
3392 case $ac_file in
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3394 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3395 esac
3396 done
3397 rm -f $ac_rmfiles
3399 if { { ac_try="$ac_link_default"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_link_default") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; then :
3410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3412 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3413 # so that the user can short-circuit this test for compilers unknown to
3414 # Autoconf.
3415 for ac_file in $ac_files ''
3417 test -f "$ac_file" || continue
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3421 [ab].out )
3422 # We found the default executable, but exeext='' is most
3423 # certainly right.
3424 break;;
3425 *.* )
3426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3427 then :; else
3428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 # We set ac_cv_exeext here because the later test for it is not
3431 # safe: cross compilers may not add the suffix if given an `-o'
3432 # argument, so we may need to know it at that point already.
3433 # Even if this section looks crufty: it has the advantage of
3434 # actually working.
3435 break;;
3437 break;;
3438 esac
3439 done
3440 test "$ac_cv_exeext" = no && ac_cv_exeext=
3442 else
3443 ac_file=''
3445 if test -z "$ac_file"; then :
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 { as_fn_set_status 77
3454 as_fn_error "C compiler cannot create executables
3455 See \`config.log' for more details." "$LINENO" 5; }; }
3456 else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3458 $as_echo "yes" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3461 $as_echo_n "checking for C compiler default output file name... " >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3463 $as_echo "$ac_file" >&6; }
3464 ac_exeext=$ac_cv_exeext
3466 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3467 ac_clean_files=$ac_clean_files_save
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3469 $as_echo_n "checking for suffix of executables... " >&6; }
3470 if { { ac_try="$ac_link"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_link") 2>&5
3478 ac_status=$?
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; then :
3481 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3482 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3483 # work properly (i.e., refer to `conftest.exe'), while it won't with
3484 # `rm'.
3485 for ac_file in conftest.exe conftest conftest.*; do
3486 test -f "$ac_file" || continue
3487 case $ac_file in
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3490 break;;
3491 * ) break;;
3492 esac
3493 done
3494 else
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error "cannot compute suffix of executables: cannot compile and link
3498 See \`config.log' for more details." "$LINENO" 5; }
3500 rm -f conftest conftest$ac_cv_exeext
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3502 $as_echo "$ac_cv_exeext" >&6; }
3504 rm -f conftest.$ac_ext
3505 EXEEXT=$ac_cv_exeext
3506 ac_exeext=$EXEEXT
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509 #include <stdio.h>
3511 main ()
3513 FILE *f = fopen ("conftest.out", "w");
3514 return ferror (f) || fclose (f) != 0;
3517 return 0;
3519 _ACEOF
3520 ac_clean_files="$ac_clean_files conftest.out"
3521 # Check that the compiler produces executables we can run. If not, either
3522 # the compiler is broken, or we cross compile.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3524 $as_echo_n "checking whether we are cross compiling... " >&6; }
3525 if test "$cross_compiling" != yes; then
3526 { { ac_try="$ac_link"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_link") 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }
3537 if { ac_try='./conftest$ac_cv_exeext'
3538 { { case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_try") 2>&5
3545 ac_status=$?
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }; }; then
3548 cross_compiling=no
3549 else
3550 if test "$cross_compiling" = maybe; then
3551 cross_compiling=yes
3552 else
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error "cannot run C compiled programs.
3556 If you meant to cross compile, use \`--host'.
3557 See \`config.log' for more details." "$LINENO" 5; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3562 $as_echo "$cross_compiling" >&6; }
3564 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3565 ac_clean_files=$ac_clean_files_save
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3567 $as_echo_n "checking for suffix of object files... " >&6; }
3568 if test "${ac_cv_objext+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3575 main ()
3579 return 0;
3581 _ACEOF
3582 rm -f conftest.o conftest.obj
3583 if { { ac_try="$ac_compile"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_compile") 2>&5
3591 ac_status=$?
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 for ac_file in conftest.o conftest.obj conftest.*; do
3595 test -f "$ac_file" || continue;
3596 case $ac_file in
3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3599 break;;
3600 esac
3601 done
3602 else
3603 $as_echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error "cannot compute suffix of object files: cannot compile
3609 See \`config.log' for more details." "$LINENO" 5; }
3611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3614 $as_echo "$ac_cv_objext" >&6; }
3615 OBJEXT=$ac_cv_objext
3616 ac_objext=$OBJEXT
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3618 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3619 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3626 main ()
3628 #ifndef __GNUC__
3629 choke me
3630 #endif
3633 return 0;
3635 _ACEOF
3636 if ac_fn_c_try_compile "$LINENO"; then :
3637 ac_compiler_gnu=yes
3638 else
3639 ac_compiler_gnu=no
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3647 if test $ac_compiler_gnu = yes; then
3648 GCC=yes
3649 else
3650 GCC=
3652 ac_test_CFLAGS=${CFLAGS+set}
3653 ac_save_CFLAGS=$CFLAGS
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3656 if test "${ac_cv_prog_cc_g+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 ac_save_c_werror_flag=$ac_c_werror_flag
3660 ac_c_werror_flag=yes
3661 ac_cv_prog_cc_g=no
3662 CFLAGS="-g"
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3667 main ()
3671 return 0;
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_prog_cc_g=yes
3676 else
3677 CFLAGS=""
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3682 main ()
3686 return 0;
3688 _ACEOF
3689 if ac_fn_c_try_compile "$LINENO"; then :
3691 else
3692 ac_c_werror_flag=$ac_save_c_werror_flag
3693 CFLAGS="-g"
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3698 main ()
3702 return 0;
3704 _ACEOF
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_cv_prog_cc_g=yes
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_c_werror_flag=$ac_save_c_werror_flag
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3716 $as_echo "$ac_cv_prog_cc_g" >&6; }
3717 if test "$ac_test_CFLAGS" = set; then
3718 CFLAGS=$ac_save_CFLAGS
3719 elif test $ac_cv_prog_cc_g = yes; then
3720 if test "$GCC" = yes; then
3721 CFLAGS="-g -O2"
3722 else
3723 CFLAGS="-g"
3725 else
3726 if test "$GCC" = yes; then
3727 CFLAGS="-O2"
3728 else
3729 CFLAGS=
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3733 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3734 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 ac_cv_prog_cc_c89=no
3738 ac_save_CC=$CC
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741 #include <stdarg.h>
3742 #include <stdio.h>
3743 #include <sys/types.h>
3744 #include <sys/stat.h>
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3749 char **p;
3750 int i;
3752 return p[i];
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3756 char *s;
3757 va_list v;
3758 va_start (v,p);
3759 s = g (p, va_arg (v,int));
3760 va_end (v);
3761 return s;
3764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3765 function prototypes and stuff, but not '\xHH' hex character constants.
3766 These don't provoke an error unfortunately, instead are silently treated
3767 as 'x'. The following induces an error, until -std is added to get
3768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3769 array size at least. It's necessary to write '\x00'==0 to get something
3770 that's true only with -std. */
3771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3774 inside strings and character constants. */
3775 #define FOO(x) 'x'
3776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 int argc;
3783 char **argv;
3785 main ()
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 return 0;
3791 _ACEOF
3792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 CC="$ac_save_CC $ac_arg"
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797 ac_cv_prog_cc_c89=$ac_arg
3799 rm -f core conftest.err conftest.$ac_objext
3800 test "x$ac_cv_prog_cc_c89" != "xno" && break
3801 done
3802 rm -f conftest.$ac_ext
3803 CC=$ac_save_CC
3806 # AC_CACHE_VAL
3807 case "x$ac_cv_prog_cc_c89" in
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3810 $as_echo "none needed" >&6; } ;;
3811 xno)
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3813 $as_echo "unsupported" >&6; } ;;
3815 CC="$CC $ac_cv_prog_cc_c89"
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3818 esac
3819 if test "x$ac_cv_prog_cc_c89" != xno; then :
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829 depcc="$CC" am_compiler_list=
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3832 $as_echo_n "checking dependency style of $depcc... " >&6; }
3833 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3837 # We make a subdir and do the tests there. Otherwise we can end up
3838 # making bogus files that we don't know about and never remove. For
3839 # instance it was reported that on HP-UX the gcc test will end up
3840 # making a dummy file named `D' -- because `-MD' means `put the output
3841 # in D'.
3842 mkdir conftest.dir
3843 # Copy depcomp to subdir because otherwise we won't find it if we're
3844 # using a relative directory.
3845 cp "$am_depcomp" conftest.dir
3846 cd conftest.dir
3847 # We will build objects and dependencies in a subdirectory because
3848 # it helps to detect inapplicable dependency modes. For instance
3849 # both Tru64's cc and ICC support -MD to output dependencies as a
3850 # side effect of compilation, but ICC will put the dependencies in
3851 # the current directory while Tru64 will put them in the object
3852 # directory.
3853 mkdir sub
3855 am_cv_CC_dependencies_compiler_type=none
3856 if test "$am_compiler_list" = ""; then
3857 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3859 am__universal=false
3860 case " $depcc " in #(
3861 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3862 esac
3864 for depmode in $am_compiler_list; do
3865 # Setup a source with many dependencies, because some compilers
3866 # like to wrap large dependency lists on column 80 (with \), and
3867 # we should not choose a depcomp mode which is confused by this.
3869 # We need to recreate these files for each test, as the compiler may
3870 # overwrite some of them when testing with obscure command lines.
3871 # This happens at least with the AIX C compiler.
3872 : > sub/conftest.c
3873 for i in 1 2 3 4 5 6; do
3874 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3875 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3876 # Solaris 8's {/usr,}/bin/sh.
3877 touch sub/conftst$i.h
3878 done
3879 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3882 # mode. It turns out that the SunPro C++ compiler does not properly
3883 # handle `-M -o', and we need to detect this. Also, some Intel
3884 # versions had trouble with output in subdirs
3885 am__obj=sub/conftest.${OBJEXT-o}
3886 am__minus_obj="-o $am__obj"
3887 case $depmode in
3888 gcc)
3889 # This depmode causes a compiler race in universal mode.
3890 test "$am__universal" = false || continue
3892 nosideeffect)
3893 # after this tag, mechanisms are not by side-effect, so they'll
3894 # only be used when explicitly requested
3895 if test "x$enable_dependency_tracking" = xyes; then
3896 continue
3897 else
3898 break
3901 msvisualcpp | msvcmsys)
3902 # This compiler won't grok `-c -o', but also, the minuso test has
3903 # not run yet. These depmodes are late enough in the game, and
3904 # so weak that their functioning should not be impacted.
3905 am__obj=conftest.${OBJEXT-o}
3906 am__minus_obj=
3908 none) break ;;
3909 esac
3910 if depmode=$depmode \
3911 source=sub/conftest.c object=$am__obj \
3912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3913 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3914 >/dev/null 2>conftest.err &&
3915 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3916 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3917 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3918 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3919 # icc doesn't choke on unknown options, it will just issue warnings
3920 # or remarks (even with -Werror). So we grep stderr for any message
3921 # that says an option was ignored or not supported.
3922 # When given -MP, icc 7.0 and 7.1 complain thusly:
3923 # icc: Command line warning: ignoring option '-M'; no argument required
3924 # The diagnosis changed in icc 8.0:
3925 # icc: Command line remark: option '-MP' not supported
3926 if (grep 'ignoring option' conftest.err ||
3927 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3928 am_cv_CC_dependencies_compiler_type=$depmode
3929 break
3932 done
3934 cd ..
3935 rm -rf conftest.dir
3936 else
3937 am_cv_CC_dependencies_compiler_type=none
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3942 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3943 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3946 test "x$enable_dependency_tracking" != xno \
3947 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3948 am__fastdepCC_TRUE=
3949 am__fastdepCC_FALSE='#'
3950 else
3951 am__fastdepCC_TRUE='#'
3952 am__fastdepCC_FALSE=
3957 ac_ext=c
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3963 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3964 # On Suns, sometimes $CPP names a directory.
3965 if test -n "$CPP" && test -d "$CPP"; then
3966 CPP=
3968 if test -z "$CPP"; then
3969 if test "${ac_cv_prog_CPP+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 # Double quotes because CPP needs to be expanded
3973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3975 ac_preproc_ok=false
3976 for ac_c_preproc_warn_flag in '' yes
3978 # Use a header file that comes with gcc, so configuring glibc
3979 # with a fresh cross-compiler works.
3980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3981 # <limits.h> exists even on freestanding compilers.
3982 # On the NeXT, cc -E runs the code through the compiler's parser,
3983 # not just through cpp. "Syntax error" is here to catch this case.
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3986 #ifdef __STDC__
3987 # include <limits.h>
3988 #else
3989 # include <assert.h>
3990 #endif
3991 Syntax error
3992 _ACEOF
3993 if ac_fn_c_try_cpp "$LINENO"; then :
3995 else
3996 # Broken: fails on valid input.
3997 continue
3999 rm -f conftest.err conftest.$ac_ext
4001 # OK, works on sane cases. Now check whether nonexistent headers
4002 # can be detected and how.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4006 _ACEOF
4007 if ac_fn_c_try_cpp "$LINENO"; then :
4008 # Broken: success on invalid input.
4009 continue
4010 else
4011 # Passes both tests.
4012 ac_preproc_ok=:
4013 break
4015 rm -f conftest.err conftest.$ac_ext
4017 done
4018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4019 rm -f conftest.err conftest.$ac_ext
4020 if $ac_preproc_ok; then :
4021 break
4024 done
4025 ac_cv_prog_CPP=$CPP
4028 CPP=$ac_cv_prog_CPP
4029 else
4030 ac_cv_prog_CPP=$CPP
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4033 $as_echo "$CPP" >&6; }
4034 ac_preproc_ok=false
4035 for ac_c_preproc_warn_flag in '' yes
4037 # Use a header file that comes with gcc, so configuring glibc
4038 # with a fresh cross-compiler works.
4039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4040 # <limits.h> exists even on freestanding compilers.
4041 # On the NeXT, cc -E runs the code through the compiler's parser,
4042 # not just through cpp. "Syntax error" is here to catch this case.
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 #ifdef __STDC__
4046 # include <limits.h>
4047 #else
4048 # include <assert.h>
4049 #endif
4050 Syntax error
4051 _ACEOF
4052 if ac_fn_c_try_cpp "$LINENO"; then :
4054 else
4055 # Broken: fails on valid input.
4056 continue
4058 rm -f conftest.err conftest.$ac_ext
4060 # OK, works on sane cases. Now check whether nonexistent headers
4061 # can be detected and how.
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064 #include <ac_nonexistent.h>
4065 _ACEOF
4066 if ac_fn_c_try_cpp "$LINENO"; then :
4067 # Broken: success on invalid input.
4068 continue
4069 else
4070 # Passes both tests.
4071 ac_preproc_ok=:
4072 break
4074 rm -f conftest.err conftest.$ac_ext
4076 done
4077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4078 rm -f conftest.err conftest.$ac_ext
4079 if $ac_preproc_ok; then :
4081 else
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4085 See \`config.log' for more details." "$LINENO" 5; }
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4097 if test "${ac_cv_path_GREP+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if test -z "$GREP"; then
4101 ac_path_GREP_found=false
4102 # Loop through the user's path and test for each of PROGNAME-LIST
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_prog in grep ggrep; do
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4112 # Check for GNU ac_path_GREP and select it if it is found.
4113 # Check for GNU $ac_path_GREP
4114 case `"$ac_path_GREP" --version 2>&1` in
4115 *GNU*)
4116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4118 ac_count=0
4119 $as_echo_n 0123456789 >"conftest.in"
4120 while :
4122 cat "conftest.in" "conftest.in" >"conftest.tmp"
4123 mv "conftest.tmp" "conftest.in"
4124 cp "conftest.in" "conftest.nl"
4125 $as_echo 'GREP' >> "conftest.nl"
4126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128 as_fn_arith $ac_count + 1 && ac_count=$as_val
4129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4130 # Best one so far, save it but keep looking for a better one
4131 ac_cv_path_GREP="$ac_path_GREP"
4132 ac_path_GREP_max=$ac_count
4134 # 10*(2^10) chars as input seems more than enough
4135 test $ac_count -gt 10 && break
4136 done
4137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 esac
4140 $ac_path_GREP_found && break 3
4141 done
4142 done
4143 done
4144 IFS=$as_save_IFS
4145 if test -z "$ac_cv_path_GREP"; then
4146 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148 else
4149 ac_cv_path_GREP=$GREP
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4154 $as_echo "$ac_cv_path_GREP" >&6; }
4155 GREP="$ac_cv_path_GREP"
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4159 $as_echo_n "checking for egrep... " >&6; }
4160 if test "${ac_cv_path_EGREP+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4164 then ac_cv_path_EGREP="$GREP -E"
4165 else
4166 if test -z "$EGREP"; then
4167 ac_path_EGREP_found=false
4168 # Loop through the user's path and test for each of PROGNAME-LIST
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_prog in egrep; do
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4178 # Check for GNU ac_path_EGREP and select it if it is found.
4179 # Check for GNU $ac_path_EGREP
4180 case `"$ac_path_EGREP" --version 2>&1` in
4181 *GNU*)
4182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4184 ac_count=0
4185 $as_echo_n 0123456789 >"conftest.in"
4186 while :
4188 cat "conftest.in" "conftest.in" >"conftest.tmp"
4189 mv "conftest.tmp" "conftest.in"
4190 cp "conftest.in" "conftest.nl"
4191 $as_echo 'EGREP' >> "conftest.nl"
4192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194 as_fn_arith $ac_count + 1 && ac_count=$as_val
4195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4196 # Best one so far, save it but keep looking for a better one
4197 ac_cv_path_EGREP="$ac_path_EGREP"
4198 ac_path_EGREP_max=$ac_count
4200 # 10*(2^10) chars as input seems more than enough
4201 test $ac_count -gt 10 && break
4202 done
4203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4204 esac
4206 $ac_path_EGREP_found && break 3
4207 done
4208 done
4209 done
4210 IFS=$as_save_IFS
4211 if test -z "$ac_cv_path_EGREP"; then
4212 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214 else
4215 ac_cv_path_EGREP=$EGREP
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4221 $as_echo "$ac_cv_path_EGREP" >&6; }
4222 EGREP="$ac_cv_path_EGREP"
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4226 $as_echo_n "checking for ANSI C header files... " >&6; }
4227 if test "${ac_cv_header_stdc+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 #include <stdlib.h>
4233 #include <stdarg.h>
4234 #include <string.h>
4235 #include <float.h>
4238 main ()
4242 return 0;
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246 ac_cv_header_stdc=yes
4247 else
4248 ac_cv_header_stdc=no
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 if test $ac_cv_header_stdc = yes; then
4253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <string.h>
4258 _ACEOF
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260 $EGREP "memchr" >/dev/null 2>&1; then :
4262 else
4263 ac_cv_header_stdc=no
4265 rm -f conftest*
4269 if test $ac_cv_header_stdc = yes; then
4270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #include <stdlib.h>
4275 _ACEOF
4276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277 $EGREP "free" >/dev/null 2>&1; then :
4279 else
4280 ac_cv_header_stdc=no
4282 rm -f conftest*
4286 if test $ac_cv_header_stdc = yes; then
4287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4288 if test "$cross_compiling" = yes; then :
4290 else
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <ctype.h>
4294 #include <stdlib.h>
4295 #if ((' ' & 0x0FF) == 0x020)
4296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4298 #else
4299 # define ISLOWER(c) \
4300 (('a' <= (c) && (c) <= 'i') \
4301 || ('j' <= (c) && (c) <= 'r') \
4302 || ('s' <= (c) && (c) <= 'z'))
4303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4304 #endif
4306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4308 main ()
4310 int i;
4311 for (i = 0; i < 256; i++)
4312 if (XOR (islower (i), ISLOWER (i))
4313 || toupper (i) != TOUPPER (i))
4314 return 2;
4315 return 0;
4317 _ACEOF
4318 if ac_fn_c_try_run "$LINENO"; then :
4320 else
4321 ac_cv_header_stdc=no
4323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4324 conftest.$ac_objext conftest.beam conftest.$ac_ext
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4330 $as_echo "$ac_cv_header_stdc" >&6; }
4331 if test $ac_cv_header_stdc = yes; then
4333 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4337 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4339 inttypes.h stdint.h unistd.h
4340 do :
4341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4342 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4344 eval as_val=\$$as_ac_Header
4345 if test "x$as_val" = x""yes; then :
4346 cat >>confdefs.h <<_ACEOF
4347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348 _ACEOF
4352 done
4356 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4357 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4358 MINIX=yes
4359 else
4360 MINIX=
4364 if test "$MINIX" = yes; then
4366 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4369 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4372 $as_echo "#define _MINIX 1" >>confdefs.h
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4378 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4379 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4385 # define __EXTENSIONS__ 1
4386 $ac_includes_default
4388 main ()
4392 return 0;
4394 _ACEOF
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396 ac_cv_safe_to_define___extensions__=yes
4397 else
4398 ac_cv_safe_to_define___extensions__=no
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4403 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4404 test $ac_cv_safe_to_define___extensions__ = yes &&
4405 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4407 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4409 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4411 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4413 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4419 # We check this before AC_PROG_CC fills blank CFLAGS with "-g -O2".
4420 if test "x$CFLAGS" = "x"; then
4421 DEFAULT_CFLAGS=yes
4422 else
4423 DEFAULT_CFLAGS=no
4426 # Checks for programs.
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432 if test -n "$ac_tool_prefix"; then
4433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_prog_CC+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -n "$CC"; then
4441 ac_cv_prog_CC="$CC" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4456 IFS=$as_save_IFS
4460 CC=$ac_cv_prog_CC
4461 if test -n "$CC"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4463 $as_echo "$CC" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4471 if test -z "$ac_cv_prog_CC"; then
4472 ac_ct_CC=$CC
4473 # Extract the first word of "gcc", so it can be a program name with args.
4474 set dummy gcc; ac_word=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$ac_ct_CC"; then
4481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_prog_ac_ct_CC="gcc"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4494 done
4495 done
4496 IFS=$as_save_IFS
4500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4501 if test -n "$ac_ct_CC"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4503 $as_echo "$ac_ct_CC" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4509 if test "x$ac_ct_CC" = x; then
4510 CC=""
4511 else
4512 case $cross_compiling:$ac_tool_warned in
4513 yes:)
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516 ac_tool_warned=yes ;;
4517 esac
4518 CC=$ac_ct_CC
4520 else
4521 CC="$ac_cv_prog_CC"
4524 if test -z "$CC"; then
4525 if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4527 set dummy ${ac_tool_prefix}cc; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CC+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$CC"; then
4534 ac_cv_prog_CC="$CC" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_CC="${ac_tool_prefix}cc"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 CC=$ac_cv_prog_CC
4554 if test -n "$CC"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4556 $as_echo "$CC" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4565 if test -z "$CC"; then
4566 # Extract the first word of "cc", so it can be a program name with args.
4567 set dummy cc; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if test "${ac_cv_prog_CC+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -n "$CC"; then
4574 ac_cv_prog_CC="$CC" # Let the user override the test.
4575 else
4576 ac_prog_rejected=no
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4585 ac_prog_rejected=yes
4586 continue
4588 ac_cv_prog_CC="cc"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4592 done
4593 done
4594 IFS=$as_save_IFS
4596 if test $ac_prog_rejected = yes; then
4597 # We found a bogon in the path, so make sure we never use it.
4598 set dummy $ac_cv_prog_CC
4599 shift
4600 if test $# != 0; then
4601 # We chose a different compiler from the bogus one.
4602 # However, it has the same basename, so the bogon will be chosen
4603 # first if we set CC to just the basename; use the full file name.
4604 shift
4605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4610 CC=$ac_cv_prog_CC
4611 if test -n "$CC"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4613 $as_echo "$CC" >&6; }
4614 else
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4621 if test -z "$CC"; then
4622 if test -n "$ac_tool_prefix"; then
4623 for ac_prog in cl.exe
4625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if test "${ac_cv_prog_CC+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4646 done
4647 done
4648 IFS=$as_save_IFS
4652 CC=$ac_cv_prog_CC
4653 if test -n "$CC"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4655 $as_echo "$CC" >&6; }
4656 else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4662 test -n "$CC" && break
4663 done
4665 if test -z "$CC"; then
4666 ac_ct_CC=$CC
4667 for ac_prog in cl.exe
4669 # Extract the first word of "$ac_prog", so it can be a program name with args.
4670 set dummy $ac_prog; ac_word=$2
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if test -n "$ac_ct_CC"; then
4677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4686 ac_cv_prog_ac_ct_CC="$ac_prog"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4690 done
4691 done
4692 IFS=$as_save_IFS
4696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697 if test -n "$ac_ct_CC"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4699 $as_echo "$ac_ct_CC" >&6; }
4700 else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4706 test -n "$ac_ct_CC" && break
4707 done
4709 if test "x$ac_ct_CC" = x; then
4710 CC=""
4711 else
4712 case $cross_compiling:$ac_tool_warned in
4713 yes:)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716 ac_tool_warned=yes ;;
4717 esac
4718 CC=$ac_ct_CC
4725 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4727 as_fn_error "no acceptable C compiler found in \$PATH
4728 See \`config.log' for more details." "$LINENO" 5; }
4730 # Provide some information about the compiler.
4731 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4732 set X $ac_compile
4733 ac_compiler=$2
4734 for ac_option in --version -v -V -qversion; do
4735 { { ac_try="$ac_compiler $ac_option >&5"
4736 case "(($ac_try" in
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4739 esac
4740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4741 $as_echo "$ac_try_echo"; } >&5
4742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4743 ac_status=$?
4744 if test -s conftest.err; then
4745 sed '10a\
4746 ... rest of stderr output deleted ...
4747 10q' conftest.err >conftest.er1
4748 cat conftest.er1 >&5
4750 rm -f conftest.er1 conftest.err
4751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4752 test $ac_status = 0; }
4753 done
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4756 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4757 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4764 main ()
4766 #ifndef __GNUC__
4767 choke me
4768 #endif
4771 return 0;
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 ac_compiler_gnu=yes
4776 else
4777 ac_compiler_gnu=no
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4784 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4785 if test $ac_compiler_gnu = yes; then
4786 GCC=yes
4787 else
4788 GCC=
4790 ac_test_CFLAGS=${CFLAGS+set}
4791 ac_save_CFLAGS=$CFLAGS
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4793 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4794 if test "${ac_cv_prog_cc_g+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 ac_save_c_werror_flag=$ac_c_werror_flag
4798 ac_c_werror_flag=yes
4799 ac_cv_prog_cc_g=no
4800 CFLAGS="-g"
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4805 main ()
4809 return 0;
4811 _ACEOF
4812 if ac_fn_c_try_compile "$LINENO"; then :
4813 ac_cv_prog_cc_g=yes
4814 else
4815 CFLAGS=""
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4820 main ()
4824 return 0;
4826 _ACEOF
4827 if ac_fn_c_try_compile "$LINENO"; then :
4829 else
4830 ac_c_werror_flag=$ac_save_c_werror_flag
4831 CFLAGS="-g"
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4836 main ()
4840 return 0;
4842 _ACEOF
4843 if ac_fn_c_try_compile "$LINENO"; then :
4844 ac_cv_prog_cc_g=yes
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 ac_c_werror_flag=$ac_save_c_werror_flag
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4854 $as_echo "$ac_cv_prog_cc_g" >&6; }
4855 if test "$ac_test_CFLAGS" = set; then
4856 CFLAGS=$ac_save_CFLAGS
4857 elif test $ac_cv_prog_cc_g = yes; then
4858 if test "$GCC" = yes; then
4859 CFLAGS="-g -O2"
4860 else
4861 CFLAGS="-g"
4863 else
4864 if test "$GCC" = yes; then
4865 CFLAGS="-O2"
4866 else
4867 CFLAGS=
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4871 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4872 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 ac_cv_prog_cc_c89=no
4876 ac_save_CC=$CC
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 #include <stdarg.h>
4880 #include <stdio.h>
4881 #include <sys/types.h>
4882 #include <sys/stat.h>
4883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4884 struct buf { int x; };
4885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4886 static char *e (p, i)
4887 char **p;
4888 int i;
4890 return p[i];
4892 static char *f (char * (*g) (char **, int), char **p, ...)
4894 char *s;
4895 va_list v;
4896 va_start (v,p);
4897 s = g (p, va_arg (v,int));
4898 va_end (v);
4899 return s;
4902 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4903 function prototypes and stuff, but not '\xHH' hex character constants.
4904 These don't provoke an error unfortunately, instead are silently treated
4905 as 'x'. The following induces an error, until -std is added to get
4906 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4907 array size at least. It's necessary to write '\x00'==0 to get something
4908 that's true only with -std. */
4909 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4911 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4912 inside strings and character constants. */
4913 #define FOO(x) 'x'
4914 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4916 int test (int i, double x);
4917 struct s1 {int (*f) (int a);};
4918 struct s2 {int (*f) (double a);};
4919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4920 int argc;
4921 char **argv;
4923 main ()
4925 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4927 return 0;
4929 _ACEOF
4930 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4931 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4933 CC="$ac_save_CC $ac_arg"
4934 if ac_fn_c_try_compile "$LINENO"; then :
4935 ac_cv_prog_cc_c89=$ac_arg
4937 rm -f core conftest.err conftest.$ac_objext
4938 test "x$ac_cv_prog_cc_c89" != "xno" && break
4939 done
4940 rm -f conftest.$ac_ext
4941 CC=$ac_save_CC
4944 # AC_CACHE_VAL
4945 case "x$ac_cv_prog_cc_c89" in
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4948 $as_echo "none needed" >&6; } ;;
4949 xno)
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4951 $as_echo "unsupported" >&6; } ;;
4953 CC="$CC $ac_cv_prog_cc_c89"
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4955 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4956 esac
4957 if test "x$ac_cv_prog_cc_c89" != xno; then :
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 depcc="$CC" am_compiler_list=
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4970 $as_echo_n "checking dependency style of $depcc... " >&6; }
4971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4975 # We make a subdir and do the tests there. Otherwise we can end up
4976 # making bogus files that we don't know about and never remove. For
4977 # instance it was reported that on HP-UX the gcc test will end up
4978 # making a dummy file named `D' -- because `-MD' means `put the output
4979 # in D'.
4980 mkdir conftest.dir
4981 # Copy depcomp to subdir because otherwise we won't find it if we're
4982 # using a relative directory.
4983 cp "$am_depcomp" conftest.dir
4984 cd conftest.dir
4985 # We will build objects and dependencies in a subdirectory because
4986 # it helps to detect inapplicable dependency modes. For instance
4987 # both Tru64's cc and ICC support -MD to output dependencies as a
4988 # side effect of compilation, but ICC will put the dependencies in
4989 # the current directory while Tru64 will put them in the object
4990 # directory.
4991 mkdir sub
4993 am_cv_CC_dependencies_compiler_type=none
4994 if test "$am_compiler_list" = ""; then
4995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4997 am__universal=false
4998 case " $depcc " in #(
4999 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5000 esac
5002 for depmode in $am_compiler_list; do
5003 # Setup a source with many dependencies, because some compilers
5004 # like to wrap large dependency lists on column 80 (with \), and
5005 # we should not choose a depcomp mode which is confused by this.
5007 # We need to recreate these files for each test, as the compiler may
5008 # overwrite some of them when testing with obscure command lines.
5009 # This happens at least with the AIX C compiler.
5010 : > sub/conftest.c
5011 for i in 1 2 3 4 5 6; do
5012 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5013 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5014 # Solaris 8's {/usr,}/bin/sh.
5015 touch sub/conftst$i.h
5016 done
5017 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5019 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5020 # mode. It turns out that the SunPro C++ compiler does not properly
5021 # handle `-M -o', and we need to detect this. Also, some Intel
5022 # versions had trouble with output in subdirs
5023 am__obj=sub/conftest.${OBJEXT-o}
5024 am__minus_obj="-o $am__obj"
5025 case $depmode in
5026 gcc)
5027 # This depmode causes a compiler race in universal mode.
5028 test "$am__universal" = false || continue
5030 nosideeffect)
5031 # after this tag, mechanisms are not by side-effect, so they'll
5032 # only be used when explicitly requested
5033 if test "x$enable_dependency_tracking" = xyes; then
5034 continue
5035 else
5036 break
5039 msvisualcpp | msvcmsys)
5040 # This compiler won't grok `-c -o', but also, the minuso test has
5041 # not run yet. These depmodes are late enough in the game, and
5042 # so weak that their functioning should not be impacted.
5043 am__obj=conftest.${OBJEXT-o}
5044 am__minus_obj=
5046 none) break ;;
5047 esac
5048 if depmode=$depmode \
5049 source=sub/conftest.c object=$am__obj \
5050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5051 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5052 >/dev/null 2>conftest.err &&
5053 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5055 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5057 # icc doesn't choke on unknown options, it will just issue warnings
5058 # or remarks (even with -Werror). So we grep stderr for any message
5059 # that says an option was ignored or not supported.
5060 # When given -MP, icc 7.0 and 7.1 complain thusly:
5061 # icc: Command line warning: ignoring option '-M'; no argument required
5062 # The diagnosis changed in icc 8.0:
5063 # icc: Command line remark: option '-MP' not supported
5064 if (grep 'ignoring option' conftest.err ||
5065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5066 am_cv_CC_dependencies_compiler_type=$depmode
5067 break
5070 done
5072 cd ..
5073 rm -rf conftest.dir
5074 else
5075 am_cv_CC_dependencies_compiler_type=none
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5080 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5081 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5084 test "x$enable_dependency_tracking" != xno \
5085 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5086 am__fastdepCC_TRUE=
5087 am__fastdepCC_FALSE='#'
5088 else
5089 am__fastdepCC_TRUE='#'
5090 am__fastdepCC_FALSE=
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$RANLIB"; then
5103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5122 RANLIB=$ac_cv_prog_RANLIB
5123 if test -n "$RANLIB"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5125 $as_echo "$RANLIB" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5133 if test -z "$ac_cv_prog_RANLIB"; then
5134 ac_ct_RANLIB=$RANLIB
5135 # Extract the first word of "ranlib", so it can be a program name with args.
5136 set dummy ranlib; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$ac_ct_RANLIB"; then
5143 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_RANLIB="ranlib"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5163 if test -n "$ac_ct_RANLIB"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5165 $as_echo "$ac_ct_RANLIB" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5171 if test "x$ac_ct_RANLIB" = x; then
5172 RANLIB=":"
5173 else
5174 case $cross_compiling:$ac_tool_warned in
5175 yes:)
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5179 esac
5180 RANLIB=$ac_ct_RANLIB
5182 else
5183 RANLIB="$ac_cv_prog_RANLIB"
5188 # Default CFLAGS.
5189 if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
5190 CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
5192 CFLAGS="$CFLAGS -I${srcdir}/../lib"
5194 # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
5195 # Check whether --enable-largefile was given.
5196 if test "${enable_largefile+set}" = set; then :
5197 enableval=$enable_largefile;
5200 if test "$enable_largefile" != no; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5203 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5204 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 ac_cv_sys_largefile_CC=no
5208 if test "$GCC" != yes; then
5209 ac_save_CC=$CC
5210 while :; do
5211 # IRIX 6.2 and later do not support large files by default,
5212 # so use the C compiler's -n32 option if that helps.
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #include <sys/types.h>
5216 /* Check that off_t can represent 2**63 - 1 correctly.
5217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5218 since some C++ compilers masquerading as C compilers
5219 incorrectly reject 9223372036854775807. */
5220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5222 && LARGE_OFF_T % 2147483647 == 1)
5223 ? 1 : -1];
5225 main ()
5229 return 0;
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233 break
5235 rm -f core conftest.err conftest.$ac_objext
5236 CC="$CC -n32"
5237 if ac_fn_c_try_compile "$LINENO"; then :
5238 ac_cv_sys_largefile_CC=' -n32'; break
5240 rm -f core conftest.err conftest.$ac_objext
5241 break
5242 done
5243 CC=$ac_save_CC
5244 rm -f conftest.$ac_ext
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5248 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5249 if test "$ac_cv_sys_largefile_CC" != no; then
5250 CC=$CC$ac_cv_sys_largefile_CC
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5254 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5255 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 while :; do
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 #include <sys/types.h>
5262 /* Check that off_t can represent 2**63 - 1 correctly.
5263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5264 since some C++ compilers masquerading as C compilers
5265 incorrectly reject 9223372036854775807. */
5266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5268 && LARGE_OFF_T % 2147483647 == 1)
5269 ? 1 : -1];
5271 main ()
5275 return 0;
5277 _ACEOF
5278 if ac_fn_c_try_compile "$LINENO"; then :
5279 ac_cv_sys_file_offset_bits=no; break
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #define _FILE_OFFSET_BITS 64
5285 #include <sys/types.h>
5286 /* Check that off_t can represent 2**63 - 1 correctly.
5287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5288 since some C++ compilers masquerading as C compilers
5289 incorrectly reject 9223372036854775807. */
5290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5292 && LARGE_OFF_T % 2147483647 == 1)
5293 ? 1 : -1];
5295 main ()
5299 return 0;
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_sys_file_offset_bits=64; break
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 ac_cv_sys_file_offset_bits=unknown
5307 break
5308 done
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5311 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5312 case $ac_cv_sys_file_offset_bits in #(
5313 no | unknown) ;;
5315 cat >>confdefs.h <<_ACEOF
5316 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5317 _ACEOF
5319 esac
5320 rm -rf conftest*
5321 if test $ac_cv_sys_file_offset_bits = unknown; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5323 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5324 if test "${ac_cv_sys_large_files+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 while :; do
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 #include <sys/types.h>
5331 /* Check that off_t can represent 2**63 - 1 correctly.
5332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5333 since some C++ compilers masquerading as C compilers
5334 incorrectly reject 9223372036854775807. */
5335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5337 && LARGE_OFF_T % 2147483647 == 1)
5338 ? 1 : -1];
5340 main ()
5344 return 0;
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348 ac_cv_sys_large_files=no; break
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5353 #define _LARGE_FILES 1
5354 #include <sys/types.h>
5355 /* Check that off_t can represent 2**63 - 1 correctly.
5356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5357 since some C++ compilers masquerading as C compilers
5358 incorrectly reject 9223372036854775807. */
5359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5361 && LARGE_OFF_T % 2147483647 == 1)
5362 ? 1 : -1];
5364 main ()
5368 return 0;
5370 _ACEOF
5371 if ac_fn_c_try_compile "$LINENO"; then :
5372 ac_cv_sys_large_files=1; break
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 ac_cv_sys_large_files=unknown
5376 break
5377 done
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5380 $as_echo "$ac_cv_sys_large_files" >&6; }
5381 case $ac_cv_sys_large_files in #(
5382 no | unknown) ;;
5384 cat >>confdefs.h <<_ACEOF
5385 #define _LARGE_FILES $ac_cv_sys_large_files
5386 _ACEOF
5388 esac
5389 rm -rf conftest*
5397 OLD_CFLAGS="$CFLAGS"
5398 CFLAGS="$CFLAGS -w"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2" >&5
5400 $as_echo_n "checking for library containing atan2... " >&6; }
5401 if test "${ac_cv_search_atan2+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 ac_func_search_save_LIBS=$LIBS
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5408 /* Override any GCC internal prototype to avoid an error.
5409 Use char because int might match the return type of a GCC
5410 builtin and then its argument prototype would still apply. */
5411 #ifdef __cplusplus
5412 extern "C"
5413 #endif
5414 char atan2 ();
5416 main ()
5418 return atan2 ();
5420 return 0;
5422 _ACEOF
5423 for ac_lib in '' m mx; do
5424 if test -z "$ac_lib"; then
5425 ac_res="none required"
5426 else
5427 ac_res=-l$ac_lib
5428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5430 if ac_fn_c_try_link "$LINENO"; then :
5431 ac_cv_search_atan2=$ac_res
5433 rm -f core conftest.err conftest.$ac_objext \
5434 conftest$ac_exeext
5435 if test "${ac_cv_search_atan2+set}" = set; then :
5436 break
5438 done
5439 if test "${ac_cv_search_atan2+set}" = set; then :
5441 else
5442 ac_cv_search_atan2=no
5444 rm conftest.$ac_ext
5445 LIBS=$ac_func_search_save_LIBS
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2" >&5
5448 $as_echo "$ac_cv_search_atan2" >&6; }
5449 ac_res=$ac_cv_search_atan2
5450 if test "$ac_res" != no; then :
5451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5453 $as_echo "#define HAVE_ATAN2 1" >>confdefs.h
5457 CFLAGS="$OLD_CFLAGS"
5460 # Checks for hypot (SVID 3, BSD 4.3).
5461 # The replacement is #defined in the source.
5462 OLD_CFLAGS="$CFLAGS"
5463 CFLAGS="$CFLAGS -w"
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypot" >&5
5465 $as_echo_n "checking for library containing hypot... " >&6; }
5466 if test "${ac_cv_search_hypot+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 ac_func_search_save_LIBS=$LIBS
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5473 /* Override any GCC internal prototype to avoid an error.
5474 Use char because int might match the return type of a GCC
5475 builtin and then its argument prototype would still apply. */
5476 #ifdef __cplusplus
5477 extern "C"
5478 #endif
5479 char hypot ();
5481 main ()
5483 return hypot ();
5485 return 0;
5487 _ACEOF
5488 for ac_lib in '' m mx; do
5489 if test -z "$ac_lib"; then
5490 ac_res="none required"
5491 else
5492 ac_res=-l$ac_lib
5493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5495 if ac_fn_c_try_link "$LINENO"; then :
5496 ac_cv_search_hypot=$ac_res
5498 rm -f core conftest.err conftest.$ac_objext \
5499 conftest$ac_exeext
5500 if test "${ac_cv_search_hypot+set}" = set; then :
5501 break
5503 done
5504 if test "${ac_cv_search_hypot+set}" = set; then :
5506 else
5507 ac_cv_search_hypot=no
5509 rm conftest.$ac_ext
5510 LIBS=$ac_func_search_save_LIBS
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypot" >&5
5513 $as_echo "$ac_cv_search_hypot" >&6; }
5514 ac_res=$ac_cv_search_hypot
5515 if test "$ac_res" != no; then :
5516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5518 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
5522 CFLAGS="$OLD_CFLAGS"
5525 # Checks for math functions using floats.
5526 # Using floats instead of doubles makes gcc use SSE with -msse
5527 # The replacement are #defined in math_floats.h.
5528 OLD_CFLAGS="$CFLAGS"
5529 CFLAGS="$CFLAGS -w"
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrtf" >&5
5531 $as_echo_n "checking for library containing sqrtf... " >&6; }
5532 if test "${ac_cv_search_sqrtf+set}" = set; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 ac_func_search_save_LIBS=$LIBS
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5539 /* Override any GCC internal prototype to avoid an error.
5540 Use char because int might match the return type of a GCC
5541 builtin and then its argument prototype would still apply. */
5542 #ifdef __cplusplus
5543 extern "C"
5544 #endif
5545 char sqrtf ();
5547 main ()
5549 return sqrtf ();
5551 return 0;
5553 _ACEOF
5554 for ac_lib in '' m mx; do
5555 if test -z "$ac_lib"; then
5556 ac_res="none required"
5557 else
5558 ac_res=-l$ac_lib
5559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5561 if ac_fn_c_try_link "$LINENO"; then :
5562 ac_cv_search_sqrtf=$ac_res
5564 rm -f core conftest.err conftest.$ac_objext \
5565 conftest$ac_exeext
5566 if test "${ac_cv_search_sqrtf+set}" = set; then :
5567 break
5569 done
5570 if test "${ac_cv_search_sqrtf+set}" = set; then :
5572 else
5573 ac_cv_search_sqrtf=no
5575 rm conftest.$ac_ext
5576 LIBS=$ac_func_search_save_LIBS
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrtf" >&5
5579 $as_echo "$ac_cv_search_sqrtf" >&6; }
5580 ac_res=$ac_cv_search_sqrtf
5581 if test "$ac_res" != no; then :
5582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5584 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
5588 CFLAGS="$OLD_CFLAGS"
5589 OLD_CFLAGS="$CFLAGS"
5590 CFLAGS="$CFLAGS -w"
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypotf" >&5
5592 $as_echo_n "checking for library containing hypotf... " >&6; }
5593 if test "${ac_cv_search_hypotf+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 ac_func_search_save_LIBS=$LIBS
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5600 /* Override any GCC internal prototype to avoid an error.
5601 Use char because int might match the return type of a GCC
5602 builtin and then its argument prototype would still apply. */
5603 #ifdef __cplusplus
5604 extern "C"
5605 #endif
5606 char hypotf ();
5608 main ()
5610 return hypotf ();
5612 return 0;
5614 _ACEOF
5615 for ac_lib in '' m mx; do
5616 if test -z "$ac_lib"; then
5617 ac_res="none required"
5618 else
5619 ac_res=-l$ac_lib
5620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5622 if ac_fn_c_try_link "$LINENO"; then :
5623 ac_cv_search_hypotf=$ac_res
5625 rm -f core conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext
5627 if test "${ac_cv_search_hypotf+set}" = set; then :
5628 break
5630 done
5631 if test "${ac_cv_search_hypotf+set}" = set; then :
5633 else
5634 ac_cv_search_hypotf=no
5636 rm conftest.$ac_ext
5637 LIBS=$ac_func_search_save_LIBS
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypotf" >&5
5640 $as_echo "$ac_cv_search_hypotf" >&6; }
5641 ac_res=$ac_cv_search_hypotf
5642 if test "$ac_res" != no; then :
5643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5645 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
5649 CFLAGS="$OLD_CFLAGS"
5650 OLD_CFLAGS="$CFLAGS"
5651 CFLAGS="$CFLAGS -w"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2f" >&5
5653 $as_echo_n "checking for library containing atan2f... " >&6; }
5654 if test "${ac_cv_search_atan2f+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 ac_func_search_save_LIBS=$LIBS
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5661 /* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5664 #ifdef __cplusplus
5665 extern "C"
5666 #endif
5667 char atan2f ();
5669 main ()
5671 return atan2f ();
5673 return 0;
5675 _ACEOF
5676 for ac_lib in '' m mx; do
5677 if test -z "$ac_lib"; then
5678 ac_res="none required"
5679 else
5680 ac_res=-l$ac_lib
5681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5683 if ac_fn_c_try_link "$LINENO"; then :
5684 ac_cv_search_atan2f=$ac_res
5686 rm -f core conftest.err conftest.$ac_objext \
5687 conftest$ac_exeext
5688 if test "${ac_cv_search_atan2f+set}" = set; then :
5689 break
5691 done
5692 if test "${ac_cv_search_atan2f+set}" = set; then :
5694 else
5695 ac_cv_search_atan2f=no
5697 rm conftest.$ac_ext
5698 LIBS=$ac_func_search_save_LIBS
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2f" >&5
5701 $as_echo "$ac_cv_search_atan2f" >&6; }
5702 ac_res=$ac_cv_search_atan2f
5703 if test "$ac_res" != no; then :
5704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5706 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
5710 CFLAGS="$OLD_CFLAGS"
5711 OLD_CFLAGS="$CFLAGS"
5712 CFLAGS="$CFLAGS -w"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing powf" >&5
5714 $as_echo_n "checking for library containing powf... " >&6; }
5715 if test "${ac_cv_search_powf+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 ac_func_search_save_LIBS=$LIBS
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5722 /* Override any GCC internal prototype to avoid an error.
5723 Use char because int might match the return type of a GCC
5724 builtin and then its argument prototype would still apply. */
5725 #ifdef __cplusplus
5726 extern "C"
5727 #endif
5728 char powf ();
5730 main ()
5732 return powf ();
5734 return 0;
5736 _ACEOF
5737 for ac_lib in '' m mx; do
5738 if test -z "$ac_lib"; then
5739 ac_res="none required"
5740 else
5741 ac_res=-l$ac_lib
5742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5744 if ac_fn_c_try_link "$LINENO"; then :
5745 ac_cv_search_powf=$ac_res
5747 rm -f core conftest.err conftest.$ac_objext \
5748 conftest$ac_exeext
5749 if test "${ac_cv_search_powf+set}" = set; then :
5750 break
5752 done
5753 if test "${ac_cv_search_powf+set}" = set; then :
5755 else
5756 ac_cv_search_powf=no
5758 rm conftest.$ac_ext
5759 LIBS=$ac_func_search_save_LIBS
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_powf" >&5
5762 $as_echo "$ac_cv_search_powf" >&6; }
5763 ac_res=$ac_cv_search_powf
5764 if test "$ac_res" != no; then :
5765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5767 $as_echo "#define HAVE_POWF 1" >>confdefs.h
5771 CFLAGS="$OLD_CFLAGS"
5772 OLD_CFLAGS="$CFLAGS"
5773 CFLAGS="$CFLAGS -w"
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceilf" >&5
5775 $as_echo_n "checking for library containing ceilf... " >&6; }
5776 if test "${ac_cv_search_ceilf+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 ac_func_search_save_LIBS=$LIBS
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5783 /* Override any GCC internal prototype to avoid an error.
5784 Use char because int might match the return type of a GCC
5785 builtin and then its argument prototype would still apply. */
5786 #ifdef __cplusplus
5787 extern "C"
5788 #endif
5789 char ceilf ();
5791 main ()
5793 return ceilf ();
5795 return 0;
5797 _ACEOF
5798 for ac_lib in '' m mx; do
5799 if test -z "$ac_lib"; then
5800 ac_res="none required"
5801 else
5802 ac_res=-l$ac_lib
5803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5805 if ac_fn_c_try_link "$LINENO"; then :
5806 ac_cv_search_ceilf=$ac_res
5808 rm -f core conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext
5810 if test "${ac_cv_search_ceilf+set}" = set; then :
5811 break
5813 done
5814 if test "${ac_cv_search_ceilf+set}" = set; then :
5816 else
5817 ac_cv_search_ceilf=no
5819 rm conftest.$ac_ext
5820 LIBS=$ac_func_search_save_LIBS
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceilf" >&5
5823 $as_echo "$ac_cv_search_ceilf" >&6; }
5824 ac_res=$ac_cv_search_ceilf
5825 if test "$ac_res" != no; then :
5826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5828 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
5832 CFLAGS="$OLD_CFLAGS"
5833 OLD_CFLAGS="$CFLAGS"
5834 CFLAGS="$CFLAGS -w"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
5836 $as_echo_n "checking for library containing cosf... " >&6; }
5837 if test "${ac_cv_search_cosf+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 ac_func_search_save_LIBS=$LIBS
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5844 /* Override any GCC internal prototype to avoid an error.
5845 Use char because int might match the return type of a GCC
5846 builtin and then its argument prototype would still apply. */
5847 #ifdef __cplusplus
5848 extern "C"
5849 #endif
5850 char cosf ();
5852 main ()
5854 return cosf ();
5856 return 0;
5858 _ACEOF
5859 for ac_lib in '' m mx; do
5860 if test -z "$ac_lib"; then
5861 ac_res="none required"
5862 else
5863 ac_res=-l$ac_lib
5864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5866 if ac_fn_c_try_link "$LINENO"; then :
5867 ac_cv_search_cosf=$ac_res
5869 rm -f core conftest.err conftest.$ac_objext \
5870 conftest$ac_exeext
5871 if test "${ac_cv_search_cosf+set}" = set; then :
5872 break
5874 done
5875 if test "${ac_cv_search_cosf+set}" = set; then :
5877 else
5878 ac_cv_search_cosf=no
5880 rm conftest.$ac_ext
5881 LIBS=$ac_func_search_save_LIBS
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
5884 $as_echo "$ac_cv_search_cosf" >&6; }
5885 ac_res=$ac_cv_search_cosf
5886 if test "$ac_res" != no; then :
5887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5889 $as_echo "#define HAVE_COSF 1" >>confdefs.h
5893 CFLAGS="$OLD_CFLAGS"
5894 OLD_CFLAGS="$CFLAGS"
5895 CFLAGS="$CFLAGS -w"
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sinf" >&5
5897 $as_echo_n "checking for library containing sinf... " >&6; }
5898 if test "${ac_cv_search_sinf+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 ac_func_search_save_LIBS=$LIBS
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5905 /* Override any GCC internal prototype to avoid an error.
5906 Use char because int might match the return type of a GCC
5907 builtin and then its argument prototype would still apply. */
5908 #ifdef __cplusplus
5909 extern "C"
5910 #endif
5911 char sinf ();
5913 main ()
5915 return sinf ();
5917 return 0;
5919 _ACEOF
5920 for ac_lib in '' m mx; do
5921 if test -z "$ac_lib"; then
5922 ac_res="none required"
5923 else
5924 ac_res=-l$ac_lib
5925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5927 if ac_fn_c_try_link "$LINENO"; then :
5928 ac_cv_search_sinf=$ac_res
5930 rm -f core conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext
5932 if test "${ac_cv_search_sinf+set}" = set; then :
5933 break
5935 done
5936 if test "${ac_cv_search_sinf+set}" = set; then :
5938 else
5939 ac_cv_search_sinf=no
5941 rm conftest.$ac_ext
5942 LIBS=$ac_func_search_save_LIBS
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sinf" >&5
5945 $as_echo "$ac_cv_search_sinf" >&6; }
5946 ac_res=$ac_cv_search_sinf
5947 if test "$ac_res" != no; then :
5948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5950 $as_echo "#define HAVE_SINF 1" >>confdefs.h
5954 CFLAGS="$OLD_CFLAGS"
5955 OLD_CFLAGS="$CFLAGS"
5956 CFLAGS="$CFLAGS -w"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acosf" >&5
5958 $as_echo_n "checking for library containing acosf... " >&6; }
5959 if test "${ac_cv_search_acosf+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 ac_func_search_save_LIBS=$LIBS
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5966 /* Override any GCC internal prototype to avoid an error.
5967 Use char because int might match the return type of a GCC
5968 builtin and then its argument prototype would still apply. */
5969 #ifdef __cplusplus
5970 extern "C"
5971 #endif
5972 char acosf ();
5974 main ()
5976 return acosf ();
5978 return 0;
5980 _ACEOF
5981 for ac_lib in '' m mx; do
5982 if test -z "$ac_lib"; then
5983 ac_res="none required"
5984 else
5985 ac_res=-l$ac_lib
5986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5988 if ac_fn_c_try_link "$LINENO"; then :
5989 ac_cv_search_acosf=$ac_res
5991 rm -f core conftest.err conftest.$ac_objext \
5992 conftest$ac_exeext
5993 if test "${ac_cv_search_acosf+set}" = set; then :
5994 break
5996 done
5997 if test "${ac_cv_search_acosf+set}" = set; then :
5999 else
6000 ac_cv_search_acosf=no
6002 rm conftest.$ac_ext
6003 LIBS=$ac_func_search_save_LIBS
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acosf" >&5
6006 $as_echo "$ac_cv_search_acosf" >&6; }
6007 ac_res=$ac_cv_search_acosf
6008 if test "$ac_res" != no; then :
6009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6011 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
6015 CFLAGS="$OLD_CFLAGS"
6016 OLD_CFLAGS="$CFLAGS"
6017 CFLAGS="$CFLAGS -w"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmodf" >&5
6019 $as_echo_n "checking for library containing fmodf... " >&6; }
6020 if test "${ac_cv_search_fmodf+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 ac_func_search_save_LIBS=$LIBS
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6027 /* Override any GCC internal prototype to avoid an error.
6028 Use char because int might match the return type of a GCC
6029 builtin and then its argument prototype would still apply. */
6030 #ifdef __cplusplus
6031 extern "C"
6032 #endif
6033 char fmodf ();
6035 main ()
6037 return fmodf ();
6039 return 0;
6041 _ACEOF
6042 for ac_lib in '' m mx; do
6043 if test -z "$ac_lib"; then
6044 ac_res="none required"
6045 else
6046 ac_res=-l$ac_lib
6047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6049 if ac_fn_c_try_link "$LINENO"; then :
6050 ac_cv_search_fmodf=$ac_res
6052 rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext
6054 if test "${ac_cv_search_fmodf+set}" = set; then :
6055 break
6057 done
6058 if test "${ac_cv_search_fmodf+set}" = set; then :
6060 else
6061 ac_cv_search_fmodf=no
6063 rm conftest.$ac_ext
6064 LIBS=$ac_func_search_save_LIBS
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmodf" >&5
6067 $as_echo "$ac_cv_search_fmodf" >&6; }
6068 ac_res=$ac_cv_search_fmodf
6069 if test "$ac_res" != no; then :
6070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6072 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
6076 CFLAGS="$OLD_CFLAGS"
6077 OLD_CFLAGS="$CFLAGS"
6078 CFLAGS="$CFLAGS -w"
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
6080 $as_echo_n "checking for library containing fabsf... " >&6; }
6081 if test "${ac_cv_search_fabsf+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 ac_func_search_save_LIBS=$LIBS
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6088 /* Override any GCC internal prototype to avoid an error.
6089 Use char because int might match the return type of a GCC
6090 builtin and then its argument prototype would still apply. */
6091 #ifdef __cplusplus
6092 extern "C"
6093 #endif
6094 char fabsf ();
6096 main ()
6098 return fabsf ();
6100 return 0;
6102 _ACEOF
6103 for ac_lib in '' m mx; do
6104 if test -z "$ac_lib"; then
6105 ac_res="none required"
6106 else
6107 ac_res=-l$ac_lib
6108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6110 if ac_fn_c_try_link "$LINENO"; then :
6111 ac_cv_search_fabsf=$ac_res
6113 rm -f core conftest.err conftest.$ac_objext \
6114 conftest$ac_exeext
6115 if test "${ac_cv_search_fabsf+set}" = set; then :
6116 break
6118 done
6119 if test "${ac_cv_search_fabsf+set}" = set; then :
6121 else
6122 ac_cv_search_fabsf=no
6124 rm conftest.$ac_ext
6125 LIBS=$ac_func_search_save_LIBS
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
6128 $as_echo "$ac_cv_search_fabsf" >&6; }
6129 ac_res=$ac_cv_search_fabsf
6130 if test "$ac_res" != no; then :
6131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6133 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
6137 CFLAGS="$OLD_CFLAGS"
6138 OLD_CFLAGS="$CFLAGS"
6139 CFLAGS="$CFLAGS -w"
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10f" >&5
6141 $as_echo_n "checking for library containing log10f... " >&6; }
6142 if test "${ac_cv_search_log10f+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 ac_func_search_save_LIBS=$LIBS
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6149 /* Override any GCC internal prototype to avoid an error.
6150 Use char because int might match the return type of a GCC
6151 builtin and then its argument prototype would still apply. */
6152 #ifdef __cplusplus
6153 extern "C"
6154 #endif
6155 char log10f ();
6157 main ()
6159 return log10f ();
6161 return 0;
6163 _ACEOF
6164 for ac_lib in '' m mx; do
6165 if test -z "$ac_lib"; then
6166 ac_res="none required"
6167 else
6168 ac_res=-l$ac_lib
6169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6171 if ac_fn_c_try_link "$LINENO"; then :
6172 ac_cv_search_log10f=$ac_res
6174 rm -f core conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext
6176 if test "${ac_cv_search_log10f+set}" = set; then :
6177 break
6179 done
6180 if test "${ac_cv_search_log10f+set}" = set; then :
6182 else
6183 ac_cv_search_log10f=no
6185 rm conftest.$ac_ext
6186 LIBS=$ac_func_search_save_LIBS
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10f" >&5
6189 $as_echo "$ac_cv_search_log10f" >&6; }
6190 ac_res=$ac_cv_search_log10f
6191 if test "$ac_res" != no; then :
6192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6194 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
6198 CFLAGS="$OLD_CFLAGS"
6200 # If we don't have ftello, we'll use ftell.
6201 for ac_func in ftello
6202 do :
6203 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
6204 if test "x$ac_cv_func_ftello" = x""yes; then :
6205 cat >>confdefs.h <<_ACEOF
6206 #define HAVE_FTELLO 1
6207 _ACEOF
6210 done
6213 # If we don't have fseeko, we'll use fseek.
6214 for ac_func in fseeko
6215 do :
6216 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
6217 if test "x$ac_cv_func_fseeko" = x""yes; then :
6218 cat >>confdefs.h <<_ACEOF
6219 #define HAVE_FSEEKO 1
6220 _ACEOF
6223 done
6227 # Checks for getdelim, this is a GNU extension.
6228 CFLAGS="$CFLAGS -D_GNU_SOURCE"
6229 for ac_func in getdelim
6230 do :
6231 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
6232 if test "x$ac_cv_func_getdelim" = x""yes; then :
6233 cat >>confdefs.h <<_ACEOF
6234 #define HAVE_GETDELIM 1
6235 _ACEOF
6237 have_getdelim="yes"
6239 else
6241 have_getdelim="no"
6244 done
6247 if test "$have_getdelim" = "yes"; then
6248 GETDELIM_TRUE=
6249 GETDELIM_FALSE='#'
6250 else
6251 GETDELIM_TRUE='#'
6252 GETDELIM_FALSE=
6257 # Checks for getopt_long, another GNU extension.
6258 for ac_func in getopt_long
6259 do :
6260 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6261 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6262 cat >>confdefs.h <<_ACEOF
6263 #define HAVE_GETOPT_LONG 1
6264 _ACEOF
6266 have_getopt_long="yes"
6268 else
6270 have_getopt_long="no"
6273 done
6276 if test "$have_getopt_long" = "yes"; then
6277 GETOPT_LONG_TRUE=
6278 GETOPT_LONG_FALSE='#'
6279 else
6280 GETOPT_LONG_TRUE='#'
6281 GETOPT_LONG_FALSE=
6286 if test "$have_getdelim" = "no" ||
6287 test "$have_getopt_long" = "no"; then
6288 if true; then
6289 NEED_REPLACEMENTS_TRUE=
6290 NEED_REPLACEMENTS_FALSE='#'
6291 else
6292 NEED_REPLACEMENTS_TRUE='#'
6293 NEED_REPLACEMENTS_FALSE=
6296 else
6297 if false; then
6298 NEED_REPLACEMENTS_TRUE=
6299 NEED_REPLACEMENTS_FALSE='#'
6300 else
6301 NEED_REPLACEMENTS_TRUE='#'
6302 NEED_REPLACEMENTS_FALSE=
6308 # Checks for flavours of varargs macros (borrowed from glib-2)
6309 # ISO C99
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros" >&5
6311 $as_echo_n "checking for ISO C99 varargs macros... " >&6; }
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6317 main ()
6320 int a(int p1, int p2, int p3);
6321 #define call_a(...) a(1,__VA_ARGS__)
6322 call_a(2,3);
6325 return 0;
6327 _ACEOF
6328 if ac_fn_c_try_compile "$LINENO"; then :
6329 have_iso_c_varargs=yes
6330 else
6331 have_iso_c_varargs=no
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_iso_c_varargs" >&5
6336 $as_echo "$have_iso_c_varargs" >&6; }
6338 if test $have_iso_c_varargs = yes; then
6339 iso_c_varargs=1
6340 else
6341 iso_c_varargs=0
6345 cat >>confdefs.h <<_ACEOF
6346 #define HAVE_ISO_C_VARARGS $iso_c_varargs
6347 _ACEOF
6350 if test $have_iso_c_varargs = no; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ISO C99 variadic macros" >&5
6352 $as_echo "$as_me: WARNING: No ISO C99 variadic macros" >&2;}
6355 # 32bit or 64bit ?
6356 # The cast to long int works around a bug in the HP C Compiler
6357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6359 # This bug is HP SR number 8606223364.
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
6361 $as_echo_n "checking size of unsigned long... " >&6; }
6362 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
6367 else
6368 if test "$ac_cv_type_unsigned_long" = yes; then
6369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6371 { as_fn_set_status 77
6372 as_fn_error "cannot compute sizeof (unsigned long)
6373 See \`config.log' for more details." "$LINENO" 5; }; }
6374 else
6375 ac_cv_sizeof_unsigned_long=0
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
6381 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
6385 cat >>confdefs.h <<_ACEOF
6386 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
6387 _ACEOF
6391 # Checks for X.
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6393 $as_echo_n "checking for X... " >&6; }
6396 # Check whether --with-x was given.
6397 if test "${with_x+set}" = set; then :
6398 withval=$with_x;
6401 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6402 if test "x$with_x" = xno; then
6403 # The user explicitly disabled X.
6404 have_x=disabled
6405 else
6406 case $x_includes,$x_libraries in #(
6407 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6408 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 # One or both of the vars are not set, and there is no cached value.
6412 ac_x_includes=no ac_x_libraries=no
6413 rm -f -r conftest.dir
6414 if mkdir conftest.dir; then
6415 cd conftest.dir
6416 cat >Imakefile <<'_ACEOF'
6417 incroot:
6418 @echo incroot='${INCROOT}'
6419 usrlibdir:
6420 @echo usrlibdir='${USRLIBDIR}'
6421 libdir:
6422 @echo libdir='${LIBDIR}'
6423 _ACEOF
6424 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6426 for ac_var in incroot usrlibdir libdir; do
6427 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6428 done
6429 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6430 for ac_extension in a so sl dylib la dll; do
6431 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6432 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6433 ac_im_usrlibdir=$ac_im_libdir; break
6435 done
6436 # Screen out bogus values from the imake configuration. They are
6437 # bogus both because they are the default anyway, and because
6438 # using them would break gcc on systems where it needs fixed includes.
6439 case $ac_im_incroot in
6440 /usr/include) ac_x_includes= ;;
6441 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6442 esac
6443 case $ac_im_usrlibdir in
6444 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6445 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6446 esac
6448 cd ..
6449 rm -f -r conftest.dir
6452 # Standard set of common directories for X headers.
6453 # Check X11 before X11Rn because it is often a symlink to the current release.
6454 ac_x_header_dirs='
6455 /usr/X11/include
6456 /usr/X11R7/include
6457 /usr/X11R6/include
6458 /usr/X11R5/include
6459 /usr/X11R4/include
6461 /usr/include/X11
6462 /usr/include/X11R7
6463 /usr/include/X11R6
6464 /usr/include/X11R5
6465 /usr/include/X11R4
6467 /usr/local/X11/include
6468 /usr/local/X11R7/include
6469 /usr/local/X11R6/include
6470 /usr/local/X11R5/include
6471 /usr/local/X11R4/include
6473 /usr/local/include/X11
6474 /usr/local/include/X11R7
6475 /usr/local/include/X11R6
6476 /usr/local/include/X11R5
6477 /usr/local/include/X11R4
6479 /usr/X386/include
6480 /usr/x386/include
6481 /usr/XFree86/include/X11
6483 /usr/include
6484 /usr/local/include
6485 /usr/unsupported/include
6486 /usr/athena/include
6487 /usr/local/x11r5/include
6488 /usr/lpp/Xamples/include
6490 /usr/openwin/include
6491 /usr/openwin/share/include'
6493 if test "$ac_x_includes" = no; then
6494 # Guess where to find include files, by looking for Xlib.h.
6495 # First, try using that file with no special directory specified.
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 #include <X11/Xlib.h>
6499 _ACEOF
6500 if ac_fn_c_try_cpp "$LINENO"; then :
6501 # We can compile using X headers with no special include directory.
6502 ac_x_includes=
6503 else
6504 for ac_dir in $ac_x_header_dirs; do
6505 if test -r "$ac_dir/X11/Xlib.h"; then
6506 ac_x_includes=$ac_dir
6507 break
6509 done
6511 rm -f conftest.err conftest.$ac_ext
6512 fi # $ac_x_includes = no
6514 if test "$ac_x_libraries" = no; then
6515 # Check for the libraries.
6516 # See if we find them without any special options.
6517 # Don't add to $LIBS permanently.
6518 ac_save_LIBS=$LIBS
6519 LIBS="-lX11 $LIBS"
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 #include <X11/Xlib.h>
6524 main ()
6526 XrmInitialize ()
6528 return 0;
6530 _ACEOF
6531 if ac_fn_c_try_link "$LINENO"; then :
6532 LIBS=$ac_save_LIBS
6533 # We can link X programs with no special library path.
6534 ac_x_libraries=
6535 else
6536 LIBS=$ac_save_LIBS
6537 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6539 # Don't even attempt the hair of trying to link an X program!
6540 for ac_extension in a so sl dylib la dll; do
6541 if test -r "$ac_dir/libX11.$ac_extension"; then
6542 ac_x_libraries=$ac_dir
6543 break 2
6545 done
6546 done
6548 rm -f core conftest.err conftest.$ac_objext \
6549 conftest$ac_exeext conftest.$ac_ext
6550 fi # $ac_x_libraries = no
6552 case $ac_x_includes,$ac_x_libraries in #(
6553 no,* | *,no | *\'*)
6554 # Didn't find X, or a directory has "'" in its name.
6555 ac_cv_have_x="have_x=no";; #(
6557 # Record where we found X for the cache.
6558 ac_cv_have_x="have_x=yes\
6559 ac_x_includes='$ac_x_includes'\
6560 ac_x_libraries='$ac_x_libraries'"
6561 esac
6563 ;; #(
6564 *) have_x=yes;;
6565 esac
6566 eval "$ac_cv_have_x"
6567 fi # $with_x != no
6569 if test "$have_x" != yes; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6571 $as_echo "$have_x" >&6; }
6572 no_x=yes
6573 else
6574 # If each of the values was on the command line, it overrides each guess.
6575 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6576 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6577 # Update the cache value to reflect the command line values.
6578 ac_cv_have_x="have_x=yes\
6579 ac_x_includes='$x_includes'\
6580 ac_x_libraries='$x_libraries'"
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6582 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6585 if test "$no_x" = yes; then
6586 # Not all programs may use this symbol, but it does not hurt to define it.
6588 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6590 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6591 else
6592 if test -n "$x_includes"; then
6593 X_CFLAGS="$X_CFLAGS -I$x_includes"
6596 # It would also be nice to do this for all -L options, not just this one.
6597 if test -n "$x_libraries"; then
6598 X_LIBS="$X_LIBS -L$x_libraries"
6599 # For Solaris; some versions of Sun CC require a space after -R and
6600 # others require no space. Words are not sufficient . . . .
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6602 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6603 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6604 ac_xsave_c_werror_flag=$ac_c_werror_flag
6605 ac_c_werror_flag=yes
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6610 main ()
6614 return 0;
6616 _ACEOF
6617 if ac_fn_c_try_link "$LINENO"; then :
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 X_LIBS="$X_LIBS -R$x_libraries"
6621 else
6622 LIBS="$ac_xsave_LIBS -R $x_libraries"
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6627 main ()
6631 return 0;
6633 _ACEOF
6634 if ac_fn_c_try_link "$LINENO"; then :
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6636 $as_echo "yes" >&6; }
6637 X_LIBS="$X_LIBS -R $x_libraries"
6638 else
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6640 $as_echo "neither works" >&6; }
6642 rm -f core conftest.err conftest.$ac_objext \
6643 conftest$ac_exeext conftest.$ac_ext
6645 rm -f core conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647 ac_c_werror_flag=$ac_xsave_c_werror_flag
6648 LIBS=$ac_xsave_LIBS
6651 # Check for system-dependent libraries X programs must link with.
6652 # Do this before checking for the system-independent R6 libraries
6653 # (-lICE), since we may need -lsocket or whatever for X linking.
6655 if test "$ISC" = yes; then
6656 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6657 else
6658 # Martyn Johnson says this is needed for Ultrix, if the X
6659 # libraries were built with DECnet support. And Karl Berry says
6660 # the Alpha needs dnet_stub (dnet does not exist).
6661 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6665 /* Override any GCC internal prototype to avoid an error.
6666 Use char because int might match the return type of a GCC
6667 builtin and then its argument prototype would still apply. */
6668 #ifdef __cplusplus
6669 extern "C"
6670 #endif
6671 char XOpenDisplay ();
6673 main ()
6675 return XOpenDisplay ();
6677 return 0;
6679 _ACEOF
6680 if ac_fn_c_try_link "$LINENO"; then :
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6684 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6685 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 ac_check_lib_save_LIBS=$LIBS
6689 LIBS="-ldnet $LIBS"
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6693 /* Override any GCC internal prototype to avoid an error.
6694 Use char because int might match the return type of a GCC
6695 builtin and then its argument prototype would still apply. */
6696 #ifdef __cplusplus
6697 extern "C"
6698 #endif
6699 char dnet_ntoa ();
6701 main ()
6703 return dnet_ntoa ();
6705 return 0;
6707 _ACEOF
6708 if ac_fn_c_try_link "$LINENO"; then :
6709 ac_cv_lib_dnet_dnet_ntoa=yes
6710 else
6711 ac_cv_lib_dnet_dnet_ntoa=no
6713 rm -f core conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
6715 LIBS=$ac_check_lib_save_LIBS
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6718 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6719 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6720 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6723 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6725 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6726 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 ac_check_lib_save_LIBS=$LIBS
6730 LIBS="-ldnet_stub $LIBS"
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6734 /* Override any GCC internal prototype to avoid an error.
6735 Use char because int might match the return type of a GCC
6736 builtin and then its argument prototype would still apply. */
6737 #ifdef __cplusplus
6738 extern "C"
6739 #endif
6740 char dnet_ntoa ();
6742 main ()
6744 return dnet_ntoa ();
6746 return 0;
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6751 else
6752 ac_cv_lib_dnet_stub_dnet_ntoa=no
6754 rm -f core conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756 LIBS=$ac_check_lib_save_LIBS
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6759 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6760 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6761 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6766 rm -f core conftest.err conftest.$ac_objext \
6767 conftest$ac_exeext conftest.$ac_ext
6768 LIBS="$ac_xsave_LIBS"
6770 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6771 # to get the SysV transport functions.
6772 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6773 # needs -lnsl.
6774 # The nsl library prevents programs from opening the X display
6775 # on Irix 5.2, according to T.E. Dickey.
6776 # The functions gethostbyname, getservbyname, and inet_addr are
6777 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6778 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6779 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6783 if test $ac_cv_func_gethostbyname = no; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6785 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6786 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 ac_check_lib_save_LIBS=$LIBS
6790 LIBS="-lnsl $LIBS"
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6794 /* Override any GCC internal prototype to avoid an error.
6795 Use char because int might match the return type of a GCC
6796 builtin and then its argument prototype would still apply. */
6797 #ifdef __cplusplus
6798 extern "C"
6799 #endif
6800 char gethostbyname ();
6802 main ()
6804 return gethostbyname ();
6806 return 0;
6808 _ACEOF
6809 if ac_fn_c_try_link "$LINENO"; then :
6810 ac_cv_lib_nsl_gethostbyname=yes
6811 else
6812 ac_cv_lib_nsl_gethostbyname=no
6814 rm -f core conftest.err conftest.$ac_objext \
6815 conftest$ac_exeext conftest.$ac_ext
6816 LIBS=$ac_check_lib_save_LIBS
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6819 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6820 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6821 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6824 if test $ac_cv_lib_nsl_gethostbyname = no; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6826 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6827 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 ac_check_lib_save_LIBS=$LIBS
6831 LIBS="-lbsd $LIBS"
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6835 /* Override any GCC internal prototype to avoid an error.
6836 Use char because int might match the return type of a GCC
6837 builtin and then its argument prototype would still apply. */
6838 #ifdef __cplusplus
6839 extern "C"
6840 #endif
6841 char gethostbyname ();
6843 main ()
6845 return gethostbyname ();
6847 return 0;
6849 _ACEOF
6850 if ac_fn_c_try_link "$LINENO"; then :
6851 ac_cv_lib_bsd_gethostbyname=yes
6852 else
6853 ac_cv_lib_bsd_gethostbyname=no
6855 rm -f core conftest.err conftest.$ac_objext \
6856 conftest$ac_exeext conftest.$ac_ext
6857 LIBS=$ac_check_lib_save_LIBS
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6860 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6861 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6862 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6868 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6869 # socket/setsockopt and other routines are undefined under SCO ODT
6870 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6871 # on later versions), says Simon Leinen: it contains gethostby*
6872 # variants that don't use the name server (or something). -lsocket
6873 # must be given before -lnsl if both are needed. We assume that
6874 # if connect needs -lnsl, so does gethostbyname.
6875 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6876 if test "x$ac_cv_func_connect" = x""yes; then :
6880 if test $ac_cv_func_connect = no; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6882 $as_echo_n "checking for connect in -lsocket... " >&6; }
6883 if test "${ac_cv_lib_socket_connect+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 ac_check_lib_save_LIBS=$LIBS
6887 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6891 /* Override any GCC internal prototype to avoid an error.
6892 Use char because int might match the return type of a GCC
6893 builtin and then its argument prototype would still apply. */
6894 #ifdef __cplusplus
6895 extern "C"
6896 #endif
6897 char connect ();
6899 main ()
6901 return connect ();
6903 return 0;
6905 _ACEOF
6906 if ac_fn_c_try_link "$LINENO"; then :
6907 ac_cv_lib_socket_connect=yes
6908 else
6909 ac_cv_lib_socket_connect=no
6911 rm -f core conftest.err conftest.$ac_objext \
6912 conftest$ac_exeext conftest.$ac_ext
6913 LIBS=$ac_check_lib_save_LIBS
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6916 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6917 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6918 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6923 # Guillermo Gomez says -lposix is necessary on A/UX.
6924 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6925 if test "x$ac_cv_func_remove" = x""yes; then :
6929 if test $ac_cv_func_remove = no; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6931 $as_echo_n "checking for remove in -lposix... " >&6; }
6932 if test "${ac_cv_lib_posix_remove+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 ac_check_lib_save_LIBS=$LIBS
6936 LIBS="-lposix $LIBS"
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6940 /* Override any GCC internal prototype to avoid an error.
6941 Use char because int might match the return type of a GCC
6942 builtin and then its argument prototype would still apply. */
6943 #ifdef __cplusplus
6944 extern "C"
6945 #endif
6946 char remove ();
6948 main ()
6950 return remove ();
6952 return 0;
6954 _ACEOF
6955 if ac_fn_c_try_link "$LINENO"; then :
6956 ac_cv_lib_posix_remove=yes
6957 else
6958 ac_cv_lib_posix_remove=no
6960 rm -f core conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6962 LIBS=$ac_check_lib_save_LIBS
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6965 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6966 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6967 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6972 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6973 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6974 if test "x$ac_cv_func_shmat" = x""yes; then :
6978 if test $ac_cv_func_shmat = no; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6980 $as_echo_n "checking for shmat in -lipc... " >&6; }
6981 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 ac_check_lib_save_LIBS=$LIBS
6985 LIBS="-lipc $LIBS"
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6989 /* Override any GCC internal prototype to avoid an error.
6990 Use char because int might match the return type of a GCC
6991 builtin and then its argument prototype would still apply. */
6992 #ifdef __cplusplus
6993 extern "C"
6994 #endif
6995 char shmat ();
6997 main ()
6999 return shmat ();
7001 return 0;
7003 _ACEOF
7004 if ac_fn_c_try_link "$LINENO"; then :
7005 ac_cv_lib_ipc_shmat=yes
7006 else
7007 ac_cv_lib_ipc_shmat=no
7009 rm -f core conftest.err conftest.$ac_objext \
7010 conftest$ac_exeext conftest.$ac_ext
7011 LIBS=$ac_check_lib_save_LIBS
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7014 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7015 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7016 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7022 # Check for libraries that X11R6 Xt/Xaw programs need.
7023 ac_save_LDFLAGS=$LDFLAGS
7024 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7025 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7026 # check for ICE first), but we must link in the order -lSM -lICE or
7027 # we get undefined symbols. So assume we have SM if we have ICE.
7028 # These have to be linked with before -lX11, unlike the other
7029 # libraries we check for below, so use a different variable.
7030 # John Interrante, Karl Berry
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7032 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7033 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 ac_check_lib_save_LIBS=$LIBS
7037 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7041 /* Override any GCC internal prototype to avoid an error.
7042 Use char because int might match the return type of a GCC
7043 builtin and then its argument prototype would still apply. */
7044 #ifdef __cplusplus
7045 extern "C"
7046 #endif
7047 char IceConnectionNumber ();
7049 main ()
7051 return IceConnectionNumber ();
7053 return 0;
7055 _ACEOF
7056 if ac_fn_c_try_link "$LINENO"; then :
7057 ac_cv_lib_ICE_IceConnectionNumber=yes
7058 else
7059 ac_cv_lib_ICE_IceConnectionNumber=no
7061 rm -f core conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7063 LIBS=$ac_check_lib_save_LIBS
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7066 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7067 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7068 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7071 LDFLAGS=$ac_save_LDFLAGS
7075 CFLAGS="$X_CFLAGS $CFLAGS"
7076 LDFLAGS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS"
7078 # Checks for GtkGLExt.
7081 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7082 if test -n "$ac_tool_prefix"; then
7083 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 case $PKG_CONFIG in
7091 [\\/]* | ?:[\\/]*)
7092 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7108 IFS=$as_save_IFS
7111 esac
7113 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7114 if test -n "$PKG_CONFIG"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7116 $as_echo "$PKG_CONFIG" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7124 if test -z "$ac_cv_path_PKG_CONFIG"; then
7125 ac_pt_PKG_CONFIG=$PKG_CONFIG
7126 # Extract the first word of "pkg-config", so it can be a program name with args.
7127 set dummy pkg-config; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 case $ac_pt_PKG_CONFIG in
7134 [\\/]* | ?:[\\/]*)
7135 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7149 done
7150 done
7151 IFS=$as_save_IFS
7154 esac
7156 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7157 if test -n "$ac_pt_PKG_CONFIG"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7159 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7165 if test "x$ac_pt_PKG_CONFIG" = x; then
7166 PKG_CONFIG=""
7167 else
7168 case $cross_compiling:$ac_tool_warned in
7169 yes:)
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7172 ac_tool_warned=yes ;;
7173 esac
7174 PKG_CONFIG=$ac_pt_PKG_CONFIG
7176 else
7177 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7181 if test -n "$PKG_CONFIG"; then
7182 _pkg_min_version=0.9.0
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7184 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7185 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7187 $as_echo "yes" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 PKG_CONFIG=""
7196 pkg_failed=no
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKGLEXT" >&5
7198 $as_echo_n "checking for GTKGLEXT... " >&6; }
7200 if test -n "$PKG_CONFIG"; then
7201 if test -n "$GTKGLEXT_CFLAGS"; then
7202 pkg_cv_GTKGLEXT_CFLAGS="$GTKGLEXT_CFLAGS"
7203 else
7204 if test -n "$PKG_CONFIG" && \
7205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5
7206 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5
7207 ac_status=$?
7208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7209 test $ac_status = 0; }; then
7210 pkg_cv_GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0" 2>/dev/null`
7211 else
7212 pkg_failed=yes
7215 else
7216 pkg_failed=untried
7218 if test -n "$PKG_CONFIG"; then
7219 if test -n "$GTKGLEXT_LIBS"; then
7220 pkg_cv_GTKGLEXT_LIBS="$GTKGLEXT_LIBS"
7221 else
7222 if test -n "$PKG_CONFIG" && \
7223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5
7224 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 pkg_cv_GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0" 2>/dev/null`
7229 else
7230 pkg_failed=yes
7233 else
7234 pkg_failed=untried
7239 if test $pkg_failed = yes; then
7241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7242 _pkg_short_errors_supported=yes
7243 else
7244 _pkg_short_errors_supported=no
7246 if test $_pkg_short_errors_supported = yes; then
7247 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
7248 else
7249 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
7251 # Put the nasty error message in config.log where it belongs
7252 echo "$GTKGLEXT_PKG_ERRORS" >&5
7254 as_fn_error "Package requirements (gtkglext-1.0 >= 0.7.0) were not met:
7256 $GTKGLEXT_PKG_ERRORS
7258 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7259 installed software in a non-standard prefix.
7261 Alternatively, you may set the environment variables GTKGLEXT_CFLAGS
7262 and GTKGLEXT_LIBS to avoid the need to call pkg-config.
7263 See the pkg-config man page for more details.
7264 " "$LINENO" 5
7265 elif test $pkg_failed = untried; then
7266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7268 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
7269 is in your PATH or set the PKG_CONFIG environment variable to the full
7270 path to pkg-config.
7272 Alternatively, you may set the environment variables GTKGLEXT_CFLAGS
7273 and GTKGLEXT_LIBS to avoid the need to call pkg-config.
7274 See the pkg-config man page for more details.
7276 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7277 See \`config.log' for more details." "$LINENO" 5; }
7278 else
7279 GTKGLEXT_CFLAGS=$pkg_cv_GTKGLEXT_CFLAGS
7280 GTKGLEXT_LIBS=$pkg_cv_GTKGLEXT_LIBS
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7282 $as_echo "yes" >&6; }
7285 CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
7286 LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
7287 GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
7289 # Checks for OpenGL.
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 #include "GL/gl.h"
7294 main ()
7296 glBegin(GL_QUADS);
7298 return 0;
7300 _ACEOF
7301 if ac_fn_c_try_link "$LINENO"; then :
7302 ogl="yes"
7303 else
7304 ogl="no"
7306 rm -f core conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7309 if test "x$ogl" = "xno"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: maybe libGL requires libpthread..." >&5
7311 $as_echo "$as_me: maybe libGL requires libpthread..." >&6;}
7312 OLD_LDFLAGS="$LDFLAGS"
7313 LDFLAGS="$LDFLAGS -lpthread"
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 #include "GL/gl.h"
7318 main ()
7320 glBegin(GL_QUADS);
7322 return 0;
7324 _ACEOF
7325 if ac_fn_c_try_link "$LINENO"; then :
7327 else
7328 as_fn_error "cannot use -lGL" "$LINENO" 5
7330 rm -f core conftest.err conftest.$ac_objext \
7331 conftest$ac_exeext conftest.$ac_ext
7334 # Checks for gtk.
7335 # Check whether --enable-gtktest was given.
7336 if test "${enable_gtktest+set}" = set; then :
7337 enableval=$enable_gtktest;
7338 else
7339 enable_gtktest=yes
7343 pkg_config_args=gtk+-2.0
7344 for module in . gthread
7346 case "$module" in
7347 gthread)
7348 pkg_config_args="$pkg_config_args gthread-2.0"
7350 esac
7351 done
7353 no_gtk=""
7355 # Extract the first word of "pkg-config", so it can be a program name with args.
7356 set dummy pkg-config; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 case $PKG_CONFIG in
7363 [\\/]* | ?:[\\/]*)
7364 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7378 done
7379 done
7380 IFS=$as_save_IFS
7382 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7384 esac
7386 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7387 if test -n "$PKG_CONFIG"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7389 $as_echo "$PKG_CONFIG" >&6; }
7390 else
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7397 if test x$PKG_CONFIG != xno ; then
7398 if pkg-config --atleast-pkgconfig-version 0.7 ; then
7400 else
7401 echo "*** pkg-config too old; version 0.7 or better required."
7402 no_gtk=yes
7403 PKG_CONFIG=no
7405 else
7406 no_gtk=yes
7409 min_gtk_version=2.6.0
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
7411 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
7413 if test x$PKG_CONFIG != xno ; then
7414 ## don't try to run the test against uninstalled libtool libs
7415 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7416 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7417 enable_gtktest=no
7420 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7422 else
7423 no_gtk=yes
7427 if test x"$no_gtk" = x ; then
7428 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7429 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7430 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7432 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7434 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7436 if test "x$enable_gtktest" = "xyes" ; then
7437 ac_save_CFLAGS="$CFLAGS"
7438 ac_save_LIBS="$LIBS"
7439 CFLAGS="$CFLAGS $GTK_CFLAGS"
7440 LIBS="$GTK_LIBS $LIBS"
7441 rm -f conf.gtktest
7442 if test "$cross_compiling" = yes; then :
7443 echo $ac_n "cross compiling; assumed OK... $ac_c"
7444 else
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7448 #include <gtk/gtk.h>
7449 #include <stdio.h>
7450 #include <stdlib.h>
7453 main ()
7455 int major, minor, micro;
7456 char *tmp_version;
7458 fclose (fopen ("conf.gtktest", "w"));
7460 /* HP/UX 9 (%@#!) writes to sscanf strings */
7461 tmp_version = g_strdup("$min_gtk_version");
7462 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7463 printf("%s, bad version string\n", "$min_gtk_version");
7464 exit(1);
7467 if ((gtk_major_version != $gtk_config_major_version) ||
7468 (gtk_minor_version != $gtk_config_minor_version) ||
7469 (gtk_micro_version != $gtk_config_micro_version))
7471 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7472 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7473 gtk_major_version, gtk_minor_version, gtk_micro_version);
7474 printf ("*** was found! If pkg-config was correct, then it is best\n");
7475 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7476 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7477 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7478 printf("*** required on your system.\n");
7479 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7480 printf("*** to point to the correct configuration files\n");
7482 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7483 (gtk_minor_version != GTK_MINOR_VERSION) ||
7484 (gtk_micro_version != GTK_MICRO_VERSION))
7486 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7487 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7488 printf("*** library (version %d.%d.%d)\n",
7489 gtk_major_version, gtk_minor_version, gtk_micro_version);
7491 else
7493 if ((gtk_major_version > major) ||
7494 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7495 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7497 return 0;
7499 else
7501 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7502 gtk_major_version, gtk_minor_version, gtk_micro_version);
7503 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7504 major, minor, micro);
7505 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7506 printf("***\n");
7507 printf("*** If you have already installed a sufficiently new version, this error\n");
7508 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7509 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7510 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7511 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7512 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7513 printf("*** so that the correct libraries are found at run-time))\n");
7516 return 1;
7519 _ACEOF
7520 if ac_fn_c_try_run "$LINENO"; then :
7522 else
7523 no_gtk=yes
7525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7526 conftest.$ac_objext conftest.beam conftest.$ac_ext
7529 CFLAGS="$ac_save_CFLAGS"
7530 LIBS="$ac_save_LIBS"
7533 if test "x$no_gtk" = x ; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7535 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7537 CFLAGS="$GTK_CFLAGS $CFLAGS"
7538 LDFLAGS="$GTK_LIBS $LDFLAGS"
7539 GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
7541 else
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 if test "$PKG_CONFIG" = "no" ; then
7545 echo "*** A new enough version of pkg-config was not found."
7546 echo "*** See http://pkgconfig.sourceforge.net"
7547 else
7548 if test -f conf.gtktest ; then
7550 else
7551 echo "*** Could not run GTK+ test program, checking why..."
7552 ac_save_CFLAGS="$CFLAGS"
7553 ac_save_LIBS="$LIBS"
7554 CFLAGS="$CFLAGS $GTK_CFLAGS"
7555 LIBS="$LIBS $GTK_LIBS"
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7559 #include <gtk/gtk.h>
7560 #include <stdio.h>
7563 main ()
7565 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7567 return 0;
7569 _ACEOF
7570 if ac_fn_c_try_link "$LINENO"; then :
7571 echo "*** The test program compiled, but did not run. This usually means"
7572 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7573 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7574 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7575 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7576 echo "*** is required on your system"
7577 echo "***"
7578 echo "*** If you have an old version installed, it is best to remove it, although"
7579 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7580 else
7581 echo "*** The test program failed to compile or link. See the file config.log for the"
7582 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7584 rm -f core conftest.err conftest.$ac_objext \
7585 conftest$ac_exeext conftest.$ac_ext
7586 CFLAGS="$ac_save_CFLAGS"
7587 LIBS="$ac_save_LIBS"
7590 GTK_CFLAGS=""
7591 GTK_LIBS=""
7592 exit 1
7596 rm -f conf.gtktest
7599 # I18n.
7600 ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g')
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7604 $as_echo_n "checking whether NLS is requested... " >&6; }
7605 # Check whether --enable-nls was given.
7606 if test "${enable_nls+set}" = set; then :
7607 enableval=$enable_nls; USE_NLS=$enableval
7608 else
7609 USE_NLS=yes
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7613 $as_echo "$USE_NLS" >&6; }
7618 GETTEXT_MACRO_VERSION=0.17
7623 # Prepare PATH_SEPARATOR.
7624 # The user is always right.
7625 if test "${PATH_SEPARATOR+set}" != set; then
7626 echo "#! /bin/sh" >conf$$.sh
7627 echo "exit 0" >>conf$$.sh
7628 chmod +x conf$$.sh
7629 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7630 PATH_SEPARATOR=';'
7631 else
7632 PATH_SEPARATOR=:
7634 rm -f conf$$.sh
7637 # Find out how to test for executable files. Don't use a zero-byte file,
7638 # as systems may use methods other than mode bits to determine executability.
7639 cat >conf$$.file <<_ASEOF
7640 #! /bin/sh
7641 exit 0
7642 _ASEOF
7643 chmod +x conf$$.file
7644 if test -x conf$$.file >/dev/null 2>&1; then
7645 ac_executable_p="test -x"
7646 else
7647 ac_executable_p="test -f"
7649 rm -f conf$$.file
7651 # Extract the first word of "msgfmt", so it can be a program name with args.
7652 set dummy msgfmt; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if test "${ac_cv_path_MSGFMT+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 case "$MSGFMT" in
7659 [\\/]* | ?:[\\/]*)
7660 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7663 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7664 for ac_dir in $PATH; do
7665 IFS="$ac_save_IFS"
7666 test -z "$ac_dir" && ac_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7669 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7670 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7671 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7672 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7673 break 2
7676 done
7677 done
7678 IFS="$ac_save_IFS"
7679 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7681 esac
7683 MSGFMT="$ac_cv_path_MSGFMT"
7684 if test "$MSGFMT" != ":"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7686 $as_echo "$MSGFMT" >&6; }
7687 else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7692 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7693 set dummy gmsgfmt; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 case $GMSGFMT in
7700 [\\/]* | ?:[\\/]*)
7701 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 break 2
7715 done
7716 done
7717 IFS=$as_save_IFS
7719 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7721 esac
7723 GMSGFMT=$ac_cv_path_GMSGFMT
7724 if test -n "$GMSGFMT"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7726 $as_echo "$GMSGFMT" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7734 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7735 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7736 *) MSGFMT_015=$MSGFMT ;;
7737 esac
7739 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7740 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7741 *) GMSGFMT_015=$GMSGFMT ;;
7742 esac
7746 # Prepare PATH_SEPARATOR.
7747 # The user is always right.
7748 if test "${PATH_SEPARATOR+set}" != set; then
7749 echo "#! /bin/sh" >conf$$.sh
7750 echo "exit 0" >>conf$$.sh
7751 chmod +x conf$$.sh
7752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7753 PATH_SEPARATOR=';'
7754 else
7755 PATH_SEPARATOR=:
7757 rm -f conf$$.sh
7760 # Find out how to test for executable files. Don't use a zero-byte file,
7761 # as systems may use methods other than mode bits to determine executability.
7762 cat >conf$$.file <<_ASEOF
7763 #! /bin/sh
7764 exit 0
7765 _ASEOF
7766 chmod +x conf$$.file
7767 if test -x conf$$.file >/dev/null 2>&1; then
7768 ac_executable_p="test -x"
7769 else
7770 ac_executable_p="test -f"
7772 rm -f conf$$.file
7774 # Extract the first word of "xgettext", so it can be a program name with args.
7775 set dummy xgettext; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 case "$XGETTEXT" in
7782 [\\/]* | ?:[\\/]*)
7783 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7786 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7787 for ac_dir in $PATH; do
7788 IFS="$ac_save_IFS"
7789 test -z "$ac_dir" && ac_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7792 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7793 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7794 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7795 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7796 break 2
7799 done
7800 done
7801 IFS="$ac_save_IFS"
7802 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7804 esac
7806 XGETTEXT="$ac_cv_path_XGETTEXT"
7807 if test "$XGETTEXT" != ":"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7809 $as_echo "$XGETTEXT" >&6; }
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7815 rm -f messages.po
7817 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7818 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7819 *) XGETTEXT_015=$XGETTEXT ;;
7820 esac
7824 # Prepare PATH_SEPARATOR.
7825 # The user is always right.
7826 if test "${PATH_SEPARATOR+set}" != set; then
7827 echo "#! /bin/sh" >conf$$.sh
7828 echo "exit 0" >>conf$$.sh
7829 chmod +x conf$$.sh
7830 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7831 PATH_SEPARATOR=';'
7832 else
7833 PATH_SEPARATOR=:
7835 rm -f conf$$.sh
7838 # Find out how to test for executable files. Don't use a zero-byte file,
7839 # as systems may use methods other than mode bits to determine executability.
7840 cat >conf$$.file <<_ASEOF
7841 #! /bin/sh
7842 exit 0
7843 _ASEOF
7844 chmod +x conf$$.file
7845 if test -x conf$$.file >/dev/null 2>&1; then
7846 ac_executable_p="test -x"
7847 else
7848 ac_executable_p="test -f"
7850 rm -f conf$$.file
7852 # Extract the first word of "msgmerge", so it can be a program name with args.
7853 set dummy msgmerge; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 case "$MSGMERGE" in
7860 [\\/]* | ?:[\\/]*)
7861 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7864 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7865 for ac_dir in $PATH; do
7866 IFS="$ac_save_IFS"
7867 test -z "$ac_dir" && ac_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7870 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7871 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7872 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7873 break 2
7876 done
7877 done
7878 IFS="$ac_save_IFS"
7879 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7881 esac
7883 MSGMERGE="$ac_cv_path_MSGMERGE"
7884 if test "$MSGMERGE" != ":"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7886 $as_echo "$MSGMERGE" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7893 test -n "$localedir" || localedir='${datadir}/locale'
7896 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7899 ac_config_commands="$ac_config_commands po-directories"
7902 # Make sure we can run config.sub.
7903 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7904 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7907 $as_echo_n "checking build system type... " >&6; }
7908 if test "${ac_cv_build+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 ac_build_alias=$build_alias
7912 test "x$ac_build_alias" = x &&
7913 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7914 test "x$ac_build_alias" = x &&
7915 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
7916 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7917 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7921 $as_echo "$ac_cv_build" >&6; }
7922 case $ac_cv_build in
7923 *-*-*) ;;
7924 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
7925 esac
7926 build=$ac_cv_build
7927 ac_save_IFS=$IFS; IFS='-'
7928 set x $ac_cv_build
7929 shift
7930 build_cpu=$1
7931 build_vendor=$2
7932 shift; shift
7933 # Remember, the first character of IFS is used to create $*,
7934 # except with old shells:
7935 build_os=$*
7936 IFS=$ac_save_IFS
7937 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7941 $as_echo_n "checking host system type... " >&6; }
7942 if test "${ac_cv_host+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test "x$host_alias" = x; then
7946 ac_cv_host=$ac_cv_build
7947 else
7948 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7949 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7954 $as_echo "$ac_cv_host" >&6; }
7955 case $ac_cv_host in
7956 *-*-*) ;;
7957 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
7958 esac
7959 host=$ac_cv_host
7960 ac_save_IFS=$IFS; IFS='-'
7961 set x $ac_cv_host
7962 shift
7963 host_cpu=$1
7964 host_vendor=$2
7965 shift; shift
7966 # Remember, the first character of IFS is used to create $*,
7967 # except with old shells:
7968 host_os=$*
7969 IFS=$ac_save_IFS
7970 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
7975 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
7976 if test "${ac_cv_gnu_library_2+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7982 #include <features.h>
7983 #ifdef __GNU_LIBRARY__
7984 #if (__GLIBC__ >= 2)
7985 Lucky GNU user
7986 #endif
7987 #endif
7989 _ACEOF
7990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7992 ac_cv_gnu_library_2=yes
7993 else
7994 ac_cv_gnu_library_2=no
7996 rm -f conftest*
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
8002 $as_echo "$ac_cv_gnu_library_2" >&6; }
8004 GLIBC2="$ac_cv_gnu_library_2"
8009 CFLAG_VISIBILITY=
8010 HAVE_VISIBILITY=0
8011 if test -n "$GCC"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
8013 $as_echo_n "checking for simple visibility declarations... " >&6; }
8014 if test "${gl_cv_cc_visibility+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8018 gl_save_CFLAGS="$CFLAGS"
8019 CFLAGS="$CFLAGS -fvisibility=hidden"
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8022 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
8023 extern __attribute__((__visibility__("default"))) int exportedvar;
8024 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
8025 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
8027 main ()
8031 return 0;
8033 _ACEOF
8034 if ac_fn_c_try_compile "$LINENO"; then :
8035 gl_cv_cc_visibility=yes
8036 else
8037 gl_cv_cc_visibility=no
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 CFLAGS="$gl_save_CFLAGS"
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
8044 $as_echo "$gl_cv_cc_visibility" >&6; }
8045 if test $gl_cv_cc_visibility = yes; then
8046 CFLAG_VISIBILITY="-fvisibility=hidden"
8047 HAVE_VISIBILITY=1
8053 cat >>confdefs.h <<_ACEOF
8054 #define HAVE_VISIBILITY $HAVE_VISIBILITY
8055 _ACEOF
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8059 $as_echo_n "checking for inline... " >&6; }
8060 if test "${ac_cv_c_inline+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 ac_cv_c_inline=no
8064 for ac_kw in inline __inline__ __inline; do
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 #ifndef __cplusplus
8068 typedef int foo_t;
8069 static $ac_kw foo_t static_foo () {return 0; }
8070 $ac_kw foo_t foo () {return 0; }
8071 #endif
8073 _ACEOF
8074 if ac_fn_c_try_compile "$LINENO"; then :
8075 ac_cv_c_inline=$ac_kw
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 test "$ac_cv_c_inline" != no && break
8079 done
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8083 $as_echo "$ac_cv_c_inline" >&6; }
8085 case $ac_cv_c_inline in
8086 inline | yes) ;;
8088 case $ac_cv_c_inline in
8089 no) ac_val=;;
8090 *) ac_val=$ac_cv_c_inline;;
8091 esac
8092 cat >>confdefs.h <<_ACEOF
8093 #ifndef __cplusplus
8094 #define inline $ac_val
8095 #endif
8096 _ACEOF
8098 esac
8100 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8101 if test "x$ac_cv_type_size_t" = x""yes; then :
8103 else
8105 cat >>confdefs.h <<_ACEOF
8106 #define size_t unsigned int
8107 _ACEOF
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
8113 $as_echo_n "checking for stdint.h... " >&6; }
8114 if test "${gl_cv_header_stdint_h+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 #include <sys/types.h>
8120 #include <stdint.h>
8122 main ()
8124 uintmax_t i = (uintmax_t) -1; return !i;
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 gl_cv_header_stdint_h=yes
8131 else
8132 gl_cv_header_stdint_h=no
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
8137 $as_echo "$gl_cv_header_stdint_h" >&6; }
8138 if test $gl_cv_header_stdint_h = yes; then
8140 cat >>confdefs.h <<_ACEOF
8141 #define HAVE_STDINT_H_WITH_UINTMAX 1
8142 _ACEOF
8146 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8147 # for constant arguments. Useless!
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8149 $as_echo_n "checking for working alloca.h... " >&6; }
8150 if test "${ac_cv_working_alloca_h+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8155 #include <alloca.h>
8157 main ()
8159 char *p = (char *) alloca (2 * sizeof (int));
8160 if (p) return 0;
8162 return 0;
8164 _ACEOF
8165 if ac_fn_c_try_link "$LINENO"; then :
8166 ac_cv_working_alloca_h=yes
8167 else
8168 ac_cv_working_alloca_h=no
8170 rm -f core conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8174 $as_echo "$ac_cv_working_alloca_h" >&6; }
8175 if test $ac_cv_working_alloca_h = yes; then
8177 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8182 $as_echo_n "checking for alloca... " >&6; }
8183 if test "${ac_cv_func_alloca_works+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8188 #ifdef __GNUC__
8189 # define alloca __builtin_alloca
8190 #else
8191 # ifdef _MSC_VER
8192 # include <malloc.h>
8193 # define alloca _alloca
8194 # else
8195 # ifdef HAVE_ALLOCA_H
8196 # include <alloca.h>
8197 # else
8198 # ifdef _AIX
8199 #pragma alloca
8200 # else
8201 # ifndef alloca /* predefined by HP cc +Olibcalls */
8202 char *alloca ();
8203 # endif
8204 # endif
8205 # endif
8206 # endif
8207 #endif
8210 main ()
8212 char *p = (char *) alloca (1);
8213 if (p) return 0;
8215 return 0;
8217 _ACEOF
8218 if ac_fn_c_try_link "$LINENO"; then :
8219 ac_cv_func_alloca_works=yes
8220 else
8221 ac_cv_func_alloca_works=no
8223 rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8227 $as_echo "$ac_cv_func_alloca_works" >&6; }
8229 if test $ac_cv_func_alloca_works = yes; then
8231 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8233 else
8234 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8235 # that cause trouble. Some versions do not even contain alloca or
8236 # contain a buggy version. If you still want to use their alloca,
8237 # use ar to extract alloca.o from them instead of compiling alloca.c.
8239 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8241 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8245 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8246 if test "${ac_cv_os_cray+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8251 #if defined CRAY && ! defined CRAY2
8252 webecray
8253 #else
8254 wenotbecray
8255 #endif
8257 _ACEOF
8258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8259 $EGREP "webecray" >/dev/null 2>&1; then :
8260 ac_cv_os_cray=yes
8261 else
8262 ac_cv_os_cray=no
8264 rm -f conftest*
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8268 $as_echo "$ac_cv_os_cray" >&6; }
8269 if test $ac_cv_os_cray = yes; then
8270 for ac_func in _getb67 GETB67 getb67; do
8271 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8272 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8273 eval as_val=\$$as_ac_var
8274 if test "x$as_val" = x""yes; then :
8276 cat >>confdefs.h <<_ACEOF
8277 #define CRAY_STACKSEG_END $ac_func
8278 _ACEOF
8280 break
8283 done
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8287 $as_echo_n "checking stack direction for C alloca... " >&6; }
8288 if test "${ac_cv_c_stack_direction+set}" = set; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8291 if test "$cross_compiling" = yes; then :
8292 ac_cv_c_stack_direction=0
8293 else
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296 $ac_includes_default
8298 find_stack_direction ()
8300 static char *addr = 0;
8301 auto char dummy;
8302 if (addr == 0)
8304 addr = &dummy;
8305 return find_stack_direction ();
8307 else
8308 return (&dummy > addr) ? 1 : -1;
8312 main ()
8314 return find_stack_direction () < 0;
8316 _ACEOF
8317 if ac_fn_c_try_run "$LINENO"; then :
8318 ac_cv_c_stack_direction=1
8319 else
8320 ac_cv_c_stack_direction=-1
8322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8323 conftest.$ac_objext conftest.beam conftest.$ac_ext
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8328 $as_echo "$ac_cv_c_stack_direction" >&6; }
8329 cat >>confdefs.h <<_ACEOF
8330 #define STACK_DIRECTION $ac_cv_c_stack_direction
8331 _ACEOF
8339 for ac_header in $ac_header_list
8340 do :
8341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8344 eval as_val=\$$as_ac_Header
8345 if test "x$as_val" = x""yes; then :
8346 cat >>confdefs.h <<_ACEOF
8347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8348 _ACEOF
8352 done
8361 for ac_func in getpagesize
8362 do :
8363 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8364 if test "x$ac_cv_func_getpagesize" = x""yes; then :
8365 cat >>confdefs.h <<_ACEOF
8366 #define HAVE_GETPAGESIZE 1
8367 _ACEOF
8370 done
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8373 $as_echo_n "checking for working mmap... " >&6; }
8374 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 if test "$cross_compiling" = yes; then :
8378 ac_cv_func_mmap_fixed_mapped=no
8379 else
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 /* malloc might have been renamed as rpl_malloc. */
8384 #undef malloc
8386 /* Thanks to Mike Haertel and Jim Avera for this test.
8387 Here is a matrix of mmap possibilities:
8388 mmap private not fixed
8389 mmap private fixed at somewhere currently unmapped
8390 mmap private fixed at somewhere already mapped
8391 mmap shared not fixed
8392 mmap shared fixed at somewhere currently unmapped
8393 mmap shared fixed at somewhere already mapped
8394 For private mappings, we should verify that changes cannot be read()
8395 back from the file, nor mmap's back from the file at a different
8396 address. (There have been systems where private was not correctly
8397 implemented like the infamous i386 svr4.0, and systems where the
8398 VM page cache was not coherent with the file system buffer cache
8399 like early versions of FreeBSD and possibly contemporary NetBSD.)
8400 For shared mappings, we should conversely verify that changes get
8401 propagated back to all the places they're supposed to be.
8403 Grep wants private fixed already mapped.
8404 The main things grep needs to know about mmap are:
8405 * does it exist and is it safe to write into the mmap'd area
8406 * how to use it (BSD variants) */
8408 #include <fcntl.h>
8409 #include <sys/mman.h>
8411 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8412 char *malloc ();
8413 #endif
8415 /* This mess was copied from the GNU getpagesize.h. */
8416 #ifndef HAVE_GETPAGESIZE
8417 # ifdef _SC_PAGESIZE
8418 # define getpagesize() sysconf(_SC_PAGESIZE)
8419 # else /* no _SC_PAGESIZE */
8420 # ifdef HAVE_SYS_PARAM_H
8421 # include <sys/param.h>
8422 # ifdef EXEC_PAGESIZE
8423 # define getpagesize() EXEC_PAGESIZE
8424 # else /* no EXEC_PAGESIZE */
8425 # ifdef NBPG
8426 # define getpagesize() NBPG * CLSIZE
8427 # ifndef CLSIZE
8428 # define CLSIZE 1
8429 # endif /* no CLSIZE */
8430 # else /* no NBPG */
8431 # ifdef NBPC
8432 # define getpagesize() NBPC
8433 # else /* no NBPC */
8434 # ifdef PAGESIZE
8435 # define getpagesize() PAGESIZE
8436 # endif /* PAGESIZE */
8437 # endif /* no NBPC */
8438 # endif /* no NBPG */
8439 # endif /* no EXEC_PAGESIZE */
8440 # else /* no HAVE_SYS_PARAM_H */
8441 # define getpagesize() 8192 /* punt totally */
8442 # endif /* no HAVE_SYS_PARAM_H */
8443 # endif /* no _SC_PAGESIZE */
8445 #endif /* no HAVE_GETPAGESIZE */
8448 main ()
8450 char *data, *data2, *data3;
8451 const char *cdata2;
8452 int i, pagesize;
8453 int fd, fd2;
8455 pagesize = getpagesize ();
8457 /* First, make a file with some known garbage in it. */
8458 data = (char *) malloc (pagesize);
8459 if (!data)
8460 return 1;
8461 for (i = 0; i < pagesize; ++i)
8462 *(data + i) = rand ();
8463 umask (0);
8464 fd = creat ("conftest.mmap", 0600);
8465 if (fd < 0)
8466 return 2;
8467 if (write (fd, data, pagesize) != pagesize)
8468 return 3;
8469 close (fd);
8471 /* Next, check that the tail of a page is zero-filled. File must have
8472 non-zero length, otherwise we risk SIGBUS for entire page. */
8473 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8474 if (fd2 < 0)
8475 return 4;
8476 cdata2 = "";
8477 if (write (fd2, cdata2, 1) != 1)
8478 return 5;
8479 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8480 if (data2 == MAP_FAILED)
8481 return 6;
8482 for (i = 0; i < pagesize; ++i)
8483 if (*(data2 + i))
8484 return 7;
8485 close (fd2);
8486 if (munmap (data2, pagesize))
8487 return 8;
8489 /* Next, try to mmap the file at a fixed address which already has
8490 something else allocated at it. If we can, also make sure that
8491 we see the same garbage. */
8492 fd = open ("conftest.mmap", O_RDWR);
8493 if (fd < 0)
8494 return 9;
8495 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8496 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8497 return 10;
8498 for (i = 0; i < pagesize; ++i)
8499 if (*(data + i) != *(data2 + i))
8500 return 11;
8502 /* Finally, make sure that changes to the mapped area do not
8503 percolate back to the file as seen by read(). (This is a bug on
8504 some variants of i386 svr4.0.) */
8505 for (i = 0; i < pagesize; ++i)
8506 *(data2 + i) = *(data2 + i) + 1;
8507 data3 = (char *) malloc (pagesize);
8508 if (!data3)
8509 return 12;
8510 if (read (fd, data3, pagesize) != pagesize)
8511 return 13;
8512 for (i = 0; i < pagesize; ++i)
8513 if (*(data + i) != *(data3 + i))
8514 return 14;
8515 close (fd);
8516 return 0;
8518 _ACEOF
8519 if ac_fn_c_try_run "$LINENO"; then :
8520 ac_cv_func_mmap_fixed_mapped=yes
8521 else
8522 ac_cv_func_mmap_fixed_mapped=no
8524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8525 conftest.$ac_objext conftest.beam conftest.$ac_ext
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8530 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8531 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8533 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8536 rm -f conftest.mmap conftest.txt
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
8541 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
8542 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8546 gt_cv_int_divbyzero_sigfpe=
8547 case "$host_os" in
8548 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
8549 # On MacOS X 10.2 or newer, just assume the same as when cross-
8550 # compiling. If we were to perform the real test, 1 Crash Report
8551 # dialog window would pop up.
8552 case "$host_cpu" in
8553 i[34567]86 | x86_64)
8554 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
8555 esac
8557 esac
8558 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
8559 if test "$cross_compiling" = yes; then :
8561 # Guess based on the CPU.
8562 case "$host_cpu" in
8563 alpha* | i[34567]86 | x86_64 | m68k | s390*)
8564 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8566 gt_cv_int_divbyzero_sigfpe="guessing no";;
8567 esac
8569 else
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8573 #include <stdlib.h>
8574 #include <signal.h>
8576 static void
8577 sigfpe_handler (int sig)
8579 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8580 exit (sig != SIGFPE);
8583 int x = 1;
8584 int y = 0;
8585 int z;
8586 int nan;
8588 int main ()
8590 signal (SIGFPE, sigfpe_handler);
8591 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8592 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8593 signal (SIGTRAP, sigfpe_handler);
8594 #endif
8595 /* Linux/SPARC yields signal SIGILL. */
8596 #if defined (__sparc__) && defined (__linux__)
8597 signal (SIGILL, sigfpe_handler);
8598 #endif
8600 z = x / y;
8601 nan = y / y;
8602 exit (1);
8605 _ACEOF
8606 if ac_fn_c_try_run "$LINENO"; then :
8607 gt_cv_int_divbyzero_sigfpe=yes
8608 else
8609 gt_cv_int_divbyzero_sigfpe=no
8611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8612 conftest.$ac_objext conftest.beam conftest.$ac_ext
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
8619 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8620 case "$gt_cv_int_divbyzero_sigfpe" in
8621 *yes) value=1;;
8622 *) value=0;;
8623 esac
8625 cat >>confdefs.h <<_ACEOF
8626 #define INTDIV0_RAISES_SIGFPE $value
8627 _ACEOF
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8632 $as_echo_n "checking for inttypes.h... " >&6; }
8633 if test "${gl_cv_header_inttypes_h+set}" = set; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 #include <sys/types.h>
8639 #include <inttypes.h>
8641 main ()
8643 uintmax_t i = (uintmax_t) -1; return !i;
8645 return 0;
8647 _ACEOF
8648 if ac_fn_c_try_compile "$LINENO"; then :
8649 gl_cv_header_inttypes_h=yes
8650 else
8651 gl_cv_header_inttypes_h=no
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
8656 $as_echo "$gl_cv_header_inttypes_h" >&6; }
8657 if test $gl_cv_header_inttypes_h = yes; then
8659 cat >>confdefs.h <<_ACEOF
8660 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8661 _ACEOF
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8667 $as_echo_n "checking for unsigned long long int... " >&6; }
8668 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8674 /* Test preprocessor. */
8675 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8676 error in preprocessor;
8677 #endif
8678 #if ! (18446744073709551615ULL <= -1ull)
8679 error in preprocessor;
8680 #endif
8681 /* Test literals. */
8682 long long int ll = 9223372036854775807ll;
8683 long long int nll = -9223372036854775807LL;
8684 unsigned long long int ull = 18446744073709551615ULL;
8685 /* Test constant expressions. */
8686 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8687 ? 1 : -1)];
8688 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8689 ? 1 : -1)];
8690 int i = 63;
8692 main ()
8694 /* Test availability of runtime routines for shift and division. */
8695 long long int llmax = 9223372036854775807ll;
8696 unsigned long long int ullmax = 18446744073709551615ull;
8697 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8698 | (llmax / ll) | (llmax % ll)
8699 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8700 | (ullmax / ull) | (ullmax % ull));
8702 return 0;
8705 _ACEOF
8706 if ac_fn_c_try_link "$LINENO"; then :
8707 ac_cv_type_unsigned_long_long_int=yes
8708 else
8709 ac_cv_type_unsigned_long_long_int=no
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8715 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8716 if test $ac_cv_type_unsigned_long_long_int = yes; then
8718 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8725 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8727 test $ac_cv_type_unsigned_long_long_int = yes \
8728 && ac_type='unsigned long long' \
8729 || ac_type='unsigned long'
8731 cat >>confdefs.h <<_ACEOF
8732 #define uintmax_t $ac_type
8733 _ACEOF
8735 else
8737 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8742 for ac_header in inttypes.h
8743 do :
8744 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8745 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8746 cat >>confdefs.h <<_ACEOF
8747 #define HAVE_INTTYPES_H 1
8748 _ACEOF
8752 done
8754 if test $ac_cv_header_inttypes_h = yes; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8756 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8757 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 #include <inttypes.h>
8764 #ifdef PRId32
8765 char *p = PRId32;
8766 #endif
8769 main ()
8773 return 0;
8775 _ACEOF
8776 if ac_fn_c_try_compile "$LINENO"; then :
8777 gt_cv_inttypes_pri_broken=no
8778 else
8779 gt_cv_inttypes_pri_broken=yes
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8785 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8787 if test "$gt_cv_inttypes_pri_broken" = yes; then
8789 cat >>confdefs.h <<_ACEOF
8790 #define PRI_MACROS_BROKEN 1
8791 _ACEOF
8793 PRI_MACROS_BROKEN=1
8794 else
8795 PRI_MACROS_BROKEN=0
8803 # Check whether --enable-threads was given.
8804 if test "${enable_threads+set}" = set; then :
8805 enableval=$enable_threads; gl_use_threads=$enableval
8806 else
8807 case "$host_os" in
8808 osf*) gl_use_threads=no ;;
8809 *) gl_use_threads=yes ;;
8810 esac
8814 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8815 # For using <pthread.h>:
8816 case "$host_os" in
8817 osf*)
8818 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8819 # groks <pthread.h>. cc also understands the flag -pthread, but
8820 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8821 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8822 # causes the AC_TRY_LINK test below to succeed unexpectedly,
8823 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8824 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8826 esac
8827 # Some systems optimize for single-threaded programs by default, and
8828 # need special flags to disable these optimizations. For example, the
8829 # definition of 'errno' in <errno.h>.
8830 case "$host_os" in
8831 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8832 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8833 esac
8840 if test "X$prefix" = "XNONE"; then
8841 acl_final_prefix="$ac_default_prefix"
8842 else
8843 acl_final_prefix="$prefix"
8845 if test "X$exec_prefix" = "XNONE"; then
8846 acl_final_exec_prefix='${prefix}'
8847 else
8848 acl_final_exec_prefix="$exec_prefix"
8850 acl_save_prefix="$prefix"
8851 prefix="$acl_final_prefix"
8852 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8853 prefix="$acl_save_prefix"
8856 # Check whether --with-gnu-ld was given.
8857 if test "${with_gnu_ld+set}" = set; then :
8858 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8859 else
8860 with_gnu_ld=no
8863 # Prepare PATH_SEPARATOR.
8864 # The user is always right.
8865 if test "${PATH_SEPARATOR+set}" != set; then
8866 echo "#! /bin/sh" >conf$$.sh
8867 echo "exit 0" >>conf$$.sh
8868 chmod +x conf$$.sh
8869 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8870 PATH_SEPARATOR=';'
8871 else
8872 PATH_SEPARATOR=:
8874 rm -f conf$$.sh
8876 ac_prog=ld
8877 if test "$GCC" = yes; then
8878 # Check if gcc -print-prog-name=ld gives a path.
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8880 $as_echo_n "checking for ld used by GCC... " >&6; }
8881 case $host in
8882 *-*-mingw*)
8883 # gcc leaves a trailing carriage return which upsets mingw
8884 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8886 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8887 esac
8888 case $ac_prog in
8889 # Accept absolute paths.
8890 [\\/]* | [A-Za-z]:[\\/]*)
8891 re_direlt='/[^/][^/]*/\.\./'
8892 # Canonicalize the path of ld
8893 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8894 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8895 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8896 done
8897 test -z "$LD" && LD="$ac_prog"
8900 # If it fails, then pretend we aren't using GCC.
8901 ac_prog=ld
8904 # If it is relative, then search for the first ld in PATH.
8905 with_gnu_ld=unknown
8907 esac
8908 elif test "$with_gnu_ld" = yes; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8910 $as_echo_n "checking for GNU ld... " >&6; }
8911 else
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8913 $as_echo_n "checking for non-GNU ld... " >&6; }
8915 if test "${acl_cv_path_LD+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 if test -z "$LD"; then
8919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8920 for ac_dir in $PATH; do
8921 test -z "$ac_dir" && ac_dir=.
8922 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8923 acl_cv_path_LD="$ac_dir/$ac_prog"
8924 # Check to see if the program is GNU ld. I'd rather use --version,
8925 # but apparently some GNU ld's only accept -v.
8926 # Break only if it was the GNU/non-GNU ld that we prefer.
8927 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8928 *GNU* | *'with BFD'*)
8929 test "$with_gnu_ld" != no && break ;;
8931 test "$with_gnu_ld" != yes && break ;;
8932 esac
8934 done
8935 IFS="$ac_save_ifs"
8936 else
8937 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8941 LD="$acl_cv_path_LD"
8942 if test -n "$LD"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8944 $as_echo "$LD" >&6; }
8945 else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8949 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8952 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8956 case `$LD -v 2>&1 </dev/null` in
8957 *GNU* | *'with BFD'*)
8958 acl_cv_prog_gnu_ld=yes ;;
8960 acl_cv_prog_gnu_ld=no ;;
8961 esac
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8964 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8965 with_gnu_ld=$acl_cv_prog_gnu_ld
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8971 $as_echo_n "checking for shared library run path origin... " >&6; }
8972 if test "${acl_cv_rpath+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8976 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8977 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8978 . ./conftest.sh
8979 rm -f ./conftest.sh
8980 acl_cv_rpath=done
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8984 $as_echo "$acl_cv_rpath" >&6; }
8985 wl="$acl_cv_wl"
8986 acl_libext="$acl_cv_libext"
8987 acl_shlibext="$acl_cv_shlibext"
8988 acl_libname_spec="$acl_cv_libname_spec"
8989 acl_library_names_spec="$acl_cv_library_names_spec"
8990 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8991 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8992 acl_hardcode_direct="$acl_cv_hardcode_direct"
8993 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8994 # Check whether --enable-rpath was given.
8995 if test "${enable_rpath+set}" = set; then :
8996 enableval=$enable_rpath; :
8997 else
8998 enable_rpath=yes
9003 acl_libdirstem=lib
9004 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9005 if test -n "$searchpath"; then
9006 acl_save_IFS="${IFS= }"; IFS=":"
9007 for searchdir in $searchpath; do
9008 if test -d "$searchdir"; then
9009 case "$searchdir" in
9010 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9011 *) searchdir=`cd "$searchdir" && pwd`
9012 case "$searchdir" in
9013 */lib64 ) acl_libdirstem=lib64 ;;
9014 esac ;;
9015 esac
9017 done
9018 IFS="$acl_save_IFS"
9023 gl_threads_api=none
9024 LIBTHREAD=
9025 LTLIBTHREAD=
9026 LIBMULTITHREAD=
9027 LTLIBMULTITHREAD=
9028 if test "$gl_use_threads" != no; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9030 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
9031 gl_have_weak=no
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 extern void xyzzy ();
9035 #pragma weak xyzzy
9037 main ()
9039 xyzzy();
9041 return 0;
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045 gl_have_weak=yes
9047 rm -f core conftest.err conftest.$ac_objext \
9048 conftest$ac_exeext conftest.$ac_ext
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
9050 $as_echo "$gl_have_weak" >&6; }
9051 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9052 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9053 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
9054 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9055 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9056 gl_have_pthread_h=yes
9057 else
9058 gl_have_pthread_h=no
9062 if test "$gl_have_pthread_h" = yes; then
9063 # Other possible tests:
9064 # -lpthreads (FSU threads, PCthreads)
9065 # -lgthreads
9066 gl_have_pthread=
9067 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9068 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9069 # the second one only in libpthread, and lock.c needs it.
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9072 #include <pthread.h>
9074 main ()
9076 pthread_mutex_lock((pthread_mutex_t*)0);
9077 pthread_mutexattr_init((pthread_mutexattr_t*)0);
9079 return 0;
9081 _ACEOF
9082 if ac_fn_c_try_link "$LINENO"; then :
9083 gl_have_pthread=yes
9085 rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9087 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9088 # since it is defined as a macro on OSF/1.)
9089 if test -n "$gl_have_pthread"; then
9090 # The program links fine without libpthread. But it may actually
9091 # need to link with libpthread in order to create multiple threads.
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9093 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9094 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 ac_check_lib_save_LIBS=$LIBS
9098 LIBS="-lpthread $LIBS"
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9102 /* Override any GCC internal prototype to avoid an error.
9103 Use char because int might match the return type of a GCC
9104 builtin and then its argument prototype would still apply. */
9105 #ifdef __cplusplus
9106 extern "C"
9107 #endif
9108 char pthread_kill ();
9110 main ()
9112 return pthread_kill ();
9114 return 0;
9116 _ACEOF
9117 if ac_fn_c_try_link "$LINENO"; then :
9118 ac_cv_lib_pthread_pthread_kill=yes
9119 else
9120 ac_cv_lib_pthread_pthread_kill=no
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 LIBS=$ac_check_lib_save_LIBS
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9127 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9128 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
9129 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9130 # On Solaris and HP-UX, most pthread functions exist also in libc.
9131 # Therefore pthread_in_use() needs to actually try to create a
9132 # thread: pthread_create from libc will fail, whereas
9133 # pthread_create will actually create a thread.
9134 case "$host_os" in
9135 solaris* | hpux*)
9137 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9139 esac
9143 else
9144 # Some library is needed. Try libpthread and libc_r.
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9146 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9147 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 ac_check_lib_save_LIBS=$LIBS
9151 LIBS="-lpthread $LIBS"
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9155 /* Override any GCC internal prototype to avoid an error.
9156 Use char because int might match the return type of a GCC
9157 builtin and then its argument prototype would still apply. */
9158 #ifdef __cplusplus
9159 extern "C"
9160 #endif
9161 char pthread_kill ();
9163 main ()
9165 return pthread_kill ();
9167 return 0;
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"; then :
9171 ac_cv_lib_pthread_pthread_kill=yes
9172 else
9173 ac_cv_lib_pthread_pthread_kill=no
9175 rm -f core conftest.err conftest.$ac_objext \
9176 conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9180 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9181 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
9182 gl_have_pthread=yes
9183 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
9184 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9187 if test -z "$gl_have_pthread"; then
9188 # For FreeBSD 4.
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9190 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
9191 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lc_r $LIBS"
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9199 /* Override any GCC internal prototype to avoid an error.
9200 Use char because int might match the return type of a GCC
9201 builtin and then its argument prototype would still apply. */
9202 #ifdef __cplusplus
9203 extern "C"
9204 #endif
9205 char pthread_kill ();
9207 main ()
9209 return pthread_kill ();
9211 return 0;
9213 _ACEOF
9214 if ac_fn_c_try_link "$LINENO"; then :
9215 ac_cv_lib_c_r_pthread_kill=yes
9216 else
9217 ac_cv_lib_c_r_pthread_kill=no
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 LIBS=$ac_check_lib_save_LIBS
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9224 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
9225 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
9226 gl_have_pthread=yes
9227 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9228 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9233 if test -n "$gl_have_pthread"; then
9234 gl_threads_api=posix
9236 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9238 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9239 if test $gl_have_weak = yes; then
9241 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9243 LIBTHREAD=
9244 LTLIBTHREAD=
9247 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
9248 # pthread_rwlock_* functions.
9249 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
9251 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
9253 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
9257 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260 #include <pthread.h>
9262 main ()
9264 #if __FreeBSD__ == 4
9265 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
9266 #else
9267 int x = (int)PTHREAD_MUTEX_RECURSIVE;
9268 return !x;
9269 #endif
9271 return 0;
9273 _ACEOF
9274 if ac_fn_c_try_compile "$LINENO"; then :
9276 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
9279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283 if test -z "$gl_have_pthread"; then
9284 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9285 gl_have_solaristhread=
9286 gl_save_LIBS="$LIBS"
9287 LIBS="$LIBS -lthread"
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 #include <thread.h>
9291 #include <synch.h>
9293 main ()
9295 thr_self();
9297 return 0;
9299 _ACEOF
9300 if ac_fn_c_try_link "$LINENO"; then :
9301 gl_have_solaristhread=yes
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 LIBS="$gl_save_LIBS"
9306 if test -n "$gl_have_solaristhread"; then
9307 gl_threads_api=solaris
9308 LIBTHREAD=-lthread
9309 LTLIBTHREAD=-lthread
9310 LIBMULTITHREAD="$LIBTHREAD"
9311 LTLIBMULTITHREAD="$LTLIBTHREAD"
9313 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9315 if test $gl_have_weak = yes; then
9317 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9319 LIBTHREAD=
9320 LTLIBTHREAD=
9325 if test "$gl_use_threads" = pth; then
9326 gl_save_CPPFLAGS="$CPPFLAGS"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9333 $as_echo_n "checking how to link with libpth... " >&6; }
9334 if test "${ac_cv_libpth_libs+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9342 use_additional=yes
9344 acl_save_prefix="$prefix"
9345 prefix="$acl_final_prefix"
9346 acl_save_exec_prefix="$exec_prefix"
9347 exec_prefix="$acl_final_exec_prefix"
9349 eval additional_includedir=\"$includedir\"
9350 eval additional_libdir=\"$libdir\"
9352 exec_prefix="$acl_save_exec_prefix"
9353 prefix="$acl_save_prefix"
9356 # Check whether --with-libpth-prefix was given.
9357 if test "${with_libpth_prefix+set}" = set; then :
9358 withval=$with_libpth_prefix;
9359 if test "X$withval" = "Xno"; then
9360 use_additional=no
9361 else
9362 if test "X$withval" = "X"; then
9364 acl_save_prefix="$prefix"
9365 prefix="$acl_final_prefix"
9366 acl_save_exec_prefix="$exec_prefix"
9367 exec_prefix="$acl_final_exec_prefix"
9369 eval additional_includedir=\"$includedir\"
9370 eval additional_libdir=\"$libdir\"
9372 exec_prefix="$acl_save_exec_prefix"
9373 prefix="$acl_save_prefix"
9375 else
9376 additional_includedir="$withval/include"
9377 additional_libdir="$withval/$acl_libdirstem"
9383 LIBPTH=
9384 LTLIBPTH=
9385 INCPTH=
9386 LIBPTH_PREFIX=
9387 rpathdirs=
9388 ltrpathdirs=
9389 names_already_handled=
9390 names_next_round='pth '
9391 while test -n "$names_next_round"; do
9392 names_this_round="$names_next_round"
9393 names_next_round=
9394 for name in $names_this_round; do
9395 already_handled=
9396 for n in $names_already_handled; do
9397 if test "$n" = "$name"; then
9398 already_handled=yes
9399 break
9401 done
9402 if test -z "$already_handled"; then
9403 names_already_handled="$names_already_handled $name"
9404 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9405 eval value=\"\$HAVE_LIB$uppername\"
9406 if test -n "$value"; then
9407 if test "$value" = yes; then
9408 eval value=\"\$LIB$uppername\"
9409 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9410 eval value=\"\$LTLIB$uppername\"
9411 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
9412 else
9415 else
9416 found_dir=
9417 found_la=
9418 found_so=
9419 found_a=
9420 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9421 if test -n "$acl_shlibext"; then
9422 shrext=".$acl_shlibext" # typically: shrext=.so
9423 else
9424 shrext=
9426 if test $use_additional = yes; then
9427 dir="$additional_libdir"
9428 if test -n "$acl_shlibext"; then
9429 if test -f "$dir/$libname$shrext"; then
9430 found_dir="$dir"
9431 found_so="$dir/$libname$shrext"
9432 else
9433 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9434 ver=`(cd "$dir" && \
9435 for f in "$libname$shrext".*; do echo "$f"; done \
9436 | sed -e "s,^$libname$shrext\\\\.,," \
9437 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9438 | sed 1q ) 2>/dev/null`
9439 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9440 found_dir="$dir"
9441 found_so="$dir/$libname$shrext.$ver"
9443 else
9444 eval library_names=\"$acl_library_names_spec\"
9445 for f in $library_names; do
9446 if test -f "$dir/$f"; then
9447 found_dir="$dir"
9448 found_so="$dir/$f"
9449 break
9451 done
9455 if test "X$found_dir" = "X"; then
9456 if test -f "$dir/$libname.$acl_libext"; then
9457 found_dir="$dir"
9458 found_a="$dir/$libname.$acl_libext"
9461 if test "X$found_dir" != "X"; then
9462 if test -f "$dir/$libname.la"; then
9463 found_la="$dir/$libname.la"
9467 if test "X$found_dir" = "X"; then
9468 for x in $LDFLAGS $LTLIBPTH; do
9470 acl_save_prefix="$prefix"
9471 prefix="$acl_final_prefix"
9472 acl_save_exec_prefix="$exec_prefix"
9473 exec_prefix="$acl_final_exec_prefix"
9474 eval x=\"$x\"
9475 exec_prefix="$acl_save_exec_prefix"
9476 prefix="$acl_save_prefix"
9478 case "$x" in
9479 -L*)
9480 dir=`echo "X$x" | sed -e 's/^X-L//'`
9481 if test -n "$acl_shlibext"; then
9482 if test -f "$dir/$libname$shrext"; then
9483 found_dir="$dir"
9484 found_so="$dir/$libname$shrext"
9485 else
9486 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9487 ver=`(cd "$dir" && \
9488 for f in "$libname$shrext".*; do echo "$f"; done \
9489 | sed -e "s,^$libname$shrext\\\\.,," \
9490 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9491 | sed 1q ) 2>/dev/null`
9492 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9493 found_dir="$dir"
9494 found_so="$dir/$libname$shrext.$ver"
9496 else
9497 eval library_names=\"$acl_library_names_spec\"
9498 for f in $library_names; do
9499 if test -f "$dir/$f"; then
9500 found_dir="$dir"
9501 found_so="$dir/$f"
9502 break
9504 done
9508 if test "X$found_dir" = "X"; then
9509 if test -f "$dir/$libname.$acl_libext"; then
9510 found_dir="$dir"
9511 found_a="$dir/$libname.$acl_libext"
9514 if test "X$found_dir" != "X"; then
9515 if test -f "$dir/$libname.la"; then
9516 found_la="$dir/$libname.la"
9520 esac
9521 if test "X$found_dir" != "X"; then
9522 break
9524 done
9526 if test "X$found_dir" != "X"; then
9527 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
9528 if test "X$found_so" != "X"; then
9529 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
9530 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9531 else
9532 haveit=
9533 for x in $ltrpathdirs; do
9534 if test "X$x" = "X$found_dir"; then
9535 haveit=yes
9536 break
9538 done
9539 if test -z "$haveit"; then
9540 ltrpathdirs="$ltrpathdirs $found_dir"
9542 if test "$acl_hardcode_direct" = yes; then
9543 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9544 else
9545 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9546 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9547 haveit=
9548 for x in $rpathdirs; do
9549 if test "X$x" = "X$found_dir"; then
9550 haveit=yes
9551 break
9553 done
9554 if test -z "$haveit"; then
9555 rpathdirs="$rpathdirs $found_dir"
9557 else
9558 haveit=
9559 for x in $LDFLAGS $LIBPTH; do
9561 acl_save_prefix="$prefix"
9562 prefix="$acl_final_prefix"
9563 acl_save_exec_prefix="$exec_prefix"
9564 exec_prefix="$acl_final_exec_prefix"
9565 eval x=\"$x\"
9566 exec_prefix="$acl_save_exec_prefix"
9567 prefix="$acl_save_prefix"
9569 if test "X$x" = "X-L$found_dir"; then
9570 haveit=yes
9571 break
9573 done
9574 if test -z "$haveit"; then
9575 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
9577 if test "$acl_hardcode_minus_L" != no; then
9578 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9579 else
9580 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9585 else
9586 if test "X$found_a" != "X"; then
9587 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
9588 else
9589 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
9592 additional_includedir=
9593 case "$found_dir" in
9594 */$acl_libdirstem | */$acl_libdirstem/)
9595 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9596 LIBPTH_PREFIX="$basedir"
9597 additional_includedir="$basedir/include"
9599 esac
9600 if test "X$additional_includedir" != "X"; then
9601 if test "X$additional_includedir" != "X/usr/include"; then
9602 haveit=
9603 if test "X$additional_includedir" = "X/usr/local/include"; then
9604 if test -n "$GCC"; then
9605 case $host_os in
9606 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9607 esac
9610 if test -z "$haveit"; then
9611 for x in $CPPFLAGS $INCPTH; do
9613 acl_save_prefix="$prefix"
9614 prefix="$acl_final_prefix"
9615 acl_save_exec_prefix="$exec_prefix"
9616 exec_prefix="$acl_final_exec_prefix"
9617 eval x=\"$x\"
9618 exec_prefix="$acl_save_exec_prefix"
9619 prefix="$acl_save_prefix"
9621 if test "X$x" = "X-I$additional_includedir"; then
9622 haveit=yes
9623 break
9625 done
9626 if test -z "$haveit"; then
9627 if test -d "$additional_includedir"; then
9628 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
9634 if test -n "$found_la"; then
9635 save_libdir="$libdir"
9636 case "$found_la" in
9637 */* | *\\*) . "$found_la" ;;
9638 *) . "./$found_la" ;;
9639 esac
9640 libdir="$save_libdir"
9641 for dep in $dependency_libs; do
9642 case "$dep" in
9643 -L*)
9644 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9645 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9646 haveit=
9647 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9648 if test -n "$GCC"; then
9649 case $host_os in
9650 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9651 esac
9654 if test -z "$haveit"; then
9655 haveit=
9656 for x in $LDFLAGS $LIBPTH; do
9658 acl_save_prefix="$prefix"
9659 prefix="$acl_final_prefix"
9660 acl_save_exec_prefix="$exec_prefix"
9661 exec_prefix="$acl_final_exec_prefix"
9662 eval x=\"$x\"
9663 exec_prefix="$acl_save_exec_prefix"
9664 prefix="$acl_save_prefix"
9666 if test "X$x" = "X-L$additional_libdir"; then
9667 haveit=yes
9668 break
9670 done
9671 if test -z "$haveit"; then
9672 if test -d "$additional_libdir"; then
9673 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
9676 haveit=
9677 for x in $LDFLAGS $LTLIBPTH; do
9679 acl_save_prefix="$prefix"
9680 prefix="$acl_final_prefix"
9681 acl_save_exec_prefix="$exec_prefix"
9682 exec_prefix="$acl_final_exec_prefix"
9683 eval x=\"$x\"
9684 exec_prefix="$acl_save_exec_prefix"
9685 prefix="$acl_save_prefix"
9687 if test "X$x" = "X-L$additional_libdir"; then
9688 haveit=yes
9689 break
9691 done
9692 if test -z "$haveit"; then
9693 if test -d "$additional_libdir"; then
9694 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
9700 -R*)
9701 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9702 if test "$enable_rpath" != no; then
9703 haveit=
9704 for x in $rpathdirs; do
9705 if test "X$x" = "X$dir"; then
9706 haveit=yes
9707 break
9709 done
9710 if test -z "$haveit"; then
9711 rpathdirs="$rpathdirs $dir"
9713 haveit=
9714 for x in $ltrpathdirs; do
9715 if test "X$x" = "X$dir"; then
9716 haveit=yes
9717 break
9719 done
9720 if test -z "$haveit"; then
9721 ltrpathdirs="$ltrpathdirs $dir"
9725 -l*)
9726 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9728 *.la)
9729 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9732 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
9733 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
9735 esac
9736 done
9738 else
9739 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9740 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
9744 done
9745 done
9746 if test "X$rpathdirs" != "X"; then
9747 if test -n "$acl_hardcode_libdir_separator"; then
9748 alldirs=
9749 for found_dir in $rpathdirs; do
9750 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9751 done
9752 acl_save_libdir="$libdir"
9753 libdir="$alldirs"
9754 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9755 libdir="$acl_save_libdir"
9756 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
9757 else
9758 for found_dir in $rpathdirs; do
9759 acl_save_libdir="$libdir"
9760 libdir="$found_dir"
9761 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9762 libdir="$acl_save_libdir"
9763 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
9764 done
9767 if test "X$ltrpathdirs" != "X"; then
9768 for found_dir in $ltrpathdirs; do
9769 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
9770 done
9773 ac_cv_libpth_libs="$LIBPTH"
9774 ac_cv_libpth_ltlibs="$LTLIBPTH"
9775 ac_cv_libpth_cppflags="$INCPTH"
9776 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
9780 $as_echo "$ac_cv_libpth_libs" >&6; }
9781 LIBPTH="$ac_cv_libpth_libs"
9782 LTLIBPTH="$ac_cv_libpth_ltlibs"
9783 INCPTH="$ac_cv_libpth_cppflags"
9784 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
9786 for element in $INCPTH; do
9787 haveit=
9788 for x in $CPPFLAGS; do
9790 acl_save_prefix="$prefix"
9791 prefix="$acl_final_prefix"
9792 acl_save_exec_prefix="$exec_prefix"
9793 exec_prefix="$acl_final_exec_prefix"
9794 eval x=\"$x\"
9795 exec_prefix="$acl_save_exec_prefix"
9796 prefix="$acl_save_prefix"
9798 if test "X$x" = "X$element"; then
9799 haveit=yes
9800 break
9802 done
9803 if test -z "$haveit"; then
9804 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9806 done
9811 HAVE_LIBPTH=yes
9815 gl_have_pth=
9816 gl_save_LIBS="$LIBS"
9817 LIBS="$LIBS -lpth"
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 #include <pth.h>
9822 main ()
9824 pth_self();
9826 return 0;
9828 _ACEOF
9829 if ac_fn_c_try_link "$LINENO"; then :
9830 gl_have_pth=yes
9832 rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LIBS="$gl_save_LIBS"
9835 if test -n "$gl_have_pth"; then
9836 gl_threads_api=pth
9837 LIBTHREAD="$LIBPTH"
9838 LTLIBTHREAD="$LTLIBPTH"
9839 LIBMULTITHREAD="$LIBTHREAD"
9840 LTLIBMULTITHREAD="$LTLIBTHREAD"
9842 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
9844 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9845 if test $gl_have_weak = yes; then
9847 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
9849 LIBTHREAD=
9850 LTLIBTHREAD=
9853 else
9854 CPPFLAGS="$gl_save_CPPFLAGS"
9857 if test -z "$gl_have_pthread"; then
9858 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
9859 if { case "$host_os" in
9860 mingw*) true;;
9861 *) false;;
9862 esac
9863 }; then
9864 gl_threads_api=win32
9866 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
9873 $as_echo_n "checking for multithread API to use... " >&6; }
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
9875 $as_echo "$gl_threads_api" >&6; }
9896 use_additional=yes
9898 acl_save_prefix="$prefix"
9899 prefix="$acl_final_prefix"
9900 acl_save_exec_prefix="$exec_prefix"
9901 exec_prefix="$acl_final_exec_prefix"
9903 eval additional_includedir=\"$includedir\"
9904 eval additional_libdir=\"$libdir\"
9906 exec_prefix="$acl_save_exec_prefix"
9907 prefix="$acl_save_prefix"
9910 # Check whether --with-libiconv-prefix was given.
9911 if test "${with_libiconv_prefix+set}" = set; then :
9912 withval=$with_libiconv_prefix;
9913 if test "X$withval" = "Xno"; then
9914 use_additional=no
9915 else
9916 if test "X$withval" = "X"; then
9918 acl_save_prefix="$prefix"
9919 prefix="$acl_final_prefix"
9920 acl_save_exec_prefix="$exec_prefix"
9921 exec_prefix="$acl_final_exec_prefix"
9923 eval additional_includedir=\"$includedir\"
9924 eval additional_libdir=\"$libdir\"
9926 exec_prefix="$acl_save_exec_prefix"
9927 prefix="$acl_save_prefix"
9929 else
9930 additional_includedir="$withval/include"
9931 additional_libdir="$withval/$acl_libdirstem"
9937 LIBICONV=
9938 LTLIBICONV=
9939 INCICONV=
9940 LIBICONV_PREFIX=
9941 rpathdirs=
9942 ltrpathdirs=
9943 names_already_handled=
9944 names_next_round='iconv '
9945 while test -n "$names_next_round"; do
9946 names_this_round="$names_next_round"
9947 names_next_round=
9948 for name in $names_this_round; do
9949 already_handled=
9950 for n in $names_already_handled; do
9951 if test "$n" = "$name"; then
9952 already_handled=yes
9953 break
9955 done
9956 if test -z "$already_handled"; then
9957 names_already_handled="$names_already_handled $name"
9958 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9959 eval value=\"\$HAVE_LIB$uppername\"
9960 if test -n "$value"; then
9961 if test "$value" = yes; then
9962 eval value=\"\$LIB$uppername\"
9963 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9964 eval value=\"\$LTLIB$uppername\"
9965 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9966 else
9969 else
9970 found_dir=
9971 found_la=
9972 found_so=
9973 found_a=
9974 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9975 if test -n "$acl_shlibext"; then
9976 shrext=".$acl_shlibext" # typically: shrext=.so
9977 else
9978 shrext=
9980 if test $use_additional = yes; then
9981 dir="$additional_libdir"
9982 if test -n "$acl_shlibext"; then
9983 if test -f "$dir/$libname$shrext"; then
9984 found_dir="$dir"
9985 found_so="$dir/$libname$shrext"
9986 else
9987 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9988 ver=`(cd "$dir" && \
9989 for f in "$libname$shrext".*; do echo "$f"; done \
9990 | sed -e "s,^$libname$shrext\\\\.,," \
9991 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9992 | sed 1q ) 2>/dev/null`
9993 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9994 found_dir="$dir"
9995 found_so="$dir/$libname$shrext.$ver"
9997 else
9998 eval library_names=\"$acl_library_names_spec\"
9999 for f in $library_names; do
10000 if test -f "$dir/$f"; then
10001 found_dir="$dir"
10002 found_so="$dir/$f"
10003 break
10005 done
10009 if test "X$found_dir" = "X"; then
10010 if test -f "$dir/$libname.$acl_libext"; then
10011 found_dir="$dir"
10012 found_a="$dir/$libname.$acl_libext"
10015 if test "X$found_dir" != "X"; then
10016 if test -f "$dir/$libname.la"; then
10017 found_la="$dir/$libname.la"
10021 if test "X$found_dir" = "X"; then
10022 for x in $LDFLAGS $LTLIBICONV; do
10024 acl_save_prefix="$prefix"
10025 prefix="$acl_final_prefix"
10026 acl_save_exec_prefix="$exec_prefix"
10027 exec_prefix="$acl_final_exec_prefix"
10028 eval x=\"$x\"
10029 exec_prefix="$acl_save_exec_prefix"
10030 prefix="$acl_save_prefix"
10032 case "$x" in
10033 -L*)
10034 dir=`echo "X$x" | sed -e 's/^X-L//'`
10035 if test -n "$acl_shlibext"; then
10036 if test -f "$dir/$libname$shrext"; then
10037 found_dir="$dir"
10038 found_so="$dir/$libname$shrext"
10039 else
10040 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10041 ver=`(cd "$dir" && \
10042 for f in "$libname$shrext".*; do echo "$f"; done \
10043 | sed -e "s,^$libname$shrext\\\\.,," \
10044 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10045 | sed 1q ) 2>/dev/null`
10046 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10047 found_dir="$dir"
10048 found_so="$dir/$libname$shrext.$ver"
10050 else
10051 eval library_names=\"$acl_library_names_spec\"
10052 for f in $library_names; do
10053 if test -f "$dir/$f"; then
10054 found_dir="$dir"
10055 found_so="$dir/$f"
10056 break
10058 done
10062 if test "X$found_dir" = "X"; then
10063 if test -f "$dir/$libname.$acl_libext"; then
10064 found_dir="$dir"
10065 found_a="$dir/$libname.$acl_libext"
10068 if test "X$found_dir" != "X"; then
10069 if test -f "$dir/$libname.la"; then
10070 found_la="$dir/$libname.la"
10074 esac
10075 if test "X$found_dir" != "X"; then
10076 break
10078 done
10080 if test "X$found_dir" != "X"; then
10081 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10082 if test "X$found_so" != "X"; then
10083 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10085 else
10086 haveit=
10087 for x in $ltrpathdirs; do
10088 if test "X$x" = "X$found_dir"; then
10089 haveit=yes
10090 break
10092 done
10093 if test -z "$haveit"; then
10094 ltrpathdirs="$ltrpathdirs $found_dir"
10096 if test "$acl_hardcode_direct" = yes; then
10097 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10098 else
10099 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10100 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10101 haveit=
10102 for x in $rpathdirs; do
10103 if test "X$x" = "X$found_dir"; then
10104 haveit=yes
10105 break
10107 done
10108 if test -z "$haveit"; then
10109 rpathdirs="$rpathdirs $found_dir"
10111 else
10112 haveit=
10113 for x in $LDFLAGS $LIBICONV; do
10115 acl_save_prefix="$prefix"
10116 prefix="$acl_final_prefix"
10117 acl_save_exec_prefix="$exec_prefix"
10118 exec_prefix="$acl_final_exec_prefix"
10119 eval x=\"$x\"
10120 exec_prefix="$acl_save_exec_prefix"
10121 prefix="$acl_save_prefix"
10123 if test "X$x" = "X-L$found_dir"; then
10124 haveit=yes
10125 break
10127 done
10128 if test -z "$haveit"; then
10129 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10131 if test "$acl_hardcode_minus_L" != no; then
10132 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10133 else
10134 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10139 else
10140 if test "X$found_a" != "X"; then
10141 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10142 else
10143 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10146 additional_includedir=
10147 case "$found_dir" in
10148 */$acl_libdirstem | */$acl_libdirstem/)
10149 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10150 LIBICONV_PREFIX="$basedir"
10151 additional_includedir="$basedir/include"
10153 esac
10154 if test "X$additional_includedir" != "X"; then
10155 if test "X$additional_includedir" != "X/usr/include"; then
10156 haveit=
10157 if test "X$additional_includedir" = "X/usr/local/include"; then
10158 if test -n "$GCC"; then
10159 case $host_os in
10160 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10161 esac
10164 if test -z "$haveit"; then
10165 for x in $CPPFLAGS $INCICONV; do
10167 acl_save_prefix="$prefix"
10168 prefix="$acl_final_prefix"
10169 acl_save_exec_prefix="$exec_prefix"
10170 exec_prefix="$acl_final_exec_prefix"
10171 eval x=\"$x\"
10172 exec_prefix="$acl_save_exec_prefix"
10173 prefix="$acl_save_prefix"
10175 if test "X$x" = "X-I$additional_includedir"; then
10176 haveit=yes
10177 break
10179 done
10180 if test -z "$haveit"; then
10181 if test -d "$additional_includedir"; then
10182 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10188 if test -n "$found_la"; then
10189 save_libdir="$libdir"
10190 case "$found_la" in
10191 */* | *\\*) . "$found_la" ;;
10192 *) . "./$found_la" ;;
10193 esac
10194 libdir="$save_libdir"
10195 for dep in $dependency_libs; do
10196 case "$dep" in
10197 -L*)
10198 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10199 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10200 haveit=
10201 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10202 if test -n "$GCC"; then
10203 case $host_os in
10204 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10205 esac
10208 if test -z "$haveit"; then
10209 haveit=
10210 for x in $LDFLAGS $LIBICONV; do
10212 acl_save_prefix="$prefix"
10213 prefix="$acl_final_prefix"
10214 acl_save_exec_prefix="$exec_prefix"
10215 exec_prefix="$acl_final_exec_prefix"
10216 eval x=\"$x\"
10217 exec_prefix="$acl_save_exec_prefix"
10218 prefix="$acl_save_prefix"
10220 if test "X$x" = "X-L$additional_libdir"; then
10221 haveit=yes
10222 break
10224 done
10225 if test -z "$haveit"; then
10226 if test -d "$additional_libdir"; then
10227 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10230 haveit=
10231 for x in $LDFLAGS $LTLIBICONV; do
10233 acl_save_prefix="$prefix"
10234 prefix="$acl_final_prefix"
10235 acl_save_exec_prefix="$exec_prefix"
10236 exec_prefix="$acl_final_exec_prefix"
10237 eval x=\"$x\"
10238 exec_prefix="$acl_save_exec_prefix"
10239 prefix="$acl_save_prefix"
10241 if test "X$x" = "X-L$additional_libdir"; then
10242 haveit=yes
10243 break
10245 done
10246 if test -z "$haveit"; then
10247 if test -d "$additional_libdir"; then
10248 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10254 -R*)
10255 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10256 if test "$enable_rpath" != no; then
10257 haveit=
10258 for x in $rpathdirs; do
10259 if test "X$x" = "X$dir"; then
10260 haveit=yes
10261 break
10263 done
10264 if test -z "$haveit"; then
10265 rpathdirs="$rpathdirs $dir"
10267 haveit=
10268 for x in $ltrpathdirs; do
10269 if test "X$x" = "X$dir"; then
10270 haveit=yes
10271 break
10273 done
10274 if test -z "$haveit"; then
10275 ltrpathdirs="$ltrpathdirs $dir"
10279 -l*)
10280 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10282 *.la)
10283 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10286 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10287 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10289 esac
10290 done
10292 else
10293 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10294 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10298 done
10299 done
10300 if test "X$rpathdirs" != "X"; then
10301 if test -n "$acl_hardcode_libdir_separator"; then
10302 alldirs=
10303 for found_dir in $rpathdirs; do
10304 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10305 done
10306 acl_save_libdir="$libdir"
10307 libdir="$alldirs"
10308 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10309 libdir="$acl_save_libdir"
10310 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10311 else
10312 for found_dir in $rpathdirs; do
10313 acl_save_libdir="$libdir"
10314 libdir="$found_dir"
10315 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10316 libdir="$acl_save_libdir"
10317 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10318 done
10321 if test "X$ltrpathdirs" != "X"; then
10322 for found_dir in $ltrpathdirs; do
10323 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10324 done
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
10335 main ()
10339 return 0;
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10344 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10350 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
10351 do :
10352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10353 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10354 eval as_val=\$$as_ac_Header
10355 if test "x$as_val" = x""yes; then :
10356 cat >>confdefs.h <<_ACEOF
10357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10358 _ACEOF
10362 done
10364 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
10365 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
10366 argz_next __fsetlocking
10367 do :
10368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10370 eval as_val=\$$as_ac_var
10371 if test "x$as_val" = x""yes; then :
10372 cat >>confdefs.h <<_ACEOF
10373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10374 _ACEOF
10377 done
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
10382 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
10383 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 #include <stdio.h>
10390 main ()
10393 #ifndef feof_unlocked
10394 char *p = (char *) feof_unlocked;
10395 #endif
10398 return 0;
10400 _ACEOF
10401 if ac_fn_c_try_compile "$LINENO"; then :
10402 ac_cv_have_decl_feof_unlocked=yes
10403 else
10404 ac_cv_have_decl_feof_unlocked=no
10406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
10409 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
10410 if test $ac_cv_have_decl_feof_unlocked = yes; then
10411 gt_value=1
10412 else
10413 gt_value=0
10416 cat >>confdefs.h <<_ACEOF
10417 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10418 _ACEOF
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
10423 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
10424 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10429 #include <stdio.h>
10431 main ()
10434 #ifndef fgets_unlocked
10435 char *p = (char *) fgets_unlocked;
10436 #endif
10439 return 0;
10441 _ACEOF
10442 if ac_fn_c_try_compile "$LINENO"; then :
10443 ac_cv_have_decl_fgets_unlocked=yes
10444 else
10445 ac_cv_have_decl_fgets_unlocked=no
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
10450 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10451 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10452 gt_value=1
10453 else
10454 gt_value=0
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10459 _ACEOF
10468 am_save_CPPFLAGS="$CPPFLAGS"
10470 for element in $INCICONV; do
10471 haveit=
10472 for x in $CPPFLAGS; do
10474 acl_save_prefix="$prefix"
10475 prefix="$acl_final_prefix"
10476 acl_save_exec_prefix="$exec_prefix"
10477 exec_prefix="$acl_final_exec_prefix"
10478 eval x=\"$x\"
10479 exec_prefix="$acl_save_exec_prefix"
10480 prefix="$acl_save_prefix"
10482 if test "X$x" = "X$element"; then
10483 haveit=yes
10484 break
10486 done
10487 if test -z "$haveit"; then
10488 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10490 done
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10494 $as_echo_n "checking for iconv... " >&6; }
10495 if test "${am_cv_func_iconv+set}" = set; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10499 am_cv_func_iconv="no, consider installing GNU libiconv"
10500 am_cv_lib_iconv=no
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10503 #include <stdlib.h>
10504 #include <iconv.h>
10506 main ()
10508 iconv_t cd = iconv_open("","");
10509 iconv(cd,NULL,NULL,NULL,NULL);
10510 iconv_close(cd);
10512 return 0;
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516 am_cv_func_iconv=yes
10518 rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 if test "$am_cv_func_iconv" != yes; then
10521 am_save_LIBS="$LIBS"
10522 LIBS="$LIBS $LIBICONV"
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525 #include <stdlib.h>
10526 #include <iconv.h>
10528 main ()
10530 iconv_t cd = iconv_open("","");
10531 iconv(cd,NULL,NULL,NULL,NULL);
10532 iconv_close(cd);
10534 return 0;
10536 _ACEOF
10537 if ac_fn_c_try_link "$LINENO"; then :
10538 am_cv_lib_iconv=yes
10539 am_cv_func_iconv=yes
10541 rm -f core conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext conftest.$ac_ext
10543 LIBS="$am_save_LIBS"
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10548 $as_echo "$am_cv_func_iconv" >&6; }
10549 if test "$am_cv_func_iconv" = yes; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10551 $as_echo_n "checking for working iconv... " >&6; }
10552 if test "${am_cv_func_iconv_works+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10556 am_save_LIBS="$LIBS"
10557 if test $am_cv_lib_iconv = yes; then
10558 LIBS="$LIBS $LIBICONV"
10560 if test "$cross_compiling" = yes; then :
10561 case "$host_os" in
10562 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10563 *) am_cv_func_iconv_works="guessing yes" ;;
10564 esac
10565 else
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10569 #include <iconv.h>
10570 #include <string.h>
10571 int main ()
10573 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10574 returns. */
10576 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10577 if (cd_utf8_to_88591 != (iconv_t)(-1))
10579 static const char input[] = "\342\202\254"; /* EURO SIGN */
10580 char buf[10];
10581 const char *inptr = input;
10582 size_t inbytesleft = strlen (input);
10583 char *outptr = buf;
10584 size_t outbytesleft = sizeof (buf);
10585 size_t res = iconv (cd_utf8_to_88591,
10586 (char **) &inptr, &inbytesleft,
10587 &outptr, &outbytesleft);
10588 if (res == 0)
10589 return 1;
10592 #if 0 /* This bug could be worked around by the caller. */
10593 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10595 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10596 if (cd_88591_to_utf8 != (iconv_t)(-1))
10598 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10599 char buf[50];
10600 const char *inptr = input;
10601 size_t inbytesleft = strlen (input);
10602 char *outptr = buf;
10603 size_t outbytesleft = sizeof (buf);
10604 size_t res = iconv (cd_88591_to_utf8,
10605 (char **) &inptr, &inbytesleft,
10606 &outptr, &outbytesleft);
10607 if ((int)res > 0)
10608 return 1;
10611 #endif
10612 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10613 provided. */
10614 if (/* Try standardized names. */
10615 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
10616 /* Try IRIX, OSF/1 names. */
10617 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
10618 /* Try AIX names. */
10619 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
10620 /* Try HP-UX names. */
10621 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
10622 return 1;
10623 return 0;
10625 _ACEOF
10626 if ac_fn_c_try_run "$LINENO"; then :
10627 am_cv_func_iconv_works=yes
10628 else
10629 am_cv_func_iconv_works=no
10631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10632 conftest.$ac_objext conftest.beam conftest.$ac_ext
10635 LIBS="$am_save_LIBS"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10639 $as_echo "$am_cv_func_iconv_works" >&6; }
10640 case "$am_cv_func_iconv_works" in
10641 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10642 *) am_func_iconv=yes ;;
10643 esac
10644 else
10645 am_func_iconv=no am_cv_lib_iconv=no
10647 if test "$am_func_iconv" = yes; then
10649 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10652 if test "$am_cv_lib_iconv" = yes; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10654 $as_echo_n "checking how to link with libiconv... " >&6; }
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10656 $as_echo "$LIBICONV" >&6; }
10657 else
10658 CPPFLAGS="$am_save_CPPFLAGS"
10659 LIBICONV=
10660 LTLIBICONV=
10665 if test "$am_cv_func_iconv" = yes; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10667 $as_echo_n "checking for iconv declaration... " >&6; }
10668 if test "${am_cv_proto_iconv+set}" = set; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 #include <stdlib.h>
10676 #include <iconv.h>
10677 extern
10678 #ifdef __cplusplus
10680 #endif
10681 #if defined(__STDC__) || defined(__cplusplus)
10682 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10683 #else
10684 size_t iconv();
10685 #endif
10688 main ()
10692 return 0;
10694 _ACEOF
10695 if ac_fn_c_try_compile "$LINENO"; then :
10696 am_cv_proto_iconv_arg1=""
10697 else
10698 am_cv_proto_iconv_arg1="const"
10700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10701 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10704 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10706 }$am_cv_proto_iconv" >&5
10707 $as_echo "${ac_t:-
10708 }$am_cv_proto_iconv" >&6; }
10710 cat >>confdefs.h <<_ACEOF
10711 #define ICONV_CONST $am_cv_proto_iconv_arg1
10712 _ACEOF
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
10718 $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
10719 if test "${gt_cv_nl_locale_name+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10724 #include <langinfo.h>
10725 #include <locale.h>
10727 main ()
10729 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
10730 return !cs;
10733 return 0;
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 gt_cv_nl_locale_name=yes
10738 else
10739 gt_cv_nl_locale_name=no
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
10746 $as_echo "$gt_cv_nl_locale_name" >&6; }
10747 if test $gt_cv_nl_locale_name = yes; then
10749 $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
10753 for ac_prog in bison
10755 # Extract the first word of "$ac_prog", so it can be a program name with args.
10756 set dummy $ac_prog; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 if test -n "$INTLBISON"; then
10763 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10764 else
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_prog_INTLBISON="$ac_prog"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10776 done
10777 done
10778 IFS=$as_save_IFS
10782 INTLBISON=$ac_cv_prog_INTLBISON
10783 if test -n "$INTLBISON"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
10785 $as_echo "$INTLBISON" >&6; }
10786 else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10792 test -n "$INTLBISON" && break
10793 done
10795 if test -z "$INTLBISON"; then
10796 ac_verc_fail=yes
10797 else
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
10799 $as_echo_n "checking version of bison... " >&6; }
10800 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10801 case $ac_prog_version in
10802 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10803 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10804 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10805 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10806 esac
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
10808 $as_echo "$ac_prog_version" >&6; }
10810 if test $ac_verc_fail = yes; then
10811 INTLBISON=:
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10816 $as_echo_n "checking for long long int... " >&6; }
10817 if test "${ac_cv_type_long_long_int+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10823 /* Test preprocessor. */
10824 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10825 error in preprocessor;
10826 #endif
10827 #if ! (18446744073709551615ULL <= -1ull)
10828 error in preprocessor;
10829 #endif
10830 /* Test literals. */
10831 long long int ll = 9223372036854775807ll;
10832 long long int nll = -9223372036854775807LL;
10833 unsigned long long int ull = 18446744073709551615ULL;
10834 /* Test constant expressions. */
10835 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10836 ? 1 : -1)];
10837 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10838 ? 1 : -1)];
10839 int i = 63;
10841 main ()
10843 /* Test availability of runtime routines for shift and division. */
10844 long long int llmax = 9223372036854775807ll;
10845 unsigned long long int ullmax = 18446744073709551615ull;
10846 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10847 | (llmax / ll) | (llmax % ll)
10848 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10849 | (ullmax / ull) | (ullmax % ull));
10851 return 0;
10854 _ACEOF
10855 if ac_fn_c_try_link "$LINENO"; then :
10856 if test "$cross_compiling" = yes; then :
10857 ac_cv_type_long_long_int=yes
10858 else
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861 #include <limits.h>
10862 #ifndef LLONG_MAX
10863 # define HALF \
10864 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10865 # define LLONG_MAX (HALF - 1 + HALF)
10866 #endif
10868 main ()
10870 long long int n = 1;
10871 int i;
10872 for (i = 0; ; i++)
10874 long long int m = n << i;
10875 if (m >> i != n)
10876 return 1;
10877 if (LLONG_MAX / 2 < m)
10878 break;
10880 return 0;
10882 return 0;
10884 _ACEOF
10885 if ac_fn_c_try_run "$LINENO"; then :
10886 ac_cv_type_long_long_int=yes
10887 else
10888 ac_cv_type_long_long_int=no
10890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10891 conftest.$ac_objext conftest.beam conftest.$ac_ext
10894 else
10895 ac_cv_type_long_long_int=no
10897 rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10901 $as_echo "$ac_cv_type_long_long_int" >&6; }
10902 if test $ac_cv_type_long_long_int = yes; then
10904 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10910 $as_echo_n "checking for wchar_t... " >&6; }
10911 if test "${gt_cv_c_wchar_t+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916 #include <stddef.h>
10917 wchar_t foo = (wchar_t)'\0';
10919 main ()
10923 return 0;
10925 _ACEOF
10926 if ac_fn_c_try_compile "$LINENO"; then :
10927 gt_cv_c_wchar_t=yes
10928 else
10929 gt_cv_c_wchar_t=no
10931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10934 $as_echo "$gt_cv_c_wchar_t" >&6; }
10935 if test $gt_cv_c_wchar_t = yes; then
10937 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10943 $as_echo_n "checking for wint_t... " >&6; }
10944 if test "${gt_cv_c_wint_t+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10950 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10951 <wchar.h>.
10952 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10953 before <wchar.h>. */
10954 #include <stddef.h>
10955 #include <stdio.h>
10956 #include <time.h>
10957 #include <wchar.h>
10958 wint_t foo = (wchar_t)'\0';
10960 main ()
10964 return 0;
10966 _ACEOF
10967 if ac_fn_c_try_compile "$LINENO"; then :
10968 gt_cv_c_wint_t=yes
10969 else
10970 gt_cv_c_wint_t=no
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10975 $as_echo "$gt_cv_c_wint_t" >&6; }
10976 if test $gt_cv_c_wint_t = yes; then
10978 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
10986 $as_echo_n "checking for intmax_t... " >&6; }
10987 if test "${gt_cv_c_intmax_t+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 #include <stddef.h>
10994 #include <stdlib.h>
10995 #if HAVE_STDINT_H_WITH_UINTMAX
10996 #include <stdint.h>
10997 #endif
10998 #if HAVE_INTTYPES_H_WITH_UINTMAX
10999 #include <inttypes.h>
11000 #endif
11003 main ()
11005 intmax_t x = -1;
11006 return !x;
11008 return 0;
11010 _ACEOF
11011 if ac_fn_c_try_compile "$LINENO"; then :
11012 gt_cv_c_intmax_t=yes
11013 else
11014 gt_cv_c_intmax_t=no
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
11019 $as_echo "$gt_cv_c_intmax_t" >&6; }
11020 if test $gt_cv_c_intmax_t = yes; then
11022 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
11029 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
11030 if test "${gt_cv_func_printf_posix+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11034 if test "$cross_compiling" = yes; then :
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
11040 notposix
11041 #endif
11043 _ACEOF
11044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11045 $EGREP "notposix" >/dev/null 2>&1; then :
11046 gt_cv_func_printf_posix="guessing no"
11047 else
11048 gt_cv_func_printf_posix="guessing yes"
11050 rm -f conftest*
11053 else
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11057 #include <stdio.h>
11058 #include <string.h>
11059 /* The string "%2$d %1$d", with dollar characters protected from the shell's
11060 dollar expansion (possibly an autoconf bug). */
11061 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
11062 static char buf[100];
11063 int main ()
11065 sprintf (buf, format, 33, 55);
11066 return (strcmp (buf, "55 33") != 0);
11068 _ACEOF
11069 if ac_fn_c_try_run "$LINENO"; then :
11070 gt_cv_func_printf_posix=yes
11071 else
11072 gt_cv_func_printf_posix=no
11074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11075 conftest.$ac_objext conftest.beam conftest.$ac_ext
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
11081 $as_echo "$gt_cv_func_printf_posix" >&6; }
11082 case $gt_cv_func_printf_posix in
11083 *yes)
11085 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
11088 esac
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11092 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11093 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11099 #include <features.h>
11100 #ifdef __GNU_LIBRARY__
11101 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11102 Lucky GNU user
11103 #endif
11104 #endif
11106 _ACEOF
11107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11108 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11109 ac_cv_gnu_library_2_1=yes
11110 else
11111 ac_cv_gnu_library_2_1=no
11113 rm -f conftest*
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11119 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11121 GLIBC21="$ac_cv_gnu_library_2_1"
11125 for ac_header in stdint.h
11126 do :
11127 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11128 if test "x$ac_cv_header_stdint_h" = x""yes; then :
11129 cat >>confdefs.h <<_ACEOF
11130 #define HAVE_STDINT_H 1
11131 _ACEOF
11135 done
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
11138 $as_echo_n "checking for SIZE_MAX... " >&6; }
11139 if test "${gl_cv_size_max+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11143 gl_cv_size_max=
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 #include <limits.h>
11148 #if HAVE_STDINT_H
11149 #include <stdint.h>
11150 #endif
11151 #ifdef SIZE_MAX
11152 Found it
11153 #endif
11155 _ACEOF
11156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11157 $EGREP "Found it" >/dev/null 2>&1; then :
11158 gl_cv_size_max=yes
11160 rm -f conftest*
11162 if test -z "$gl_cv_size_max"; then
11163 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
11164 #include <limits.h>"; then :
11166 else
11167 size_t_bits_minus_1=
11170 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
11172 else
11173 fits_in_uint=
11176 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
11177 if test $fits_in_uint = 1; then
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180 #include <stddef.h>
11181 extern size_t foo;
11182 extern unsigned long foo;
11185 main ()
11189 return 0;
11191 _ACEOF
11192 if ac_fn_c_try_compile "$LINENO"; then :
11193 fits_in_uint=0
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 if test $fits_in_uint = 1; then
11198 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
11199 else
11200 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
11202 else
11203 gl_cv_size_max='((size_t)~(size_t)0)'
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
11210 $as_echo "$gl_cv_size_max" >&6; }
11211 if test "$gl_cv_size_max" != yes; then
11213 cat >>confdefs.h <<_ACEOF
11214 #define SIZE_MAX $gl_cv_size_max
11215 _ACEOF
11222 for ac_header in stdint.h
11223 do :
11224 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11225 if test "x$ac_cv_header_stdint_h" = x""yes; then :
11226 cat >>confdefs.h <<_ACEOF
11227 #define HAVE_STDINT_H 1
11228 _ACEOF
11232 done
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11237 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11238 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 gt_save_LIBS="$LIBS"
11242 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245 #include <CoreFoundation/CFPreferences.h>
11247 main ()
11249 CFPreferencesCopyAppValue(NULL, NULL)
11251 return 0;
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"; then :
11255 gt_cv_func_CFPreferencesCopyAppValue=yes
11256 else
11257 gt_cv_func_CFPreferencesCopyAppValue=no
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LIBS="$gt_save_LIBS"
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11264 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11265 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11267 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11271 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11272 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 gt_save_LIBS="$LIBS"
11276 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11279 #include <CoreFoundation/CFLocale.h>
11281 main ()
11283 CFLocaleCopyCurrent();
11285 return 0;
11287 _ACEOF
11288 if ac_fn_c_try_link "$LINENO"; then :
11289 gt_cv_func_CFLocaleCopyCurrent=yes
11290 else
11291 gt_cv_func_CFLocaleCopyCurrent=no
11293 rm -f core conftest.err conftest.$ac_objext \
11294 conftest$ac_exeext conftest.$ac_ext
11295 LIBS="$gt_save_LIBS"
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11298 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11299 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11301 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11304 INTL_MACOSX_LIBS=
11305 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11306 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11315 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11316 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
11318 else
11320 $as_echo "#define ptrdiff_t long" >>confdefs.h
11325 for ac_header in stddef.h stdlib.h string.h
11326 do :
11327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11328 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11329 eval as_val=\$$as_ac_Header
11330 if test "x$as_val" = x""yes; then :
11331 cat >>confdefs.h <<_ACEOF
11332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333 _ACEOF
11337 done
11339 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
11340 do :
11341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11342 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11343 eval as_val=\$$as_ac_var
11344 if test "x$as_val" = x""yes; then :
11345 cat >>confdefs.h <<_ACEOF
11346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11347 _ACEOF
11350 done
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
11355 $as_echo_n "checking whether _snprintf is declared... " >&6; }
11356 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361 #include <stdio.h>
11363 main ()
11366 #ifndef _snprintf
11367 char *p = (char *) _snprintf;
11368 #endif
11371 return 0;
11373 _ACEOF
11374 if ac_fn_c_try_compile "$LINENO"; then :
11375 ac_cv_have_decl__snprintf=yes
11376 else
11377 ac_cv_have_decl__snprintf=no
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
11382 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
11383 if test $ac_cv_have_decl__snprintf = yes; then
11384 gt_value=1
11385 else
11386 gt_value=0
11389 cat >>confdefs.h <<_ACEOF
11390 #define HAVE_DECL__SNPRINTF $gt_value
11391 _ACEOF
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
11396 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
11397 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11402 #include <stdio.h>
11404 main ()
11407 #ifndef _snwprintf
11408 char *p = (char *) _snwprintf;
11409 #endif
11412 return 0;
11414 _ACEOF
11415 if ac_fn_c_try_compile "$LINENO"; then :
11416 ac_cv_have_decl__snwprintf=yes
11417 else
11418 ac_cv_have_decl__snwprintf=no
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
11423 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
11424 if test $ac_cv_have_decl__snwprintf = yes; then
11425 gt_value=1
11426 else
11427 gt_value=0
11430 cat >>confdefs.h <<_ACEOF
11431 #define HAVE_DECL__SNWPRINTF $gt_value
11432 _ACEOF
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
11438 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
11439 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 #include <stdio.h>
11446 main ()
11449 #ifndef getc_unlocked
11450 char *p = (char *) getc_unlocked;
11451 #endif
11454 return 0;
11456 _ACEOF
11457 if ac_fn_c_try_compile "$LINENO"; then :
11458 ac_cv_have_decl_getc_unlocked=yes
11459 else
11460 ac_cv_have_decl_getc_unlocked=no
11462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
11465 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
11466 if test $ac_cv_have_decl_getc_unlocked = yes; then
11467 gt_value=1
11468 else
11469 gt_value=0
11472 cat >>confdefs.h <<_ACEOF
11473 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11474 _ACEOF
11478 case $gt_cv_func_printf_posix in
11479 *yes) HAVE_POSIX_PRINTF=1 ;;
11480 *) HAVE_POSIX_PRINTF=0 ;;
11481 esac
11483 if test "$ac_cv_func_asprintf" = yes; then
11484 HAVE_ASPRINTF=1
11485 else
11486 HAVE_ASPRINTF=0
11489 if test "$ac_cv_func_snprintf" = yes; then
11490 HAVE_SNPRINTF=1
11491 else
11492 HAVE_SNPRINTF=0
11495 if test "$ac_cv_func_wprintf" = yes; then
11496 HAVE_WPRINTF=1
11497 else
11498 HAVE_WPRINTF=0
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11504 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11505 if test "${am_cv_langinfo_codeset+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510 #include <langinfo.h>
11512 main ()
11514 char* cs = nl_langinfo(CODESET); return !cs;
11516 return 0;
11518 _ACEOF
11519 if ac_fn_c_try_link "$LINENO"; then :
11520 am_cv_langinfo_codeset=yes
11521 else
11522 am_cv_langinfo_codeset=no
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11529 $as_echo "$am_cv_langinfo_codeset" >&6; }
11530 if test $am_cv_langinfo_codeset = yes; then
11532 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11538 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11539 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11544 #include <locale.h>
11546 main ()
11548 return LC_MESSAGES
11550 return 0;
11552 _ACEOF
11553 if ac_fn_c_try_link "$LINENO"; then :
11554 gt_cv_val_LC_MESSAGES=yes
11555 else
11556 gt_cv_val_LC_MESSAGES=no
11558 rm -f core conftest.err conftest.$ac_objext \
11559 conftest$ac_exeext conftest.$ac_ext
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
11562 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
11563 if test $gt_cv_val_LC_MESSAGES = yes; then
11565 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11570 if test "$enable_shared" = yes; then
11571 case "$host_os" in
11572 mingw* | cygwin*) is_woe32dll=yes ;;
11573 *) is_woe32dll=no ;;
11574 esac
11575 else
11576 is_woe32dll=no
11578 WOE32DLL=$is_woe32dll
11581 case "$host_os" in
11582 mingw* | cygwin*) is_woe32=yes ;;
11583 *) is_woe32=no ;;
11584 esac
11585 WOE32=$is_woe32
11587 if test $WOE32 = yes; then
11588 if test -n "$ac_tool_prefix"; then
11589 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11590 set dummy ${ac_tool_prefix}windres; ac_word=$2
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592 $as_echo_n "checking for $ac_word... " >&6; }
11593 if test "${ac_cv_prog_WINDRES+set}" = set; then :
11594 $as_echo_n "(cached) " >&6
11595 else
11596 if test -n "$WINDRES"; then
11597 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11598 else
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11610 done
11611 done
11612 IFS=$as_save_IFS
11616 WINDRES=$ac_cv_prog_WINDRES
11617 if test -n "$WINDRES"; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11619 $as_echo "$WINDRES" >&6; }
11620 else
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622 $as_echo "no" >&6; }
11627 if test -z "$ac_cv_prog_WINDRES"; then
11628 ac_ct_WINDRES=$WINDRES
11629 # Extract the first word of "windres", so it can be a program name with args.
11630 set dummy windres; ac_word=$2
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 $as_echo_n "checking for $ac_word... " >&6; }
11633 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 if test -n "$ac_ct_WINDRES"; then
11637 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
11638 else
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11646 ac_cv_prog_ac_ct_WINDRES="windres"
11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11650 done
11651 done
11652 IFS=$as_save_IFS
11656 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
11657 if test -n "$ac_ct_WINDRES"; then
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
11659 $as_echo "$ac_ct_WINDRES" >&6; }
11660 else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11665 if test "x$ac_ct_WINDRES" = x; then
11666 WINDRES=""
11667 else
11668 case $cross_compiling:$ac_tool_warned in
11669 yes:)
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11672 ac_tool_warned=yes ;;
11673 esac
11674 WINDRES=$ac_ct_WINDRES
11676 else
11677 WINDRES="$ac_cv_prog_WINDRES"
11682 case "$host_os" in
11683 hpux*) LTLIBC="" ;;
11684 *) LTLIBC="-lc" ;;
11685 esac
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11713 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11714 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 gt_save_LIBS="$LIBS"
11718 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721 #include <CoreFoundation/CFPreferences.h>
11723 main ()
11725 CFPreferencesCopyAppValue(NULL, NULL)
11727 return 0;
11729 _ACEOF
11730 if ac_fn_c_try_link "$LINENO"; then :
11731 gt_cv_func_CFPreferencesCopyAppValue=yes
11732 else
11733 gt_cv_func_CFPreferencesCopyAppValue=no
11735 rm -f core conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 LIBS="$gt_save_LIBS"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11740 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11741 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11743 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11747 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11748 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 gt_save_LIBS="$LIBS"
11752 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11755 #include <CoreFoundation/CFLocale.h>
11757 main ()
11759 CFLocaleCopyCurrent();
11761 return 0;
11763 _ACEOF
11764 if ac_fn_c_try_link "$LINENO"; then :
11765 gt_cv_func_CFLocaleCopyCurrent=yes
11766 else
11767 gt_cv_func_CFLocaleCopyCurrent=no
11769 rm -f core conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771 LIBS="$gt_save_LIBS"
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11774 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11775 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11777 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11780 INTL_MACOSX_LIBS=
11781 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11782 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11790 BUILD_INCLUDED_LIBINTL=no
11791 USE_INCLUDED_LIBINTL=no
11793 LIBINTL=
11794 LTLIBINTL=
11795 POSUB=
11797 case " $gt_needs " in
11798 *" need-formatstring-macros "*) gt_api_version=3 ;;
11799 *" need-ngettext "*) gt_api_version=2 ;;
11800 *) gt_api_version=1 ;;
11801 esac
11802 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11803 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11805 if test "$USE_NLS" = "yes"; then
11806 gt_use_preinstalled_gnugettext=no
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
11809 $as_echo_n "checking whether included gettext is requested... " >&6; }
11811 # Check whether --with-included-gettext was given.
11812 if test "${with_included_gettext+set}" = set; then :
11813 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
11814 else
11815 nls_cv_force_use_gnu_gettext=no
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
11819 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
11821 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11822 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11825 if test $gt_api_version -ge 3; then
11826 gt_revision_test_code='
11827 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11828 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11829 #endif
11830 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11832 else
11833 gt_revision_test_code=
11835 if test $gt_api_version -ge 2; then
11836 gt_expression_test_code=' + * ngettext ("", "", 0)'
11837 else
11838 gt_expression_test_code=
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
11842 $as_echo_n "checking for GNU gettext in libc... " >&6; }
11843 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848 #include <libintl.h>
11849 $gt_revision_test_code
11850 extern int _nl_msg_cat_cntr;
11851 extern int *_nl_domain_bindings;
11853 main ()
11855 bindtextdomain ("", "");
11856 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11858 return 0;
11860 _ACEOF
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 eval "$gt_func_gnugettext_libc=yes"
11863 else
11864 eval "$gt_func_gnugettext_libc=no"
11866 rm -f core conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11869 eval ac_res=\$$gt_func_gnugettext_libc
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11871 $as_echo "$ac_res" >&6; }
11873 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
11879 use_additional=yes
11881 acl_save_prefix="$prefix"
11882 prefix="$acl_final_prefix"
11883 acl_save_exec_prefix="$exec_prefix"
11884 exec_prefix="$acl_final_exec_prefix"
11886 eval additional_includedir=\"$includedir\"
11887 eval additional_libdir=\"$libdir\"
11889 exec_prefix="$acl_save_exec_prefix"
11890 prefix="$acl_save_prefix"
11893 # Check whether --with-libintl-prefix was given.
11894 if test "${with_libintl_prefix+set}" = set; then :
11895 withval=$with_libintl_prefix;
11896 if test "X$withval" = "Xno"; then
11897 use_additional=no
11898 else
11899 if test "X$withval" = "X"; then
11901 acl_save_prefix="$prefix"
11902 prefix="$acl_final_prefix"
11903 acl_save_exec_prefix="$exec_prefix"
11904 exec_prefix="$acl_final_exec_prefix"
11906 eval additional_includedir=\"$includedir\"
11907 eval additional_libdir=\"$libdir\"
11909 exec_prefix="$acl_save_exec_prefix"
11910 prefix="$acl_save_prefix"
11912 else
11913 additional_includedir="$withval/include"
11914 additional_libdir="$withval/$acl_libdirstem"
11920 LIBINTL=
11921 LTLIBINTL=
11922 INCINTL=
11923 LIBINTL_PREFIX=
11924 rpathdirs=
11925 ltrpathdirs=
11926 names_already_handled=
11927 names_next_round='intl '
11928 while test -n "$names_next_round"; do
11929 names_this_round="$names_next_round"
11930 names_next_round=
11931 for name in $names_this_round; do
11932 already_handled=
11933 for n in $names_already_handled; do
11934 if test "$n" = "$name"; then
11935 already_handled=yes
11936 break
11938 done
11939 if test -z "$already_handled"; then
11940 names_already_handled="$names_already_handled $name"
11941 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11942 eval value=\"\$HAVE_LIB$uppername\"
11943 if test -n "$value"; then
11944 if test "$value" = yes; then
11945 eval value=\"\$LIB$uppername\"
11946 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11947 eval value=\"\$LTLIB$uppername\"
11948 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11949 else
11952 else
11953 found_dir=
11954 found_la=
11955 found_so=
11956 found_a=
11957 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11958 if test -n "$acl_shlibext"; then
11959 shrext=".$acl_shlibext" # typically: shrext=.so
11960 else
11961 shrext=
11963 if test $use_additional = yes; then
11964 dir="$additional_libdir"
11965 if test -n "$acl_shlibext"; then
11966 if test -f "$dir/$libname$shrext"; then
11967 found_dir="$dir"
11968 found_so="$dir/$libname$shrext"
11969 else
11970 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11971 ver=`(cd "$dir" && \
11972 for f in "$libname$shrext".*; do echo "$f"; done \
11973 | sed -e "s,^$libname$shrext\\\\.,," \
11974 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11975 | sed 1q ) 2>/dev/null`
11976 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11977 found_dir="$dir"
11978 found_so="$dir/$libname$shrext.$ver"
11980 else
11981 eval library_names=\"$acl_library_names_spec\"
11982 for f in $library_names; do
11983 if test -f "$dir/$f"; then
11984 found_dir="$dir"
11985 found_so="$dir/$f"
11986 break
11988 done
11992 if test "X$found_dir" = "X"; then
11993 if test -f "$dir/$libname.$acl_libext"; then
11994 found_dir="$dir"
11995 found_a="$dir/$libname.$acl_libext"
11998 if test "X$found_dir" != "X"; then
11999 if test -f "$dir/$libname.la"; then
12000 found_la="$dir/$libname.la"
12004 if test "X$found_dir" = "X"; then
12005 for x in $LDFLAGS $LTLIBINTL; do
12007 acl_save_prefix="$prefix"
12008 prefix="$acl_final_prefix"
12009 acl_save_exec_prefix="$exec_prefix"
12010 exec_prefix="$acl_final_exec_prefix"
12011 eval x=\"$x\"
12012 exec_prefix="$acl_save_exec_prefix"
12013 prefix="$acl_save_prefix"
12015 case "$x" in
12016 -L*)
12017 dir=`echo "X$x" | sed -e 's/^X-L//'`
12018 if test -n "$acl_shlibext"; then
12019 if test -f "$dir/$libname$shrext"; then
12020 found_dir="$dir"
12021 found_so="$dir/$libname$shrext"
12022 else
12023 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12024 ver=`(cd "$dir" && \
12025 for f in "$libname$shrext".*; do echo "$f"; done \
12026 | sed -e "s,^$libname$shrext\\\\.,," \
12027 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12028 | sed 1q ) 2>/dev/null`
12029 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12030 found_dir="$dir"
12031 found_so="$dir/$libname$shrext.$ver"
12033 else
12034 eval library_names=\"$acl_library_names_spec\"
12035 for f in $library_names; do
12036 if test -f "$dir/$f"; then
12037 found_dir="$dir"
12038 found_so="$dir/$f"
12039 break
12041 done
12045 if test "X$found_dir" = "X"; then
12046 if test -f "$dir/$libname.$acl_libext"; then
12047 found_dir="$dir"
12048 found_a="$dir/$libname.$acl_libext"
12051 if test "X$found_dir" != "X"; then
12052 if test -f "$dir/$libname.la"; then
12053 found_la="$dir/$libname.la"
12057 esac
12058 if test "X$found_dir" != "X"; then
12059 break
12061 done
12063 if test "X$found_dir" != "X"; then
12064 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12065 if test "X$found_so" != "X"; then
12066 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12067 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12068 else
12069 haveit=
12070 for x in $ltrpathdirs; do
12071 if test "X$x" = "X$found_dir"; then
12072 haveit=yes
12073 break
12075 done
12076 if test -z "$haveit"; then
12077 ltrpathdirs="$ltrpathdirs $found_dir"
12079 if test "$acl_hardcode_direct" = yes; then
12080 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12081 else
12082 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12083 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12084 haveit=
12085 for x in $rpathdirs; do
12086 if test "X$x" = "X$found_dir"; then
12087 haveit=yes
12088 break
12090 done
12091 if test -z "$haveit"; then
12092 rpathdirs="$rpathdirs $found_dir"
12094 else
12095 haveit=
12096 for x in $LDFLAGS $LIBINTL; do
12098 acl_save_prefix="$prefix"
12099 prefix="$acl_final_prefix"
12100 acl_save_exec_prefix="$exec_prefix"
12101 exec_prefix="$acl_final_exec_prefix"
12102 eval x=\"$x\"
12103 exec_prefix="$acl_save_exec_prefix"
12104 prefix="$acl_save_prefix"
12106 if test "X$x" = "X-L$found_dir"; then
12107 haveit=yes
12108 break
12110 done
12111 if test -z "$haveit"; then
12112 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12114 if test "$acl_hardcode_minus_L" != no; then
12115 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12116 else
12117 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12122 else
12123 if test "X$found_a" != "X"; then
12124 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12125 else
12126 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12129 additional_includedir=
12130 case "$found_dir" in
12131 */$acl_libdirstem | */$acl_libdirstem/)
12132 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12133 LIBINTL_PREFIX="$basedir"
12134 additional_includedir="$basedir/include"
12136 esac
12137 if test "X$additional_includedir" != "X"; then
12138 if test "X$additional_includedir" != "X/usr/include"; then
12139 haveit=
12140 if test "X$additional_includedir" = "X/usr/local/include"; then
12141 if test -n "$GCC"; then
12142 case $host_os in
12143 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12144 esac
12147 if test -z "$haveit"; then
12148 for x in $CPPFLAGS $INCINTL; do
12150 acl_save_prefix="$prefix"
12151 prefix="$acl_final_prefix"
12152 acl_save_exec_prefix="$exec_prefix"
12153 exec_prefix="$acl_final_exec_prefix"
12154 eval x=\"$x\"
12155 exec_prefix="$acl_save_exec_prefix"
12156 prefix="$acl_save_prefix"
12158 if test "X$x" = "X-I$additional_includedir"; then
12159 haveit=yes
12160 break
12162 done
12163 if test -z "$haveit"; then
12164 if test -d "$additional_includedir"; then
12165 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12171 if test -n "$found_la"; then
12172 save_libdir="$libdir"
12173 case "$found_la" in
12174 */* | *\\*) . "$found_la" ;;
12175 *) . "./$found_la" ;;
12176 esac
12177 libdir="$save_libdir"
12178 for dep in $dependency_libs; do
12179 case "$dep" in
12180 -L*)
12181 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12182 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12183 haveit=
12184 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12185 if test -n "$GCC"; then
12186 case $host_os in
12187 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12188 esac
12191 if test -z "$haveit"; then
12192 haveit=
12193 for x in $LDFLAGS $LIBINTL; do
12195 acl_save_prefix="$prefix"
12196 prefix="$acl_final_prefix"
12197 acl_save_exec_prefix="$exec_prefix"
12198 exec_prefix="$acl_final_exec_prefix"
12199 eval x=\"$x\"
12200 exec_prefix="$acl_save_exec_prefix"
12201 prefix="$acl_save_prefix"
12203 if test "X$x" = "X-L$additional_libdir"; then
12204 haveit=yes
12205 break
12207 done
12208 if test -z "$haveit"; then
12209 if test -d "$additional_libdir"; then
12210 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12213 haveit=
12214 for x in $LDFLAGS $LTLIBINTL; do
12216 acl_save_prefix="$prefix"
12217 prefix="$acl_final_prefix"
12218 acl_save_exec_prefix="$exec_prefix"
12219 exec_prefix="$acl_final_exec_prefix"
12220 eval x=\"$x\"
12221 exec_prefix="$acl_save_exec_prefix"
12222 prefix="$acl_save_prefix"
12224 if test "X$x" = "X-L$additional_libdir"; then
12225 haveit=yes
12226 break
12228 done
12229 if test -z "$haveit"; then
12230 if test -d "$additional_libdir"; then
12231 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12237 -R*)
12238 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12239 if test "$enable_rpath" != no; then
12240 haveit=
12241 for x in $rpathdirs; do
12242 if test "X$x" = "X$dir"; then
12243 haveit=yes
12244 break
12246 done
12247 if test -z "$haveit"; then
12248 rpathdirs="$rpathdirs $dir"
12250 haveit=
12251 for x in $ltrpathdirs; do
12252 if test "X$x" = "X$dir"; then
12253 haveit=yes
12254 break
12256 done
12257 if test -z "$haveit"; then
12258 ltrpathdirs="$ltrpathdirs $dir"
12262 -l*)
12263 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12265 *.la)
12266 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12269 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12270 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12272 esac
12273 done
12275 else
12276 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12277 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12281 done
12282 done
12283 if test "X$rpathdirs" != "X"; then
12284 if test -n "$acl_hardcode_libdir_separator"; then
12285 alldirs=
12286 for found_dir in $rpathdirs; do
12287 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12288 done
12289 acl_save_libdir="$libdir"
12290 libdir="$alldirs"
12291 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12292 libdir="$acl_save_libdir"
12293 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12294 else
12295 for found_dir in $rpathdirs; do
12296 acl_save_libdir="$libdir"
12297 libdir="$found_dir"
12298 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12299 libdir="$acl_save_libdir"
12300 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12301 done
12304 if test "X$ltrpathdirs" != "X"; then
12305 for found_dir in $ltrpathdirs; do
12306 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12307 done
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12311 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12312 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 gt_save_CPPFLAGS="$CPPFLAGS"
12316 CPPFLAGS="$CPPFLAGS $INCINTL"
12317 gt_save_LIBS="$LIBS"
12318 LIBS="$LIBS $LIBINTL"
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321 #include <libintl.h>
12322 $gt_revision_test_code
12323 extern int _nl_msg_cat_cntr;
12324 extern
12325 #ifdef __cplusplus
12327 #endif
12328 const char *_nl_expand_alias (const char *);
12330 main ()
12332 bindtextdomain ("", "");
12333 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12335 return 0;
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 eval "$gt_func_gnugettext_libintl=yes"
12340 else
12341 eval "$gt_func_gnugettext_libintl=no"
12343 rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12346 LIBS="$LIBS $LIBICONV"
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349 #include <libintl.h>
12350 $gt_revision_test_code
12351 extern int _nl_msg_cat_cntr;
12352 extern
12353 #ifdef __cplusplus
12355 #endif
12356 const char *_nl_expand_alias (const char *);
12358 main ()
12360 bindtextdomain ("", "");
12361 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12363 return 0;
12365 _ACEOF
12366 if ac_fn_c_try_link "$LINENO"; then :
12367 LIBINTL="$LIBINTL $LIBICONV"
12368 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12369 eval "$gt_func_gnugettext_libintl=yes"
12372 rm -f core conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext conftest.$ac_ext
12375 CPPFLAGS="$gt_save_CPPFLAGS"
12376 LIBS="$gt_save_LIBS"
12378 eval ac_res=\$$gt_func_gnugettext_libintl
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12380 $as_echo "$ac_res" >&6; }
12383 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12384 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12385 && test "$PACKAGE" != gettext-runtime \
12386 && test "$PACKAGE" != gettext-tools; }; then
12387 gt_use_preinstalled_gnugettext=yes
12388 else
12389 LIBINTL=
12390 LTLIBINTL=
12391 INCINTL=
12395 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12396 nls_cv_use_gnu_gettext=yes
12400 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12401 BUILD_INCLUDED_LIBINTL=yes
12402 USE_INCLUDED_LIBINTL=yes
12403 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
12404 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
12405 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12408 CATOBJEXT=
12409 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12410 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12411 CATOBJEXT=.gmo
12415 if test -n "$INTL_MACOSX_LIBS"; then
12416 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12417 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12418 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12419 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12423 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12424 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12426 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12428 else
12429 USE_NLS=no
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12434 $as_echo_n "checking whether to use NLS... " >&6; }
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12436 $as_echo "$USE_NLS" >&6; }
12437 if test "$USE_NLS" = "yes"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12439 $as_echo_n "checking where the gettext function comes from... " >&6; }
12440 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12441 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12442 gt_source="external libintl"
12443 else
12444 gt_source="libc"
12446 else
12447 gt_source="included intl directory"
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12450 $as_echo "$gt_source" >&6; }
12453 if test "$USE_NLS" = "yes"; then
12455 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12456 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12458 $as_echo_n "checking how to link with libintl... " >&6; }
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12460 $as_echo "$LIBINTL" >&6; }
12462 for element in $INCINTL; do
12463 haveit=
12464 for x in $CPPFLAGS; do
12466 acl_save_prefix="$prefix"
12467 prefix="$acl_final_prefix"
12468 acl_save_exec_prefix="$exec_prefix"
12469 exec_prefix="$acl_final_exec_prefix"
12470 eval x=\"$x\"
12471 exec_prefix="$acl_save_exec_prefix"
12472 prefix="$acl_save_prefix"
12474 if test "X$x" = "X$element"; then
12475 haveit=yes
12476 break
12478 done
12479 if test -z "$haveit"; then
12480 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12482 done
12487 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12490 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12494 POSUB=po
12498 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12499 BUILD_INCLUDED_LIBINTL=yes
12506 nls_cv_header_intl=
12507 nls_cv_header_libgt=
12509 DATADIRNAME=share
12512 INSTOBJEXT=.mo
12515 GENCAT=gencat
12518 INTLOBJS=
12519 if test "$USE_INCLUDED_LIBINTL" = yes; then
12520 INTLOBJS="\$(GETTOBJS)"
12524 INTL_LIBTOOL_SUFFIX_PREFIX=
12528 INTLLIBS="$LIBINTL"
12535 CFLAGS="$CFLAGS -I../${srcdir}/intl"
12536 LIBS="$LIBS $LIBINTL"
12539 ac_config_files="$ac_config_files intl/Makefile Makefile lib/Makefile po/Makefile.in tools/Makefile tools/glade/Makefile tools/glade/actions/Makefile tools/glade/image_nr/Makefile tools/glade/options/Makefile man/Makefile man/cs/Makefile man/de/Makefile man/en/Makefile man/fr/Makefile man/ru/Makefile src/Makefile gliv.spec"
12542 cat >confcache <<\_ACEOF
12543 # This file is a shell script that caches the results of configure
12544 # tests run on this system so they can be shared between configure
12545 # scripts and configure runs, see configure's option --config-cache.
12546 # It is not useful on other systems. If it contains results you don't
12547 # want to keep, you may remove or edit it.
12549 # config.status only pays attention to the cache file if you give it
12550 # the --recheck option to rerun configure.
12552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12554 # following values.
12556 _ACEOF
12558 # The following way of writing the cache mishandles newlines in values,
12559 # but we know of no workaround that is simple, portable, and efficient.
12560 # So, we kill variables containing newlines.
12561 # Ultrix sh set writes to stderr and can't be redirected directly,
12562 # and sets the high bit in the cache file unless we assign to the vars.
12564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12565 eval ac_val=\$$ac_var
12566 case $ac_val in #(
12567 *${as_nl}*)
12568 case $ac_var in #(
12569 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12571 esac
12572 case $ac_var in #(
12573 _ | IFS | as_nl) ;; #(
12574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12575 *) { eval $ac_var=; unset $ac_var;} ;;
12576 esac ;;
12577 esac
12578 done
12580 (set) 2>&1 |
12581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12582 *${as_nl}ac_space=\ *)
12583 # `set' does not quote correctly, so add quotes: double-quote
12584 # substitution turns \\\\ into \\, and sed turns \\ into \.
12585 sed -n \
12586 "s/'/'\\\\''/g;
12587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12588 ;; #(
12590 # `set' quotes correctly as required by POSIX, so do not add quotes.
12591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12593 esac |
12594 sort
12596 sed '
12597 /^ac_cv_env_/b end
12598 t clear
12599 :clear
12600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12601 t end
12602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12603 :end' >>confcache
12604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12605 if test -w "$cache_file"; then
12606 test "x$cache_file" != "x/dev/null" &&
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12608 $as_echo "$as_me: updating cache $cache_file" >&6;}
12609 cat confcache >$cache_file
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12612 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12615 rm -f confcache
12617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12618 # Let make expand exec_prefix.
12619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12621 DEFS=-DHAVE_CONFIG_H
12623 ac_libobjs=
12624 ac_ltlibobjs=
12625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12626 # 1. Remove the extension, and $U if already installed.
12627 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12628 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12630 # will be set to the directory where LIBOBJS objects are built.
12631 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12632 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12633 done
12634 LIBOBJS=$ac_libobjs
12636 LTLIBOBJS=$ac_ltlibobjs
12639 if test -n "$EXEEXT"; then
12640 am__EXEEXT_TRUE=
12641 am__EXEEXT_FALSE='#'
12642 else
12643 am__EXEEXT_TRUE='#'
12644 am__EXEEXT_FALSE=
12647 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12648 as_fn_error "conditional \"AMDEP\" was never defined.
12649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12651 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12652 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12655 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12656 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12659 if test -z "${GETDELIM_TRUE}" && test -z "${GETDELIM_FALSE}"; then
12660 as_fn_error "conditional \"GETDELIM\" was never defined.
12661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12663 if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then
12664 as_fn_error "conditional \"GETOPT_LONG\" was never defined.
12665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12667 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
12668 as_fn_error "conditional \"NEED_REPLACEMENTS\" was never defined.
12669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12671 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
12672 as_fn_error "conditional \"NEED_REPLACEMENTS\" was never defined.
12673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12676 : ${CONFIG_STATUS=./config.status}
12677 ac_write_fail=0
12678 ac_clean_files_save=$ac_clean_files
12679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12682 as_write_fail=0
12683 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12684 #! $SHELL
12685 # Generated by $as_me.
12686 # Run this file to recreate the current configuration.
12687 # Compiler output produced by configure, useful for debugging
12688 # configure, is in config.log if it exists.
12690 debug=false
12691 ac_cs_recheck=false
12692 ac_cs_silent=false
12694 SHELL=\${CONFIG_SHELL-$SHELL}
12695 export SHELL
12696 _ASEOF
12697 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12698 ## -------------------- ##
12699 ## M4sh Initialization. ##
12700 ## -------------------- ##
12702 # Be more Bourne compatible
12703 DUALCASE=1; export DUALCASE # for MKS sh
12704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12705 emulate sh
12706 NULLCMD=:
12707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12708 # is contrary to our usage. Disable this feature.
12709 alias -g '${1+"$@"}'='"$@"'
12710 setopt NO_GLOB_SUBST
12711 else
12712 case `(set -o) 2>/dev/null` in #(
12713 *posix*) :
12714 set -o posix ;; #(
12715 *) :
12717 esac
12721 as_nl='
12723 export as_nl
12724 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12725 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12728 # Prefer a ksh shell builtin over an external printf program on Solaris,
12729 # but without wasting forks for bash or zsh.
12730 if test -z "$BASH_VERSION$ZSH_VERSION" \
12731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12732 as_echo='print -r --'
12733 as_echo_n='print -rn --'
12734 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12735 as_echo='printf %s\n'
12736 as_echo_n='printf %s'
12737 else
12738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12739 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12740 as_echo_n='/usr/ucb/echo -n'
12741 else
12742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12743 as_echo_n_body='eval
12744 arg=$1;
12745 case $arg in #(
12746 *"$as_nl"*)
12747 expr "X$arg" : "X\\(.*\\)$as_nl";
12748 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12749 esac;
12750 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12752 export as_echo_n_body
12753 as_echo_n='sh -c $as_echo_n_body as_echo'
12755 export as_echo_body
12756 as_echo='sh -c $as_echo_body as_echo'
12759 # The user is always right.
12760 if test "${PATH_SEPARATOR+set}" != set; then
12761 PATH_SEPARATOR=:
12762 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12763 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12764 PATH_SEPARATOR=';'
12769 # IFS
12770 # We need space, tab and new line, in precisely that order. Quoting is
12771 # there to prevent editors from complaining about space-tab.
12772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12773 # splitting by setting IFS to empty value.)
12774 IFS=" "" $as_nl"
12776 # Find who we are. Look in the path if we contain no directory separator.
12777 case $0 in #((
12778 *[\\/]* ) as_myself=$0 ;;
12779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780 for as_dir in $PATH
12782 IFS=$as_save_IFS
12783 test -z "$as_dir" && as_dir=.
12784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12785 done
12786 IFS=$as_save_IFS
12789 esac
12790 # We did not find ourselves, most probably we were run as `sh COMMAND'
12791 # in which case we are not to be found in the path.
12792 if test "x$as_myself" = x; then
12793 as_myself=$0
12795 if test ! -f "$as_myself"; then
12796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12797 exit 1
12800 # Unset variables that we do not need and which cause bugs (e.g. in
12801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12802 # suppresses any "Segmentation fault" message there. '((' could
12803 # trigger a bug in pdksh 5.2.14.
12804 for as_var in BASH_ENV ENV MAIL MAILPATH
12805 do eval test x\${$as_var+set} = xset \
12806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12807 done
12808 PS1='$ '
12809 PS2='> '
12810 PS4='+ '
12812 # NLS nuisances.
12813 LC_ALL=C
12814 export LC_ALL
12815 LANGUAGE=C
12816 export LANGUAGE
12818 # CDPATH.
12819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12822 # as_fn_error ERROR [LINENO LOG_FD]
12823 # ---------------------------------
12824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12826 # script with status $?, using 1 if that was 0.
12827 as_fn_error ()
12829 as_status=$?; test $as_status -eq 0 && as_status=1
12830 if test "$3"; then
12831 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12834 $as_echo "$as_me: error: $1" >&2
12835 as_fn_exit $as_status
12836 } # as_fn_error
12839 # as_fn_set_status STATUS
12840 # -----------------------
12841 # Set $? to STATUS, without forking.
12842 as_fn_set_status ()
12844 return $1
12845 } # as_fn_set_status
12847 # as_fn_exit STATUS
12848 # -----------------
12849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12850 as_fn_exit ()
12852 set +e
12853 as_fn_set_status $1
12854 exit $1
12855 } # as_fn_exit
12857 # as_fn_unset VAR
12858 # ---------------
12859 # Portably unset VAR.
12860 as_fn_unset ()
12862 { eval $1=; unset $1;}
12864 as_unset=as_fn_unset
12865 # as_fn_append VAR VALUE
12866 # ----------------------
12867 # Append the text in VALUE to the end of the definition contained in VAR. Take
12868 # advantage of any shell optimizations that allow amortized linear growth over
12869 # repeated appends, instead of the typical quadratic growth present in naive
12870 # implementations.
12871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12872 eval 'as_fn_append ()
12874 eval $1+=\$2
12876 else
12877 as_fn_append ()
12879 eval $1=\$$1\$2
12881 fi # as_fn_append
12883 # as_fn_arith ARG...
12884 # ------------------
12885 # Perform arithmetic evaluation on the ARGs, and store the result in the
12886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12887 # must be portable across $(()) and expr.
12888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12889 eval 'as_fn_arith ()
12891 as_val=$(( $* ))
12893 else
12894 as_fn_arith ()
12896 as_val=`expr "$@" || test $? -eq 1`
12898 fi # as_fn_arith
12901 if expr a : '\(a\)' >/dev/null 2>&1 &&
12902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12903 as_expr=expr
12904 else
12905 as_expr=false
12908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12909 as_basename=basename
12910 else
12911 as_basename=false
12914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12915 as_dirname=dirname
12916 else
12917 as_dirname=false
12920 as_me=`$as_basename -- "$0" ||
12921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12922 X"$0" : 'X\(//\)$' \| \
12923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12924 $as_echo X/"$0" |
12925 sed '/^.*\/\([^/][^/]*\)\/*$/{
12926 s//\1/
12929 /^X\/\(\/\/\)$/{
12930 s//\1/
12933 /^X\/\(\/\).*/{
12934 s//\1/
12937 s/.*/./; q'`
12939 # Avoid depending upon Character Ranges.
12940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12943 as_cr_digits='0123456789'
12944 as_cr_alnum=$as_cr_Letters$as_cr_digits
12946 ECHO_C= ECHO_N= ECHO_T=
12947 case `echo -n x` in #(((((
12948 -n*)
12949 case `echo 'xy\c'` in
12950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12951 xy) ECHO_C='\c';;
12952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12953 ECHO_T=' ';;
12954 esac;;
12956 ECHO_N='-n';;
12957 esac
12959 rm -f conf$$ conf$$.exe conf$$.file
12960 if test -d conf$$.dir; then
12961 rm -f conf$$.dir/conf$$.file
12962 else
12963 rm -f conf$$.dir
12964 mkdir conf$$.dir 2>/dev/null
12966 if (echo >conf$$.file) 2>/dev/null; then
12967 if ln -s conf$$.file conf$$ 2>/dev/null; then
12968 as_ln_s='ln -s'
12969 # ... but there are two gotchas:
12970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12972 # In both cases, we have to default to `cp -p'.
12973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12974 as_ln_s='cp -p'
12975 elif ln conf$$.file conf$$ 2>/dev/null; then
12976 as_ln_s=ln
12977 else
12978 as_ln_s='cp -p'
12980 else
12981 as_ln_s='cp -p'
12983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12984 rmdir conf$$.dir 2>/dev/null
12987 # as_fn_mkdir_p
12988 # -------------
12989 # Create "$as_dir" as a directory, including parents if necessary.
12990 as_fn_mkdir_p ()
12993 case $as_dir in #(
12994 -*) as_dir=./$as_dir;;
12995 esac
12996 test -d "$as_dir" || eval $as_mkdir_p || {
12997 as_dirs=
12998 while :; do
12999 case $as_dir in #(
13000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13001 *) as_qdir=$as_dir;;
13002 esac
13003 as_dirs="'$as_qdir' $as_dirs"
13004 as_dir=`$as_dirname -- "$as_dir" ||
13005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13006 X"$as_dir" : 'X\(//\)[^/]' \| \
13007 X"$as_dir" : 'X\(//\)$' \| \
13008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13009 $as_echo X"$as_dir" |
13010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13011 s//\1/
13014 /^X\(\/\/\)[^/].*/{
13015 s//\1/
13018 /^X\(\/\/\)$/{
13019 s//\1/
13022 /^X\(\/\).*/{
13023 s//\1/
13026 s/.*/./; q'`
13027 test -d "$as_dir" && break
13028 done
13029 test -z "$as_dirs" || eval "mkdir $as_dirs"
13030 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13033 } # as_fn_mkdir_p
13034 if mkdir -p . 2>/dev/null; then
13035 as_mkdir_p='mkdir -p "$as_dir"'
13036 else
13037 test -d ./-p && rmdir ./-p
13038 as_mkdir_p=false
13041 if test -x / >/dev/null 2>&1; then
13042 as_test_x='test -x'
13043 else
13044 if ls -dL / >/dev/null 2>&1; then
13045 as_ls_L_option=L
13046 else
13047 as_ls_L_option=
13049 as_test_x='
13050 eval sh -c '\''
13051 if test -d "$1"; then
13052 test -d "$1/.";
13053 else
13054 case $1 in #(
13055 -*)set "./$1";;
13056 esac;
13057 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13058 ???[sx]*):;;*)false;;esac;fi
13059 '\'' sh
13062 as_executable_p=$as_test_x
13064 # Sed expression to map a string onto a valid CPP name.
13065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13067 # Sed expression to map a string onto a valid variable name.
13068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13071 exec 6>&1
13072 ## ----------------------------------- ##
13073 ## Main body of $CONFIG_STATUS script. ##
13074 ## ----------------------------------- ##
13075 _ASEOF
13076 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13079 # Save the log message, to keep $0 and so on meaningful, and to
13080 # report actual input values of CONFIG_FILES etc. instead of their
13081 # values after options handling.
13082 ac_log="
13083 This file was extended by gliv $as_me 1.9.7, which was
13084 generated by GNU Autoconf 2.65. Invocation command line was
13086 CONFIG_FILES = $CONFIG_FILES
13087 CONFIG_HEADERS = $CONFIG_HEADERS
13088 CONFIG_LINKS = $CONFIG_LINKS
13089 CONFIG_COMMANDS = $CONFIG_COMMANDS
13090 $ $0 $@
13092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13095 _ACEOF
13097 case $ac_config_files in *"
13098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13099 esac
13101 case $ac_config_headers in *"
13102 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13103 esac
13106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107 # Files that config.status was made for.
13108 config_files="$ac_config_files"
13109 config_headers="$ac_config_headers"
13110 config_commands="$ac_config_commands"
13112 _ACEOF
13114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13115 ac_cs_usage="\
13116 \`$as_me' instantiates files and other configuration actions
13117 from templates according to the current configuration. Unless the files
13118 and actions are specified as TAGs, all are instantiated by default.
13120 Usage: $0 [OPTION]... [TAG]...
13122 -h, --help print this help, then exit
13123 -V, --version print version number and configuration settings, then exit
13124 --config print configuration, then exit
13125 -q, --quiet, --silent
13126 do not print progress messages
13127 -d, --debug don't remove temporary files
13128 --recheck update $as_me by reconfiguring in the same conditions
13129 --file=FILE[:TEMPLATE]
13130 instantiate the configuration file FILE
13131 --header=FILE[:TEMPLATE]
13132 instantiate the configuration header FILE
13134 Configuration files:
13135 $config_files
13137 Configuration headers:
13138 $config_headers
13140 Configuration commands:
13141 $config_commands
13143 Report bugs to <guichaz@gmail.com>."
13145 _ACEOF
13146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13147 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13148 ac_cs_version="\\
13149 gliv config.status 1.9.7
13150 configured by $0, generated by GNU Autoconf 2.65,
13151 with options \\"\$ac_cs_config\\"
13153 Copyright (C) 2009 Free Software Foundation, Inc.
13154 This config.status script is free software; the Free Software Foundation
13155 gives unlimited permission to copy, distribute and modify it."
13157 ac_pwd='$ac_pwd'
13158 srcdir='$srcdir'
13159 INSTALL='$INSTALL'
13160 MKDIR_P='$MKDIR_P'
13161 AWK='$AWK'
13162 test -n "\$AWK" || AWK=awk
13163 _ACEOF
13165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13166 # The default lists apply if the user does not specify any file.
13167 ac_need_defaults=:
13168 while test $# != 0
13170 case $1 in
13171 --*=*)
13172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13173 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13174 ac_shift=:
13177 ac_option=$1
13178 ac_optarg=$2
13179 ac_shift=shift
13181 esac
13183 case $ac_option in
13184 # Handling of the options.
13185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13186 ac_cs_recheck=: ;;
13187 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13188 $as_echo "$ac_cs_version"; exit ;;
13189 --config | --confi | --conf | --con | --co | --c )
13190 $as_echo "$ac_cs_config"; exit ;;
13191 --debug | --debu | --deb | --de | --d | -d )
13192 debug=: ;;
13193 --file | --fil | --fi | --f )
13194 $ac_shift
13195 case $ac_optarg in
13196 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13197 esac
13198 as_fn_append CONFIG_FILES " '$ac_optarg'"
13199 ac_need_defaults=false;;
13200 --header | --heade | --head | --hea )
13201 $ac_shift
13202 case $ac_optarg in
13203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13204 esac
13205 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13206 ac_need_defaults=false;;
13207 --he | --h)
13208 # Conflict between --help and --header
13209 as_fn_error "ambiguous option: \`$1'
13210 Try \`$0 --help' for more information.";;
13211 --help | --hel | -h )
13212 $as_echo "$ac_cs_usage"; exit ;;
13213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13215 ac_cs_silent=: ;;
13217 # This is an error.
13218 -*) as_fn_error "unrecognized option: \`$1'
13219 Try \`$0 --help' for more information." ;;
13221 *) as_fn_append ac_config_targets " $1"
13222 ac_need_defaults=false ;;
13224 esac
13225 shift
13226 done
13228 ac_configure_extra_args=
13230 if $ac_cs_silent; then
13231 exec 6>/dev/null
13232 ac_configure_extra_args="$ac_configure_extra_args --silent"
13235 _ACEOF
13236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13237 if \$ac_cs_recheck; then
13238 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13239 shift
13240 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13241 CONFIG_SHELL='$SHELL'
13242 export CONFIG_SHELL
13243 exec "\$@"
13246 _ACEOF
13247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13248 exec 5>>config.log
13250 echo
13251 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13252 ## Running $as_me. ##
13253 _ASBOX
13254 $as_echo "$ac_log"
13255 } >&5
13257 _ACEOF
13258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13260 # INIT-COMMANDS
13262 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13263 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13264 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13265 # from automake < 1.5.
13266 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13267 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13268 LINGUAS="${LINGUAS-%UNSET%}"
13271 _ACEOF
13273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13275 # Handling of arguments.
13276 for ac_config_target in $ac_config_targets
13278 case $ac_config_target in
13279 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13280 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13281 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13282 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
13283 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13284 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13285 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13286 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13287 "tools/glade/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/Makefile" ;;
13288 "tools/glade/actions/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/actions/Makefile" ;;
13289 "tools/glade/image_nr/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/image_nr/Makefile" ;;
13290 "tools/glade/options/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/options/Makefile" ;;
13291 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13292 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
13293 "man/de/Makefile") CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
13294 "man/en/Makefile") CONFIG_FILES="$CONFIG_FILES man/en/Makefile" ;;
13295 "man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
13296 "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
13297 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13298 "gliv.spec") CONFIG_FILES="$CONFIG_FILES gliv.spec" ;;
13300 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13301 esac
13302 done
13305 # If the user did not use the arguments to specify the items to instantiate,
13306 # then the envvar interface is used. Set only those that are not.
13307 # We use the long form for the default assignment because of an extremely
13308 # bizarre bug on SunOS 4.1.3.
13309 if $ac_need_defaults; then
13310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13312 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13315 # Have a temporary directory for convenience. Make it in the build tree
13316 # simply because there is no reason against having it here, and in addition,
13317 # creating and moving files from /tmp can sometimes cause problems.
13318 # Hook for its removal unless debugging.
13319 # Note that there is a small window in which the directory will not be cleaned:
13320 # after its creation but before its name has been assigned to `$tmp'.
13321 $debug ||
13323 tmp=
13324 trap 'exit_status=$?
13325 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13327 trap 'as_fn_exit 1' 1 2 13 15
13329 # Create a (secure) tmp directory for tmp files.
13332 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13333 test -n "$tmp" && test -d "$tmp"
13334 } ||
13336 tmp=./conf$$-$RANDOM
13337 (umask 077 && mkdir "$tmp")
13338 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13340 # Set up the scripts for CONFIG_FILES section.
13341 # No need to generate them if there are no CONFIG_FILES.
13342 # This happens for instance with `./config.status config.h'.
13343 if test -n "$CONFIG_FILES"; then
13346 ac_cr=`echo X | tr X '\015'`
13347 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13348 # But we know of no other shell where ac_cr would be empty at this
13349 # point, so we can use a bashism as a fallback.
13350 if test "x$ac_cr" = x; then
13351 eval ac_cr=\$\'\\r\'
13353 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13354 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13355 ac_cs_awk_cr='\r'
13356 else
13357 ac_cs_awk_cr=$ac_cr
13360 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13361 _ACEOF
13365 echo "cat >conf$$subs.awk <<_ACEOF" &&
13366 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13367 echo "_ACEOF"
13368 } >conf$$subs.sh ||
13369 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13370 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13371 ac_delim='%!_!# '
13372 for ac_last_try in false false false false false :; do
13373 . ./conf$$subs.sh ||
13374 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13376 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13377 if test $ac_delim_n = $ac_delim_num; then
13378 break
13379 elif $ac_last_try; then
13380 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13381 else
13382 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13384 done
13385 rm -f conf$$subs.sh
13387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13388 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13389 _ACEOF
13390 sed -n '
13392 s/^/S["/; s/!.*/"]=/
13395 s/^[^!]*!//
13396 :repl
13397 t repl
13398 s/'"$ac_delim"'$//
13399 t delim
13402 s/\(.\{148\}\)..*/\1/
13403 t more1
13404 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13407 b repl
13408 :more1
13409 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13412 s/.\{148\}//
13413 t nl
13414 :delim
13416 s/\(.\{148\}\)..*/\1/
13417 t more2
13418 s/["\\]/\\&/g; s/^/"/; s/$/"/
13421 :more2
13422 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13425 s/.\{148\}//
13426 t delim
13427 ' <conf$$subs.awk | sed '
13428 /^[^""]/{
13430 s/\n//
13432 ' >>$CONFIG_STATUS || ac_write_fail=1
13433 rm -f conf$$subs.awk
13434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13435 _ACAWK
13436 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13437 for (key in S) S_is_set[key] = 1
13438 FS = "\a"
13442 line = $ 0
13443 nfields = split(line, field, "@")
13444 substed = 0
13445 len = length(field[1])
13446 for (i = 2; i < nfields; i++) {
13447 key = field[i]
13448 keylen = length(key)
13449 if (S_is_set[key]) {
13450 value = S[key]
13451 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13452 len += length(value) + length(field[++i])
13453 substed = 1
13454 } else
13455 len += 1 + keylen
13458 print line
13461 _ACAWK
13462 _ACEOF
13463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13464 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13465 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13466 else
13468 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13469 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13470 _ACEOF
13472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13474 # trailing colons and then remove the whole line if VPATH becomes empty
13475 # (actually we leave an empty line to preserve line numbers).
13476 if test "x$srcdir" = x.; then
13477 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13478 s/:*\$(srcdir):*/:/
13479 s/:*\${srcdir}:*/:/
13480 s/:*@srcdir@:*/:/
13481 s/^\([^=]*=[ ]*\):*/\1/
13482 s/:*$//
13483 s/^[^=]*=[ ]*$//
13487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13488 fi # test -n "$CONFIG_FILES"
13490 # Set up the scripts for CONFIG_HEADERS section.
13491 # No need to generate them if there are no CONFIG_HEADERS.
13492 # This happens for instance with `./config.status Makefile'.
13493 if test -n "$CONFIG_HEADERS"; then
13494 cat >"$tmp/defines.awk" <<\_ACAWK ||
13495 BEGIN {
13496 _ACEOF
13498 # Transform confdefs.h into an awk script `defines.awk', embedded as
13499 # here-document in config.status, that substitutes the proper values into
13500 # config.h.in to produce config.h.
13502 # Create a delimiter string that does not exist in confdefs.h, to ease
13503 # handling of long lines.
13504 ac_delim='%!_!# '
13505 for ac_last_try in false false :; do
13506 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13507 if test -z "$ac_t"; then
13508 break
13509 elif $ac_last_try; then
13510 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13511 else
13512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13514 done
13516 # For the awk script, D is an array of macro values keyed by name,
13517 # likewise P contains macro parameters if any. Preserve backslash
13518 # newline sequences.
13520 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13521 sed -n '
13522 s/.\{148\}/&'"$ac_delim"'/g
13523 t rset
13524 :rset
13525 s/^[ ]*#[ ]*define[ ][ ]*/ /
13526 t def
13528 :def
13529 s/\\$//
13530 t bsnl
13531 s/["\\]/\\&/g
13532 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13533 D["\1"]=" \3"/p
13534 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13536 :bsnl
13537 s/["\\]/\\&/g
13538 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13539 D["\1"]=" \3\\\\\\n"\\/p
13540 t cont
13541 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13542 t cont
13544 :cont
13546 s/.\{148\}/&'"$ac_delim"'/g
13547 t clear
13548 :clear
13549 s/\\$//
13550 t bsnlc
13551 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13553 :bsnlc
13554 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13555 b cont
13556 ' <confdefs.h | sed '
13557 s/'"$ac_delim"'/"\\\
13558 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13561 for (key in D) D_is_set[key] = 1
13562 FS = "\a"
13564 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13565 line = \$ 0
13566 split(line, arg, " ")
13567 if (arg[1] == "#") {
13568 defundef = arg[2]
13569 mac1 = arg[3]
13570 } else {
13571 defundef = substr(arg[1], 2)
13572 mac1 = arg[2]
13574 split(mac1, mac2, "(") #)
13575 macro = mac2[1]
13576 prefix = substr(line, 1, index(line, defundef) - 1)
13577 if (D_is_set[macro]) {
13578 # Preserve the white space surrounding the "#".
13579 print prefix "define", macro P[macro] D[macro]
13580 next
13581 } else {
13582 # Replace #undef with comments. This is necessary, for example,
13583 # in the case of _POSIX_SOURCE, which is predefined and required
13584 # on some systems where configure will not decide to define it.
13585 if (defundef == "undef") {
13586 print "/*", prefix defundef, macro, "*/"
13587 next
13591 { print }
13592 _ACAWK
13593 _ACEOF
13594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13595 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13596 fi # test -n "$CONFIG_HEADERS"
13599 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13600 shift
13601 for ac_tag
13603 case $ac_tag in
13604 :[FHLC]) ac_mode=$ac_tag; continue;;
13605 esac
13606 case $ac_mode$ac_tag in
13607 :[FHL]*:*);;
13608 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13609 :[FH]-) ac_tag=-:-;;
13610 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13611 esac
13612 ac_save_IFS=$IFS
13613 IFS=:
13614 set x $ac_tag
13615 IFS=$ac_save_IFS
13616 shift
13617 ac_file=$1
13618 shift
13620 case $ac_mode in
13621 :L) ac_source=$1;;
13622 :[FH])
13623 ac_file_inputs=
13624 for ac_f
13626 case $ac_f in
13627 -) ac_f="$tmp/stdin";;
13628 *) # Look for the file first in the build tree, then in the source tree
13629 # (if the path is not absolute). The absolute path cannot be DOS-style,
13630 # because $ac_f cannot contain `:'.
13631 test -f "$ac_f" ||
13632 case $ac_f in
13633 [\\/$]*) false;;
13634 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13635 esac ||
13636 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13637 esac
13638 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13639 as_fn_append ac_file_inputs " '$ac_f'"
13640 done
13642 # Let's still pretend it is `configure' which instantiates (i.e., don't
13643 # use $as_me), people would be surprised to read:
13644 # /* config.h. Generated by config.status. */
13645 configure_input='Generated from '`
13646 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13647 `' by configure.'
13648 if test x"$ac_file" != x-; then
13649 configure_input="$ac_file. $configure_input"
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13651 $as_echo "$as_me: creating $ac_file" >&6;}
13653 # Neutralize special characters interpreted by sed in replacement strings.
13654 case $configure_input in #(
13655 *\&* | *\|* | *\\* )
13656 ac_sed_conf_input=`$as_echo "$configure_input" |
13657 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13658 *) ac_sed_conf_input=$configure_input;;
13659 esac
13661 case $ac_tag in
13662 *:-:* | *:-) cat >"$tmp/stdin" \
13663 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13664 esac
13666 esac
13668 ac_dir=`$as_dirname -- "$ac_file" ||
13669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13670 X"$ac_file" : 'X\(//\)[^/]' \| \
13671 X"$ac_file" : 'X\(//\)$' \| \
13672 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13673 $as_echo X"$ac_file" |
13674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13675 s//\1/
13678 /^X\(\/\/\)[^/].*/{
13679 s//\1/
13682 /^X\(\/\/\)$/{
13683 s//\1/
13686 /^X\(\/\).*/{
13687 s//\1/
13690 s/.*/./; q'`
13691 as_dir="$ac_dir"; as_fn_mkdir_p
13692 ac_builddir=.
13694 case "$ac_dir" in
13695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13698 # A ".." for each directory in $ac_dir_suffix.
13699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13700 case $ac_top_builddir_sub in
13701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13703 esac ;;
13704 esac
13705 ac_abs_top_builddir=$ac_pwd
13706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13707 # for backward compatibility:
13708 ac_top_builddir=$ac_top_build_prefix
13710 case $srcdir in
13711 .) # We are building in place.
13712 ac_srcdir=.
13713 ac_top_srcdir=$ac_top_builddir_sub
13714 ac_abs_top_srcdir=$ac_pwd ;;
13715 [\\/]* | ?:[\\/]* ) # Absolute name.
13716 ac_srcdir=$srcdir$ac_dir_suffix;
13717 ac_top_srcdir=$srcdir
13718 ac_abs_top_srcdir=$srcdir ;;
13719 *) # Relative name.
13720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13721 ac_top_srcdir=$ac_top_build_prefix$srcdir
13722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13723 esac
13724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13727 case $ac_mode in
13730 # CONFIG_FILE
13733 case $INSTALL in
13734 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13735 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13736 esac
13737 ac_MKDIR_P=$MKDIR_P
13738 case $MKDIR_P in
13739 [\\/$]* | ?:[\\/]* ) ;;
13740 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13741 esac
13742 _ACEOF
13744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13745 # If the template does not know about datarootdir, expand it.
13746 # FIXME: This hack should be removed a few years after 2.60.
13747 ac_datarootdir_hack=; ac_datarootdir_seen=
13748 ac_sed_dataroot='
13749 /datarootdir/ {
13753 /@datadir@/p
13754 /@docdir@/p
13755 /@infodir@/p
13756 /@localedir@/p
13757 /@mandir@/p'
13758 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13759 *datarootdir*) ac_datarootdir_seen=yes;;
13760 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13762 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13763 _ACEOF
13764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13765 ac_datarootdir_hack='
13766 s&@datadir@&$datadir&g
13767 s&@docdir@&$docdir&g
13768 s&@infodir@&$infodir&g
13769 s&@localedir@&$localedir&g
13770 s&@mandir@&$mandir&g
13771 s&\\\${datarootdir}&$datarootdir&g' ;;
13772 esac
13773 _ACEOF
13775 # Neutralize VPATH when `$srcdir' = `.'.
13776 # Shell code in configure.ac might set extrasub.
13777 # FIXME: do we really want to maintain this feature?
13778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13779 ac_sed_extra="$ac_vpsub
13780 $extrasub
13781 _ACEOF
13782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13785 s|@configure_input@|$ac_sed_conf_input|;t t
13786 s&@top_builddir@&$ac_top_builddir_sub&;t t
13787 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13788 s&@srcdir@&$ac_srcdir&;t t
13789 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13790 s&@top_srcdir@&$ac_top_srcdir&;t t
13791 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13792 s&@builddir@&$ac_builddir&;t t
13793 s&@abs_builddir@&$ac_abs_builddir&;t t
13794 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13795 s&@INSTALL@&$ac_INSTALL&;t t
13796 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13797 $ac_datarootdir_hack
13799 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13800 || as_fn_error "could not create $ac_file" "$LINENO" 5
13802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13803 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13804 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13806 which seems to be undefined. Please make sure it is defined." >&5
13807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13808 which seems to be undefined. Please make sure it is defined." >&2;}
13810 rm -f "$tmp/stdin"
13811 case $ac_file in
13812 -) cat "$tmp/out" && rm -f "$tmp/out";;
13813 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13814 esac \
13815 || as_fn_error "could not create $ac_file" "$LINENO" 5
13819 # CONFIG_HEADER
13821 if test x"$ac_file" != x-; then
13823 $as_echo "/* $configure_input */" \
13824 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13825 } >"$tmp/config.h" \
13826 || as_fn_error "could not create $ac_file" "$LINENO" 5
13827 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13829 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13830 else
13831 rm -f "$ac_file"
13832 mv "$tmp/config.h" "$ac_file" \
13833 || as_fn_error "could not create $ac_file" "$LINENO" 5
13835 else
13836 $as_echo "/* $configure_input */" \
13837 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13838 || as_fn_error "could not create -" "$LINENO" 5
13840 # Compute "$ac_file"'s index in $config_headers.
13841 _am_arg="$ac_file"
13842 _am_stamp_count=1
13843 for _am_header in $config_headers :; do
13844 case $_am_header in
13845 $_am_arg | $_am_arg:* )
13846 break ;;
13848 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13849 esac
13850 done
13851 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13852 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13853 X"$_am_arg" : 'X\(//\)[^/]' \| \
13854 X"$_am_arg" : 'X\(//\)$' \| \
13855 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13856 $as_echo X"$_am_arg" |
13857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13858 s//\1/
13861 /^X\(\/\/\)[^/].*/{
13862 s//\1/
13865 /^X\(\/\/\)$/{
13866 s//\1/
13869 /^X\(\/\).*/{
13870 s//\1/
13873 s/.*/./; q'`/stamp-h$_am_stamp_count
13876 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13877 $as_echo "$as_me: executing $ac_file commands" >&6;}
13879 esac
13882 case $ac_file$ac_mode in
13883 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13884 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13885 # are listed without --file. Let's play safe and only enable the eval
13886 # if we detect the quoting.
13887 case $CONFIG_FILES in
13888 *\'*) eval set x "$CONFIG_FILES" ;;
13889 *) set x $CONFIG_FILES ;;
13890 esac
13891 shift
13892 for mf
13894 # Strip MF so we end up with the name of the file.
13895 mf=`echo "$mf" | sed -e 's/:.*$//'`
13896 # Check whether this is an Automake generated Makefile or not.
13897 # We used to match only the files named `Makefile.in', but
13898 # some people rename them; so instead we look at the file content.
13899 # Grep'ing the first line is not enough: some people post-process
13900 # each Makefile.in and add a new line on top of each file to say so.
13901 # Grep'ing the whole file is not good either: AIX grep has a line
13902 # limit of 2048, but all sed's we know have understand at least 4000.
13903 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13904 dirpart=`$as_dirname -- "$mf" ||
13905 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13906 X"$mf" : 'X\(//\)[^/]' \| \
13907 X"$mf" : 'X\(//\)$' \| \
13908 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13909 $as_echo X"$mf" |
13910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13911 s//\1/
13914 /^X\(\/\/\)[^/].*/{
13915 s//\1/
13918 /^X\(\/\/\)$/{
13919 s//\1/
13922 /^X\(\/\).*/{
13923 s//\1/
13926 s/.*/./; q'`
13927 else
13928 continue
13930 # Extract the definition of DEPDIR, am__include, and am__quote
13931 # from the Makefile without running `make'.
13932 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13933 test -z "$DEPDIR" && continue
13934 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13935 test -z "am__include" && continue
13936 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13937 # When using ansi2knr, U may be empty or an underscore; expand it
13938 U=`sed -n 's/^U = //p' < "$mf"`
13939 # Find all dependency output files, they are included files with
13940 # $(DEPDIR) in their names. We invoke sed twice because it is the
13941 # simplest approach to changing $(DEPDIR) to its actual value in the
13942 # expansion.
13943 for file in `sed -n "
13944 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13945 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13946 # Make sure the directory exists.
13947 test -f "$dirpart/$file" && continue
13948 fdir=`$as_dirname -- "$file" ||
13949 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13950 X"$file" : 'X\(//\)[^/]' \| \
13951 X"$file" : 'X\(//\)$' \| \
13952 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13953 $as_echo X"$file" |
13954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13955 s//\1/
13958 /^X\(\/\/\)[^/].*/{
13959 s//\1/
13962 /^X\(\/\/\)$/{
13963 s//\1/
13966 /^X\(\/\).*/{
13967 s//\1/
13970 s/.*/./; q'`
13971 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13972 # echo "creating $dirpart/$file"
13973 echo '# dummy' > "$dirpart/$file"
13974 done
13975 done
13978 "po-directories":C)
13979 for ac_file in $CONFIG_FILES; do
13980 # Support "outfile[:infile[:infile...]]"
13981 case "$ac_file" in
13982 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13983 esac
13984 # PO directories have a Makefile.in generated from Makefile.in.in.
13985 case "$ac_file" in */Makefile.in)
13986 # Adjust a relative srcdir.
13987 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13988 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13989 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13990 # In autoconf-2.13 it is called $ac_given_srcdir.
13991 # In autoconf-2.50 it is called $srcdir.
13992 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13993 case "$ac_given_srcdir" in
13994 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13995 /*) top_srcdir="$ac_given_srcdir" ;;
13996 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13997 esac
13998 # Treat a directory as a PO directory if and only if it has a
13999 # POTFILES.in file. This allows packages to have multiple PO
14000 # directories under different names or in different locations.
14001 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14002 rm -f "$ac_dir/POTFILES"
14003 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14004 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14005 POMAKEFILEDEPS="POTFILES.in"
14006 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14007 # on $ac_dir but don't depend on user-specified configuration
14008 # parameters.
14009 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14010 # The LINGUAS file contains the set of available languages.
14011 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14012 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14014 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14015 # Hide the ALL_LINGUAS assigment from automake < 1.5.
14016 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14017 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14018 else
14019 # The set of available languages was given in configure.in.
14020 # Hide the ALL_LINGUAS assigment from automake < 1.5.
14021 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14023 # Compute POFILES
14024 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14025 # Compute UPDATEPOFILES
14026 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14027 # Compute DUMMYPOFILES
14028 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14029 # Compute GMOFILES
14030 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14031 case "$ac_given_srcdir" in
14032 .) srcdirpre= ;;
14033 *) srcdirpre='$(srcdir)/' ;;
14034 esac
14035 POFILES=
14036 UPDATEPOFILES=
14037 DUMMYPOFILES=
14038 GMOFILES=
14039 for lang in $ALL_LINGUAS; do
14040 POFILES="$POFILES $srcdirpre$lang.po"
14041 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14042 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14043 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14044 done
14045 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14046 # environment variable.
14047 INST_LINGUAS=
14048 if test -n "$ALL_LINGUAS"; then
14049 for presentlang in $ALL_LINGUAS; do
14050 useit=no
14051 if test "%UNSET%" != "$LINGUAS"; then
14052 desiredlanguages="$LINGUAS"
14053 else
14054 desiredlanguages="$ALL_LINGUAS"
14056 for desiredlang in $desiredlanguages; do
14057 # Use the presentlang catalog if desiredlang is
14058 # a. equal to presentlang, or
14059 # b. a variant of presentlang (because in this case,
14060 # presentlang can be used as a fallback for messages
14061 # which are not translated in the desiredlang catalog).
14062 case "$desiredlang" in
14063 "$presentlang"*) useit=yes;;
14064 esac
14065 done
14066 if test $useit = yes; then
14067 INST_LINGUAS="$INST_LINGUAS $presentlang"
14069 done
14071 CATALOGS=
14072 if test -n "$INST_LINGUAS"; then
14073 for lang in $INST_LINGUAS; do
14074 CATALOGS="$CATALOGS $lang.gmo"
14075 done
14077 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14078 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14079 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14080 if test -f "$f"; then
14081 case "$f" in
14082 *.orig | *.bak | *~) ;;
14083 *) cat "$f" >> "$ac_dir/Makefile" ;;
14084 esac
14086 done
14089 esac
14090 done ;;
14092 esac
14093 done # for ac_tag
14096 as_fn_exit 0
14097 _ACEOF
14098 ac_clean_files=$ac_clean_files_save
14100 test $ac_write_fail = 0 ||
14101 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14104 # configure is writing to config.log, and then calls config.status.
14105 # config.status does its own redirection, appending to config.log.
14106 # Unfortunately, on DOS this fails, as config.log is still kept open
14107 # by configure, so config.status won't be able to write to it; its
14108 # output is simply discarded. So we exec the FD to /dev/null,
14109 # effectively closing config.log, so it can be properly (re)opened and
14110 # appended to by config.status. When coming back to configure, we
14111 # need to make the FD available again.
14112 if test "$no_create" != yes; then
14113 ac_cs_success=:
14114 ac_config_status_args=
14115 test "$silent" = yes &&
14116 ac_config_status_args="$ac_config_status_args --quiet"
14117 exec 5>/dev/null
14118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14119 exec 5>>config.log
14120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14121 # would make configure fail if this is the last instruction.
14122 $ac_cs_success || as_fn_exit $?
14124 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14126 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14130 echo
14131 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"
14132 echo