- Set LIBS instead of LDFLAGS (LIBS are appended while LDFLAGS are prepended
[gliv.git] / configure
blob9ba32b1f7d16e9d16bf78a257a1019d724c6e79b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 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, 2010 Free Software
10 # Foundation, 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&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, old GNU/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 gl_use_threads_default=
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 POSUB
605 LTLIBINTL
606 LIBINTL
607 INTLLIBS
608 INTL_LIBTOOL_SUFFIX_PREFIX
609 INTLOBJS
610 GENCAT
611 INSTOBJEXT
612 DATADIRNAME
613 CATOBJEXT
614 USE_INCLUDED_LIBINTL
615 BUILD_INCLUDED_LIBINTL
616 LTLIBC
617 WINDRES
618 WOE32
619 WOE32DLL
620 HAVE_WPRINTF
621 HAVE_NEWLOCALE
622 HAVE_SNPRINTF
623 HAVE_ASPRINTF
624 HAVE_POSIX_PRINTF
625 INTL_DEFAULT_VERBOSITY
626 INTL_MACOSX_LIBS
627 GLIBC21
628 INTLBISON
629 LTLIBICONV
630 LIBICONV
631 LTLIBMULTITHREAD
632 LIBMULTITHREAD
633 LTLIBTHREAD
634 LIBTHREAD
635 LIBPTH_PREFIX
636 LTLIBPTH
637 LIBPTH
638 PRI_MACROS_BROKEN
639 ALLOCA
640 HAVE_VISIBILITY
641 CFLAG_VISIBILITY
642 GLIBC2
643 host_os
644 host_vendor
645 host_cpu
646 host
647 build_os
648 build_vendor
649 build_cpu
650 build
651 XGETTEXT_EXTRA_OPTIONS
652 MSGMERGE
653 XGETTEXT_015
654 XGETTEXT
655 GMSGFMT_015
656 MSGFMT_015
657 GMSGFMT
658 MSGFMT
659 GETTEXT_MACRO_VERSION
660 USE_NLS
661 GTK_LIBS
662 GTK_CFLAGS
663 GTKGLEXT_LIBS
664 GTKGLEXT_CFLAGS
665 PKG_CONFIG_LIBDIR
666 PKG_CONFIG_PATH
667 PKG_CONFIG
668 X_EXTRA_LIBS
669 X_LIBS
670 X_PRE_LIBS
671 X_CFLAGS
672 XMKMF
673 NEED_REPLACEMENTS_FALSE
674 NEED_REPLACEMENTS_TRUE
675 GETOPT_LONG_FALSE
676 GETOPT_LONG_TRUE
677 GETDELIM_FALSE
678 GETDELIM_TRUE
679 RANLIB
680 EGREP
681 GREP
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_dependency_tracking
764 enable_largefile
765 with_x
766 enable_gtktest
767 enable_nls
768 enable_threads
769 with_gnu_ld
770 enable_rpath
771 with_libpth_prefix
772 with_libiconv_prefix
773 with_included_gettext
774 with_libintl_prefix
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
785 XMKMF
786 PKG_CONFIG
787 PKG_CONFIG_PATH
788 PKG_CONFIG_LIBDIR
789 GTKGLEXT_CFLAGS
790 GTKGLEXT_LIBS'
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
841 ac_prev=
842 ac_dashdash=
843 for ac_option
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
858 # Accept the important Cygnus configure options, so we can diagnose typos.
860 case $ac_dashdash$ac_option in
862 ac_dashdash=yes ;;
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
881 --config-cache | -C)
882 cache_file=config.cache ;;
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1126 -with-* | --with-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 esac
1199 done
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
1228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233 done
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1247 If a cross compiler is detected then cross compile mode will be used" >&2
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256 test "$silent" = yes && exec 6>/dev/null
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error $? "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error $? "pwd does not report name of working directory"
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1285 /^X\(\/\/\)$/{
1286 s//\1/
1289 /^X\(\/\).*/{
1290 s//\1/
1293 s/.*/./; q'`
1294 srcdir=$ac_confdir
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 srcdir=..
1298 else
1299 ac_srcdir_defaulted=no
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1327 # Report the --help message.
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures gliv 1.9.7 to adapt to many kinds of systems.
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1340 Defaults for the options are specified in brackets.
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking ...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1364 For better control, use the options below.
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/gliv]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1388 cat <<\_ACEOF
1390 Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395 X features:
1396 --x-includes=DIR X include files are in DIR
1397 --x-libraries=DIR X library files are in DIR
1399 System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 _ACEOF
1405 if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of gliv 1.9.7:";;
1408 esac
1409 cat <<\_ACEOF
1411 Optional Features:
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --disable-dependency-tracking speeds up one-time build
1416 --enable-dependency-tracking do not reject slow dependency extractors
1417 --disable-largefile omit support for large files
1418 --disable-gtktest do not try to compile and run a test GTK+ program
1419 --disable-nls do not use Native Language Support
1420 --enable-threads={posix|solaris|pth|win32}
1421 specify multithreading API
1422 --disable-threads build without multithread safety
1423 --disable-rpath do not hardcode runtime library paths
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-x use the X Window System
1429 --with-gnu-ld assume the C compiler uses GNU ld default=no
1430 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1431 --without-libpth-prefix don't search for libpth in includedir and libdir
1432 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1433 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1434 --with-included-gettext use the GNU gettext library included here
1435 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1436 --without-libintl-prefix don't search for libintl in includedir and libdir
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CPP C preprocessor
1447 XMKMF Path to xmkmf, Makefile generator for X Window System
1448 PKG_CONFIG path to pkg-config utility
1449 PKG_CONFIG_PATH
1450 directories to add to pkg-config's search path
1451 PKG_CONFIG_LIBDIR
1452 path overriding pkg-config's built-in search path
1453 GTKGLEXT_CFLAGS
1454 C compiler flags for GTKGLEXT, overriding pkg-config
1455 GTKGLEXT_LIBS
1456 linker flags for GTKGLEXT, overriding pkg-config
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1461 Report bugs to <guichaz@gmail.com>.
1462 _ACEOF
1463 ac_status=$?
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
1472 ac_builddir=.
1474 case "$ac_dir" in
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484 esac
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1490 case $srcdir in
1491 .) # We are building in place.
1492 ac_srcdir=.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 esac
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523 cat <<\_ACEOF
1524 gliv configure 1.9.7
1525 generated by GNU Autoconf 2.67
1527 Copyright (C) 2010 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1569 ac_retval=1
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 as_fn_set_status $ac_retval
1574 } # ac_fn_c_try_compile
1576 # ac_fn_c_try_cpp LINENO
1577 # ----------------------
1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_cpp ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } > conftest.i && {
1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=1
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609 as_fn_set_status $ac_retval
1611 } # ac_fn_c_try_cpp
1613 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1614 # -------------------------------------------------------
1615 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1616 # the include files in INCLUDES and setting the cache variable VAR
1617 # accordingly.
1618 ac_fn_c_check_header_mongrel ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if eval "test \"\${$3+set}\"" = set; then :
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval "test \"\${$3+set}\"" = set; then :
1625 $as_echo_n "(cached) " >&6
1627 eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 else
1631 # Is the header compilable?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1633 $as_echo_n "checking $2 usability... " >&6; }
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 ac_header_compiler=yes
1641 else
1642 ac_header_compiler=no
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1646 $as_echo "$ac_header_compiler" >&6; }
1648 # Is the header present?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1650 $as_echo_n "checking $2 presence... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_cpp "$LINENO"; then :
1656 ac_header_preproc=yes
1657 else
1658 ac_header_preproc=no
1660 rm -f conftest.err conftest.i conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1662 $as_echo "$ac_header_preproc" >&6; }
1664 # So? What about this header?
1665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1666 yes:no: )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1668 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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;}
1672 no:yes:* )
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1674 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1676 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1678 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1680 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1682 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 ( $as_echo "## -------------------------------- ##
1684 ## Report this to guichaz@gmail.com ##
1685 ## -------------------------------- ##"
1686 ) | sed "s/^/$as_me: WARNING: /" >&2
1688 esac
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval "test \"\${$3+set}\"" = set; then :
1692 $as_echo_n "(cached) " >&6
1693 else
1694 eval "$3=\$ac_header_compiler"
1696 eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 } # ac_fn_c_check_header_mongrel
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1708 ac_fn_c_try_run ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
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_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=$ac_status
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_run
1746 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists and can be compiled using the include files in
1749 # INCLUDES, setting the cache variable VAR accordingly.
1750 ac_fn_c_check_header_compile ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval "test \"\${$3+set}\"" = set; then :
1756 $as_echo_n "(cached) " >&6
1757 else
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 eval "$3=yes"
1765 else
1766 eval "$3=no"
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 } # ac_fn_c_check_header_compile
1777 # ac_fn_c_try_link LINENO
1778 # -----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_link ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext conftest$ac_exeext
1784 if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest$ac_exeext && {
1803 test "$cross_compiling" = yes ||
1804 $as_test_x conftest$ac_exeext
1805 }; then :
1806 ac_retval=0
1807 else
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1811 ac_retval=1
1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815 # interfere with the next link command; also delete a directory that is
1816 # left behind by Apple's compiler. We do this before executing the actions.
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 as_fn_set_status $ac_retval
1821 } # ac_fn_c_try_link
1823 # ac_fn_c_check_func LINENO FUNC VAR
1824 # ----------------------------------
1825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1826 ac_fn_c_check_func ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval "test \"\${$3+set}\"" = set; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838 #define $2 innocuous_$2
1840 /* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1845 #ifdef __STDC__
1846 # include <limits.h>
1847 #else
1848 # include <assert.h>
1849 #endif
1851 #undef $2
1853 /* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1856 #ifdef __cplusplus
1857 extern "C"
1858 #endif
1859 char $2 ();
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined __stub_$2 || defined __stub___$2
1864 choke me
1865 #endif
1868 main ()
1870 return $2 ();
1872 return 0;
1874 _ACEOF
1875 if ac_fn_c_try_link "$LINENO"; then :
1876 eval "$3=yes"
1877 else
1878 eval "$3=no"
1880 rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 } # ac_fn_c_check_func
1890 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1891 # --------------------------------------------
1892 # Tries to find the compile-time value of EXPR in a program that includes
1893 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1894 # computed
1895 ac_fn_c_compute_int ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if test "$cross_compiling" = yes; then
1899 # Depending upon the size, compute the lo and hi bounds.
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1904 main ()
1906 static int test_array [1 - 2 * !(($2) >= 0)];
1907 test_array [0] = 0
1910 return 0;
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_lo=0 ac_mid=0
1915 while :; do
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1920 main ()
1922 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1923 test_array [0] = 0
1926 return 0;
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_hi=$ac_mid; break
1931 else
1932 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1933 if test $ac_lo -le $ac_mid; then
1934 ac_lo= ac_hi=
1935 break
1937 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 done
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1946 main ()
1948 static int test_array [1 - 2 * !(($2) < 0)];
1949 test_array [0] = 0
1952 return 0;
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_hi=-1 ac_mid=-1
1957 while :; do
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1962 main ()
1964 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1965 test_array [0] = 0
1968 return 0;
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 ac_lo=$ac_mid; break
1973 else
1974 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1975 if test $ac_mid -le $ac_hi; then
1976 ac_lo= ac_hi=
1977 break
1979 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 done
1983 else
1984 ac_lo= ac_hi=
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 # Binary search between lo and hi bounds.
1990 while test "x$ac_lo" != "x$ac_hi"; do
1991 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1996 main ()
1998 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1999 test_array [0] = 0
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_hi=$ac_mid
2007 else
2008 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 done
2012 case $ac_lo in #((
2013 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2014 '') ac_retval=1 ;;
2015 esac
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2020 static long int longval () { return $2; }
2021 static unsigned long int ulongval () { return $2; }
2022 #include <stdio.h>
2023 #include <stdlib.h>
2025 main ()
2028 FILE *f = fopen ("conftest.val", "w");
2029 if (! f)
2030 return 1;
2031 if (($2) < 0)
2033 long int i = longval ();
2034 if (i != ($2))
2035 return 1;
2036 fprintf (f, "%ld", i);
2038 else
2040 unsigned long int i = ulongval ();
2041 if (i != ($2))
2042 return 1;
2043 fprintf (f, "%lu", i);
2045 /* Do not output a trailing newline, as this causes \r\n confusion
2046 on some platforms. */
2047 return ferror (f) || fclose (f) != 0;
2050 return 0;
2052 _ACEOF
2053 if ac_fn_c_try_run "$LINENO"; then :
2054 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2055 else
2056 ac_retval=1
2058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2059 conftest.$ac_objext conftest.beam conftest.$ac_ext
2060 rm -f conftest.val
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 as_fn_set_status $ac_retval
2066 } # ac_fn_c_compute_int
2068 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2069 # -------------------------------------------
2070 # Tests whether TYPE exists after having included INCLUDES, setting cache
2071 # variable VAR accordingly.
2072 ac_fn_c_check_type ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076 $as_echo_n "checking for $2... " >&6; }
2077 if eval "test \"\${$3+set}\"" = set; then :
2078 $as_echo_n "(cached) " >&6
2079 else
2080 eval "$3=no"
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 if (sizeof ($2))
2088 return 0;
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 main ()
2100 if (sizeof (($2)))
2101 return 0;
2103 return 0;
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2108 else
2109 eval "$3=yes"
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120 } # ac_fn_c_check_type
2121 cat >config.log <<_ACEOF
2122 This file contains any messages produced by compilers while
2123 running configure, to aid debugging if configure makes a mistake.
2125 It was created by gliv $as_me 1.9.7, which was
2126 generated by GNU Autoconf 2.67. Invocation command line was
2128 $ $0 $@
2130 _ACEOF
2131 exec 5>>config.log
2133 cat <<_ASUNAME
2134 ## --------- ##
2135 ## Platform. ##
2136 ## --------- ##
2138 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2139 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2140 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2141 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2142 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2144 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2145 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2147 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2148 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2149 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2150 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2151 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2152 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2153 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2155 _ASUNAME
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
2162 $as_echo "PATH: $as_dir"
2163 done
2164 IFS=$as_save_IFS
2166 } >&5
2168 cat >&5 <<_ACEOF
2171 ## ----------- ##
2172 ## Core tests. ##
2173 ## ----------- ##
2175 _ACEOF
2178 # Keep a trace of the command line.
2179 # Strip out --no-create and --no-recursion so they do not pile up.
2180 # Strip out --silent because we don't want to record it for future runs.
2181 # Also quote any args containing shell meta-characters.
2182 # Make two passes to allow for proper duplicate-argument suppression.
2183 ac_configure_args=
2184 ac_configure_args0=
2185 ac_configure_args1=
2186 ac_must_keep_next=false
2187 for ac_pass in 1 2
2189 for ac_arg
2191 case $ac_arg in
2192 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2194 | -silent | --silent | --silen | --sile | --sil)
2195 continue ;;
2196 *\'*)
2197 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2198 esac
2199 case $ac_pass in
2200 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2202 as_fn_append ac_configure_args1 " '$ac_arg'"
2203 if test $ac_must_keep_next = true; then
2204 ac_must_keep_next=false # Got value, back to normal.
2205 else
2206 case $ac_arg in
2207 *=* | --config-cache | -C | -disable-* | --disable-* \
2208 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2209 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2210 | -with-* | --with-* | -without-* | --without-* | --x)
2211 case "$ac_configure_args0 " in
2212 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2213 esac
2215 -* ) ac_must_keep_next=true ;;
2216 esac
2218 as_fn_append ac_configure_args " '$ac_arg'"
2220 esac
2221 done
2222 done
2223 { ac_configure_args0=; unset ac_configure_args0;}
2224 { ac_configure_args1=; unset ac_configure_args1;}
2226 # When interrupted or exit'd, cleanup temporary files, and complete
2227 # config.log. We remove comments because anyway the quotes in there
2228 # would cause problems or look ugly.
2229 # WARNING: Use '\'' to represent an apostrophe within the trap.
2230 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2231 trap 'exit_status=$?
2232 # Save into config.log some information that might help in debugging.
2234 echo
2236 $as_echo "## ---------------- ##
2237 ## Cache variables. ##
2238 ## ---------------- ##"
2239 echo
2240 # The following way of writing the cache mishandles newlines in values,
2242 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2243 eval ac_val=\$$ac_var
2244 case $ac_val in #(
2245 *${as_nl}*)
2246 case $ac_var in #(
2247 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2248 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2249 esac
2250 case $ac_var in #(
2251 _ | IFS | as_nl) ;; #(
2252 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2253 *) { eval $ac_var=; unset $ac_var;} ;;
2254 esac ;;
2255 esac
2256 done
2257 (set) 2>&1 |
2258 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2259 *${as_nl}ac_space=\ *)
2260 sed -n \
2261 "s/'\''/'\''\\\\'\'''\''/g;
2262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2263 ;; #(
2265 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2267 esac |
2268 sort
2270 echo
2272 $as_echo "## ----------------- ##
2273 ## Output variables. ##
2274 ## ----------------- ##"
2275 echo
2276 for ac_var in $ac_subst_vars
2278 eval ac_val=\$$ac_var
2279 case $ac_val in
2280 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281 esac
2282 $as_echo "$ac_var='\''$ac_val'\''"
2283 done | sort
2284 echo
2286 if test -n "$ac_subst_files"; then
2287 $as_echo "## ------------------- ##
2288 ## File substitutions. ##
2289 ## ------------------- ##"
2290 echo
2291 for ac_var in $ac_subst_files
2293 eval ac_val=\$$ac_var
2294 case $ac_val in
2295 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296 esac
2297 $as_echo "$ac_var='\''$ac_val'\''"
2298 done | sort
2299 echo
2302 if test -s confdefs.h; then
2303 $as_echo "## ----------- ##
2304 ## confdefs.h. ##
2305 ## ----------- ##"
2306 echo
2307 cat confdefs.h
2308 echo
2310 test "$ac_signal" != 0 &&
2311 $as_echo "$as_me: caught signal $ac_signal"
2312 $as_echo "$as_me: exit $exit_status"
2313 } >&5
2314 rm -f core *.core core.conftest.* &&
2315 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2316 exit $exit_status
2318 for ac_signal in 1 2 13 15; do
2319 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2320 done
2321 ac_signal=0
2323 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2324 rm -f -r conftest* confdefs.h
2326 $as_echo "/* confdefs.h */" > confdefs.h
2328 # Predefined preprocessor variables.
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_NAME "$PACKAGE_NAME"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2336 _ACEOF
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2340 _ACEOF
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_STRING "$PACKAGE_STRING"
2344 _ACEOF
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2348 _ACEOF
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_URL "$PACKAGE_URL"
2352 _ACEOF
2355 # Let the site file select an alternate cache file if it wants to.
2356 # Prefer an explicitly selected file to automatically selected ones.
2357 ac_site_file1=NONE
2358 ac_site_file2=NONE
2359 if test -n "$CONFIG_SITE"; then
2360 # We do not want a PATH search for config.site.
2361 case $CONFIG_SITE in #((
2362 -*) ac_site_file1=./$CONFIG_SITE;;
2363 */*) ac_site_file1=$CONFIG_SITE;;
2364 *) ac_site_file1=./$CONFIG_SITE;;
2365 esac
2366 elif test "x$prefix" != xNONE; then
2367 ac_site_file1=$prefix/share/config.site
2368 ac_site_file2=$prefix/etc/config.site
2369 else
2370 ac_site_file1=$ac_default_prefix/share/config.site
2371 ac_site_file2=$ac_default_prefix/etc/config.site
2373 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2375 test "x$ac_site_file" = xNONE && continue
2376 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2378 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2379 sed 's/^/| /' "$ac_site_file" >&5
2380 . "$ac_site_file" \
2381 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383 as_fn_error $? "failed to load site script $ac_site_file
2384 See \`config.log' for more details" "$LINENO" 5 ; }
2386 done
2388 if test -r "$cache_file"; then
2389 # Some versions of bash will fail to source /dev/null (special files
2390 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2391 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2393 $as_echo "$as_me: loading cache $cache_file" >&6;}
2394 case $cache_file in
2395 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2396 *) . "./$cache_file";;
2397 esac
2399 else
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2401 $as_echo "$as_me: creating cache $cache_file" >&6;}
2402 >$cache_file
2405 gt_needs="$gt_needs "
2406 as_fn_append ac_header_list " stdlib.h"
2407 as_fn_append ac_header_list " unistd.h"
2408 as_fn_append ac_header_list " sys/param.h"
2409 # Check that the precious variables saved in the cache have kept the same
2410 # value.
2411 ac_cache_corrupted=false
2412 for ac_var in $ac_precious_vars; do
2413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2414 eval ac_new_set=\$ac_env_${ac_var}_set
2415 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2416 eval ac_new_val=\$ac_env_${ac_var}_value
2417 case $ac_old_set,$ac_new_set in
2418 set,)
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2420 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2421 ac_cache_corrupted=: ;;
2422 ,set)
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2425 ac_cache_corrupted=: ;;
2426 ,);;
2428 if test "x$ac_old_val" != "x$ac_new_val"; then
2429 # differences in whitespace do not lead to failure.
2430 ac_old_val_w=`echo x $ac_old_val`
2431 ac_new_val_w=`echo x $ac_new_val`
2432 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2434 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2435 ac_cache_corrupted=:
2436 else
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2438 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2439 eval $ac_var=\$ac_old_val
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2442 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2444 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2445 fi;;
2446 esac
2447 # Pass precious variables to config.status.
2448 if test "$ac_new_set" = set; then
2449 case $ac_new_val in
2450 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2451 *) ac_arg=$ac_var=$ac_new_val ;;
2452 esac
2453 case " $ac_configure_args " in
2454 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2455 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2456 esac
2458 done
2459 if $ac_cache_corrupted; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2463 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2464 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2466 ## -------------------- ##
2467 ## Main body of script. ##
2468 ## -------------------- ##
2470 ac_ext=c
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2478 am__api_version='1.11'
2480 ac_aux_dir=
2481 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2482 if test -f "$ac_dir/install-sh"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/install-sh -c"
2485 break
2486 elif test -f "$ac_dir/install.sh"; then
2487 ac_aux_dir=$ac_dir
2488 ac_install_sh="$ac_aux_dir/install.sh -c"
2489 break
2490 elif test -f "$ac_dir/shtool"; then
2491 ac_aux_dir=$ac_dir
2492 ac_install_sh="$ac_aux_dir/shtool install -c"
2493 break
2495 done
2496 if test -z "$ac_aux_dir"; then
2497 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2500 # These three variables are undocumented and unsupported,
2501 # and are intended to be withdrawn in a future Autoconf release.
2502 # They can cause serious problems if a builder's source tree is in a directory
2503 # whose full name contains unusual characters.
2504 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2505 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2506 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2509 # Find a good install program. We prefer a C program (faster),
2510 # so one script is as good as another. But avoid the broken or
2511 # incompatible versions:
2512 # SysV /etc/install, /usr/sbin/install
2513 # SunOS /usr/etc/install
2514 # IRIX /sbin/install
2515 # AIX /bin/install
2516 # AmigaOS /C/install, which installs bootblocks on floppy discs
2517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2520 # OS/2's system install, which has a completely different semantic
2521 # ./install, which can be erroneously created by make from ./install.sh.
2522 # Reject install programs that cannot install multiple files.
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2524 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2525 if test -z "$INSTALL"; then
2526 if test "${ac_cv_path_install+set}" = set; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 # Account for people who put trailing slashes in PATH elements.
2535 case $as_dir/ in #((
2536 ./ | .// | /[cC]/* | \
2537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2538 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2539 /usr/ucb/* ) ;;
2541 # OSF1 and SCO ODT 3.0 have their own names for install.
2542 # Don't use installbsd from OSF since it installs stuff as root
2543 # by default.
2544 for ac_prog in ginstall scoinst install; do
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2547 if test $ac_prog = install &&
2548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549 # AIX install. It has an incompatible calling convention.
2551 elif test $ac_prog = install &&
2552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553 # program-specific install script used by HP pwplus--don't use.
2555 else
2556 rm -rf conftest.one conftest.two conftest.dir
2557 echo one > conftest.one
2558 echo two > conftest.two
2559 mkdir conftest.dir
2560 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2561 test -s conftest.one && test -s conftest.two &&
2562 test -s conftest.dir/conftest.one &&
2563 test -s conftest.dir/conftest.two
2564 then
2565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2566 break 3
2570 done
2571 done
2573 esac
2575 done
2576 IFS=$as_save_IFS
2578 rm -rf conftest.one conftest.two conftest.dir
2581 if test "${ac_cv_path_install+set}" = set; then
2582 INSTALL=$ac_cv_path_install
2583 else
2584 # As a last resort, use the slow shell script. Don't cache a
2585 # value for INSTALL within a source directory, because that will
2586 # break other packages using the cache if that directory is
2587 # removed, or if the value is a relative name.
2588 INSTALL=$ac_install_sh
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2592 $as_echo "$INSTALL" >&6; }
2594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2595 # It thinks the first close brace ends the variable substitution.
2596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2603 $as_echo_n "checking whether build environment is sane... " >&6; }
2604 # Just in case
2605 sleep 1
2606 echo timestamp > conftest.file
2607 # Reject unsafe characters in $srcdir or the absolute working directory
2608 # name. Accept space and tab only in the latter.
2609 am_lf='
2611 case `pwd` in
2612 *[\\\"\#\$\&\'\`$am_lf]*)
2613 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2614 esac
2615 case $srcdir in
2616 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2617 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2618 esac
2620 # Do `set' in a subshell so we don't clobber the current shell's
2621 # arguments. Must try -L first in case configure is actually a
2622 # symlink; some systems play weird games with the mod time of symlinks
2623 # (eg FreeBSD returns the mod time of the symlink's containing
2624 # directory).
2625 if (
2626 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2627 if test "$*" = "X"; then
2628 # -L didn't work.
2629 set X `ls -t "$srcdir/configure" conftest.file`
2631 rm -f conftest.file
2632 if test "$*" != "X $srcdir/configure conftest.file" \
2633 && test "$*" != "X conftest.file $srcdir/configure"; then
2635 # If neither matched, then we have a broken ls. This can happen
2636 # if, for instance, CONFIG_SHELL is bash and it inherits a
2637 # broken ls alias from the environment. This has actually
2638 # happened. Such a system could not be considered "sane".
2639 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2640 alias in your environment" "$LINENO" 5
2643 test "$2" = conftest.file
2645 then
2646 # Ok.
2648 else
2649 as_fn_error $? "newly created file is older than distributed files!
2650 Check your system clock" "$LINENO" 5
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2653 $as_echo "yes" >&6; }
2654 test "$program_prefix" != NONE &&
2655 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2656 # Use a double $ so make ignores it.
2657 test "$program_suffix" != NONE &&
2658 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2659 # Double any \ or $.
2660 # By default was `s,x,x', remove it if useless.
2661 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2662 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2664 # expand $ac_aux_dir to an absolute path
2665 am_aux_dir=`cd $ac_aux_dir && pwd`
2667 if test x"${MISSING+set}" != xset; then
2668 case $am_aux_dir in
2669 *\ * | *\ *)
2670 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2672 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2673 esac
2675 # Use eval to expand $SHELL
2676 if eval "$MISSING --run true"; then
2677 am_missing_run="$MISSING --run "
2678 else
2679 am_missing_run=
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2681 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2684 if test x"${install_sh}" != xset; then
2685 case $am_aux_dir in
2686 *\ * | *\ *)
2687 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2689 install_sh="\${SHELL} $am_aux_dir/install-sh"
2690 esac
2693 # Installed binaries are usually stripped using `strip' when the user
2694 # run `make install-strip'. However `strip' might not be the right
2695 # tool to use in cross-compilation environments, therefore Automake
2696 # will honor the `STRIP' environment variable to overrule this program.
2697 if test "$cross_compiling" != no; then
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}strip; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if test "${ac_cv_prog_STRIP+set}" = set; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test -n "$STRIP"; then
2707 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2720 done
2721 done
2722 IFS=$as_save_IFS
2726 STRIP=$ac_cv_prog_STRIP
2727 if test -n "$STRIP"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2729 $as_echo "$STRIP" >&6; }
2730 else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2737 if test -z "$ac_cv_prog_STRIP"; then
2738 ac_ct_STRIP=$STRIP
2739 # Extract the first word of "strip", so it can be a program name with args.
2740 set dummy strip; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$ac_ct_STRIP"; then
2747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_ac_ct_STRIP="strip"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2762 IFS=$as_save_IFS
2766 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2767 if test -n "$ac_ct_STRIP"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2769 $as_echo "$ac_ct_STRIP" >&6; }
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2775 if test "x$ac_ct_STRIP" = x; then
2776 STRIP=":"
2777 else
2778 case $cross_compiling:$ac_tool_warned in
2779 yes:)
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782 ac_tool_warned=yes ;;
2783 esac
2784 STRIP=$ac_ct_STRIP
2786 else
2787 STRIP="$ac_cv_prog_STRIP"
2791 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2794 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2795 if test -z "$MKDIR_P"; then
2796 if test "${ac_cv_path_mkdir+set}" = set; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_prog in mkdir gmkdir; do
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2807 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2808 'mkdir (GNU coreutils) '* | \
2809 'mkdir (coreutils) '* | \
2810 'mkdir (fileutils) '4.1*)
2811 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2812 break 3;;
2813 esac
2814 done
2815 done
2816 done
2817 IFS=$as_save_IFS
2821 test -d ./--version && rmdir ./--version
2822 if test "${ac_cv_path_mkdir+set}" = set; then
2823 MKDIR_P="$ac_cv_path_mkdir -p"
2824 else
2825 # As a last resort, use the slow shell script. Don't cache a
2826 # value for MKDIR_P within a source directory, because that will
2827 # break other packages using the cache if that directory is
2828 # removed, or if the value is a relative name.
2829 MKDIR_P="$ac_install_sh -d"
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2833 $as_echo "$MKDIR_P" >&6; }
2835 mkdir_p="$MKDIR_P"
2836 case $mkdir_p in
2837 [\\/$]* | ?:[\\/]*) ;;
2838 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2839 esac
2841 for ac_prog in gawk mawk nawk awk
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_AWK+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$AWK"; then
2851 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_AWK="$ac_prog"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2864 done
2865 done
2866 IFS=$as_save_IFS
2870 AWK=$ac_cv_prog_AWK
2871 if test -n "$AWK"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2873 $as_echo "$AWK" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2880 test -n "$AWK" && break
2881 done
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2884 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2885 set x ${MAKE-make}
2886 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2887 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 cat >conftest.make <<\_ACEOF
2891 SHELL = /bin/sh
2892 all:
2893 @echo '@@@%%%=$(MAKE)=@@@%%%'
2894 _ACEOF
2895 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2896 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2897 *@@@%%%=?*=@@@%%%*)
2898 eval ac_cv_prog_make_${ac_make}_set=yes;;
2900 eval ac_cv_prog_make_${ac_make}_set=no;;
2901 esac
2902 rm -f conftest.make
2904 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906 $as_echo "yes" >&6; }
2907 SET_MAKE=
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 SET_MAKE="MAKE=${MAKE-make}"
2914 rm -rf .tst 2>/dev/null
2915 mkdir .tst 2>/dev/null
2916 if test -d .tst; then
2917 am__leading_dot=.
2918 else
2919 am__leading_dot=_
2921 rmdir .tst 2>/dev/null
2923 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2924 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2925 # is not polluted with repeated "-I."
2926 am__isrc=' -I$(srcdir)'
2927 # test to see if srcdir already configured
2928 if test -f $srcdir/config.status; then
2929 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2933 # test whether we have cygpath
2934 if test -z "$CYGPATH_W"; then
2935 if (cygpath --version) >/dev/null 2>/dev/null; then
2936 CYGPATH_W='cygpath -w'
2937 else
2938 CYGPATH_W=echo
2943 # Define the identity of the package.
2944 PACKAGE='gliv'
2945 VERSION='1.9.7'
2948 cat >>confdefs.h <<_ACEOF
2949 #define PACKAGE "$PACKAGE"
2950 _ACEOF
2953 cat >>confdefs.h <<_ACEOF
2954 #define VERSION "$VERSION"
2955 _ACEOF
2957 # Some tools Automake needs.
2959 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2962 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2965 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2968 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2971 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2973 # We need awk for the "check" target. The system "awk" is bad on
2974 # some platforms.
2975 # Always define AMTAR for backward compatibility.
2977 AMTAR=${AMTAR-"${am_missing_run}tar"}
2979 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2985 ac_config_headers="$ac_config_headers config.h"
2987 ac_ext=c
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 DEPDIR="${am__leading_dot}deps"
2995 ac_config_commands="$ac_config_commands depfiles"
2998 am_make=${MAKE-make}
2999 cat > confinc << 'END'
3000 am__doit:
3001 @echo this is the am__doit target
3002 .PHONY: am__doit
3004 # If we don't find an include directive, just comment out the code.
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3006 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3007 am__include="#"
3008 am__quote=
3009 _am_result=none
3010 # First try GNU make style include.
3011 echo "include confinc" > confmf
3012 # Ignore all kinds of additional output from `make'.
3013 case `$am_make -s -f confmf 2> /dev/null` in #(
3014 *the\ am__doit\ target*)
3015 am__include=include
3016 am__quote=
3017 _am_result=GNU
3019 esac
3020 # Now try BSD make style include.
3021 if test "$am__include" = "#"; then
3022 echo '.include "confinc"' > confmf
3023 case `$am_make -s -f confmf 2> /dev/null` in #(
3024 *the\ am__doit\ target*)
3025 am__include=.include
3026 am__quote="\""
3027 _am_result=BSD
3029 esac
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3034 $as_echo "$_am_result" >&6; }
3035 rm -f confinc confmf
3037 # Check whether --enable-dependency-tracking was given.
3038 if test "${enable_dependency_tracking+set}" = set; then :
3039 enableval=$enable_dependency_tracking;
3042 if test "x$enable_dependency_tracking" != xno; then
3043 am_depcomp="$ac_aux_dir/depcomp"
3044 AMDEPBACKSLASH='\'
3046 if test "x$enable_dependency_tracking" != xno; then
3047 AMDEP_TRUE=
3048 AMDEP_FALSE='#'
3049 else
3050 AMDEP_TRUE='#'
3051 AMDEP_FALSE=
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if test "${ac_cv_prog_CC+set}" = set; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3078 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3082 done
3083 done
3084 IFS=$as_save_IFS
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3099 if test -z "$ac_cv_prog_CC"; then
3100 ac_ct_CC=$CC
3101 # Extract the first word of "gcc", so it can be a program name with args.
3102 set dummy gcc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 ac_cv_prog_ac_ct_CC="gcc"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3122 done
3123 done
3124 IFS=$as_save_IFS
3128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3131 $as_echo "$ac_ct_CC" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3137 if test "x$ac_ct_CC" = x; then
3138 CC=""
3139 else
3140 case $cross_compiling:$ac_tool_warned in
3141 yes:)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3145 esac
3146 CC=$ac_ct_CC
3148 else
3149 CC="$ac_cv_prog_CC"
3152 if test -z "$CC"; then
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}cc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if test "${ac_cv_prog_CC+set}" = set; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_prog_CC="${ac_tool_prefix}cc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3175 done
3176 done
3177 IFS=$as_save_IFS
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3193 if test -z "$CC"; then
3194 # Extract the first word of "cc", so it can be a program name with args.
3195 set dummy cc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_CC+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 else
3204 ac_prog_rejected=no
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3213 ac_prog_rejected=yes
3214 continue
3216 ac_cv_prog_CC="cc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3220 done
3221 done
3222 IFS=$as_save_IFS
3224 if test $ac_prog_rejected = yes; then
3225 # We found a bogon in the path, so make sure we never use it.
3226 set dummy $ac_cv_prog_CC
3227 shift
3228 if test $# != 0; then
3229 # We chose a different compiler from the bogus one.
3230 # However, it has the same basename, so the bogon will be chosen
3231 # first if we set CC to just the basename; use the full file name.
3232 shift
3233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3249 if test -z "$CC"; then
3250 if test -n "$ac_tool_prefix"; then
3251 for ac_prog in cl.exe
3253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if test "${ac_cv_prog_CC+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3274 done
3275 done
3276 IFS=$as_save_IFS
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3290 test -n "$CC" && break
3291 done
3293 if test -z "$CC"; then
3294 ac_ct_CC=$CC
3295 for ac_prog in cl.exe
3297 # Extract the first word of "$ac_prog", so it can be a program name with args.
3298 set dummy $ac_prog; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 ac_cv_prog_ac_ct_CC="$ac_prog"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3318 done
3319 done
3320 IFS=$as_save_IFS
3324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325 if test -n "$ac_ct_CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327 $as_echo "$ac_ct_CC" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3334 test -n "$ac_ct_CC" && break
3335 done
3337 if test "x$ac_ct_CC" = x; then
3338 CC=""
3339 else
3340 case $cross_compiling:$ac_tool_warned in
3341 yes:)
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344 ac_tool_warned=yes ;;
3345 esac
3346 CC=$ac_ct_CC
3353 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "no acceptable C compiler found in \$PATH
3356 See \`config.log' for more details" "$LINENO" 5 ; }
3358 # Provide some information about the compiler.
3359 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3360 set X $ac_compile
3361 ac_compiler=$2
3362 for ac_option in --version -v -V -qversion; do
3363 { { ac_try="$ac_compiler $ac_option >&5"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3371 ac_status=$?
3372 if test -s conftest.err; then
3373 sed '10a\
3374 ... rest of stderr output deleted ...
3375 10q' conftest.err >conftest.er1
3376 cat conftest.er1 >&5
3378 rm -f conftest.er1 conftest.err
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }
3381 done
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3387 main ()
3391 return 0;
3393 _ACEOF
3394 ac_clean_files_save=$ac_clean_files
3395 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3396 # Try to create an executable without -o first, disregard a.out.
3397 # It will help us diagnose broken compilers, and finding out an intuition
3398 # of exeext.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3400 $as_echo_n "checking whether the C compiler works... " >&6; }
3401 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3403 # The possible output files:
3404 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3406 ac_rmfiles=
3407 for ac_file in $ac_files
3409 case $ac_file in
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3412 esac
3413 done
3414 rm -f $ac_rmfiles
3416 if { { ac_try="$ac_link_default"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_link_default") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }; then :
3427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3428 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3429 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3430 # so that the user can short-circuit this test for compilers unknown to
3431 # Autoconf.
3432 for ac_file in $ac_files ''
3434 test -f "$ac_file" || continue
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3438 [ab].out )
3439 # We found the default executable, but exeext='' is most
3440 # certainly right.
3441 break;;
3442 *.* )
3443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3444 then :; else
3445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447 # We set ac_cv_exeext here because the later test for it is not
3448 # safe: cross compilers may not add the suffix if given an `-o'
3449 # argument, so we may need to know it at that point already.
3450 # Even if this section looks crufty: it has the advantage of
3451 # actually working.
3452 break;;
3454 break;;
3455 esac
3456 done
3457 test "$ac_cv_exeext" = no && ac_cv_exeext=
3459 else
3460 ac_file=''
3462 if test -z "$ac_file"; then :
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error 77 "C compiler cannot create executables
3471 See \`config.log' for more details" "$LINENO" 5 ; }
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3474 $as_echo "yes" >&6; }
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3477 $as_echo_n "checking for C compiler default output file name... " >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3479 $as_echo "$ac_file" >&6; }
3480 ac_exeext=$ac_cv_exeext
3482 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3483 ac_clean_files=$ac_clean_files_save
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3485 $as_echo_n "checking for suffix of executables... " >&6; }
3486 if { { ac_try="$ac_link"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_link") 2>&5
3494 ac_status=$?
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }; then :
3497 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3498 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3499 # work properly (i.e., refer to `conftest.exe'), while it won't with
3500 # `rm'.
3501 for ac_file in conftest.exe conftest conftest.*; do
3502 test -f "$ac_file" || continue
3503 case $ac_file in
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3505 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3506 break;;
3507 * ) break;;
3508 esac
3509 done
3510 else
3511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3514 See \`config.log' for more details" "$LINENO" 5 ; }
3516 rm -f conftest conftest$ac_cv_exeext
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3518 $as_echo "$ac_cv_exeext" >&6; }
3520 rm -f conftest.$ac_ext
3521 EXEEXT=$ac_cv_exeext
3522 ac_exeext=$EXEEXT
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525 #include <stdio.h>
3527 main ()
3529 FILE *f = fopen ("conftest.out", "w");
3530 return ferror (f) || fclose (f) != 0;
3533 return 0;
3535 _ACEOF
3536 ac_clean_files="$ac_clean_files conftest.out"
3537 # Check that the compiler produces executables we can run. If not, either
3538 # the compiler is broken, or we cross compile.
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3540 $as_echo_n "checking whether we are cross compiling... " >&6; }
3541 if test "$cross_compiling" != yes; then
3542 { { ac_try="$ac_link"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_link") 2>&5
3550 ac_status=$?
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3553 if { ac_try='./conftest$ac_cv_exeext'
3554 { { case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560 (eval "$ac_try") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563 test $ac_status = 0; }; }; then
3564 cross_compiling=no
3565 else
3566 if test "$cross_compiling" = maybe; then
3567 cross_compiling=yes
3568 else
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error $? "cannot run C compiled programs.
3572 If you meant to cross compile, use \`--host'.
3573 See \`config.log' for more details" "$LINENO" 5 ; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3578 $as_echo "$cross_compiling" >&6; }
3580 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3581 ac_clean_files=$ac_clean_files_save
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3583 $as_echo_n "checking for suffix of object files... " >&6; }
3584 if test "${ac_cv_objext+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3591 main ()
3595 return 0;
3597 _ACEOF
3598 rm -f conftest.o conftest.obj
3599 if { { ac_try="$ac_compile"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606 (eval "$ac_compile") 2>&5
3607 ac_status=$?
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }; then :
3610 for ac_file in conftest.o conftest.obj conftest.*; do
3611 test -f "$ac_file" || continue;
3612 case $ac_file in
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3614 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3615 break;;
3616 esac
3617 done
3618 else
3619 $as_echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot compute suffix of object files: cannot compile
3625 See \`config.log' for more details" "$LINENO" 5 ; }
3627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3630 $as_echo "$ac_cv_objext" >&6; }
3631 OBJEXT=$ac_cv_objext
3632 ac_objext=$OBJEXT
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3634 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3635 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3642 main ()
3644 #ifndef __GNUC__
3645 choke me
3646 #endif
3649 return 0;
3651 _ACEOF
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_compiler_gnu=yes
3654 else
3655 ac_compiler_gnu=no
3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3662 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3663 if test $ac_compiler_gnu = yes; then
3664 GCC=yes
3665 else
3666 GCC=
3668 ac_test_CFLAGS=${CFLAGS+set}
3669 ac_save_CFLAGS=$CFLAGS
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3671 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3672 if test "${ac_cv_prog_cc_g+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 ac_save_c_werror_flag=$ac_c_werror_flag
3676 ac_c_werror_flag=yes
3677 ac_cv_prog_cc_g=no
3678 CFLAGS="-g"
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3683 main ()
3687 return 0;
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691 ac_cv_prog_cc_g=yes
3692 else
3693 CFLAGS=""
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 :
3707 else
3708 ac_c_werror_flag=$ac_save_c_werror_flag
3709 CFLAGS="-g"
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3714 main ()
3718 return 0;
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_g=yes
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 ac_c_werror_flag=$ac_save_c_werror_flag
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3732 $as_echo "$ac_cv_prog_cc_g" >&6; }
3733 if test "$ac_test_CFLAGS" = set; then
3734 CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736 if test "$GCC" = yes; then
3737 CFLAGS="-g -O2"
3738 else
3739 CFLAGS="-g"
3741 else
3742 if test "$GCC" = yes; then
3743 CFLAGS="-O2"
3744 else
3745 CFLAGS=
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 ac_cv_prog_cc_c89=no
3754 ac_save_CC=$CC
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <stdarg.h>
3758 #include <stdio.h>
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3765 char **p;
3766 int i;
3768 return p[i];
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3772 char *s;
3773 va_list v;
3774 va_start (v,p);
3775 s = g (p, va_arg (v,int));
3776 va_end (v);
3777 return s;
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3791 #define FOO(x) 'x'
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3801 main ()
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3805 return 0;
3807 _ACEOF
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 CC="$ac_save_CC $ac_arg"
3812 if ac_fn_c_try_compile "$LINENO"; then :
3813 ac_cv_prog_cc_c89=$ac_arg
3815 rm -f core conftest.err conftest.$ac_objext
3816 test "x$ac_cv_prog_cc_c89" != "xno" && break
3817 done
3818 rm -f conftest.$ac_ext
3819 CC=$ac_save_CC
3822 # AC_CACHE_VAL
3823 case "x$ac_cv_prog_cc_c89" in
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3826 $as_echo "none needed" >&6; } ;;
3827 xno)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3829 $as_echo "unsupported" >&6; } ;;
3831 CC="$CC $ac_cv_prog_cc_c89"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3833 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3834 esac
3835 if test "x$ac_cv_prog_cc_c89" != xno; then :
3839 ac_ext=c
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845 depcc="$CC" am_compiler_list=
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3848 $as_echo_n "checking dependency style of $depcc... " >&6; }
3849 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3853 # We make a subdir and do the tests there. Otherwise we can end up
3854 # making bogus files that we don't know about and never remove. For
3855 # instance it was reported that on HP-UX the gcc test will end up
3856 # making a dummy file named `D' -- because `-MD' means `put the output
3857 # in D'.
3858 mkdir conftest.dir
3859 # Copy depcomp to subdir because otherwise we won't find it if we're
3860 # using a relative directory.
3861 cp "$am_depcomp" conftest.dir
3862 cd conftest.dir
3863 # We will build objects and dependencies in a subdirectory because
3864 # it helps to detect inapplicable dependency modes. For instance
3865 # both Tru64's cc and ICC support -MD to output dependencies as a
3866 # side effect of compilation, but ICC will put the dependencies in
3867 # the current directory while Tru64 will put them in the object
3868 # directory.
3869 mkdir sub
3871 am_cv_CC_dependencies_compiler_type=none
3872 if test "$am_compiler_list" = ""; then
3873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3875 am__universal=false
3876 case " $depcc " in #(
3877 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3878 esac
3880 for depmode in $am_compiler_list; do
3881 # Setup a source with many dependencies, because some compilers
3882 # like to wrap large dependency lists on column 80 (with \), and
3883 # we should not choose a depcomp mode which is confused by this.
3885 # We need to recreate these files for each test, as the compiler may
3886 # overwrite some of them when testing with obscure command lines.
3887 # This happens at least with the AIX C compiler.
3888 : > sub/conftest.c
3889 for i in 1 2 3 4 5 6; do
3890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3892 # Solaris 8's {/usr,}/bin/sh.
3893 touch sub/conftst$i.h
3894 done
3895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3897 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3898 # mode. It turns out that the SunPro C++ compiler does not properly
3899 # handle `-M -o', and we need to detect this. Also, some Intel
3900 # versions had trouble with output in subdirs
3901 am__obj=sub/conftest.${OBJEXT-o}
3902 am__minus_obj="-o $am__obj"
3903 case $depmode in
3904 gcc)
3905 # This depmode causes a compiler race in universal mode.
3906 test "$am__universal" = false || continue
3908 nosideeffect)
3909 # after this tag, mechanisms are not by side-effect, so they'll
3910 # only be used when explicitly requested
3911 if test "x$enable_dependency_tracking" = xyes; then
3912 continue
3913 else
3914 break
3917 msvisualcpp | msvcmsys)
3918 # This compiler won't grok `-c -o', but also, the minuso test has
3919 # not run yet. These depmodes are late enough in the game, and
3920 # so weak that their functioning should not be impacted.
3921 am__obj=conftest.${OBJEXT-o}
3922 am__minus_obj=
3924 none) break ;;
3925 esac
3926 if depmode=$depmode \
3927 source=sub/conftest.c object=$am__obj \
3928 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3929 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3930 >/dev/null 2>conftest.err &&
3931 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3932 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3933 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3934 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3935 # icc doesn't choke on unknown options, it will just issue warnings
3936 # or remarks (even with -Werror). So we grep stderr for any message
3937 # that says an option was ignored or not supported.
3938 # When given -MP, icc 7.0 and 7.1 complain thusly:
3939 # icc: Command line warning: ignoring option '-M'; no argument required
3940 # The diagnosis changed in icc 8.0:
3941 # icc: Command line remark: option '-MP' not supported
3942 if (grep 'ignoring option' conftest.err ||
3943 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3944 am_cv_CC_dependencies_compiler_type=$depmode
3945 break
3948 done
3950 cd ..
3951 rm -rf conftest.dir
3952 else
3953 am_cv_CC_dependencies_compiler_type=none
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3958 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3959 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3962 test "x$enable_dependency_tracking" != xno \
3963 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3964 am__fastdepCC_TRUE=
3965 am__fastdepCC_FALSE='#'
3966 else
3967 am__fastdepCC_TRUE='#'
3968 am__fastdepCC_FALSE=
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3979 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3980 # On Suns, sometimes $CPP names a directory.
3981 if test -n "$CPP" && test -d "$CPP"; then
3982 CPP=
3984 if test -z "$CPP"; then
3985 if test "${ac_cv_prog_CPP+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 # Double quotes because CPP needs to be expanded
3989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991 ac_preproc_ok=false
3992 for ac_c_preproc_warn_flag in '' yes
3994 # Use a header file that comes with gcc, so configuring glibc
3995 # with a fresh cross-compiler works.
3996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3997 # <limits.h> exists even on freestanding compilers.
3998 # On the NeXT, cc -E runs the code through the compiler's parser,
3999 # not just through cpp. "Syntax error" is here to catch this case.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #ifdef __STDC__
4003 # include <limits.h>
4004 #else
4005 # include <assert.h>
4006 #endif
4007 Syntax error
4008 _ACEOF
4009 if ac_fn_c_try_cpp "$LINENO"; then :
4011 else
4012 # Broken: fails on valid input.
4013 continue
4015 rm -f conftest.err conftest.i conftest.$ac_ext
4017 # OK, works on sane cases. Now check whether nonexistent headers
4018 # can be detected and how.
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021 #include <ac_nonexistent.h>
4022 _ACEOF
4023 if ac_fn_c_try_cpp "$LINENO"; then :
4024 # Broken: success on invalid input.
4025 continue
4026 else
4027 # Passes both tests.
4028 ac_preproc_ok=:
4029 break
4031 rm -f conftest.err conftest.i conftest.$ac_ext
4033 done
4034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4035 rm -f conftest.i conftest.err conftest.$ac_ext
4036 if $ac_preproc_ok; then :
4037 break
4040 done
4041 ac_cv_prog_CPP=$CPP
4044 CPP=$ac_cv_prog_CPP
4045 else
4046 ac_cv_prog_CPP=$CPP
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4049 $as_echo "$CPP" >&6; }
4050 ac_preproc_ok=false
4051 for ac_c_preproc_warn_flag in '' yes
4053 # Use a header file that comes with gcc, so configuring glibc
4054 # with a fresh cross-compiler works.
4055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4056 # <limits.h> exists even on freestanding compilers.
4057 # On the NeXT, cc -E runs the code through the compiler's parser,
4058 # not just through cpp. "Syntax error" is here to catch this case.
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066 Syntax error
4067 _ACEOF
4068 if ac_fn_c_try_cpp "$LINENO"; then :
4070 else
4071 # Broken: fails on valid input.
4072 continue
4074 rm -f conftest.err conftest.i conftest.$ac_ext
4076 # OK, works on sane cases. Now check whether nonexistent headers
4077 # can be detected and how.
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <ac_nonexistent.h>
4081 _ACEOF
4082 if ac_fn_c_try_cpp "$LINENO"; then :
4083 # Broken: success on invalid input.
4084 continue
4085 else
4086 # Passes both tests.
4087 ac_preproc_ok=:
4088 break
4090 rm -f conftest.err conftest.i conftest.$ac_ext
4092 done
4093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4094 rm -f conftest.i conftest.err conftest.$ac_ext
4095 if $ac_preproc_ok; then :
4097 else
4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4100 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4101 See \`config.log' for more details" "$LINENO" 5 ; }
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4112 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4113 if test "${ac_cv_path_GREP+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -z "$GREP"; then
4117 ac_path_GREP_found=false
4118 # Loop through the user's path and test for each of PROGNAME-LIST
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_prog in grep ggrep; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4127 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4128 # Check for GNU ac_path_GREP and select it if it is found.
4129 # Check for GNU $ac_path_GREP
4130 case `"$ac_path_GREP" --version 2>&1` in
4131 *GNU*)
4132 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4134 ac_count=0
4135 $as_echo_n 0123456789 >"conftest.in"
4136 while :
4138 cat "conftest.in" "conftest.in" >"conftest.tmp"
4139 mv "conftest.tmp" "conftest.in"
4140 cp "conftest.in" "conftest.nl"
4141 $as_echo 'GREP' >> "conftest.nl"
4142 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4144 as_fn_arith $ac_count + 1 && ac_count=$as_val
4145 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4146 # Best one so far, save it but keep looking for a better one
4147 ac_cv_path_GREP="$ac_path_GREP"
4148 ac_path_GREP_max=$ac_count
4150 # 10*(2^10) chars as input seems more than enough
4151 test $ac_count -gt 10 && break
4152 done
4153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4154 esac
4156 $ac_path_GREP_found && break 3
4157 done
4158 done
4159 done
4160 IFS=$as_save_IFS
4161 if test -z "$ac_cv_path_GREP"; then
4162 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4164 else
4165 ac_cv_path_GREP=$GREP
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4170 $as_echo "$ac_cv_path_GREP" >&6; }
4171 GREP="$ac_cv_path_GREP"
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4175 $as_echo_n "checking for egrep... " >&6; }
4176 if test "${ac_cv_path_EGREP+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4180 then ac_cv_path_EGREP="$GREP -E"
4181 else
4182 if test -z "$EGREP"; then
4183 ac_path_EGREP_found=false
4184 # Loop through the user's path and test for each of PROGNAME-LIST
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_prog in egrep; do
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4194 # Check for GNU ac_path_EGREP and select it if it is found.
4195 # Check for GNU $ac_path_EGREP
4196 case `"$ac_path_EGREP" --version 2>&1` in
4197 *GNU*)
4198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200 ac_count=0
4201 $as_echo_n 0123456789 >"conftest.in"
4202 while :
4204 cat "conftest.in" "conftest.in" >"conftest.tmp"
4205 mv "conftest.tmp" "conftest.in"
4206 cp "conftest.in" "conftest.nl"
4207 $as_echo 'EGREP' >> "conftest.nl"
4208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210 as_fn_arith $ac_count + 1 && ac_count=$as_val
4211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4212 # Best one so far, save it but keep looking for a better one
4213 ac_cv_path_EGREP="$ac_path_EGREP"
4214 ac_path_EGREP_max=$ac_count
4216 # 10*(2^10) chars as input seems more than enough
4217 test $ac_count -gt 10 && break
4218 done
4219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220 esac
4222 $ac_path_EGREP_found && break 3
4223 done
4224 done
4225 done
4226 IFS=$as_save_IFS
4227 if test -z "$ac_cv_path_EGREP"; then
4228 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4230 else
4231 ac_cv_path_EGREP=$EGREP
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4237 $as_echo "$ac_cv_path_EGREP" >&6; }
4238 EGREP="$ac_cv_path_EGREP"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4242 $as_echo_n "checking for ANSI C header files... " >&6; }
4243 if test "${ac_cv_header_stdc+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 #include <stdlib.h>
4249 #include <stdarg.h>
4250 #include <string.h>
4251 #include <float.h>
4254 main ()
4258 return 0;
4260 _ACEOF
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_header_stdc=yes
4263 else
4264 ac_cv_header_stdc=no
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 if test $ac_cv_header_stdc = yes; then
4269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272 #include <string.h>
4274 _ACEOF
4275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 $EGREP "memchr" >/dev/null 2>&1; then :
4278 else
4279 ac_cv_header_stdc=no
4281 rm -f conftest*
4285 if test $ac_cv_header_stdc = yes; then
4286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289 #include <stdlib.h>
4291 _ACEOF
4292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4293 $EGREP "free" >/dev/null 2>&1; then :
4295 else
4296 ac_cv_header_stdc=no
4298 rm -f conftest*
4302 if test $ac_cv_header_stdc = yes; then
4303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4304 if test "$cross_compiling" = yes; then :
4306 else
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #include <ctype.h>
4310 #include <stdlib.h>
4311 #if ((' ' & 0x0FF) == 0x020)
4312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4314 #else
4315 # define ISLOWER(c) \
4316 (('a' <= (c) && (c) <= 'i') \
4317 || ('j' <= (c) && (c) <= 'r') \
4318 || ('s' <= (c) && (c) <= 'z'))
4319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4320 #endif
4322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4324 main ()
4326 int i;
4327 for (i = 0; i < 256; i++)
4328 if (XOR (islower (i), ISLOWER (i))
4329 || toupper (i) != TOUPPER (i))
4330 return 2;
4331 return 0;
4333 _ACEOF
4334 if ac_fn_c_try_run "$LINENO"; then :
4336 else
4337 ac_cv_header_stdc=no
4339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4340 conftest.$ac_objext conftest.beam conftest.$ac_ext
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4346 $as_echo "$ac_cv_header_stdc" >&6; }
4347 if test $ac_cv_header_stdc = yes; then
4349 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4354 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4355 inttypes.h stdint.h unistd.h
4356 do :
4357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4358 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4360 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4361 cat >>confdefs.h <<_ACEOF
4362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4363 _ACEOF
4367 done
4371 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4372 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4373 MINIX=yes
4374 else
4375 MINIX=
4379 if test "$MINIX" = yes; then
4381 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4384 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4387 $as_echo "#define _MINIX 1" >>confdefs.h
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4393 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4394 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4400 # define __EXTENSIONS__ 1
4401 $ac_includes_default
4403 main ()
4407 return 0;
4409 _ACEOF
4410 if ac_fn_c_try_compile "$LINENO"; then :
4411 ac_cv_safe_to_define___extensions__=yes
4412 else
4413 ac_cv_safe_to_define___extensions__=no
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4418 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4419 test $ac_cv_safe_to_define___extensions__ = yes &&
4420 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4422 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4424 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4426 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4428 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4434 # We check this before AC_PROG_CC fills blank CFLAGS with "-g -O2".
4435 if test "x$CFLAGS" = "x"; then
4436 DEFAULT_CFLAGS=yes
4437 else
4438 DEFAULT_CFLAGS=no
4441 # Checks for programs.
4442 ac_ext=c
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if test "${ac_cv_prog_CC+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -n "$CC"; then
4456 ac_cv_prog_CC="$CC" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4469 done
4470 done
4471 IFS=$as_save_IFS
4475 CC=$ac_cv_prog_CC
4476 if test -n "$CC"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4478 $as_echo "$CC" >&6; }
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4486 if test -z "$ac_cv_prog_CC"; then
4487 ac_ct_CC=$CC
4488 # Extract the first word of "gcc", so it can be a program name with args.
4489 set dummy gcc; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 if test -n "$ac_ct_CC"; then
4496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_prog_ac_ct_CC="gcc"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4509 done
4510 done
4511 IFS=$as_save_IFS
4515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4516 if test -n "$ac_ct_CC"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4518 $as_echo "$ac_ct_CC" >&6; }
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4524 if test "x$ac_ct_CC" = x; then
4525 CC=""
4526 else
4527 case $cross_compiling:$ac_tool_warned in
4528 yes:)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531 ac_tool_warned=yes ;;
4532 esac
4533 CC=$ac_ct_CC
4535 else
4536 CC="$ac_cv_prog_CC"
4539 if test -z "$CC"; then
4540 if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}cc; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_CC+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_CC="${ac_tool_prefix}cc"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4562 done
4563 done
4564 IFS=$as_save_IFS
4568 CC=$ac_cv_prog_CC
4569 if test -n "$CC"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4571 $as_echo "$CC" >&6; }
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4580 if test -z "$CC"; then
4581 # Extract the first word of "cc", so it can be a program name with args.
4582 set dummy cc; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if test "${ac_cv_prog_CC+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if test -n "$CC"; then
4589 ac_cv_prog_CC="$CC" # Let the user override the test.
4590 else
4591 ac_prog_rejected=no
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4600 ac_prog_rejected=yes
4601 continue
4603 ac_cv_prog_CC="cc"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4607 done
4608 done
4609 IFS=$as_save_IFS
4611 if test $ac_prog_rejected = yes; then
4612 # We found a bogon in the path, so make sure we never use it.
4613 set dummy $ac_cv_prog_CC
4614 shift
4615 if test $# != 0; then
4616 # We chose a different compiler from the bogus one.
4617 # However, it has the same basename, so the bogon will be chosen
4618 # first if we set CC to just the basename; use the full file name.
4619 shift
4620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4625 CC=$ac_cv_prog_CC
4626 if test -n "$CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4628 $as_echo "$CC" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4636 if test -z "$CC"; then
4637 if test -n "$ac_tool_prefix"; then
4638 for ac_prog in cl.exe
4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_prog_CC+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$CC"; then
4648 ac_cv_prog_CC="$CC" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4663 IFS=$as_save_IFS
4667 CC=$ac_cv_prog_CC
4668 if test -n "$CC"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4670 $as_echo "$CC" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4677 test -n "$CC" && break
4678 done
4680 if test -z "$CC"; then
4681 ac_ct_CC=$CC
4682 for ac_prog in cl.exe
4684 # Extract the first word of "$ac_prog", so it can be a program name with args.
4685 set dummy $ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_ac_ct_CC="$ac_prog"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4705 done
4706 done
4707 IFS=$as_save_IFS
4711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712 if test -n "$ac_ct_CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4714 $as_echo "$ac_ct_CC" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4721 test -n "$ac_ct_CC" && break
4722 done
4724 if test "x$ac_ct_CC" = x; then
4725 CC=""
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4732 esac
4733 CC=$ac_ct_CC
4740 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4742 as_fn_error $? "no acceptable C compiler found in \$PATH
4743 See \`config.log' for more details" "$LINENO" 5 ; }
4745 # Provide some information about the compiler.
4746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4747 set X $ac_compile
4748 ac_compiler=$2
4749 for ac_option in --version -v -V -qversion; do
4750 { { ac_try="$ac_compiler $ac_option >&5"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756 $as_echo "$ac_try_echo"; } >&5
4757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4758 ac_status=$?
4759 if test -s conftest.err; then
4760 sed '10a\
4761 ... rest of stderr output deleted ...
4762 10q' conftest.err >conftest.er1
4763 cat conftest.er1 >&5
4765 rm -f conftest.er1 conftest.err
4766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767 test $ac_status = 0; }
4768 done
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4771 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4772 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4779 main ()
4781 #ifndef __GNUC__
4782 choke me
4783 #endif
4786 return 0;
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790 ac_compiler_gnu=yes
4791 else
4792 ac_compiler_gnu=no
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4799 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4800 if test $ac_compiler_gnu = yes; then
4801 GCC=yes
4802 else
4803 GCC=
4805 ac_test_CFLAGS=${CFLAGS+set}
4806 ac_save_CFLAGS=$CFLAGS
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4808 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4809 if test "${ac_cv_prog_cc_g+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 ac_save_c_werror_flag=$ac_c_werror_flag
4813 ac_c_werror_flag=yes
4814 ac_cv_prog_cc_g=no
4815 CFLAGS="-g"
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 :
4828 ac_cv_prog_cc_g=yes
4829 else
4830 CFLAGS=""
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4835 main ()
4839 return 0;
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"; then :
4844 else
4845 ac_c_werror_flag=$ac_save_c_werror_flag
4846 CFLAGS="-g"
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4851 main ()
4855 return 0;
4857 _ACEOF
4858 if ac_fn_c_try_compile "$LINENO"; then :
4859 ac_cv_prog_cc_g=yes
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 ac_c_werror_flag=$ac_save_c_werror_flag
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4869 $as_echo "$ac_cv_prog_cc_g" >&6; }
4870 if test "$ac_test_CFLAGS" = set; then
4871 CFLAGS=$ac_save_CFLAGS
4872 elif test $ac_cv_prog_cc_g = yes; then
4873 if test "$GCC" = yes; then
4874 CFLAGS="-g -O2"
4875 else
4876 CFLAGS="-g"
4878 else
4879 if test "$GCC" = yes; then
4880 CFLAGS="-O2"
4881 else
4882 CFLAGS=
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4886 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4887 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 ac_cv_prog_cc_c89=no
4891 ac_save_CC=$CC
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 #include <stdarg.h>
4895 #include <stdio.h>
4896 #include <sys/types.h>
4897 #include <sys/stat.h>
4898 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4899 struct buf { int x; };
4900 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4901 static char *e (p, i)
4902 char **p;
4903 int i;
4905 return p[i];
4907 static char *f (char * (*g) (char **, int), char **p, ...)
4909 char *s;
4910 va_list v;
4911 va_start (v,p);
4912 s = g (p, va_arg (v,int));
4913 va_end (v);
4914 return s;
4917 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4918 function prototypes and stuff, but not '\xHH' hex character constants.
4919 These don't provoke an error unfortunately, instead are silently treated
4920 as 'x'. The following induces an error, until -std is added to get
4921 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4922 array size at least. It's necessary to write '\x00'==0 to get something
4923 that's true only with -std. */
4924 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4926 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4927 inside strings and character constants. */
4928 #define FOO(x) 'x'
4929 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4931 int test (int i, double x);
4932 struct s1 {int (*f) (int a);};
4933 struct s2 {int (*f) (double a);};
4934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4935 int argc;
4936 char **argv;
4938 main ()
4940 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4942 return 0;
4944 _ACEOF
4945 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4946 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4948 CC="$ac_save_CC $ac_arg"
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950 ac_cv_prog_cc_c89=$ac_arg
4952 rm -f core conftest.err conftest.$ac_objext
4953 test "x$ac_cv_prog_cc_c89" != "xno" && break
4954 done
4955 rm -f conftest.$ac_ext
4956 CC=$ac_save_CC
4959 # AC_CACHE_VAL
4960 case "x$ac_cv_prog_cc_c89" in
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4963 $as_echo "none needed" >&6; } ;;
4964 xno)
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4966 $as_echo "unsupported" >&6; } ;;
4968 CC="$CC $ac_cv_prog_cc_c89"
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4970 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4971 esac
4972 if test "x$ac_cv_prog_cc_c89" != xno; then :
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 depcc="$CC" am_compiler_list=
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4985 $as_echo_n "checking dependency style of $depcc... " >&6; }
4986 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4990 # We make a subdir and do the tests there. Otherwise we can end up
4991 # making bogus files that we don't know about and never remove. For
4992 # instance it was reported that on HP-UX the gcc test will end up
4993 # making a dummy file named `D' -- because `-MD' means `put the output
4994 # in D'.
4995 mkdir conftest.dir
4996 # Copy depcomp to subdir because otherwise we won't find it if we're
4997 # using a relative directory.
4998 cp "$am_depcomp" conftest.dir
4999 cd conftest.dir
5000 # We will build objects and dependencies in a subdirectory because
5001 # it helps to detect inapplicable dependency modes. For instance
5002 # both Tru64's cc and ICC support -MD to output dependencies as a
5003 # side effect of compilation, but ICC will put the dependencies in
5004 # the current directory while Tru64 will put them in the object
5005 # directory.
5006 mkdir sub
5008 am_cv_CC_dependencies_compiler_type=none
5009 if test "$am_compiler_list" = ""; then
5010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5012 am__universal=false
5013 case " $depcc " in #(
5014 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5015 esac
5017 for depmode in $am_compiler_list; do
5018 # Setup a source with many dependencies, because some compilers
5019 # like to wrap large dependency lists on column 80 (with \), and
5020 # we should not choose a depcomp mode which is confused by this.
5022 # We need to recreate these files for each test, as the compiler may
5023 # overwrite some of them when testing with obscure command lines.
5024 # This happens at least with the AIX C compiler.
5025 : > sub/conftest.c
5026 for i in 1 2 3 4 5 6; do
5027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5029 # Solaris 8's {/usr,}/bin/sh.
5030 touch sub/conftst$i.h
5031 done
5032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5034 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5035 # mode. It turns out that the SunPro C++ compiler does not properly
5036 # handle `-M -o', and we need to detect this. Also, some Intel
5037 # versions had trouble with output in subdirs
5038 am__obj=sub/conftest.${OBJEXT-o}
5039 am__minus_obj="-o $am__obj"
5040 case $depmode in
5041 gcc)
5042 # This depmode causes a compiler race in universal mode.
5043 test "$am__universal" = false || continue
5045 nosideeffect)
5046 # after this tag, mechanisms are not by side-effect, so they'll
5047 # only be used when explicitly requested
5048 if test "x$enable_dependency_tracking" = xyes; then
5049 continue
5050 else
5051 break
5054 msvisualcpp | msvcmsys)
5055 # This compiler won't grok `-c -o', but also, the minuso test has
5056 # not run yet. These depmodes are late enough in the game, and
5057 # so weak that their functioning should not be impacted.
5058 am__obj=conftest.${OBJEXT-o}
5059 am__minus_obj=
5061 none) break ;;
5062 esac
5063 if depmode=$depmode \
5064 source=sub/conftest.c object=$am__obj \
5065 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5066 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5067 >/dev/null 2>conftest.err &&
5068 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5069 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5070 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5071 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5072 # icc doesn't choke on unknown options, it will just issue warnings
5073 # or remarks (even with -Werror). So we grep stderr for any message
5074 # that says an option was ignored or not supported.
5075 # When given -MP, icc 7.0 and 7.1 complain thusly:
5076 # icc: Command line warning: ignoring option '-M'; no argument required
5077 # The diagnosis changed in icc 8.0:
5078 # icc: Command line remark: option '-MP' not supported
5079 if (grep 'ignoring option' conftest.err ||
5080 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5081 am_cv_CC_dependencies_compiler_type=$depmode
5082 break
5085 done
5087 cd ..
5088 rm -rf conftest.dir
5089 else
5090 am_cv_CC_dependencies_compiler_type=none
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5095 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5096 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5099 test "x$enable_dependency_tracking" != xno \
5100 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5101 am__fastdepCC_TRUE=
5102 am__fastdepCC_FALSE='#'
5103 else
5104 am__fastdepCC_TRUE='#'
5105 am__fastdepCC_FALSE=
5109 if test -n "$ac_tool_prefix"; then
5110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$RANLIB"; then
5118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5133 IFS=$as_save_IFS
5137 RANLIB=$ac_cv_prog_RANLIB
5138 if test -n "$RANLIB"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5140 $as_echo "$RANLIB" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5148 if test -z "$ac_cv_prog_RANLIB"; then
5149 ac_ct_RANLIB=$RANLIB
5150 # Extract the first word of "ranlib", so it can be a program name with args.
5151 set dummy ranlib; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$ac_ct_RANLIB"; then
5158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_ac_ct_RANLIB="ranlib"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5171 done
5172 done
5173 IFS=$as_save_IFS
5177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5178 if test -n "$ac_ct_RANLIB"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5180 $as_echo "$ac_ct_RANLIB" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5186 if test "x$ac_ct_RANLIB" = x; then
5187 RANLIB=":"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195 RANLIB=$ac_ct_RANLIB
5197 else
5198 RANLIB="$ac_cv_prog_RANLIB"
5203 # Default CFLAGS.
5204 if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
5205 CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
5207 CFLAGS="$CFLAGS -I${srcdir}/../lib"
5209 # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
5210 # Check whether --enable-largefile was given.
5211 if test "${enable_largefile+set}" = set; then :
5212 enableval=$enable_largefile;
5215 if test "$enable_largefile" != no; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5218 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5219 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 ac_cv_sys_largefile_CC=no
5223 if test "$GCC" != yes; then
5224 ac_save_CC=$CC
5225 while :; do
5226 # IRIX 6.2 and later do not support large files by default,
5227 # so use the C compiler's -n32 option if that helps.
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 #include <sys/types.h>
5231 /* Check that off_t can represent 2**63 - 1 correctly.
5232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5233 since some C++ compilers masquerading as C compilers
5234 incorrectly reject 9223372036854775807. */
5235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5237 && LARGE_OFF_T % 2147483647 == 1)
5238 ? 1 : -1];
5240 main ()
5244 return 0;
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"; then :
5248 break
5250 rm -f core conftest.err conftest.$ac_objext
5251 CC="$CC -n32"
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 ac_cv_sys_largefile_CC=' -n32'; break
5255 rm -f core conftest.err conftest.$ac_objext
5256 break
5257 done
5258 CC=$ac_save_CC
5259 rm -f conftest.$ac_ext
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5263 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5264 if test "$ac_cv_sys_largefile_CC" != no; then
5265 CC=$CC$ac_cv_sys_largefile_CC
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5269 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5270 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 while :; do
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276 #include <sys/types.h>
5277 /* Check that off_t can represent 2**63 - 1 correctly.
5278 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5279 since some C++ compilers masquerading as C compilers
5280 incorrectly reject 9223372036854775807. */
5281 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5282 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5283 && LARGE_OFF_T % 2147483647 == 1)
5284 ? 1 : -1];
5286 main ()
5290 return 0;
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294 ac_cv_sys_file_offset_bits=no; break
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #define _FILE_OFFSET_BITS 64
5300 #include <sys/types.h>
5301 /* Check that off_t can represent 2**63 - 1 correctly.
5302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5303 since some C++ compilers masquerading as C compilers
5304 incorrectly reject 9223372036854775807. */
5305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5307 && LARGE_OFF_T % 2147483647 == 1)
5308 ? 1 : -1];
5310 main ()
5314 return 0;
5316 _ACEOF
5317 if ac_fn_c_try_compile "$LINENO"; then :
5318 ac_cv_sys_file_offset_bits=64; break
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 ac_cv_sys_file_offset_bits=unknown
5322 break
5323 done
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5326 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5327 case $ac_cv_sys_file_offset_bits in #(
5328 no | unknown) ;;
5330 cat >>confdefs.h <<_ACEOF
5331 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5332 _ACEOF
5334 esac
5335 rm -rf conftest*
5336 if test $ac_cv_sys_file_offset_bits = unknown; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5338 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5339 if test "${ac_cv_sys_large_files+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 while :; do
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 #include <sys/types.h>
5346 /* Check that off_t can represent 2**63 - 1 correctly.
5347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5348 since some C++ compilers masquerading as C compilers
5349 incorrectly reject 9223372036854775807. */
5350 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5352 && LARGE_OFF_T % 2147483647 == 1)
5353 ? 1 : -1];
5355 main ()
5359 return 0;
5361 _ACEOF
5362 if ac_fn_c_try_compile "$LINENO"; then :
5363 ac_cv_sys_large_files=no; break
5365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #define _LARGE_FILES 1
5369 #include <sys/types.h>
5370 /* Check that off_t can represent 2**63 - 1 correctly.
5371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5372 since some C++ compilers masquerading as C compilers
5373 incorrectly reject 9223372036854775807. */
5374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5376 && LARGE_OFF_T % 2147483647 == 1)
5377 ? 1 : -1];
5379 main ()
5383 return 0;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 ac_cv_sys_large_files=1; break
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 ac_cv_sys_large_files=unknown
5391 break
5392 done
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5395 $as_echo "$ac_cv_sys_large_files" >&6; }
5396 case $ac_cv_sys_large_files in #(
5397 no | unknown) ;;
5399 cat >>confdefs.h <<_ACEOF
5400 #define _LARGE_FILES $ac_cv_sys_large_files
5401 _ACEOF
5403 esac
5404 rm -rf conftest*
5412 OLD_CFLAGS="$CFLAGS"
5413 CFLAGS="$CFLAGS -w"
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2" >&5
5415 $as_echo_n "checking for library containing atan2... " >&6; }
5416 if test "${ac_cv_search_atan2+set}" = set; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 ac_func_search_save_LIBS=$LIBS
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5423 /* Override any GCC internal prototype to avoid an error.
5424 Use char because int might match the return type of a GCC
5425 builtin and then its argument prototype would still apply. */
5426 #ifdef __cplusplus
5427 extern "C"
5428 #endif
5429 char atan2 ();
5431 main ()
5433 return atan2 ();
5435 return 0;
5437 _ACEOF
5438 for ac_lib in '' m mx; do
5439 if test -z "$ac_lib"; then
5440 ac_res="none required"
5441 else
5442 ac_res=-l$ac_lib
5443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5445 if ac_fn_c_try_link "$LINENO"; then :
5446 ac_cv_search_atan2=$ac_res
5448 rm -f core conftest.err conftest.$ac_objext \
5449 conftest$ac_exeext
5450 if test "${ac_cv_search_atan2+set}" = set; then :
5451 break
5453 done
5454 if test "${ac_cv_search_atan2+set}" = set; then :
5456 else
5457 ac_cv_search_atan2=no
5459 rm conftest.$ac_ext
5460 LIBS=$ac_func_search_save_LIBS
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2" >&5
5463 $as_echo "$ac_cv_search_atan2" >&6; }
5464 ac_res=$ac_cv_search_atan2
5465 if test "$ac_res" != no; then :
5466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5468 $as_echo "#define HAVE_ATAN2 1" >>confdefs.h
5472 CFLAGS="$OLD_CFLAGS"
5475 # Checks for hypot (SVID 3, BSD 4.3).
5476 # The replacement is #defined in the source.
5477 OLD_CFLAGS="$CFLAGS"
5478 CFLAGS="$CFLAGS -w"
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypot" >&5
5480 $as_echo_n "checking for library containing hypot... " >&6; }
5481 if test "${ac_cv_search_hypot+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 ac_func_search_save_LIBS=$LIBS
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5488 /* Override any GCC internal prototype to avoid an error.
5489 Use char because int might match the return type of a GCC
5490 builtin and then its argument prototype would still apply. */
5491 #ifdef __cplusplus
5492 extern "C"
5493 #endif
5494 char hypot ();
5496 main ()
5498 return hypot ();
5500 return 0;
5502 _ACEOF
5503 for ac_lib in '' m mx; do
5504 if test -z "$ac_lib"; then
5505 ac_res="none required"
5506 else
5507 ac_res=-l$ac_lib
5508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5510 if ac_fn_c_try_link "$LINENO"; then :
5511 ac_cv_search_hypot=$ac_res
5513 rm -f core conftest.err conftest.$ac_objext \
5514 conftest$ac_exeext
5515 if test "${ac_cv_search_hypot+set}" = set; then :
5516 break
5518 done
5519 if test "${ac_cv_search_hypot+set}" = set; then :
5521 else
5522 ac_cv_search_hypot=no
5524 rm conftest.$ac_ext
5525 LIBS=$ac_func_search_save_LIBS
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypot" >&5
5528 $as_echo "$ac_cv_search_hypot" >&6; }
5529 ac_res=$ac_cv_search_hypot
5530 if test "$ac_res" != no; then :
5531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5533 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
5537 CFLAGS="$OLD_CFLAGS"
5540 # Checks for math functions using floats.
5541 # Using floats instead of doubles makes gcc use SSE with -msse
5542 # The replacement are #defined in math_floats.h.
5543 OLD_CFLAGS="$CFLAGS"
5544 CFLAGS="$CFLAGS -w"
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrtf" >&5
5546 $as_echo_n "checking for library containing sqrtf... " >&6; }
5547 if test "${ac_cv_search_sqrtf+set}" = set; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 ac_func_search_save_LIBS=$LIBS
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5554 /* Override any GCC internal prototype to avoid an error.
5555 Use char because int might match the return type of a GCC
5556 builtin and then its argument prototype would still apply. */
5557 #ifdef __cplusplus
5558 extern "C"
5559 #endif
5560 char sqrtf ();
5562 main ()
5564 return sqrtf ();
5566 return 0;
5568 _ACEOF
5569 for ac_lib in '' m mx; do
5570 if test -z "$ac_lib"; then
5571 ac_res="none required"
5572 else
5573 ac_res=-l$ac_lib
5574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5576 if ac_fn_c_try_link "$LINENO"; then :
5577 ac_cv_search_sqrtf=$ac_res
5579 rm -f core conftest.err conftest.$ac_objext \
5580 conftest$ac_exeext
5581 if test "${ac_cv_search_sqrtf+set}" = set; then :
5582 break
5584 done
5585 if test "${ac_cv_search_sqrtf+set}" = set; then :
5587 else
5588 ac_cv_search_sqrtf=no
5590 rm conftest.$ac_ext
5591 LIBS=$ac_func_search_save_LIBS
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrtf" >&5
5594 $as_echo "$ac_cv_search_sqrtf" >&6; }
5595 ac_res=$ac_cv_search_sqrtf
5596 if test "$ac_res" != no; then :
5597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5599 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
5603 CFLAGS="$OLD_CFLAGS"
5604 OLD_CFLAGS="$CFLAGS"
5605 CFLAGS="$CFLAGS -w"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypotf" >&5
5607 $as_echo_n "checking for library containing hypotf... " >&6; }
5608 if test "${ac_cv_search_hypotf+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 ac_func_search_save_LIBS=$LIBS
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5615 /* Override any GCC internal prototype to avoid an error.
5616 Use char because int might match the return type of a GCC
5617 builtin and then its argument prototype would still apply. */
5618 #ifdef __cplusplus
5619 extern "C"
5620 #endif
5621 char hypotf ();
5623 main ()
5625 return hypotf ();
5627 return 0;
5629 _ACEOF
5630 for ac_lib in '' m mx; do
5631 if test -z "$ac_lib"; then
5632 ac_res="none required"
5633 else
5634 ac_res=-l$ac_lib
5635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5637 if ac_fn_c_try_link "$LINENO"; then :
5638 ac_cv_search_hypotf=$ac_res
5640 rm -f core conftest.err conftest.$ac_objext \
5641 conftest$ac_exeext
5642 if test "${ac_cv_search_hypotf+set}" = set; then :
5643 break
5645 done
5646 if test "${ac_cv_search_hypotf+set}" = set; then :
5648 else
5649 ac_cv_search_hypotf=no
5651 rm conftest.$ac_ext
5652 LIBS=$ac_func_search_save_LIBS
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypotf" >&5
5655 $as_echo "$ac_cv_search_hypotf" >&6; }
5656 ac_res=$ac_cv_search_hypotf
5657 if test "$ac_res" != no; then :
5658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5660 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
5664 CFLAGS="$OLD_CFLAGS"
5665 OLD_CFLAGS="$CFLAGS"
5666 CFLAGS="$CFLAGS -w"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2f" >&5
5668 $as_echo_n "checking for library containing atan2f... " >&6; }
5669 if test "${ac_cv_search_atan2f+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 ac_func_search_save_LIBS=$LIBS
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5676 /* Override any GCC internal prototype to avoid an error.
5677 Use char because int might match the return type of a GCC
5678 builtin and then its argument prototype would still apply. */
5679 #ifdef __cplusplus
5680 extern "C"
5681 #endif
5682 char atan2f ();
5684 main ()
5686 return atan2f ();
5688 return 0;
5690 _ACEOF
5691 for ac_lib in '' m mx; do
5692 if test -z "$ac_lib"; then
5693 ac_res="none required"
5694 else
5695 ac_res=-l$ac_lib
5696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5698 if ac_fn_c_try_link "$LINENO"; then :
5699 ac_cv_search_atan2f=$ac_res
5701 rm -f core conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext
5703 if test "${ac_cv_search_atan2f+set}" = set; then :
5704 break
5706 done
5707 if test "${ac_cv_search_atan2f+set}" = set; then :
5709 else
5710 ac_cv_search_atan2f=no
5712 rm conftest.$ac_ext
5713 LIBS=$ac_func_search_save_LIBS
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2f" >&5
5716 $as_echo "$ac_cv_search_atan2f" >&6; }
5717 ac_res=$ac_cv_search_atan2f
5718 if test "$ac_res" != no; then :
5719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5721 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
5725 CFLAGS="$OLD_CFLAGS"
5726 OLD_CFLAGS="$CFLAGS"
5727 CFLAGS="$CFLAGS -w"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing powf" >&5
5729 $as_echo_n "checking for library containing powf... " >&6; }
5730 if test "${ac_cv_search_powf+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 ac_func_search_save_LIBS=$LIBS
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5737 /* Override any GCC internal prototype to avoid an error.
5738 Use char because int might match the return type of a GCC
5739 builtin and then its argument prototype would still apply. */
5740 #ifdef __cplusplus
5741 extern "C"
5742 #endif
5743 char powf ();
5745 main ()
5747 return powf ();
5749 return 0;
5751 _ACEOF
5752 for ac_lib in '' m mx; do
5753 if test -z "$ac_lib"; then
5754 ac_res="none required"
5755 else
5756 ac_res=-l$ac_lib
5757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5759 if ac_fn_c_try_link "$LINENO"; then :
5760 ac_cv_search_powf=$ac_res
5762 rm -f core conftest.err conftest.$ac_objext \
5763 conftest$ac_exeext
5764 if test "${ac_cv_search_powf+set}" = set; then :
5765 break
5767 done
5768 if test "${ac_cv_search_powf+set}" = set; then :
5770 else
5771 ac_cv_search_powf=no
5773 rm conftest.$ac_ext
5774 LIBS=$ac_func_search_save_LIBS
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_powf" >&5
5777 $as_echo "$ac_cv_search_powf" >&6; }
5778 ac_res=$ac_cv_search_powf
5779 if test "$ac_res" != no; then :
5780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5782 $as_echo "#define HAVE_POWF 1" >>confdefs.h
5786 CFLAGS="$OLD_CFLAGS"
5787 OLD_CFLAGS="$CFLAGS"
5788 CFLAGS="$CFLAGS -w"
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceilf" >&5
5790 $as_echo_n "checking for library containing ceilf... " >&6; }
5791 if test "${ac_cv_search_ceilf+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 ac_func_search_save_LIBS=$LIBS
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5798 /* Override any GCC internal prototype to avoid an error.
5799 Use char because int might match the return type of a GCC
5800 builtin and then its argument prototype would still apply. */
5801 #ifdef __cplusplus
5802 extern "C"
5803 #endif
5804 char ceilf ();
5806 main ()
5808 return ceilf ();
5810 return 0;
5812 _ACEOF
5813 for ac_lib in '' m mx; do
5814 if test -z "$ac_lib"; then
5815 ac_res="none required"
5816 else
5817 ac_res=-l$ac_lib
5818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5820 if ac_fn_c_try_link "$LINENO"; then :
5821 ac_cv_search_ceilf=$ac_res
5823 rm -f core conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext
5825 if test "${ac_cv_search_ceilf+set}" = set; then :
5826 break
5828 done
5829 if test "${ac_cv_search_ceilf+set}" = set; then :
5831 else
5832 ac_cv_search_ceilf=no
5834 rm conftest.$ac_ext
5835 LIBS=$ac_func_search_save_LIBS
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceilf" >&5
5838 $as_echo "$ac_cv_search_ceilf" >&6; }
5839 ac_res=$ac_cv_search_ceilf
5840 if test "$ac_res" != no; then :
5841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5843 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
5847 CFLAGS="$OLD_CFLAGS"
5848 OLD_CFLAGS="$CFLAGS"
5849 CFLAGS="$CFLAGS -w"
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
5851 $as_echo_n "checking for library containing cosf... " >&6; }
5852 if test "${ac_cv_search_cosf+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 ac_func_search_save_LIBS=$LIBS
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5859 /* Override any GCC internal prototype to avoid an error.
5860 Use char because int might match the return type of a GCC
5861 builtin and then its argument prototype would still apply. */
5862 #ifdef __cplusplus
5863 extern "C"
5864 #endif
5865 char cosf ();
5867 main ()
5869 return cosf ();
5871 return 0;
5873 _ACEOF
5874 for ac_lib in '' m mx; do
5875 if test -z "$ac_lib"; then
5876 ac_res="none required"
5877 else
5878 ac_res=-l$ac_lib
5879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5881 if ac_fn_c_try_link "$LINENO"; then :
5882 ac_cv_search_cosf=$ac_res
5884 rm -f core conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext
5886 if test "${ac_cv_search_cosf+set}" = set; then :
5887 break
5889 done
5890 if test "${ac_cv_search_cosf+set}" = set; then :
5892 else
5893 ac_cv_search_cosf=no
5895 rm conftest.$ac_ext
5896 LIBS=$ac_func_search_save_LIBS
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
5899 $as_echo "$ac_cv_search_cosf" >&6; }
5900 ac_res=$ac_cv_search_cosf
5901 if test "$ac_res" != no; then :
5902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5904 $as_echo "#define HAVE_COSF 1" >>confdefs.h
5908 CFLAGS="$OLD_CFLAGS"
5909 OLD_CFLAGS="$CFLAGS"
5910 CFLAGS="$CFLAGS -w"
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sinf" >&5
5912 $as_echo_n "checking for library containing sinf... " >&6; }
5913 if test "${ac_cv_search_sinf+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 ac_func_search_save_LIBS=$LIBS
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5920 /* Override any GCC internal prototype to avoid an error.
5921 Use char because int might match the return type of a GCC
5922 builtin and then its argument prototype would still apply. */
5923 #ifdef __cplusplus
5924 extern "C"
5925 #endif
5926 char sinf ();
5928 main ()
5930 return sinf ();
5932 return 0;
5934 _ACEOF
5935 for ac_lib in '' m mx; do
5936 if test -z "$ac_lib"; then
5937 ac_res="none required"
5938 else
5939 ac_res=-l$ac_lib
5940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5942 if ac_fn_c_try_link "$LINENO"; then :
5943 ac_cv_search_sinf=$ac_res
5945 rm -f core conftest.err conftest.$ac_objext \
5946 conftest$ac_exeext
5947 if test "${ac_cv_search_sinf+set}" = set; then :
5948 break
5950 done
5951 if test "${ac_cv_search_sinf+set}" = set; then :
5953 else
5954 ac_cv_search_sinf=no
5956 rm conftest.$ac_ext
5957 LIBS=$ac_func_search_save_LIBS
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sinf" >&5
5960 $as_echo "$ac_cv_search_sinf" >&6; }
5961 ac_res=$ac_cv_search_sinf
5962 if test "$ac_res" != no; then :
5963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5965 $as_echo "#define HAVE_SINF 1" >>confdefs.h
5969 CFLAGS="$OLD_CFLAGS"
5970 OLD_CFLAGS="$CFLAGS"
5971 CFLAGS="$CFLAGS -w"
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acosf" >&5
5973 $as_echo_n "checking for library containing acosf... " >&6; }
5974 if test "${ac_cv_search_acosf+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 ac_func_search_save_LIBS=$LIBS
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5981 /* Override any GCC internal prototype to avoid an error.
5982 Use char because int might match the return type of a GCC
5983 builtin and then its argument prototype would still apply. */
5984 #ifdef __cplusplus
5985 extern "C"
5986 #endif
5987 char acosf ();
5989 main ()
5991 return acosf ();
5993 return 0;
5995 _ACEOF
5996 for ac_lib in '' m mx; do
5997 if test -z "$ac_lib"; then
5998 ac_res="none required"
5999 else
6000 ac_res=-l$ac_lib
6001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6003 if ac_fn_c_try_link "$LINENO"; then :
6004 ac_cv_search_acosf=$ac_res
6006 rm -f core conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext
6008 if test "${ac_cv_search_acosf+set}" = set; then :
6009 break
6011 done
6012 if test "${ac_cv_search_acosf+set}" = set; then :
6014 else
6015 ac_cv_search_acosf=no
6017 rm conftest.$ac_ext
6018 LIBS=$ac_func_search_save_LIBS
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acosf" >&5
6021 $as_echo "$ac_cv_search_acosf" >&6; }
6022 ac_res=$ac_cv_search_acosf
6023 if test "$ac_res" != no; then :
6024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6026 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
6030 CFLAGS="$OLD_CFLAGS"
6031 OLD_CFLAGS="$CFLAGS"
6032 CFLAGS="$CFLAGS -w"
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmodf" >&5
6034 $as_echo_n "checking for library containing fmodf... " >&6; }
6035 if test "${ac_cv_search_fmodf+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 ac_func_search_save_LIBS=$LIBS
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6042 /* Override any GCC internal prototype to avoid an error.
6043 Use char because int might match the return type of a GCC
6044 builtin and then its argument prototype would still apply. */
6045 #ifdef __cplusplus
6046 extern "C"
6047 #endif
6048 char fmodf ();
6050 main ()
6052 return fmodf ();
6054 return 0;
6056 _ACEOF
6057 for ac_lib in '' m mx; do
6058 if test -z "$ac_lib"; then
6059 ac_res="none required"
6060 else
6061 ac_res=-l$ac_lib
6062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6064 if ac_fn_c_try_link "$LINENO"; then :
6065 ac_cv_search_fmodf=$ac_res
6067 rm -f core conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext
6069 if test "${ac_cv_search_fmodf+set}" = set; then :
6070 break
6072 done
6073 if test "${ac_cv_search_fmodf+set}" = set; then :
6075 else
6076 ac_cv_search_fmodf=no
6078 rm conftest.$ac_ext
6079 LIBS=$ac_func_search_save_LIBS
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmodf" >&5
6082 $as_echo "$ac_cv_search_fmodf" >&6; }
6083 ac_res=$ac_cv_search_fmodf
6084 if test "$ac_res" != no; then :
6085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6087 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
6091 CFLAGS="$OLD_CFLAGS"
6092 OLD_CFLAGS="$CFLAGS"
6093 CFLAGS="$CFLAGS -w"
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
6095 $as_echo_n "checking for library containing fabsf... " >&6; }
6096 if test "${ac_cv_search_fabsf+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 ac_func_search_save_LIBS=$LIBS
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6103 /* Override any GCC internal prototype to avoid an error.
6104 Use char because int might match the return type of a GCC
6105 builtin and then its argument prototype would still apply. */
6106 #ifdef __cplusplus
6107 extern "C"
6108 #endif
6109 char fabsf ();
6111 main ()
6113 return fabsf ();
6115 return 0;
6117 _ACEOF
6118 for ac_lib in '' m mx; do
6119 if test -z "$ac_lib"; then
6120 ac_res="none required"
6121 else
6122 ac_res=-l$ac_lib
6123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6125 if ac_fn_c_try_link "$LINENO"; then :
6126 ac_cv_search_fabsf=$ac_res
6128 rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext
6130 if test "${ac_cv_search_fabsf+set}" = set; then :
6131 break
6133 done
6134 if test "${ac_cv_search_fabsf+set}" = set; then :
6136 else
6137 ac_cv_search_fabsf=no
6139 rm conftest.$ac_ext
6140 LIBS=$ac_func_search_save_LIBS
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
6143 $as_echo "$ac_cv_search_fabsf" >&6; }
6144 ac_res=$ac_cv_search_fabsf
6145 if test "$ac_res" != no; then :
6146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6148 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
6152 CFLAGS="$OLD_CFLAGS"
6153 OLD_CFLAGS="$CFLAGS"
6154 CFLAGS="$CFLAGS -w"
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10f" >&5
6156 $as_echo_n "checking for library containing log10f... " >&6; }
6157 if test "${ac_cv_search_log10f+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 ac_func_search_save_LIBS=$LIBS
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6164 /* Override any GCC internal prototype to avoid an error.
6165 Use char because int might match the return type of a GCC
6166 builtin and then its argument prototype would still apply. */
6167 #ifdef __cplusplus
6168 extern "C"
6169 #endif
6170 char log10f ();
6172 main ()
6174 return log10f ();
6176 return 0;
6178 _ACEOF
6179 for ac_lib in '' m mx; do
6180 if test -z "$ac_lib"; then
6181 ac_res="none required"
6182 else
6183 ac_res=-l$ac_lib
6184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6186 if ac_fn_c_try_link "$LINENO"; then :
6187 ac_cv_search_log10f=$ac_res
6189 rm -f core conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext
6191 if test "${ac_cv_search_log10f+set}" = set; then :
6192 break
6194 done
6195 if test "${ac_cv_search_log10f+set}" = set; then :
6197 else
6198 ac_cv_search_log10f=no
6200 rm conftest.$ac_ext
6201 LIBS=$ac_func_search_save_LIBS
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10f" >&5
6204 $as_echo "$ac_cv_search_log10f" >&6; }
6205 ac_res=$ac_cv_search_log10f
6206 if test "$ac_res" != no; then :
6207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6209 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
6213 CFLAGS="$OLD_CFLAGS"
6215 # If we don't have ftello, we'll use ftell.
6216 for ac_func in ftello
6217 do :
6218 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
6219 if test "x$ac_cv_func_ftello" = x""yes; then :
6220 cat >>confdefs.h <<_ACEOF
6221 #define HAVE_FTELLO 1
6222 _ACEOF
6225 done
6228 # If we don't have fseeko, we'll use fseek.
6229 for ac_func in fseeko
6230 do :
6231 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
6232 if test "x$ac_cv_func_fseeko" = x""yes; then :
6233 cat >>confdefs.h <<_ACEOF
6234 #define HAVE_FSEEKO 1
6235 _ACEOF
6238 done
6242 # Checks for getdelim, this is a GNU extension.
6243 CFLAGS="$CFLAGS -D_GNU_SOURCE"
6244 for ac_func in getdelim
6245 do :
6246 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
6247 if test "x$ac_cv_func_getdelim" = x""yes; then :
6248 cat >>confdefs.h <<_ACEOF
6249 #define HAVE_GETDELIM 1
6250 _ACEOF
6252 have_getdelim="yes"
6254 else
6256 have_getdelim="no"
6259 done
6262 if test "$have_getdelim" = "yes"; then
6263 GETDELIM_TRUE=
6264 GETDELIM_FALSE='#'
6265 else
6266 GETDELIM_TRUE='#'
6267 GETDELIM_FALSE=
6272 # Checks for getopt_long, another GNU extension.
6273 for ac_func in getopt_long
6274 do :
6275 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6276 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6277 cat >>confdefs.h <<_ACEOF
6278 #define HAVE_GETOPT_LONG 1
6279 _ACEOF
6281 have_getopt_long="yes"
6283 else
6285 have_getopt_long="no"
6288 done
6291 if test "$have_getopt_long" = "yes"; then
6292 GETOPT_LONG_TRUE=
6293 GETOPT_LONG_FALSE='#'
6294 else
6295 GETOPT_LONG_TRUE='#'
6296 GETOPT_LONG_FALSE=
6301 if test "$have_getdelim" = "no" ||
6302 test "$have_getopt_long" = "no"; then
6303 if true; then
6304 NEED_REPLACEMENTS_TRUE=
6305 NEED_REPLACEMENTS_FALSE='#'
6306 else
6307 NEED_REPLACEMENTS_TRUE='#'
6308 NEED_REPLACEMENTS_FALSE=
6311 else
6312 if false; then
6313 NEED_REPLACEMENTS_TRUE=
6314 NEED_REPLACEMENTS_FALSE='#'
6315 else
6316 NEED_REPLACEMENTS_TRUE='#'
6317 NEED_REPLACEMENTS_FALSE=
6323 # Checks for flavours of varargs macros (borrowed from glib-2)
6324 # ISO C99
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros" >&5
6326 $as_echo_n "checking for ISO C99 varargs macros... " >&6; }
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6332 main ()
6335 int a(int p1, int p2, int p3);
6336 #define call_a(...) a(1,__VA_ARGS__)
6337 call_a(2,3);
6340 return 0;
6342 _ACEOF
6343 if ac_fn_c_try_compile "$LINENO"; then :
6344 have_iso_c_varargs=yes
6345 else
6346 have_iso_c_varargs=no
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_iso_c_varargs" >&5
6351 $as_echo "$have_iso_c_varargs" >&6; }
6353 if test $have_iso_c_varargs = yes; then
6354 iso_c_varargs=1
6355 else
6356 iso_c_varargs=0
6360 cat >>confdefs.h <<_ACEOF
6361 #define HAVE_ISO_C_VARARGS $iso_c_varargs
6362 _ACEOF
6365 if test $have_iso_c_varargs = no; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ISO C99 variadic macros" >&5
6367 $as_echo "$as_me: WARNING: No ISO C99 variadic macros" >&2;}
6370 # 32bit or 64bit ?
6371 # The cast to long int works around a bug in the HP C Compiler
6372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6374 # This bug is HP SR number 8606223364.
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
6376 $as_echo_n "checking size of unsigned long... " >&6; }
6377 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
6382 else
6383 if test "$ac_cv_type_unsigned_long" = yes; then
6384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6386 as_fn_error 77 "cannot compute sizeof (unsigned long)
6387 See \`config.log' for more details" "$LINENO" 5 ; }
6388 else
6389 ac_cv_sizeof_unsigned_long=0
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
6395 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
6399 cat >>confdefs.h <<_ACEOF
6400 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
6401 _ACEOF
6405 # Checks for X.
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6407 $as_echo_n "checking for X... " >&6; }
6410 # Check whether --with-x was given.
6411 if test "${with_x+set}" = set; then :
6412 withval=$with_x;
6415 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6416 if test "x$with_x" = xno; then
6417 # The user explicitly disabled X.
6418 have_x=disabled
6419 else
6420 case $x_includes,$x_libraries in #(
6421 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
6422 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 # One or both of the vars are not set, and there is no cached value.
6426 ac_x_includes=no ac_x_libraries=no
6427 rm -f -r conftest.dir
6428 if mkdir conftest.dir; then
6429 cd conftest.dir
6430 cat >Imakefile <<'_ACEOF'
6431 incroot:
6432 @echo incroot='${INCROOT}'
6433 usrlibdir:
6434 @echo usrlibdir='${USRLIBDIR}'
6435 libdir:
6436 @echo libdir='${LIBDIR}'
6437 _ACEOF
6438 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6439 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6440 for ac_var in incroot usrlibdir libdir; do
6441 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6442 done
6443 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6444 for ac_extension in a so sl dylib la dll; do
6445 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6446 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6447 ac_im_usrlibdir=$ac_im_libdir; break
6449 done
6450 # Screen out bogus values from the imake configuration. They are
6451 # bogus both because they are the default anyway, and because
6452 # using them would break gcc on systems where it needs fixed includes.
6453 case $ac_im_incroot in
6454 /usr/include) ac_x_includes= ;;
6455 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6456 esac
6457 case $ac_im_usrlibdir in
6458 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6459 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6460 esac
6462 cd ..
6463 rm -f -r conftest.dir
6466 # Standard set of common directories for X headers.
6467 # Check X11 before X11Rn because it is often a symlink to the current release.
6468 ac_x_header_dirs='
6469 /usr/X11/include
6470 /usr/X11R7/include
6471 /usr/X11R6/include
6472 /usr/X11R5/include
6473 /usr/X11R4/include
6475 /usr/include/X11
6476 /usr/include/X11R7
6477 /usr/include/X11R6
6478 /usr/include/X11R5
6479 /usr/include/X11R4
6481 /usr/local/X11/include
6482 /usr/local/X11R7/include
6483 /usr/local/X11R6/include
6484 /usr/local/X11R5/include
6485 /usr/local/X11R4/include
6487 /usr/local/include/X11
6488 /usr/local/include/X11R7
6489 /usr/local/include/X11R6
6490 /usr/local/include/X11R5
6491 /usr/local/include/X11R4
6493 /usr/X386/include
6494 /usr/x386/include
6495 /usr/XFree86/include/X11
6497 /usr/include
6498 /usr/local/include
6499 /usr/unsupported/include
6500 /usr/athena/include
6501 /usr/local/x11r5/include
6502 /usr/lpp/Xamples/include
6504 /usr/openwin/include
6505 /usr/openwin/share/include'
6507 if test "$ac_x_includes" = no; then
6508 # Guess where to find include files, by looking for Xlib.h.
6509 # First, try using that file with no special directory specified.
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 #include <X11/Xlib.h>
6513 _ACEOF
6514 if ac_fn_c_try_cpp "$LINENO"; then :
6515 # We can compile using X headers with no special include directory.
6516 ac_x_includes=
6517 else
6518 for ac_dir in $ac_x_header_dirs; do
6519 if test -r "$ac_dir/X11/Xlib.h"; then
6520 ac_x_includes=$ac_dir
6521 break
6523 done
6525 rm -f conftest.err conftest.i conftest.$ac_ext
6526 fi # $ac_x_includes = no
6528 if test "$ac_x_libraries" = no; then
6529 # Check for the libraries.
6530 # See if we find them without any special options.
6531 # Don't add to $LIBS permanently.
6532 ac_save_LIBS=$LIBS
6533 LIBS="-lX11 $LIBS"
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #include <X11/Xlib.h>
6538 main ()
6540 XrmInitialize ()
6542 return 0;
6544 _ACEOF
6545 if ac_fn_c_try_link "$LINENO"; then :
6546 LIBS=$ac_save_LIBS
6547 # We can link X programs with no special library path.
6548 ac_x_libraries=
6549 else
6550 LIBS=$ac_save_LIBS
6551 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6553 # Don't even attempt the hair of trying to link an X program!
6554 for ac_extension in a so sl dylib la dll; do
6555 if test -r "$ac_dir/libX11.$ac_extension"; then
6556 ac_x_libraries=$ac_dir
6557 break 2
6559 done
6560 done
6562 rm -f core conftest.err conftest.$ac_objext \
6563 conftest$ac_exeext conftest.$ac_ext
6564 fi # $ac_x_libraries = no
6566 case $ac_x_includes,$ac_x_libraries in #(
6567 no,* | *,no | *\'*)
6568 # Didn't find X, or a directory has "'" in its name.
6569 ac_cv_have_x="have_x=no";; #(
6571 # Record where we found X for the cache.
6572 ac_cv_have_x="have_x=yes\
6573 ac_x_includes='$ac_x_includes'\
6574 ac_x_libraries='$ac_x_libraries'"
6575 esac
6577 ;; #(
6578 *) have_x=yes;;
6579 esac
6580 eval "$ac_cv_have_x"
6581 fi # $with_x != no
6583 if test "$have_x" != yes; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6585 $as_echo "$have_x" >&6; }
6586 no_x=yes
6587 else
6588 # If each of the values was on the command line, it overrides each guess.
6589 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6590 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6591 # Update the cache value to reflect the command line values.
6592 ac_cv_have_x="have_x=yes\
6593 ac_x_includes='$x_includes'\
6594 ac_x_libraries='$x_libraries'"
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6596 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6599 if test "$no_x" = yes; then
6600 # Not all programs may use this symbol, but it does not hurt to define it.
6602 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6604 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6605 else
6606 if test -n "$x_includes"; then
6607 X_CFLAGS="$X_CFLAGS -I$x_includes"
6610 # It would also be nice to do this for all -L options, not just this one.
6611 if test -n "$x_libraries"; then
6612 X_LIBS="$X_LIBS -L$x_libraries"
6613 # For Solaris; some versions of Sun CC require a space after -R and
6614 # others require no space. Words are not sufficient . . . .
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6616 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6617 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6618 ac_xsave_c_werror_flag=$ac_c_werror_flag
6619 ac_c_werror_flag=yes
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6624 main ()
6628 return 0;
6630 _ACEOF
6631 if ac_fn_c_try_link "$LINENO"; then :
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6634 X_LIBS="$X_LIBS -R$x_libraries"
6635 else
6636 LIBS="$ac_xsave_LIBS -R $x_libraries"
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6641 main ()
6645 return 0;
6647 _ACEOF
6648 if ac_fn_c_try_link "$LINENO"; then :
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6650 $as_echo "yes" >&6; }
6651 X_LIBS="$X_LIBS -R $x_libraries"
6652 else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6654 $as_echo "neither works" >&6; }
6656 rm -f core conftest.err conftest.$ac_objext \
6657 conftest$ac_exeext conftest.$ac_ext
6659 rm -f core conftest.err conftest.$ac_objext \
6660 conftest$ac_exeext conftest.$ac_ext
6661 ac_c_werror_flag=$ac_xsave_c_werror_flag
6662 LIBS=$ac_xsave_LIBS
6665 # Check for system-dependent libraries X programs must link with.
6666 # Do this before checking for the system-independent R6 libraries
6667 # (-lICE), since we may need -lsocket or whatever for X linking.
6669 if test "$ISC" = yes; then
6670 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6671 else
6672 # Martyn Johnson says this is needed for Ultrix, if the X
6673 # libraries were built with DECnet support. And Karl Berry says
6674 # the Alpha needs dnet_stub (dnet does not exist).
6675 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6679 /* Override any GCC internal prototype to avoid an error.
6680 Use char because int might match the return type of a GCC
6681 builtin and then its argument prototype would still apply. */
6682 #ifdef __cplusplus
6683 extern "C"
6684 #endif
6685 char XOpenDisplay ();
6687 main ()
6689 return XOpenDisplay ();
6691 return 0;
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"; then :
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6698 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6699 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 ac_check_lib_save_LIBS=$LIBS
6703 LIBS="-ldnet $LIBS"
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6707 /* Override any GCC internal prototype to avoid an error.
6708 Use char because int might match the return type of a GCC
6709 builtin and then its argument prototype would still apply. */
6710 #ifdef __cplusplus
6711 extern "C"
6712 #endif
6713 char dnet_ntoa ();
6715 main ()
6717 return dnet_ntoa ();
6719 return 0;
6721 _ACEOF
6722 if ac_fn_c_try_link "$LINENO"; then :
6723 ac_cv_lib_dnet_dnet_ntoa=yes
6724 else
6725 ac_cv_lib_dnet_dnet_ntoa=no
6727 rm -f core conftest.err conftest.$ac_objext \
6728 conftest$ac_exeext conftest.$ac_ext
6729 LIBS=$ac_check_lib_save_LIBS
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6732 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6733 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6734 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6737 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6739 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6740 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 ac_check_lib_save_LIBS=$LIBS
6744 LIBS="-ldnet_stub $LIBS"
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6748 /* Override any GCC internal prototype to avoid an error.
6749 Use char because int might match the return type of a GCC
6750 builtin and then its argument prototype would still apply. */
6751 #ifdef __cplusplus
6752 extern "C"
6753 #endif
6754 char dnet_ntoa ();
6756 main ()
6758 return dnet_ntoa ();
6760 return 0;
6762 _ACEOF
6763 if ac_fn_c_try_link "$LINENO"; then :
6764 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6765 else
6766 ac_cv_lib_dnet_stub_dnet_ntoa=no
6768 rm -f core conftest.err conftest.$ac_objext \
6769 conftest$ac_exeext conftest.$ac_ext
6770 LIBS=$ac_check_lib_save_LIBS
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6773 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6774 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6775 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6780 rm -f core conftest.err conftest.$ac_objext \
6781 conftest$ac_exeext conftest.$ac_ext
6782 LIBS="$ac_xsave_LIBS"
6784 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6785 # to get the SysV transport functions.
6786 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6787 # needs -lnsl.
6788 # The nsl library prevents programs from opening the X display
6789 # on Irix 5.2, according to T.E. Dickey.
6790 # The functions gethostbyname, getservbyname, and inet_addr are
6791 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6792 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6793 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6797 if test $ac_cv_func_gethostbyname = no; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6799 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6800 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 ac_check_lib_save_LIBS=$LIBS
6804 LIBS="-lnsl $LIBS"
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6808 /* Override any GCC internal prototype to avoid an error.
6809 Use char because int might match the return type of a GCC
6810 builtin and then its argument prototype would still apply. */
6811 #ifdef __cplusplus
6812 extern "C"
6813 #endif
6814 char gethostbyname ();
6816 main ()
6818 return gethostbyname ();
6820 return 0;
6822 _ACEOF
6823 if ac_fn_c_try_link "$LINENO"; then :
6824 ac_cv_lib_nsl_gethostbyname=yes
6825 else
6826 ac_cv_lib_nsl_gethostbyname=no
6828 rm -f core conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
6830 LIBS=$ac_check_lib_save_LIBS
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6833 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6834 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6835 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6838 if test $ac_cv_lib_nsl_gethostbyname = no; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6840 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6841 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 ac_check_lib_save_LIBS=$LIBS
6845 LIBS="-lbsd $LIBS"
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6849 /* Override any GCC internal prototype to avoid an error.
6850 Use char because int might match the return type of a GCC
6851 builtin and then its argument prototype would still apply. */
6852 #ifdef __cplusplus
6853 extern "C"
6854 #endif
6855 char gethostbyname ();
6857 main ()
6859 return gethostbyname ();
6861 return 0;
6863 _ACEOF
6864 if ac_fn_c_try_link "$LINENO"; then :
6865 ac_cv_lib_bsd_gethostbyname=yes
6866 else
6867 ac_cv_lib_bsd_gethostbyname=no
6869 rm -f core conftest.err conftest.$ac_objext \
6870 conftest$ac_exeext conftest.$ac_ext
6871 LIBS=$ac_check_lib_save_LIBS
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6874 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6875 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6876 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6882 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6883 # socket/setsockopt and other routines are undefined under SCO ODT
6884 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6885 # on later versions), says Simon Leinen: it contains gethostby*
6886 # variants that don't use the name server (or something). -lsocket
6887 # must be given before -lnsl if both are needed. We assume that
6888 # if connect needs -lnsl, so does gethostbyname.
6889 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6890 if test "x$ac_cv_func_connect" = x""yes; then :
6894 if test $ac_cv_func_connect = no; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6896 $as_echo_n "checking for connect in -lsocket... " >&6; }
6897 if test "${ac_cv_lib_socket_connect+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 ac_check_lib_save_LIBS=$LIBS
6901 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6905 /* Override any GCC internal prototype to avoid an error.
6906 Use char because int might match the return type of a GCC
6907 builtin and then its argument prototype would still apply. */
6908 #ifdef __cplusplus
6909 extern "C"
6910 #endif
6911 char connect ();
6913 main ()
6915 return connect ();
6917 return 0;
6919 _ACEOF
6920 if ac_fn_c_try_link "$LINENO"; then :
6921 ac_cv_lib_socket_connect=yes
6922 else
6923 ac_cv_lib_socket_connect=no
6925 rm -f core conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6927 LIBS=$ac_check_lib_save_LIBS
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6930 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6931 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6932 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6937 # Guillermo Gomez says -lposix is necessary on A/UX.
6938 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6939 if test "x$ac_cv_func_remove" = x""yes; then :
6943 if test $ac_cv_func_remove = no; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6945 $as_echo_n "checking for remove in -lposix... " >&6; }
6946 if test "${ac_cv_lib_posix_remove+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 ac_check_lib_save_LIBS=$LIBS
6950 LIBS="-lposix $LIBS"
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6954 /* Override any GCC internal prototype to avoid an error.
6955 Use char because int might match the return type of a GCC
6956 builtin and then its argument prototype would still apply. */
6957 #ifdef __cplusplus
6958 extern "C"
6959 #endif
6960 char remove ();
6962 main ()
6964 return remove ();
6966 return 0;
6968 _ACEOF
6969 if ac_fn_c_try_link "$LINENO"; then :
6970 ac_cv_lib_posix_remove=yes
6971 else
6972 ac_cv_lib_posix_remove=no
6974 rm -f core conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6976 LIBS=$ac_check_lib_save_LIBS
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6979 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6980 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6986 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6987 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6988 if test "x$ac_cv_func_shmat" = x""yes; then :
6992 if test $ac_cv_func_shmat = no; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6994 $as_echo_n "checking for shmat in -lipc... " >&6; }
6995 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 ac_check_lib_save_LIBS=$LIBS
6999 LIBS="-lipc $LIBS"
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7003 /* Override any GCC internal prototype to avoid an error.
7004 Use char because int might match the return type of a GCC
7005 builtin and then its argument prototype would still apply. */
7006 #ifdef __cplusplus
7007 extern "C"
7008 #endif
7009 char shmat ();
7011 main ()
7013 return shmat ();
7015 return 0;
7017 _ACEOF
7018 if ac_fn_c_try_link "$LINENO"; then :
7019 ac_cv_lib_ipc_shmat=yes
7020 else
7021 ac_cv_lib_ipc_shmat=no
7023 rm -f core conftest.err conftest.$ac_objext \
7024 conftest$ac_exeext conftest.$ac_ext
7025 LIBS=$ac_check_lib_save_LIBS
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7028 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7029 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7030 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7036 # Check for libraries that X11R6 Xt/Xaw programs need.
7037 ac_save_LDFLAGS=$LDFLAGS
7038 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7039 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7040 # check for ICE first), but we must link in the order -lSM -lICE or
7041 # we get undefined symbols. So assume we have SM if we have ICE.
7042 # These have to be linked with before -lX11, unlike the other
7043 # libraries we check for below, so use a different variable.
7044 # John Interrante, Karl Berry
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7046 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7047 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 ac_check_lib_save_LIBS=$LIBS
7051 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7055 /* Override any GCC internal prototype to avoid an error.
7056 Use char because int might match the return type of a GCC
7057 builtin and then its argument prototype would still apply. */
7058 #ifdef __cplusplus
7059 extern "C"
7060 #endif
7061 char IceConnectionNumber ();
7063 main ()
7065 return IceConnectionNumber ();
7067 return 0;
7069 _ACEOF
7070 if ac_fn_c_try_link "$LINENO"; then :
7071 ac_cv_lib_ICE_IceConnectionNumber=yes
7072 else
7073 ac_cv_lib_ICE_IceConnectionNumber=no
7075 rm -f core conftest.err conftest.$ac_objext \
7076 conftest$ac_exeext conftest.$ac_ext
7077 LIBS=$ac_check_lib_save_LIBS
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7080 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7081 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7082 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7085 LDFLAGS=$ac_save_LDFLAGS
7089 CFLAGS="$X_CFLAGS $CFLAGS"
7090 LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7092 # Checks for GtkGLExt.
7099 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7100 if test -n "$ac_tool_prefix"; then
7101 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7102 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 case $PKG_CONFIG in
7109 [\\/]* | ?:[\\/]*)
7110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7124 done
7125 done
7126 IFS=$as_save_IFS
7129 esac
7131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7132 if test -n "$PKG_CONFIG"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7134 $as_echo "$PKG_CONFIG" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7142 if test -z "$ac_cv_path_PKG_CONFIG"; then
7143 ac_pt_PKG_CONFIG=$PKG_CONFIG
7144 # Extract the first word of "pkg-config", so it can be a program name with args.
7145 set dummy pkg-config; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 case $ac_pt_PKG_CONFIG in
7152 [\\/]* | ?:[\\/]*)
7153 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7172 esac
7174 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7175 if test -n "$ac_pt_PKG_CONFIG"; then
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7177 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7178 else
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7183 if test "x$ac_pt_PKG_CONFIG" = x; then
7184 PKG_CONFIG=""
7185 else
7186 case $cross_compiling:$ac_tool_warned in
7187 yes:)
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7190 ac_tool_warned=yes ;;
7191 esac
7192 PKG_CONFIG=$ac_pt_PKG_CONFIG
7194 else
7195 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7199 if test -n "$PKG_CONFIG"; then
7200 _pkg_min_version=0.9.0
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7202 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7203 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7205 $as_echo "yes" >&6; }
7206 else
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7209 PKG_CONFIG=""
7213 pkg_failed=no
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKGLEXT" >&5
7215 $as_echo_n "checking for GTKGLEXT... " >&6; }
7217 if test -n "$GTKGLEXT_CFLAGS"; then
7218 pkg_cv_GTKGLEXT_CFLAGS="$GTKGLEXT_CFLAGS"
7219 elif test -n "$PKG_CONFIG"; then
7220 if test -n "$PKG_CONFIG" && \
7221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5
7222 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5
7223 ac_status=$?
7224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225 test $ac_status = 0; }; then
7226 pkg_cv_GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0" 2>/dev/null`
7227 else
7228 pkg_failed=yes
7230 else
7231 pkg_failed=untried
7233 if test -n "$GTKGLEXT_LIBS"; then
7234 pkg_cv_GTKGLEXT_LIBS="$GTKGLEXT_LIBS"
7235 elif test -n "$PKG_CONFIG"; then
7236 if test -n "$PKG_CONFIG" && \
7237 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5
7238 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5
7239 ac_status=$?
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; then
7242 pkg_cv_GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0" 2>/dev/null`
7243 else
7244 pkg_failed=yes
7246 else
7247 pkg_failed=untried
7252 if test $pkg_failed = yes; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7256 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7257 _pkg_short_errors_supported=yes
7258 else
7259 _pkg_short_errors_supported=no
7261 if test $_pkg_short_errors_supported = yes; then
7262 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkglext-1.0 >= 0.7.0" 2>&1`
7263 else
7264 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkglext-1.0 >= 0.7.0" 2>&1`
7266 # Put the nasty error message in config.log where it belongs
7267 echo "$GTKGLEXT_PKG_ERRORS" >&5
7269 as_fn_error $? "Package requirements (gtkglext-1.0 >= 0.7.0) were not met:
7271 $GTKGLEXT_PKG_ERRORS
7273 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7274 installed software in a non-standard prefix.
7276 Alternatively, you may set the environment variables GTKGLEXT_CFLAGS
7277 and GTKGLEXT_LIBS to avoid the need to call pkg-config.
7278 See the pkg-config man page for more details." "$LINENO" 5
7279 elif test $pkg_failed = untried; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7284 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7285 is in your PATH or set the PKG_CONFIG environment variable to the full
7286 path to pkg-config.
7288 Alternatively, you may set the environment variables GTKGLEXT_CFLAGS
7289 and GTKGLEXT_LIBS to avoid the need to call pkg-config.
7290 See the pkg-config man page for more details.
7292 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7293 See \`config.log' for more details" "$LINENO" 5 ; }
7294 else
7295 GTKGLEXT_CFLAGS=$pkg_cv_GTKGLEXT_CFLAGS
7296 GTKGLEXT_LIBS=$pkg_cv_GTKGLEXT_LIBS
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7298 $as_echo "yes" >&6; }
7301 CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
7302 LIBS="$GTKGLEXT_LIBS $LIBS"
7303 GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
7305 # Checks for OpenGL.
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308 #include "GL/gl.h"
7310 main ()
7312 glBegin(GL_QUADS);
7314 return 0;
7316 _ACEOF
7317 if ac_fn_c_try_link "$LINENO"; then :
7318 ogl="yes"
7319 else
7320 ogl="no"
7322 rm -f core conftest.err conftest.$ac_objext \
7323 conftest$ac_exeext conftest.$ac_ext
7325 if test "x$ogl" = "xno"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: maybe libGL requires libpthread..." >&5
7327 $as_echo "$as_me: maybe libGL requires libpthread..." >&6;}
7328 LIBS="$LIBS -lpthread"
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 #include "GL/gl.h"
7333 main ()
7335 glBegin(GL_QUADS);
7337 return 0;
7339 _ACEOF
7340 if ac_fn_c_try_link "$LINENO"; then :
7342 else
7343 as_fn_error $? "cannot use -lGL" "$LINENO" 5
7345 rm -f core conftest.err conftest.$ac_objext \
7346 conftest$ac_exeext conftest.$ac_ext
7349 # Checks for gtk.
7350 # Check whether --enable-gtktest was given.
7351 if test "${enable_gtktest+set}" = set; then :
7352 enableval=$enable_gtktest;
7353 else
7354 enable_gtktest=yes
7358 pkg_config_args=gtk+-2.0
7359 for module in . gthread
7361 case "$module" in
7362 gthread)
7363 pkg_config_args="$pkg_config_args gthread-2.0"
7365 esac
7366 done
7368 no_gtk=""
7370 # Extract the first word of "pkg-config", so it can be a program name with args.
7371 set dummy pkg-config; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 case $PKG_CONFIG in
7378 [\\/]* | ?:[\\/]*)
7379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7393 done
7394 done
7395 IFS=$as_save_IFS
7397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7399 esac
7401 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7402 if test -n "$PKG_CONFIG"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7404 $as_echo "$PKG_CONFIG" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7412 if test x$PKG_CONFIG != xno ; then
7413 if pkg-config --atleast-pkgconfig-version 0.7 ; then
7415 else
7416 echo "*** pkg-config too old; version 0.7 or better required."
7417 no_gtk=yes
7418 PKG_CONFIG=no
7420 else
7421 no_gtk=yes
7424 min_gtk_version=2.6.0
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
7426 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
7428 if test x$PKG_CONFIG != xno ; then
7429 ## don't try to run the test against uninstalled libtool libs
7430 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7431 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7432 enable_gtktest=no
7435 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7437 else
7438 no_gtk=yes
7442 if test x"$no_gtk" = x ; then
7443 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7444 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7445 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7447 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7449 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7450 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7451 if test "x$enable_gtktest" = "xyes" ; then
7452 ac_save_CFLAGS="$CFLAGS"
7453 ac_save_LIBS="$LIBS"
7454 CFLAGS="$CFLAGS $GTK_CFLAGS"
7455 LIBS="$GTK_LIBS $LIBS"
7456 rm -f conf.gtktest
7457 if test "$cross_compiling" = yes; then :
7458 echo $ac_n "cross compiling; assumed OK... $ac_c"
7459 else
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7463 #include <gtk/gtk.h>
7464 #include <stdio.h>
7465 #include <stdlib.h>
7468 main ()
7470 int major, minor, micro;
7471 char *tmp_version;
7473 fclose (fopen ("conf.gtktest", "w"));
7475 /* HP/UX 9 (%@#!) writes to sscanf strings */
7476 tmp_version = g_strdup("$min_gtk_version");
7477 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7478 printf("%s, bad version string\n", "$min_gtk_version");
7479 exit(1);
7482 if ((gtk_major_version != $gtk_config_major_version) ||
7483 (gtk_minor_version != $gtk_config_minor_version) ||
7484 (gtk_micro_version != $gtk_config_micro_version))
7486 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7487 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7488 gtk_major_version, gtk_minor_version, gtk_micro_version);
7489 printf ("*** was found! If pkg-config was correct, then it is best\n");
7490 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7491 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7492 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7493 printf("*** required on your system.\n");
7494 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7495 printf("*** to point to the correct configuration files\n");
7497 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7498 (gtk_minor_version != GTK_MINOR_VERSION) ||
7499 (gtk_micro_version != GTK_MICRO_VERSION))
7501 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7502 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7503 printf("*** library (version %d.%d.%d)\n",
7504 gtk_major_version, gtk_minor_version, gtk_micro_version);
7506 else
7508 if ((gtk_major_version > major) ||
7509 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7510 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7512 return 0;
7514 else
7516 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7517 gtk_major_version, gtk_minor_version, gtk_micro_version);
7518 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7519 major, minor, micro);
7520 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7521 printf("***\n");
7522 printf("*** If you have already installed a sufficiently new version, this error\n");
7523 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7524 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7525 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7526 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7527 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7528 printf("*** so that the correct libraries are found at run-time))\n");
7531 return 1;
7534 _ACEOF
7535 if ac_fn_c_try_run "$LINENO"; then :
7537 else
7538 no_gtk=yes
7540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7541 conftest.$ac_objext conftest.beam conftest.$ac_ext
7544 CFLAGS="$ac_save_CFLAGS"
7545 LIBS="$ac_save_LIBS"
7548 if test "x$no_gtk" = x ; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7550 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7552 CFLAGS="$GTK_CFLAGS $CFLAGS"
7553 LIBS="$GTK_LIBS $LIBS"
7554 GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 if test "$PKG_CONFIG" = "no" ; then
7560 echo "*** A new enough version of pkg-config was not found."
7561 echo "*** See http://pkgconfig.sourceforge.net"
7562 else
7563 if test -f conf.gtktest ; then
7565 else
7566 echo "*** Could not run GTK+ test program, checking why..."
7567 ac_save_CFLAGS="$CFLAGS"
7568 ac_save_LIBS="$LIBS"
7569 CFLAGS="$CFLAGS $GTK_CFLAGS"
7570 LIBS="$LIBS $GTK_LIBS"
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7574 #include <gtk/gtk.h>
7575 #include <stdio.h>
7578 main ()
7580 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7582 return 0;
7584 _ACEOF
7585 if ac_fn_c_try_link "$LINENO"; then :
7586 echo "*** The test program compiled, but did not run. This usually means"
7587 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7588 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7589 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7590 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7591 echo "*** is required on your system"
7592 echo "***"
7593 echo "*** If you have an old version installed, it is best to remove it, although"
7594 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7595 else
7596 echo "*** The test program failed to compile or link. See the file config.log for the"
7597 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7599 rm -f core conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601 CFLAGS="$ac_save_CFLAGS"
7602 LIBS="$ac_save_LIBS"
7605 GTK_CFLAGS=""
7606 GTK_LIBS=""
7607 exit 1
7611 rm -f conf.gtktest
7614 # I18n.
7615 ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g')
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7619 $as_echo_n "checking whether NLS is requested... " >&6; }
7620 # Check whether --enable-nls was given.
7621 if test "${enable_nls+set}" = set; then :
7622 enableval=$enable_nls; USE_NLS=$enableval
7623 else
7624 USE_NLS=yes
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7628 $as_echo "$USE_NLS" >&6; }
7633 GETTEXT_MACRO_VERSION=0.18
7638 # Prepare PATH_SEPARATOR.
7639 # The user is always right.
7640 if test "${PATH_SEPARATOR+set}" != set; then
7641 echo "#! /bin/sh" >conf$$.sh
7642 echo "exit 0" >>conf$$.sh
7643 chmod +x conf$$.sh
7644 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7645 PATH_SEPARATOR=';'
7646 else
7647 PATH_SEPARATOR=:
7649 rm -f conf$$.sh
7652 # Find out how to test for executable files. Don't use a zero-byte file,
7653 # as systems may use methods other than mode bits to determine executability.
7654 cat >conf$$.file <<_ASEOF
7655 #! /bin/sh
7656 exit 0
7657 _ASEOF
7658 chmod +x conf$$.file
7659 if test -x conf$$.file >/dev/null 2>&1; then
7660 ac_executable_p="test -x"
7661 else
7662 ac_executable_p="test -f"
7664 rm -f conf$$.file
7666 # Extract the first word of "msgfmt", so it can be a program name with args.
7667 set dummy msgfmt; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if test "${ac_cv_path_MSGFMT+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 case "$MSGFMT" in
7674 [\\/]* | ?:[\\/]*)
7675 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7678 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7679 for ac_dir in $PATH; do
7680 IFS="$ac_save_IFS"
7681 test -z "$ac_dir" && ac_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7684 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7685 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7686 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7687 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7688 break 2
7691 done
7692 done
7693 IFS="$ac_save_IFS"
7694 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7696 esac
7698 MSGFMT="$ac_cv_path_MSGFMT"
7699 if test "$MSGFMT" != ":"; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7701 $as_echo "$MSGFMT" >&6; }
7702 else
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7707 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7708 set dummy gmsgfmt; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 case $GMSGFMT in
7715 [\\/]* | ?:[\\/]*)
7716 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7730 done
7731 done
7732 IFS=$as_save_IFS
7734 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7736 esac
7738 GMSGFMT=$ac_cv_path_GMSGFMT
7739 if test -n "$GMSGFMT"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7741 $as_echo "$GMSGFMT" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7749 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7750 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7751 *) MSGFMT_015=$MSGFMT ;;
7752 esac
7754 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7755 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7756 *) GMSGFMT_015=$GMSGFMT ;;
7757 esac
7761 # Prepare PATH_SEPARATOR.
7762 # The user is always right.
7763 if test "${PATH_SEPARATOR+set}" != set; then
7764 echo "#! /bin/sh" >conf$$.sh
7765 echo "exit 0" >>conf$$.sh
7766 chmod +x conf$$.sh
7767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7768 PATH_SEPARATOR=';'
7769 else
7770 PATH_SEPARATOR=:
7772 rm -f conf$$.sh
7775 # Find out how to test for executable files. Don't use a zero-byte file,
7776 # as systems may use methods other than mode bits to determine executability.
7777 cat >conf$$.file <<_ASEOF
7778 #! /bin/sh
7779 exit 0
7780 _ASEOF
7781 chmod +x conf$$.file
7782 if test -x conf$$.file >/dev/null 2>&1; then
7783 ac_executable_p="test -x"
7784 else
7785 ac_executable_p="test -f"
7787 rm -f conf$$.file
7789 # Extract the first word of "xgettext", so it can be a program name with args.
7790 set dummy xgettext; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 case "$XGETTEXT" in
7797 [\\/]* | ?:[\\/]*)
7798 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7801 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7802 for ac_dir in $PATH; do
7803 IFS="$ac_save_IFS"
7804 test -z "$ac_dir" && ac_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7807 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7808 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7809 (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
7810 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7811 break 2
7814 done
7815 done
7816 IFS="$ac_save_IFS"
7817 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7819 esac
7821 XGETTEXT="$ac_cv_path_XGETTEXT"
7822 if test "$XGETTEXT" != ":"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7824 $as_echo "$XGETTEXT" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7830 rm -f messages.po
7832 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7833 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7834 *) XGETTEXT_015=$XGETTEXT ;;
7835 esac
7839 # Prepare PATH_SEPARATOR.
7840 # The user is always right.
7841 if test "${PATH_SEPARATOR+set}" != set; then
7842 echo "#! /bin/sh" >conf$$.sh
7843 echo "exit 0" >>conf$$.sh
7844 chmod +x conf$$.sh
7845 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7846 PATH_SEPARATOR=';'
7847 else
7848 PATH_SEPARATOR=:
7850 rm -f conf$$.sh
7853 # Find out how to test for executable files. Don't use a zero-byte file,
7854 # as systems may use methods other than mode bits to determine executability.
7855 cat >conf$$.file <<_ASEOF
7856 #! /bin/sh
7857 exit 0
7858 _ASEOF
7859 chmod +x conf$$.file
7860 if test -x conf$$.file >/dev/null 2>&1; then
7861 ac_executable_p="test -x"
7862 else
7863 ac_executable_p="test -f"
7865 rm -f conf$$.file
7867 # Extract the first word of "msgmerge", so it can be a program name with args.
7868 set dummy msgmerge; ac_word=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 case "$MSGMERGE" in
7875 [\\/]* | ?:[\\/]*)
7876 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7879 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7880 for ac_dir in $PATH; do
7881 IFS="$ac_save_IFS"
7882 test -z "$ac_dir" && ac_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7885 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7886 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7887 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7888 break 2
7891 done
7892 done
7893 IFS="$ac_save_IFS"
7894 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7896 esac
7898 MSGMERGE="$ac_cv_path_MSGMERGE"
7899 if test "$MSGMERGE" != ":"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7901 $as_echo "$MSGMERGE" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7908 test -n "$localedir" || localedir='${datadir}/locale'
7911 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7914 ac_config_commands="$ac_config_commands po-directories"
7917 # Make sure we can run config.sub.
7918 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7919 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7922 $as_echo_n "checking build system type... " >&6; }
7923 if test "${ac_cv_build+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 ac_build_alias=$build_alias
7927 test "x$ac_build_alias" = x &&
7928 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7929 test "x$ac_build_alias" = x &&
7930 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7931 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7932 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7936 $as_echo "$ac_cv_build" >&6; }
7937 case $ac_cv_build in
7938 *-*-*) ;;
7939 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
7940 esac
7941 build=$ac_cv_build
7942 ac_save_IFS=$IFS; IFS='-'
7943 set x $ac_cv_build
7944 shift
7945 build_cpu=$1
7946 build_vendor=$2
7947 shift; shift
7948 # Remember, the first character of IFS is used to create $*,
7949 # except with old shells:
7950 build_os=$*
7951 IFS=$ac_save_IFS
7952 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7956 $as_echo_n "checking host system type... " >&6; }
7957 if test "${ac_cv_host+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 if test "x$host_alias" = x; then
7961 ac_cv_host=$ac_cv_build
7962 else
7963 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7964 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7969 $as_echo "$ac_cv_host" >&6; }
7970 case $ac_cv_host in
7971 *-*-*) ;;
7972 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
7973 esac
7974 host=$ac_cv_host
7975 ac_save_IFS=$IFS; IFS='-'
7976 set x $ac_cv_host
7977 shift
7978 host_cpu=$1
7979 host_vendor=$2
7980 shift; shift
7981 # Remember, the first character of IFS is used to create $*,
7982 # except with old shells:
7983 host_os=$*
7984 IFS=$ac_save_IFS
7985 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
7990 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
7991 if test "${ac_cv_gnu_library_2+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7997 #include <features.h>
7998 #ifdef __GNU_LIBRARY__
7999 #if (__GLIBC__ >= 2)
8000 Lucky GNU user
8001 #endif
8002 #endif
8004 _ACEOF
8005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8006 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
8007 ac_cv_gnu_library_2=yes
8008 else
8009 ac_cv_gnu_library_2=no
8011 rm -f conftest*
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
8017 $as_echo "$ac_cv_gnu_library_2" >&6; }
8019 GLIBC2="$ac_cv_gnu_library_2"
8024 CFLAG_VISIBILITY=
8025 HAVE_VISIBILITY=0
8026 if test -n "$GCC"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
8028 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
8029 if test "${gl_cv_cc_vis_werror+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8033 gl_save_CFLAGS="$CFLAGS"
8034 CFLAGS="$CFLAGS -Werror"
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8039 main ()
8043 return 0;
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047 gl_cv_cc_vis_werror=yes
8048 else
8049 gl_cv_cc_vis_werror=no
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052 CFLAGS="$gl_save_CFLAGS"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
8056 $as_echo "$gl_cv_cc_vis_werror" >&6; }
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
8058 $as_echo_n "checking for simple visibility declarations... " >&6; }
8059 if test "${gl_cv_cc_visibility+set}" = set; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8063 gl_save_CFLAGS="$CFLAGS"
8064 CFLAGS="$CFLAGS -fvisibility=hidden"
8065 if test $gl_cv_cc_vis_werror = yes; then
8066 CFLAGS="$CFLAGS -Werror"
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
8071 extern __attribute__((__visibility__("default"))) int exportedvar;
8072 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
8073 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
8074 void dummyfunc (void) {}
8076 main ()
8080 return 0;
8082 _ACEOF
8083 if ac_fn_c_try_compile "$LINENO"; then :
8084 gl_cv_cc_visibility=yes
8085 else
8086 gl_cv_cc_visibility=no
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 CFLAGS="$gl_save_CFLAGS"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
8093 $as_echo "$gl_cv_cc_visibility" >&6; }
8094 if test $gl_cv_cc_visibility = yes; then
8095 CFLAG_VISIBILITY="-fvisibility=hidden"
8096 HAVE_VISIBILITY=1
8102 cat >>confdefs.h <<_ACEOF
8103 #define HAVE_VISIBILITY $HAVE_VISIBILITY
8104 _ACEOF
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8108 $as_echo_n "checking for inline... " >&6; }
8109 if test "${ac_cv_c_inline+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 ac_cv_c_inline=no
8113 for ac_kw in inline __inline__ __inline; do
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 #ifndef __cplusplus
8117 typedef int foo_t;
8118 static $ac_kw foo_t static_foo () {return 0; }
8119 $ac_kw foo_t foo () {return 0; }
8120 #endif
8122 _ACEOF
8123 if ac_fn_c_try_compile "$LINENO"; then :
8124 ac_cv_c_inline=$ac_kw
8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 test "$ac_cv_c_inline" != no && break
8128 done
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8132 $as_echo "$ac_cv_c_inline" >&6; }
8134 case $ac_cv_c_inline in
8135 inline | yes) ;;
8137 case $ac_cv_c_inline in
8138 no) ac_val=;;
8139 *) ac_val=$ac_cv_c_inline;;
8140 esac
8141 cat >>confdefs.h <<_ACEOF
8142 #ifndef __cplusplus
8143 #define inline $ac_val
8144 #endif
8145 _ACEOF
8147 esac
8149 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8150 if test "x$ac_cv_type_size_t" = x""yes; then :
8152 else
8154 cat >>confdefs.h <<_ACEOF
8155 #define size_t unsigned int
8156 _ACEOF
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
8162 $as_echo_n "checking for stdint.h... " >&6; }
8163 if test "${gl_cv_header_stdint_h+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 #include <sys/types.h>
8169 #include <stdint.h>
8171 main ()
8173 uintmax_t i = (uintmax_t) -1; return !i;
8175 return 0;
8177 _ACEOF
8178 if ac_fn_c_try_compile "$LINENO"; then :
8179 gl_cv_header_stdint_h=yes
8180 else
8181 gl_cv_header_stdint_h=no
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
8186 $as_echo "$gl_cv_header_stdint_h" >&6; }
8187 if test $gl_cv_header_stdint_h = yes; then
8189 cat >>confdefs.h <<_ACEOF
8190 #define HAVE_STDINT_H_WITH_UINTMAX 1
8191 _ACEOF
8195 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8196 # for constant arguments. Useless!
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8198 $as_echo_n "checking for working alloca.h... " >&6; }
8199 if test "${ac_cv_working_alloca_h+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204 #include <alloca.h>
8206 main ()
8208 char *p = (char *) alloca (2 * sizeof (int));
8209 if (p) return 0;
8211 return 0;
8213 _ACEOF
8214 if ac_fn_c_try_link "$LINENO"; then :
8215 ac_cv_working_alloca_h=yes
8216 else
8217 ac_cv_working_alloca_h=no
8219 rm -f core conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8223 $as_echo "$ac_cv_working_alloca_h" >&6; }
8224 if test $ac_cv_working_alloca_h = yes; then
8226 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8231 $as_echo_n "checking for alloca... " >&6; }
8232 if test "${ac_cv_func_alloca_works+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 #ifdef __GNUC__
8238 # define alloca __builtin_alloca
8239 #else
8240 # ifdef _MSC_VER
8241 # include <malloc.h>
8242 # define alloca _alloca
8243 # else
8244 # ifdef HAVE_ALLOCA_H
8245 # include <alloca.h>
8246 # else
8247 # ifdef _AIX
8248 #pragma alloca
8249 # else
8250 # ifndef alloca /* predefined by HP cc +Olibcalls */
8251 char *alloca ();
8252 # endif
8253 # endif
8254 # endif
8255 # endif
8256 #endif
8259 main ()
8261 char *p = (char *) alloca (1);
8262 if (p) return 0;
8264 return 0;
8266 _ACEOF
8267 if ac_fn_c_try_link "$LINENO"; then :
8268 ac_cv_func_alloca_works=yes
8269 else
8270 ac_cv_func_alloca_works=no
8272 rm -f core conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8276 $as_echo "$ac_cv_func_alloca_works" >&6; }
8278 if test $ac_cv_func_alloca_works = yes; then
8280 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8282 else
8283 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8284 # that cause trouble. Some versions do not even contain alloca or
8285 # contain a buggy version. If you still want to use their alloca,
8286 # use ar to extract alloca.o from them instead of compiling alloca.c.
8288 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8290 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8294 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8295 if test "${ac_cv_os_cray+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 #if defined CRAY && ! defined CRAY2
8301 webecray
8302 #else
8303 wenotbecray
8304 #endif
8306 _ACEOF
8307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308 $EGREP "webecray" >/dev/null 2>&1; then :
8309 ac_cv_os_cray=yes
8310 else
8311 ac_cv_os_cray=no
8313 rm -f conftest*
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8317 $as_echo "$ac_cv_os_cray" >&6; }
8318 if test $ac_cv_os_cray = yes; then
8319 for ac_func in _getb67 GETB67 getb67; do
8320 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8321 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8322 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8324 cat >>confdefs.h <<_ACEOF
8325 #define CRAY_STACKSEG_END $ac_func
8326 _ACEOF
8328 break
8331 done
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8335 $as_echo_n "checking stack direction for C alloca... " >&6; }
8336 if test "${ac_cv_c_stack_direction+set}" = set; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 if test "$cross_compiling" = yes; then :
8340 ac_cv_c_stack_direction=0
8341 else
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 $ac_includes_default
8346 find_stack_direction ()
8348 static char *addr = 0;
8349 auto char dummy;
8350 if (addr == 0)
8352 addr = &dummy;
8353 return find_stack_direction ();
8355 else
8356 return (&dummy > addr) ? 1 : -1;
8360 main ()
8362 return find_stack_direction () < 0;
8364 _ACEOF
8365 if ac_fn_c_try_run "$LINENO"; then :
8366 ac_cv_c_stack_direction=1
8367 else
8368 ac_cv_c_stack_direction=-1
8370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8371 conftest.$ac_objext conftest.beam conftest.$ac_ext
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8376 $as_echo "$ac_cv_c_stack_direction" >&6; }
8377 cat >>confdefs.h <<_ACEOF
8378 #define STACK_DIRECTION $ac_cv_c_stack_direction
8379 _ACEOF
8387 for ac_header in $ac_header_list
8388 do :
8389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8390 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8393 cat >>confdefs.h <<_ACEOF
8394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8395 _ACEOF
8399 done
8408 for ac_func in getpagesize
8409 do :
8410 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8411 if test "x$ac_cv_func_getpagesize" = x""yes; then :
8412 cat >>confdefs.h <<_ACEOF
8413 #define HAVE_GETPAGESIZE 1
8414 _ACEOF
8417 done
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8420 $as_echo_n "checking for working mmap... " >&6; }
8421 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 if test "$cross_compiling" = yes; then :
8425 ac_cv_func_mmap_fixed_mapped=no
8426 else
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8429 $ac_includes_default
8430 /* malloc might have been renamed as rpl_malloc. */
8431 #undef malloc
8433 /* Thanks to Mike Haertel and Jim Avera for this test.
8434 Here is a matrix of mmap possibilities:
8435 mmap private not fixed
8436 mmap private fixed at somewhere currently unmapped
8437 mmap private fixed at somewhere already mapped
8438 mmap shared not fixed
8439 mmap shared fixed at somewhere currently unmapped
8440 mmap shared fixed at somewhere already mapped
8441 For private mappings, we should verify that changes cannot be read()
8442 back from the file, nor mmap's back from the file at a different
8443 address. (There have been systems where private was not correctly
8444 implemented like the infamous i386 svr4.0, and systems where the
8445 VM page cache was not coherent with the file system buffer cache
8446 like early versions of FreeBSD and possibly contemporary NetBSD.)
8447 For shared mappings, we should conversely verify that changes get
8448 propagated back to all the places they're supposed to be.
8450 Grep wants private fixed already mapped.
8451 The main things grep needs to know about mmap are:
8452 * does it exist and is it safe to write into the mmap'd area
8453 * how to use it (BSD variants) */
8455 #include <fcntl.h>
8456 #include <sys/mman.h>
8458 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8459 char *malloc ();
8460 #endif
8462 /* This mess was copied from the GNU getpagesize.h. */
8463 #ifndef HAVE_GETPAGESIZE
8464 # ifdef _SC_PAGESIZE
8465 # define getpagesize() sysconf(_SC_PAGESIZE)
8466 # else /* no _SC_PAGESIZE */
8467 # ifdef HAVE_SYS_PARAM_H
8468 # include <sys/param.h>
8469 # ifdef EXEC_PAGESIZE
8470 # define getpagesize() EXEC_PAGESIZE
8471 # else /* no EXEC_PAGESIZE */
8472 # ifdef NBPG
8473 # define getpagesize() NBPG * CLSIZE
8474 # ifndef CLSIZE
8475 # define CLSIZE 1
8476 # endif /* no CLSIZE */
8477 # else /* no NBPG */
8478 # ifdef NBPC
8479 # define getpagesize() NBPC
8480 # else /* no NBPC */
8481 # ifdef PAGESIZE
8482 # define getpagesize() PAGESIZE
8483 # endif /* PAGESIZE */
8484 # endif /* no NBPC */
8485 # endif /* no NBPG */
8486 # endif /* no EXEC_PAGESIZE */
8487 # else /* no HAVE_SYS_PARAM_H */
8488 # define getpagesize() 8192 /* punt totally */
8489 # endif /* no HAVE_SYS_PARAM_H */
8490 # endif /* no _SC_PAGESIZE */
8492 #endif /* no HAVE_GETPAGESIZE */
8495 main ()
8497 char *data, *data2, *data3;
8498 const char *cdata2;
8499 int i, pagesize;
8500 int fd, fd2;
8502 pagesize = getpagesize ();
8504 /* First, make a file with some known garbage in it. */
8505 data = (char *) malloc (pagesize);
8506 if (!data)
8507 return 1;
8508 for (i = 0; i < pagesize; ++i)
8509 *(data + i) = rand ();
8510 umask (0);
8511 fd = creat ("conftest.mmap", 0600);
8512 if (fd < 0)
8513 return 2;
8514 if (write (fd, data, pagesize) != pagesize)
8515 return 3;
8516 close (fd);
8518 /* Next, check that the tail of a page is zero-filled. File must have
8519 non-zero length, otherwise we risk SIGBUS for entire page. */
8520 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8521 if (fd2 < 0)
8522 return 4;
8523 cdata2 = "";
8524 if (write (fd2, cdata2, 1) != 1)
8525 return 5;
8526 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8527 if (data2 == MAP_FAILED)
8528 return 6;
8529 for (i = 0; i < pagesize; ++i)
8530 if (*(data2 + i))
8531 return 7;
8532 close (fd2);
8533 if (munmap (data2, pagesize))
8534 return 8;
8536 /* Next, try to mmap the file at a fixed address which already has
8537 something else allocated at it. If we can, also make sure that
8538 we see the same garbage. */
8539 fd = open ("conftest.mmap", O_RDWR);
8540 if (fd < 0)
8541 return 9;
8542 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8543 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8544 return 10;
8545 for (i = 0; i < pagesize; ++i)
8546 if (*(data + i) != *(data2 + i))
8547 return 11;
8549 /* Finally, make sure that changes to the mapped area do not
8550 percolate back to the file as seen by read(). (This is a bug on
8551 some variants of i386 svr4.0.) */
8552 for (i = 0; i < pagesize; ++i)
8553 *(data2 + i) = *(data2 + i) + 1;
8554 data3 = (char *) malloc (pagesize);
8555 if (!data3)
8556 return 12;
8557 if (read (fd, data3, pagesize) != pagesize)
8558 return 13;
8559 for (i = 0; i < pagesize; ++i)
8560 if (*(data + i) != *(data3 + i))
8561 return 14;
8562 close (fd);
8563 return 0;
8565 _ACEOF
8566 if ac_fn_c_try_run "$LINENO"; then :
8567 ac_cv_func_mmap_fixed_mapped=yes
8568 else
8569 ac_cv_func_mmap_fixed_mapped=no
8571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8572 conftest.$ac_objext conftest.beam conftest.$ac_ext
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8577 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8578 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8580 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8583 rm -f conftest.mmap conftest.txt
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
8588 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
8589 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8593 gt_cv_int_divbyzero_sigfpe=
8594 case "$host_os" in
8595 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
8596 # On MacOS X 10.2 or newer, just assume the same as when cross-
8597 # compiling. If we were to perform the real test, 1 Crash Report
8598 # dialog window would pop up.
8599 case "$host_cpu" in
8600 i[34567]86 | x86_64)
8601 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
8602 esac
8604 esac
8605 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
8606 if test "$cross_compiling" = yes; then :
8608 # Guess based on the CPU.
8609 case "$host_cpu" in
8610 alpha* | i[34567]86 | x86_64 | m68k | s390*)
8611 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8613 gt_cv_int_divbyzero_sigfpe="guessing no";;
8614 esac
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8620 #include <stdlib.h>
8621 #include <signal.h>
8623 static void
8624 sigfpe_handler (int sig)
8626 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8627 exit (sig != SIGFPE);
8630 int x = 1;
8631 int y = 0;
8632 int z;
8633 int nan;
8635 int main ()
8637 signal (SIGFPE, sigfpe_handler);
8638 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8639 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8640 signal (SIGTRAP, sigfpe_handler);
8641 #endif
8642 /* Linux/SPARC yields signal SIGILL. */
8643 #if defined (__sparc__) && defined (__linux__)
8644 signal (SIGILL, sigfpe_handler);
8645 #endif
8647 z = x / y;
8648 nan = y / y;
8649 exit (1);
8652 _ACEOF
8653 if ac_fn_c_try_run "$LINENO"; then :
8654 gt_cv_int_divbyzero_sigfpe=yes
8655 else
8656 gt_cv_int_divbyzero_sigfpe=no
8658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8659 conftest.$ac_objext conftest.beam conftest.$ac_ext
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
8666 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8667 case "$gt_cv_int_divbyzero_sigfpe" in
8668 *yes) value=1;;
8669 *) value=0;;
8670 esac
8672 cat >>confdefs.h <<_ACEOF
8673 #define INTDIV0_RAISES_SIGFPE $value
8674 _ACEOF
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8679 $as_echo_n "checking for inttypes.h... " >&6; }
8680 if test "${gl_cv_header_inttypes_h+set}" = set; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685 #include <sys/types.h>
8686 #include <inttypes.h>
8688 main ()
8690 uintmax_t i = (uintmax_t) -1; return !i;
8692 return 0;
8694 _ACEOF
8695 if ac_fn_c_try_compile "$LINENO"; then :
8696 gl_cv_header_inttypes_h=yes
8697 else
8698 gl_cv_header_inttypes_h=no
8700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
8703 $as_echo "$gl_cv_header_inttypes_h" >&6; }
8704 if test $gl_cv_header_inttypes_h = yes; then
8706 cat >>confdefs.h <<_ACEOF
8707 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8708 _ACEOF
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8714 $as_echo_n "checking for unsigned long long int... " >&6; }
8715 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8721 /* For now, do not test the preprocessor; as of 2007 there are too many
8722 implementations with broken preprocessors. Perhaps this can
8723 be revisited in 2012. In the meantime, code should not expect
8724 #if to work with literals wider than 32 bits. */
8725 /* Test literals. */
8726 long long int ll = 9223372036854775807ll;
8727 long long int nll = -9223372036854775807LL;
8728 unsigned long long int ull = 18446744073709551615ULL;
8729 /* Test constant expressions. */
8730 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8731 ? 1 : -1)];
8732 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8733 ? 1 : -1)];
8734 int i = 63;
8736 main ()
8738 /* Test availability of runtime routines for shift and division. */
8739 long long int llmax = 9223372036854775807ll;
8740 unsigned long long int ullmax = 18446744073709551615ull;
8741 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8742 | (llmax / ll) | (llmax % ll)
8743 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8744 | (ullmax / ull) | (ullmax % ull));
8746 return 0;
8749 _ACEOF
8750 if ac_fn_c_try_link "$LINENO"; then :
8751 ac_cv_type_unsigned_long_long_int=yes
8752 else
8753 ac_cv_type_unsigned_long_long_int=no
8755 rm -f core conftest.err conftest.$ac_objext \
8756 conftest$ac_exeext conftest.$ac_ext
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8759 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8760 if test $ac_cv_type_unsigned_long_long_int = yes; then
8762 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8769 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8771 test $ac_cv_type_unsigned_long_long_int = yes \
8772 && ac_type='unsigned long long' \
8773 || ac_type='unsigned long'
8775 cat >>confdefs.h <<_ACEOF
8776 #define uintmax_t $ac_type
8777 _ACEOF
8779 else
8781 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8786 for ac_header in inttypes.h
8787 do :
8788 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8789 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8790 cat >>confdefs.h <<_ACEOF
8791 #define HAVE_INTTYPES_H 1
8792 _ACEOF
8796 done
8798 if test $ac_cv_header_inttypes_h = yes; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8800 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8801 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <inttypes.h>
8808 #ifdef PRId32
8809 char *p = PRId32;
8810 #endif
8813 main ()
8817 return 0;
8819 _ACEOF
8820 if ac_fn_c_try_compile "$LINENO"; then :
8821 gt_cv_inttypes_pri_broken=no
8822 else
8823 gt_cv_inttypes_pri_broken=yes
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8829 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8831 if test "$gt_cv_inttypes_pri_broken" = yes; then
8833 cat >>confdefs.h <<_ACEOF
8834 #define PRI_MACROS_BROKEN 1
8835 _ACEOF
8837 PRI_MACROS_BROKEN=1
8838 else
8839 PRI_MACROS_BROKEN=0
8848 # Check whether --enable-threads was given.
8849 if test "${enable_threads+set}" = set; then :
8850 enableval=$enable_threads; gl_use_threads=$enableval
8851 else
8852 if test -n "$gl_use_threads_default"; then
8853 gl_use_threads="$gl_use_threads_default"
8854 else
8855 case "$host_os" in
8856 osf*) gl_use_threads=no ;;
8857 cygwin*)
8858 case `uname -r` in
8859 1.[0-5].*) gl_use_threads=no ;;
8860 *) gl_use_threads=yes ;;
8861 esac
8863 *) gl_use_threads=yes ;;
8864 esac
8869 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8870 # For using <pthread.h>:
8871 case "$host_os" in
8872 osf*)
8873 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8874 # groks <pthread.h>. cc also understands the flag -pthread, but
8875 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8876 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8877 # causes the AC_TRY_LINK test below to succeed unexpectedly,
8878 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8879 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8881 esac
8882 # Some systems optimize for single-threaded programs by default, and
8883 # need special flags to disable these optimizations. For example, the
8884 # definition of 'errno' in <errno.h>.
8885 case "$host_os" in
8886 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8887 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8888 esac
8895 if test "X$prefix" = "XNONE"; then
8896 acl_final_prefix="$ac_default_prefix"
8897 else
8898 acl_final_prefix="$prefix"
8900 if test "X$exec_prefix" = "XNONE"; then
8901 acl_final_exec_prefix='${prefix}'
8902 else
8903 acl_final_exec_prefix="$exec_prefix"
8905 acl_save_prefix="$prefix"
8906 prefix="$acl_final_prefix"
8907 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8908 prefix="$acl_save_prefix"
8911 # Check whether --with-gnu-ld was given.
8912 if test "${with_gnu_ld+set}" = set; then :
8913 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8914 else
8915 with_gnu_ld=no
8918 # Prepare PATH_SEPARATOR.
8919 # The user is always right.
8920 if test "${PATH_SEPARATOR+set}" != set; then
8921 echo "#! /bin/sh" >conf$$.sh
8922 echo "exit 0" >>conf$$.sh
8923 chmod +x conf$$.sh
8924 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8925 PATH_SEPARATOR=';'
8926 else
8927 PATH_SEPARATOR=:
8929 rm -f conf$$.sh
8931 ac_prog=ld
8932 if test "$GCC" = yes; then
8933 # Check if gcc -print-prog-name=ld gives a path.
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8935 $as_echo_n "checking for ld used by GCC... " >&6; }
8936 case $host in
8937 *-*-mingw*)
8938 # gcc leaves a trailing carriage return which upsets mingw
8939 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8941 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8942 esac
8943 case $ac_prog in
8944 # Accept absolute paths.
8945 [\\/]* | [A-Za-z]:[\\/]*)
8946 re_direlt='/[^/][^/]*/\.\./'
8947 # Canonicalize the path of ld
8948 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8949 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8950 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8951 done
8952 test -z "$LD" && LD="$ac_prog"
8955 # If it fails, then pretend we aren't using GCC.
8956 ac_prog=ld
8959 # If it is relative, then search for the first ld in PATH.
8960 with_gnu_ld=unknown
8962 esac
8963 elif test "$with_gnu_ld" = yes; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8965 $as_echo_n "checking for GNU ld... " >&6; }
8966 else
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8968 $as_echo_n "checking for non-GNU ld... " >&6; }
8970 if test "${acl_cv_path_LD+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 if test -z "$LD"; then
8974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8975 for ac_dir in $PATH; do
8976 test -z "$ac_dir" && ac_dir=.
8977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8978 acl_cv_path_LD="$ac_dir/$ac_prog"
8979 # Check to see if the program is GNU ld. I'd rather use --version,
8980 # but apparently some GNU ld's only accept -v.
8981 # Break only if it was the GNU/non-GNU ld that we prefer.
8982 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8983 *GNU* | *'with BFD'*)
8984 test "$with_gnu_ld" != no && break ;;
8986 test "$with_gnu_ld" != yes && break ;;
8987 esac
8989 done
8990 IFS="$ac_save_ifs"
8991 else
8992 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8996 LD="$acl_cv_path_LD"
8997 if test -n "$LD"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8999 $as_echo "$LD" >&6; }
9000 else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9004 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9006 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9007 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9011 case `$LD -v 2>&1 </dev/null` in
9012 *GNU* | *'with BFD'*)
9013 acl_cv_prog_gnu_ld=yes ;;
9015 acl_cv_prog_gnu_ld=no ;;
9016 esac
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9019 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9020 with_gnu_ld=$acl_cv_prog_gnu_ld
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9026 $as_echo_n "checking for shared library run path origin... " >&6; }
9027 if test "${acl_cv_rpath+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9031 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9032 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9033 . ./conftest.sh
9034 rm -f ./conftest.sh
9035 acl_cv_rpath=done
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9039 $as_echo "$acl_cv_rpath" >&6; }
9040 wl="$acl_cv_wl"
9041 acl_libext="$acl_cv_libext"
9042 acl_shlibext="$acl_cv_shlibext"
9043 acl_libname_spec="$acl_cv_libname_spec"
9044 acl_library_names_spec="$acl_cv_library_names_spec"
9045 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9046 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9047 acl_hardcode_direct="$acl_cv_hardcode_direct"
9048 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
9049 # Check whether --enable-rpath was given.
9050 if test "${enable_rpath+set}" = set; then :
9051 enableval=$enable_rpath; :
9052 else
9053 enable_rpath=yes
9059 acl_libdirstem=lib
9060 acl_libdirstem2=
9061 case "$host_os" in
9062 solaris*)
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
9064 $as_echo_n "checking for 64-bit host... " >&6; }
9065 if test "${gl_cv_solaris_64bit+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9071 #ifdef _LP64
9072 sixtyfour bits
9073 #endif
9075 _ACEOF
9076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9077 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
9078 gl_cv_solaris_64bit=yes
9079 else
9080 gl_cv_solaris_64bit=no
9082 rm -f conftest*
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
9087 $as_echo "$gl_cv_solaris_64bit" >&6; }
9088 if test $gl_cv_solaris_64bit = yes; then
9089 acl_libdirstem=lib/64
9090 case "$host_cpu" in
9091 sparc*) acl_libdirstem2=lib/sparcv9 ;;
9092 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
9093 esac
9097 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9098 if test -n "$searchpath"; then
9099 acl_save_IFS="${IFS= }"; IFS=":"
9100 for searchdir in $searchpath; do
9101 if test -d "$searchdir"; then
9102 case "$searchdir" in
9103 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9104 */../ | */.. )
9105 # Better ignore directories of this form. They are misleading.
9107 *) searchdir=`cd "$searchdir" && pwd`
9108 case "$searchdir" in
9109 */lib64 ) acl_libdirstem=lib64 ;;
9110 esac ;;
9111 esac
9113 done
9114 IFS="$acl_save_IFS"
9117 esac
9118 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9122 gl_threads_api=none
9123 LIBTHREAD=
9124 LTLIBTHREAD=
9125 LIBMULTITHREAD=
9126 LTLIBMULTITHREAD=
9127 if test "$gl_use_threads" != no; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9129 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
9130 if test "${gl_cv_have_weak+set}" = set; then :
9131 $as_echo_n "(cached) " >&6
9132 else
9133 gl_cv_have_weak=no
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136 extern void xyzzy ();
9137 #pragma weak xyzzy
9139 main ()
9141 xyzzy();
9143 return 0;
9145 _ACEOF
9146 if ac_fn_c_try_link "$LINENO"; then :
9147 gl_cv_have_weak=maybe
9149 rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151 if test $gl_cv_have_weak = maybe; then
9152 if test "$cross_compiling" = yes; then :
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #ifdef __ELF__
9156 Extensible Linking Format
9157 #endif
9159 _ACEOF
9160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9161 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
9162 gl_cv_have_weak="guessing yes"
9163 else
9164 gl_cv_have_weak="guessing no"
9166 rm -f conftest*
9169 else
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9173 #include <stdio.h>
9174 #pragma weak fputs
9175 int main ()
9177 return (fputs == NULL);
9179 _ACEOF
9180 if ac_fn_c_try_run "$LINENO"; then :
9181 gl_cv_have_weak=yes
9182 else
9183 gl_cv_have_weak=no
9185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9186 conftest.$ac_objext conftest.beam conftest.$ac_ext
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
9193 $as_echo "$gl_cv_have_weak" >&6; }
9194 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9195 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9196 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
9197 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9198 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9199 gl_have_pthread_h=yes
9200 else
9201 gl_have_pthread_h=no
9205 if test "$gl_have_pthread_h" = yes; then
9206 # Other possible tests:
9207 # -lpthreads (FSU threads, PCthreads)
9208 # -lgthreads
9209 gl_have_pthread=
9210 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9211 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9212 # the second one only in libpthread, and lock.c needs it.
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 #include <pthread.h>
9217 main ()
9219 pthread_mutex_lock((pthread_mutex_t*)0);
9220 pthread_mutexattr_init((pthread_mutexattr_t*)0);
9222 return 0;
9224 _ACEOF
9225 if ac_fn_c_try_link "$LINENO"; then :
9226 gl_have_pthread=yes
9228 rm -f core conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext conftest.$ac_ext
9230 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9231 # since it is defined as a macro on OSF/1.)
9232 if test -n "$gl_have_pthread"; then
9233 # The program links fine without libpthread. But it may actually
9234 # need to link with libpthread in order to create multiple threads.
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9236 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9237 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 ac_check_lib_save_LIBS=$LIBS
9241 LIBS="-lpthread $LIBS"
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 char pthread_kill ();
9253 main ()
9255 return pthread_kill ();
9257 return 0;
9259 _ACEOF
9260 if ac_fn_c_try_link "$LINENO"; then :
9261 ac_cv_lib_pthread_pthread_kill=yes
9262 else
9263 ac_cv_lib_pthread_pthread_kill=no
9265 rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267 LIBS=$ac_check_lib_save_LIBS
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9270 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9271 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
9272 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9273 # On Solaris and HP-UX, most pthread functions exist also in libc.
9274 # Therefore pthread_in_use() needs to actually try to create a
9275 # thread: pthread_create from libc will fail, whereas
9276 # pthread_create will actually create a thread.
9277 case "$host_os" in
9278 solaris* | hpux*)
9280 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9282 esac
9286 else
9287 # Some library is needed. Try libpthread and libc_r.
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9289 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9290 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 ac_check_lib_save_LIBS=$LIBS
9294 LIBS="-lpthread $LIBS"
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char pthread_kill ();
9306 main ()
9308 return pthread_kill ();
9310 return 0;
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 ac_cv_lib_pthread_pthread_kill=yes
9315 else
9316 ac_cv_lib_pthread_pthread_kill=no
9318 rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9323 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9324 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
9325 gl_have_pthread=yes
9326 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
9327 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9330 if test -z "$gl_have_pthread"; then
9331 # For FreeBSD 4.
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9333 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
9334 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 ac_check_lib_save_LIBS=$LIBS
9338 LIBS="-lc_r $LIBS"
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9342 /* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
9345 #ifdef __cplusplus
9346 extern "C"
9347 #endif
9348 char pthread_kill ();
9350 main ()
9352 return pthread_kill ();
9354 return 0;
9356 _ACEOF
9357 if ac_fn_c_try_link "$LINENO"; then :
9358 ac_cv_lib_c_r_pthread_kill=yes
9359 else
9360 ac_cv_lib_c_r_pthread_kill=no
9362 rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9364 LIBS=$ac_check_lib_save_LIBS
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9367 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
9368 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
9369 gl_have_pthread=yes
9370 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9371 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9376 if test -n "$gl_have_pthread"; then
9377 gl_threads_api=posix
9379 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9381 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9382 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9384 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9386 LIBTHREAD=
9387 LTLIBTHREAD=
9393 if test -z "$gl_have_pthread"; then
9394 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9395 gl_have_solaristhread=
9396 gl_save_LIBS="$LIBS"
9397 LIBS="$LIBS -lthread"
9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h. */
9400 #include <thread.h>
9401 #include <synch.h>
9403 main ()
9405 thr_self();
9407 return 0;
9409 _ACEOF
9410 if ac_fn_c_try_link "$LINENO"; then :
9411 gl_have_solaristhread=yes
9413 rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9415 LIBS="$gl_save_LIBS"
9416 if test -n "$gl_have_solaristhread"; then
9417 gl_threads_api=solaris
9418 LIBTHREAD=-lthread
9419 LTLIBTHREAD=-lthread
9420 LIBMULTITHREAD="$LIBTHREAD"
9421 LTLIBMULTITHREAD="$LTLIBTHREAD"
9423 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9425 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9427 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9429 LIBTHREAD=
9430 LTLIBTHREAD=
9435 if test "$gl_use_threads" = pth; then
9436 gl_save_CPPFLAGS="$CPPFLAGS"
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9443 $as_echo_n "checking how to link with libpth... " >&6; }
9444 if test "${ac_cv_libpth_libs+set}" = set; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9455 use_additional=yes
9457 acl_save_prefix="$prefix"
9458 prefix="$acl_final_prefix"
9459 acl_save_exec_prefix="$exec_prefix"
9460 exec_prefix="$acl_final_exec_prefix"
9462 eval additional_includedir=\"$includedir\"
9463 eval additional_libdir=\"$libdir\"
9465 exec_prefix="$acl_save_exec_prefix"
9466 prefix="$acl_save_prefix"
9469 # Check whether --with-libpth-prefix was given.
9470 if test "${with_libpth_prefix+set}" = set; then :
9471 withval=$with_libpth_prefix;
9472 if test "X$withval" = "Xno"; then
9473 use_additional=no
9474 else
9475 if test "X$withval" = "X"; then
9477 acl_save_prefix="$prefix"
9478 prefix="$acl_final_prefix"
9479 acl_save_exec_prefix="$exec_prefix"
9480 exec_prefix="$acl_final_exec_prefix"
9482 eval additional_includedir=\"$includedir\"
9483 eval additional_libdir=\"$libdir\"
9485 exec_prefix="$acl_save_exec_prefix"
9486 prefix="$acl_save_prefix"
9488 else
9489 additional_includedir="$withval/include"
9490 additional_libdir="$withval/$acl_libdirstem"
9491 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9492 && ! test -d "$withval/$acl_libdirstem"; then
9493 additional_libdir="$withval/$acl_libdirstem2"
9500 LIBPTH=
9501 LTLIBPTH=
9502 INCPTH=
9503 LIBPTH_PREFIX=
9504 HAVE_LIBPTH=
9505 rpathdirs=
9506 ltrpathdirs=
9507 names_already_handled=
9508 names_next_round='pth '
9509 while test -n "$names_next_round"; do
9510 names_this_round="$names_next_round"
9511 names_next_round=
9512 for name in $names_this_round; do
9513 already_handled=
9514 for n in $names_already_handled; do
9515 if test "$n" = "$name"; then
9516 already_handled=yes
9517 break
9519 done
9520 if test -z "$already_handled"; then
9521 names_already_handled="$names_already_handled $name"
9522 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9523 eval value=\"\$HAVE_LIB$uppername\"
9524 if test -n "$value"; then
9525 if test "$value" = yes; then
9526 eval value=\"\$LIB$uppername\"
9527 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9528 eval value=\"\$LTLIB$uppername\"
9529 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
9530 else
9533 else
9534 found_dir=
9535 found_la=
9536 found_so=
9537 found_a=
9538 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9539 if test -n "$acl_shlibext"; then
9540 shrext=".$acl_shlibext" # typically: shrext=.so
9541 else
9542 shrext=
9544 if test $use_additional = yes; then
9545 dir="$additional_libdir"
9546 if test -n "$acl_shlibext"; then
9547 if test -f "$dir/$libname$shrext"; then
9548 found_dir="$dir"
9549 found_so="$dir/$libname$shrext"
9550 else
9551 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9552 ver=`(cd "$dir" && \
9553 for f in "$libname$shrext".*; do echo "$f"; done \
9554 | sed -e "s,^$libname$shrext\\\\.,," \
9555 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9556 | sed 1q ) 2>/dev/null`
9557 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9558 found_dir="$dir"
9559 found_so="$dir/$libname$shrext.$ver"
9561 else
9562 eval library_names=\"$acl_library_names_spec\"
9563 for f in $library_names; do
9564 if test -f "$dir/$f"; then
9565 found_dir="$dir"
9566 found_so="$dir/$f"
9567 break
9569 done
9573 if test "X$found_dir" = "X"; then
9574 if test -f "$dir/$libname.$acl_libext"; then
9575 found_dir="$dir"
9576 found_a="$dir/$libname.$acl_libext"
9579 if test "X$found_dir" != "X"; then
9580 if test -f "$dir/$libname.la"; then
9581 found_la="$dir/$libname.la"
9585 if test "X$found_dir" = "X"; then
9586 for x in $LDFLAGS $LTLIBPTH; do
9588 acl_save_prefix="$prefix"
9589 prefix="$acl_final_prefix"
9590 acl_save_exec_prefix="$exec_prefix"
9591 exec_prefix="$acl_final_exec_prefix"
9592 eval x=\"$x\"
9593 exec_prefix="$acl_save_exec_prefix"
9594 prefix="$acl_save_prefix"
9596 case "$x" in
9597 -L*)
9598 dir=`echo "X$x" | sed -e 's/^X-L//'`
9599 if test -n "$acl_shlibext"; then
9600 if test -f "$dir/$libname$shrext"; then
9601 found_dir="$dir"
9602 found_so="$dir/$libname$shrext"
9603 else
9604 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9605 ver=`(cd "$dir" && \
9606 for f in "$libname$shrext".*; do echo "$f"; done \
9607 | sed -e "s,^$libname$shrext\\\\.,," \
9608 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9609 | sed 1q ) 2>/dev/null`
9610 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9611 found_dir="$dir"
9612 found_so="$dir/$libname$shrext.$ver"
9614 else
9615 eval library_names=\"$acl_library_names_spec\"
9616 for f in $library_names; do
9617 if test -f "$dir/$f"; then
9618 found_dir="$dir"
9619 found_so="$dir/$f"
9620 break
9622 done
9626 if test "X$found_dir" = "X"; then
9627 if test -f "$dir/$libname.$acl_libext"; then
9628 found_dir="$dir"
9629 found_a="$dir/$libname.$acl_libext"
9632 if test "X$found_dir" != "X"; then
9633 if test -f "$dir/$libname.la"; then
9634 found_la="$dir/$libname.la"
9638 esac
9639 if test "X$found_dir" != "X"; then
9640 break
9642 done
9644 if test "X$found_dir" != "X"; then
9645 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
9646 if test "X$found_so" != "X"; then
9647 if test "$enable_rpath" = no \
9648 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9649 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9650 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9651 else
9652 haveit=
9653 for x in $ltrpathdirs; do
9654 if test "X$x" = "X$found_dir"; then
9655 haveit=yes
9656 break
9658 done
9659 if test -z "$haveit"; then
9660 ltrpathdirs="$ltrpathdirs $found_dir"
9662 if test "$acl_hardcode_direct" = yes; then
9663 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9664 else
9665 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9666 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9667 haveit=
9668 for x in $rpathdirs; do
9669 if test "X$x" = "X$found_dir"; then
9670 haveit=yes
9671 break
9673 done
9674 if test -z "$haveit"; then
9675 rpathdirs="$rpathdirs $found_dir"
9677 else
9678 haveit=
9679 for x in $LDFLAGS $LIBPTH; do
9681 acl_save_prefix="$prefix"
9682 prefix="$acl_final_prefix"
9683 acl_save_exec_prefix="$exec_prefix"
9684 exec_prefix="$acl_final_exec_prefix"
9685 eval x=\"$x\"
9686 exec_prefix="$acl_save_exec_prefix"
9687 prefix="$acl_save_prefix"
9689 if test "X$x" = "X-L$found_dir"; then
9690 haveit=yes
9691 break
9693 done
9694 if test -z "$haveit"; then
9695 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
9697 if test "$acl_hardcode_minus_L" != no; then
9698 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9699 else
9700 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9705 else
9706 if test "X$found_a" != "X"; then
9707 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
9708 else
9709 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
9712 additional_includedir=
9713 case "$found_dir" in
9714 */$acl_libdirstem | */$acl_libdirstem/)
9715 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9716 if test "$name" = 'pth'; then
9717 LIBPTH_PREFIX="$basedir"
9719 additional_includedir="$basedir/include"
9721 */$acl_libdirstem2 | */$acl_libdirstem2/)
9722 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9723 if test "$name" = 'pth'; then
9724 LIBPTH_PREFIX="$basedir"
9726 additional_includedir="$basedir/include"
9728 esac
9729 if test "X$additional_includedir" != "X"; then
9730 if test "X$additional_includedir" != "X/usr/include"; then
9731 haveit=
9732 if test "X$additional_includedir" = "X/usr/local/include"; then
9733 if test -n "$GCC"; then
9734 case $host_os in
9735 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9736 esac
9739 if test -z "$haveit"; then
9740 for x in $CPPFLAGS $INCPTH; do
9742 acl_save_prefix="$prefix"
9743 prefix="$acl_final_prefix"
9744 acl_save_exec_prefix="$exec_prefix"
9745 exec_prefix="$acl_final_exec_prefix"
9746 eval x=\"$x\"
9747 exec_prefix="$acl_save_exec_prefix"
9748 prefix="$acl_save_prefix"
9750 if test "X$x" = "X-I$additional_includedir"; then
9751 haveit=yes
9752 break
9754 done
9755 if test -z "$haveit"; then
9756 if test -d "$additional_includedir"; then
9757 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
9763 if test -n "$found_la"; then
9764 save_libdir="$libdir"
9765 case "$found_la" in
9766 */* | *\\*) . "$found_la" ;;
9767 *) . "./$found_la" ;;
9768 esac
9769 libdir="$save_libdir"
9770 for dep in $dependency_libs; do
9771 case "$dep" in
9772 -L*)
9773 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9774 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9775 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9776 haveit=
9777 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9778 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9779 if test -n "$GCC"; then
9780 case $host_os in
9781 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9782 esac
9785 if test -z "$haveit"; then
9786 haveit=
9787 for x in $LDFLAGS $LIBPTH; do
9789 acl_save_prefix="$prefix"
9790 prefix="$acl_final_prefix"
9791 acl_save_exec_prefix="$exec_prefix"
9792 exec_prefix="$acl_final_exec_prefix"
9793 eval x=\"$x\"
9794 exec_prefix="$acl_save_exec_prefix"
9795 prefix="$acl_save_prefix"
9797 if test "X$x" = "X-L$additional_libdir"; then
9798 haveit=yes
9799 break
9801 done
9802 if test -z "$haveit"; then
9803 if test -d "$additional_libdir"; then
9804 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
9807 haveit=
9808 for x in $LDFLAGS $LTLIBPTH; do
9810 acl_save_prefix="$prefix"
9811 prefix="$acl_final_prefix"
9812 acl_save_exec_prefix="$exec_prefix"
9813 exec_prefix="$acl_final_exec_prefix"
9814 eval x=\"$x\"
9815 exec_prefix="$acl_save_exec_prefix"
9816 prefix="$acl_save_prefix"
9818 if test "X$x" = "X-L$additional_libdir"; then
9819 haveit=yes
9820 break
9822 done
9823 if test -z "$haveit"; then
9824 if test -d "$additional_libdir"; then
9825 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
9831 -R*)
9832 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9833 if test "$enable_rpath" != no; then
9834 haveit=
9835 for x in $rpathdirs; do
9836 if test "X$x" = "X$dir"; then
9837 haveit=yes
9838 break
9840 done
9841 if test -z "$haveit"; then
9842 rpathdirs="$rpathdirs $dir"
9844 haveit=
9845 for x in $ltrpathdirs; do
9846 if test "X$x" = "X$dir"; then
9847 haveit=yes
9848 break
9850 done
9851 if test -z "$haveit"; then
9852 ltrpathdirs="$ltrpathdirs $dir"
9856 -l*)
9857 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9859 *.la)
9860 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9863 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
9864 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
9866 esac
9867 done
9869 else
9870 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9871 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
9875 done
9876 done
9877 if test "X$rpathdirs" != "X"; then
9878 if test -n "$acl_hardcode_libdir_separator"; then
9879 alldirs=
9880 for found_dir in $rpathdirs; do
9881 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9882 done
9883 acl_save_libdir="$libdir"
9884 libdir="$alldirs"
9885 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9886 libdir="$acl_save_libdir"
9887 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
9888 else
9889 for found_dir in $rpathdirs; do
9890 acl_save_libdir="$libdir"
9891 libdir="$found_dir"
9892 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9893 libdir="$acl_save_libdir"
9894 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
9895 done
9898 if test "X$ltrpathdirs" != "X"; then
9899 for found_dir in $ltrpathdirs; do
9900 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
9901 done
9909 ac_cv_libpth_libs="$LIBPTH"
9910 ac_cv_libpth_ltlibs="$LTLIBPTH"
9911 ac_cv_libpth_cppflags="$INCPTH"
9912 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
9916 $as_echo "$ac_cv_libpth_libs" >&6; }
9917 LIBPTH="$ac_cv_libpth_libs"
9918 LTLIBPTH="$ac_cv_libpth_ltlibs"
9919 INCPTH="$ac_cv_libpth_cppflags"
9920 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
9922 for element in $INCPTH; do
9923 haveit=
9924 for x in $CPPFLAGS; do
9926 acl_save_prefix="$prefix"
9927 prefix="$acl_final_prefix"
9928 acl_save_exec_prefix="$exec_prefix"
9929 exec_prefix="$acl_final_exec_prefix"
9930 eval x=\"$x\"
9931 exec_prefix="$acl_save_exec_prefix"
9932 prefix="$acl_save_prefix"
9934 if test "X$x" = "X$element"; then
9935 haveit=yes
9936 break
9938 done
9939 if test -z "$haveit"; then
9940 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9942 done
9947 HAVE_LIBPTH=yes
9951 gl_have_pth=
9952 gl_save_LIBS="$LIBS"
9953 LIBS="$LIBS -lpth"
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 #include <pth.h>
9958 main ()
9960 pth_self();
9962 return 0;
9964 _ACEOF
9965 if ac_fn_c_try_link "$LINENO"; then :
9966 gl_have_pth=yes
9968 rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970 LIBS="$gl_save_LIBS"
9971 if test -n "$gl_have_pth"; then
9972 gl_threads_api=pth
9973 LIBTHREAD="$LIBPTH"
9974 LTLIBTHREAD="$LTLIBPTH"
9975 LIBMULTITHREAD="$LIBTHREAD"
9976 LTLIBMULTITHREAD="$LTLIBTHREAD"
9978 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
9980 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9981 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9983 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
9985 LIBTHREAD=
9986 LTLIBTHREAD=
9989 else
9990 CPPFLAGS="$gl_save_CPPFLAGS"
9993 if test -z "$gl_have_pthread"; then
9994 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
9995 if { case "$host_os" in
9996 mingw*) true;;
9997 *) false;;
9998 esac
9999 }; then
10000 gl_threads_api=win32
10002 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10009 $as_echo_n "checking for multithread API to use... " >&6; }
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10011 $as_echo "$gl_threads_api" >&6; }
10023 if test "$gl_threads_api" = posix; then
10024 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
10025 # pthread_rwlock_* functions.
10026 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
10028 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
10030 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
10034 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037 #include <pthread.h>
10039 main ()
10041 #if __FreeBSD__ == 4
10042 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
10043 #else
10044 int x = (int)PTHREAD_MUTEX_RECURSIVE;
10045 return !x;
10046 #endif
10048 return 0;
10050 _ACEOF
10051 if ac_fn_c_try_compile "$LINENO"; then :
10053 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
10056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 use_additional=yes
10075 acl_save_prefix="$prefix"
10076 prefix="$acl_final_prefix"
10077 acl_save_exec_prefix="$exec_prefix"
10078 exec_prefix="$acl_final_exec_prefix"
10080 eval additional_includedir=\"$includedir\"
10081 eval additional_libdir=\"$libdir\"
10083 exec_prefix="$acl_save_exec_prefix"
10084 prefix="$acl_save_prefix"
10087 # Check whether --with-libiconv-prefix was given.
10088 if test "${with_libiconv_prefix+set}" = set; then :
10089 withval=$with_libiconv_prefix;
10090 if test "X$withval" = "Xno"; then
10091 use_additional=no
10092 else
10093 if test "X$withval" = "X"; then
10095 acl_save_prefix="$prefix"
10096 prefix="$acl_final_prefix"
10097 acl_save_exec_prefix="$exec_prefix"
10098 exec_prefix="$acl_final_exec_prefix"
10100 eval additional_includedir=\"$includedir\"
10101 eval additional_libdir=\"$libdir\"
10103 exec_prefix="$acl_save_exec_prefix"
10104 prefix="$acl_save_prefix"
10106 else
10107 additional_includedir="$withval/include"
10108 additional_libdir="$withval/$acl_libdirstem"
10109 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10110 && ! test -d "$withval/$acl_libdirstem"; then
10111 additional_libdir="$withval/$acl_libdirstem2"
10118 LIBICONV=
10119 LTLIBICONV=
10120 INCICONV=
10121 LIBICONV_PREFIX=
10122 HAVE_LIBICONV=
10123 rpathdirs=
10124 ltrpathdirs=
10125 names_already_handled=
10126 names_next_round='iconv '
10127 while test -n "$names_next_round"; do
10128 names_this_round="$names_next_round"
10129 names_next_round=
10130 for name in $names_this_round; do
10131 already_handled=
10132 for n in $names_already_handled; do
10133 if test "$n" = "$name"; then
10134 already_handled=yes
10135 break
10137 done
10138 if test -z "$already_handled"; then
10139 names_already_handled="$names_already_handled $name"
10140 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10141 eval value=\"\$HAVE_LIB$uppername\"
10142 if test -n "$value"; then
10143 if test "$value" = yes; then
10144 eval value=\"\$LIB$uppername\"
10145 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10146 eval value=\"\$LTLIB$uppername\"
10147 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10148 else
10151 else
10152 found_dir=
10153 found_la=
10154 found_so=
10155 found_a=
10156 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10157 if test -n "$acl_shlibext"; then
10158 shrext=".$acl_shlibext" # typically: shrext=.so
10159 else
10160 shrext=
10162 if test $use_additional = yes; then
10163 dir="$additional_libdir"
10164 if test -n "$acl_shlibext"; then
10165 if test -f "$dir/$libname$shrext"; then
10166 found_dir="$dir"
10167 found_so="$dir/$libname$shrext"
10168 else
10169 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10170 ver=`(cd "$dir" && \
10171 for f in "$libname$shrext".*; do echo "$f"; done \
10172 | sed -e "s,^$libname$shrext\\\\.,," \
10173 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10174 | sed 1q ) 2>/dev/null`
10175 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10176 found_dir="$dir"
10177 found_so="$dir/$libname$shrext.$ver"
10179 else
10180 eval library_names=\"$acl_library_names_spec\"
10181 for f in $library_names; do
10182 if test -f "$dir/$f"; then
10183 found_dir="$dir"
10184 found_so="$dir/$f"
10185 break
10187 done
10191 if test "X$found_dir" = "X"; then
10192 if test -f "$dir/$libname.$acl_libext"; then
10193 found_dir="$dir"
10194 found_a="$dir/$libname.$acl_libext"
10197 if test "X$found_dir" != "X"; then
10198 if test -f "$dir/$libname.la"; then
10199 found_la="$dir/$libname.la"
10203 if test "X$found_dir" = "X"; then
10204 for x in $LDFLAGS $LTLIBICONV; do
10206 acl_save_prefix="$prefix"
10207 prefix="$acl_final_prefix"
10208 acl_save_exec_prefix="$exec_prefix"
10209 exec_prefix="$acl_final_exec_prefix"
10210 eval x=\"$x\"
10211 exec_prefix="$acl_save_exec_prefix"
10212 prefix="$acl_save_prefix"
10214 case "$x" in
10215 -L*)
10216 dir=`echo "X$x" | sed -e 's/^X-L//'`
10217 if test -n "$acl_shlibext"; then
10218 if test -f "$dir/$libname$shrext"; then
10219 found_dir="$dir"
10220 found_so="$dir/$libname$shrext"
10221 else
10222 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10223 ver=`(cd "$dir" && \
10224 for f in "$libname$shrext".*; do echo "$f"; done \
10225 | sed -e "s,^$libname$shrext\\\\.,," \
10226 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10227 | sed 1q ) 2>/dev/null`
10228 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10229 found_dir="$dir"
10230 found_so="$dir/$libname$shrext.$ver"
10232 else
10233 eval library_names=\"$acl_library_names_spec\"
10234 for f in $library_names; do
10235 if test -f "$dir/$f"; then
10236 found_dir="$dir"
10237 found_so="$dir/$f"
10238 break
10240 done
10244 if test "X$found_dir" = "X"; then
10245 if test -f "$dir/$libname.$acl_libext"; then
10246 found_dir="$dir"
10247 found_a="$dir/$libname.$acl_libext"
10250 if test "X$found_dir" != "X"; then
10251 if test -f "$dir/$libname.la"; then
10252 found_la="$dir/$libname.la"
10256 esac
10257 if test "X$found_dir" != "X"; then
10258 break
10260 done
10262 if test "X$found_dir" != "X"; then
10263 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10264 if test "X$found_so" != "X"; then
10265 if test "$enable_rpath" = no \
10266 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10267 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10268 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10269 else
10270 haveit=
10271 for x in $ltrpathdirs; do
10272 if test "X$x" = "X$found_dir"; then
10273 haveit=yes
10274 break
10276 done
10277 if test -z "$haveit"; then
10278 ltrpathdirs="$ltrpathdirs $found_dir"
10280 if test "$acl_hardcode_direct" = yes; then
10281 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10282 else
10283 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10284 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10285 haveit=
10286 for x in $rpathdirs; do
10287 if test "X$x" = "X$found_dir"; then
10288 haveit=yes
10289 break
10291 done
10292 if test -z "$haveit"; then
10293 rpathdirs="$rpathdirs $found_dir"
10295 else
10296 haveit=
10297 for x in $LDFLAGS $LIBICONV; do
10299 acl_save_prefix="$prefix"
10300 prefix="$acl_final_prefix"
10301 acl_save_exec_prefix="$exec_prefix"
10302 exec_prefix="$acl_final_exec_prefix"
10303 eval x=\"$x\"
10304 exec_prefix="$acl_save_exec_prefix"
10305 prefix="$acl_save_prefix"
10307 if test "X$x" = "X-L$found_dir"; then
10308 haveit=yes
10309 break
10311 done
10312 if test -z "$haveit"; then
10313 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10315 if test "$acl_hardcode_minus_L" != no; then
10316 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10317 else
10318 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10323 else
10324 if test "X$found_a" != "X"; then
10325 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10326 else
10327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10330 additional_includedir=
10331 case "$found_dir" in
10332 */$acl_libdirstem | */$acl_libdirstem/)
10333 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10334 if test "$name" = 'iconv'; then
10335 LIBICONV_PREFIX="$basedir"
10337 additional_includedir="$basedir/include"
10339 */$acl_libdirstem2 | */$acl_libdirstem2/)
10340 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10341 if test "$name" = 'iconv'; then
10342 LIBICONV_PREFIX="$basedir"
10344 additional_includedir="$basedir/include"
10346 esac
10347 if test "X$additional_includedir" != "X"; then
10348 if test "X$additional_includedir" != "X/usr/include"; then
10349 haveit=
10350 if test "X$additional_includedir" = "X/usr/local/include"; then
10351 if test -n "$GCC"; then
10352 case $host_os in
10353 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10354 esac
10357 if test -z "$haveit"; then
10358 for x in $CPPFLAGS $INCICONV; do
10360 acl_save_prefix="$prefix"
10361 prefix="$acl_final_prefix"
10362 acl_save_exec_prefix="$exec_prefix"
10363 exec_prefix="$acl_final_exec_prefix"
10364 eval x=\"$x\"
10365 exec_prefix="$acl_save_exec_prefix"
10366 prefix="$acl_save_prefix"
10368 if test "X$x" = "X-I$additional_includedir"; then
10369 haveit=yes
10370 break
10372 done
10373 if test -z "$haveit"; then
10374 if test -d "$additional_includedir"; then
10375 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10381 if test -n "$found_la"; then
10382 save_libdir="$libdir"
10383 case "$found_la" in
10384 */* | *\\*) . "$found_la" ;;
10385 *) . "./$found_la" ;;
10386 esac
10387 libdir="$save_libdir"
10388 for dep in $dependency_libs; do
10389 case "$dep" in
10390 -L*)
10391 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10392 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10393 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10394 haveit=
10395 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10396 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10397 if test -n "$GCC"; then
10398 case $host_os in
10399 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10400 esac
10403 if test -z "$haveit"; then
10404 haveit=
10405 for x in $LDFLAGS $LIBICONV; do
10407 acl_save_prefix="$prefix"
10408 prefix="$acl_final_prefix"
10409 acl_save_exec_prefix="$exec_prefix"
10410 exec_prefix="$acl_final_exec_prefix"
10411 eval x=\"$x\"
10412 exec_prefix="$acl_save_exec_prefix"
10413 prefix="$acl_save_prefix"
10415 if test "X$x" = "X-L$additional_libdir"; then
10416 haveit=yes
10417 break
10419 done
10420 if test -z "$haveit"; then
10421 if test -d "$additional_libdir"; then
10422 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10425 haveit=
10426 for x in $LDFLAGS $LTLIBICONV; do
10428 acl_save_prefix="$prefix"
10429 prefix="$acl_final_prefix"
10430 acl_save_exec_prefix="$exec_prefix"
10431 exec_prefix="$acl_final_exec_prefix"
10432 eval x=\"$x\"
10433 exec_prefix="$acl_save_exec_prefix"
10434 prefix="$acl_save_prefix"
10436 if test "X$x" = "X-L$additional_libdir"; then
10437 haveit=yes
10438 break
10440 done
10441 if test -z "$haveit"; then
10442 if test -d "$additional_libdir"; then
10443 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10449 -R*)
10450 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10451 if test "$enable_rpath" != no; then
10452 haveit=
10453 for x in $rpathdirs; do
10454 if test "X$x" = "X$dir"; then
10455 haveit=yes
10456 break
10458 done
10459 if test -z "$haveit"; then
10460 rpathdirs="$rpathdirs $dir"
10462 haveit=
10463 for x in $ltrpathdirs; do
10464 if test "X$x" = "X$dir"; then
10465 haveit=yes
10466 break
10468 done
10469 if test -z "$haveit"; then
10470 ltrpathdirs="$ltrpathdirs $dir"
10474 -l*)
10475 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10477 *.la)
10478 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10481 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10482 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10484 esac
10485 done
10487 else
10488 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10489 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10493 done
10494 done
10495 if test "X$rpathdirs" != "X"; then
10496 if test -n "$acl_hardcode_libdir_separator"; then
10497 alldirs=
10498 for found_dir in $rpathdirs; do
10499 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10500 done
10501 acl_save_libdir="$libdir"
10502 libdir="$alldirs"
10503 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10504 libdir="$acl_save_libdir"
10505 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10506 else
10507 for found_dir in $rpathdirs; do
10508 acl_save_libdir="$libdir"
10509 libdir="$found_dir"
10510 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10511 libdir="$acl_save_libdir"
10512 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10513 done
10516 if test "X$ltrpathdirs" != "X"; then
10517 for found_dir in $ltrpathdirs; do
10518 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10519 done
10533 am_save_CPPFLAGS="$CPPFLAGS"
10535 for element in $INCICONV; do
10536 haveit=
10537 for x in $CPPFLAGS; do
10539 acl_save_prefix="$prefix"
10540 prefix="$acl_final_prefix"
10541 acl_save_exec_prefix="$exec_prefix"
10542 exec_prefix="$acl_final_exec_prefix"
10543 eval x=\"$x\"
10544 exec_prefix="$acl_save_exec_prefix"
10545 prefix="$acl_save_prefix"
10547 if test "X$x" = "X$element"; then
10548 haveit=yes
10549 break
10551 done
10552 if test -z "$haveit"; then
10553 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10555 done
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10559 $as_echo_n "checking for iconv... " >&6; }
10560 if test "${am_cv_func_iconv+set}" = set; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10564 am_cv_func_iconv="no, consider installing GNU libiconv"
10565 am_cv_lib_iconv=no
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568 #include <stdlib.h>
10569 #include <iconv.h>
10571 main ()
10573 iconv_t cd = iconv_open("","");
10574 iconv(cd,NULL,NULL,NULL,NULL);
10575 iconv_close(cd);
10577 return 0;
10579 _ACEOF
10580 if ac_fn_c_try_link "$LINENO"; then :
10581 am_cv_func_iconv=yes
10583 rm -f core conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10585 if test "$am_cv_func_iconv" != yes; then
10586 am_save_LIBS="$LIBS"
10587 LIBS="$LIBS $LIBICONV"
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590 #include <stdlib.h>
10591 #include <iconv.h>
10593 main ()
10595 iconv_t cd = iconv_open("","");
10596 iconv(cd,NULL,NULL,NULL,NULL);
10597 iconv_close(cd);
10599 return 0;
10601 _ACEOF
10602 if ac_fn_c_try_link "$LINENO"; then :
10603 am_cv_lib_iconv=yes
10604 am_cv_func_iconv=yes
10606 rm -f core conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10608 LIBS="$am_save_LIBS"
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10613 $as_echo "$am_cv_func_iconv" >&6; }
10614 if test "$am_cv_func_iconv" = yes; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10616 $as_echo_n "checking for working iconv... " >&6; }
10617 if test "${am_cv_func_iconv_works+set}" = set; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10621 am_save_LIBS="$LIBS"
10622 if test $am_cv_lib_iconv = yes; then
10623 LIBS="$LIBS $LIBICONV"
10625 if test "$cross_compiling" = yes; then :
10626 case "$host_os" in
10627 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10628 *) am_cv_func_iconv_works="guessing yes" ;;
10629 esac
10630 else
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10634 #include <iconv.h>
10635 #include <string.h>
10636 int main ()
10638 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10639 returns. */
10641 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10642 if (cd_utf8_to_88591 != (iconv_t)(-1))
10644 static const char input[] = "\342\202\254"; /* EURO SIGN */
10645 char buf[10];
10646 const char *inptr = input;
10647 size_t inbytesleft = strlen (input);
10648 char *outptr = buf;
10649 size_t outbytesleft = sizeof (buf);
10650 size_t res = iconv (cd_utf8_to_88591,
10651 (char **) &inptr, &inbytesleft,
10652 &outptr, &outbytesleft);
10653 if (res == 0)
10654 return 1;
10657 /* Test against Solaris 10 bug: Failures are not distinguishable from
10658 successful returns. */
10660 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10661 if (cd_ascii_to_88591 != (iconv_t)(-1))
10663 static const char input[] = "\263";
10664 char buf[10];
10665 const char *inptr = input;
10666 size_t inbytesleft = strlen (input);
10667 char *outptr = buf;
10668 size_t outbytesleft = sizeof (buf);
10669 size_t res = iconv (cd_ascii_to_88591,
10670 (char **) &inptr, &inbytesleft,
10671 &outptr, &outbytesleft);
10672 if (res == 0)
10673 return 1;
10676 #if 0 /* This bug could be worked around by the caller. */
10677 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10679 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10680 if (cd_88591_to_utf8 != (iconv_t)(-1))
10682 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10683 char buf[50];
10684 const char *inptr = input;
10685 size_t inbytesleft = strlen (input);
10686 char *outptr = buf;
10687 size_t outbytesleft = sizeof (buf);
10688 size_t res = iconv (cd_88591_to_utf8,
10689 (char **) &inptr, &inbytesleft,
10690 &outptr, &outbytesleft);
10691 if ((int)res > 0)
10692 return 1;
10695 #endif
10696 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10697 provided. */
10698 if (/* Try standardized names. */
10699 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
10700 /* Try IRIX, OSF/1 names. */
10701 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
10702 /* Try AIX names. */
10703 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
10704 /* Try HP-UX names. */
10705 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
10706 return 1;
10707 return 0;
10709 _ACEOF
10710 if ac_fn_c_try_run "$LINENO"; then :
10711 am_cv_func_iconv_works=yes
10712 else
10713 am_cv_func_iconv_works=no
10715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10716 conftest.$ac_objext conftest.beam conftest.$ac_ext
10719 LIBS="$am_save_LIBS"
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10723 $as_echo "$am_cv_func_iconv_works" >&6; }
10724 case "$am_cv_func_iconv_works" in
10725 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10726 *) am_func_iconv=yes ;;
10727 esac
10728 else
10729 am_func_iconv=no am_cv_lib_iconv=no
10731 if test "$am_func_iconv" = yes; then
10733 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10736 if test "$am_cv_lib_iconv" = yes; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10738 $as_echo_n "checking how to link with libiconv... " >&6; }
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10740 $as_echo "$LIBICONV" >&6; }
10741 else
10742 CPPFLAGS="$am_save_CPPFLAGS"
10743 LIBICONV=
10744 LTLIBICONV=
10749 if test "$am_cv_func_iconv" = yes; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10751 $as_echo_n "checking for iconv declaration... " >&6; }
10752 if test "${am_cv_proto_iconv+set}" = set; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 #include <stdlib.h>
10760 #include <iconv.h>
10761 extern
10762 #ifdef __cplusplus
10764 #endif
10765 #if defined(__STDC__) || defined(__cplusplus)
10766 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10767 #else
10768 size_t iconv();
10769 #endif
10772 main ()
10776 return 0;
10778 _ACEOF
10779 if ac_fn_c_try_compile "$LINENO"; then :
10780 am_cv_proto_iconv_arg1=""
10781 else
10782 am_cv_proto_iconv_arg1="const"
10784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10785 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);"
10788 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
10790 $am_cv_proto_iconv" >&5
10791 $as_echo "
10792 $am_cv_proto_iconv" >&6; }
10794 cat >>confdefs.h <<_ACEOF
10795 #define ICONV_CONST $am_cv_proto_iconv_arg1
10796 _ACEOF
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10805 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
10807 main ()
10811 return 0;
10813 _ACEOF
10814 if ac_fn_c_try_link "$LINENO"; then :
10816 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10822 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
10823 do :
10824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10825 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10827 cat >>confdefs.h <<_ACEOF
10828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10829 _ACEOF
10833 done
10835 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
10836 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
10837 argz_stringify argz_next __fsetlocking
10838 do :
10839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10842 cat >>confdefs.h <<_ACEOF
10843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10844 _ACEOF
10847 done
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
10852 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
10853 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858 #include <stdio.h>
10860 main ()
10863 #ifndef feof_unlocked
10864 char *p = (char *) feof_unlocked;
10865 #endif
10868 return 0;
10870 _ACEOF
10871 if ac_fn_c_try_compile "$LINENO"; then :
10872 ac_cv_have_decl_feof_unlocked=yes
10873 else
10874 ac_cv_have_decl_feof_unlocked=no
10876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
10879 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
10880 if test $ac_cv_have_decl_feof_unlocked = yes; then
10881 gt_value=1
10882 else
10883 gt_value=0
10886 cat >>confdefs.h <<_ACEOF
10887 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10888 _ACEOF
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
10893 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
10894 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10899 #include <stdio.h>
10901 main ()
10904 #ifndef fgets_unlocked
10905 char *p = (char *) fgets_unlocked;
10906 #endif
10909 return 0;
10911 _ACEOF
10912 if ac_fn_c_try_compile "$LINENO"; then :
10913 ac_cv_have_decl_fgets_unlocked=yes
10914 else
10915 ac_cv_have_decl_fgets_unlocked=no
10917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
10920 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10921 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10922 gt_value=1
10923 else
10924 gt_value=0
10927 cat >>confdefs.h <<_ACEOF
10928 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10929 _ACEOF
10935 for ac_prog in bison
10937 # Extract the first word of "$ac_prog", so it can be a program name with args.
10938 set dummy $ac_prog; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 $as_echo_n "checking for $ac_word... " >&6; }
10941 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 if test -n "$INTLBISON"; then
10945 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10946 else
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $PATH
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954 ac_cv_prog_INTLBISON="$ac_prog"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10958 done
10959 done
10960 IFS=$as_save_IFS
10964 INTLBISON=$ac_cv_prog_INTLBISON
10965 if test -n "$INTLBISON"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
10967 $as_echo "$INTLBISON" >&6; }
10968 else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10974 test -n "$INTLBISON" && break
10975 done
10977 if test -z "$INTLBISON"; then
10978 ac_verc_fail=yes
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
10981 $as_echo_n "checking version of bison... " >&6; }
10982 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10983 case $ac_prog_version in
10984 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10985 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10986 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10987 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10988 esac
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
10990 $as_echo "$ac_prog_version" >&6; }
10992 if test $ac_verc_fail = yes; then
10993 INTLBISON=:
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10998 $as_echo_n "checking for long long int... " >&6; }
10999 if test "${ac_cv_type_long_long_int+set}" = set; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11005 /* For now, do not test the preprocessor; as of 2007 there are too many
11006 implementations with broken preprocessors. Perhaps this can
11007 be revisited in 2012. In the meantime, code should not expect
11008 #if to work with literals wider than 32 bits. */
11009 /* Test literals. */
11010 long long int ll = 9223372036854775807ll;
11011 long long int nll = -9223372036854775807LL;
11012 unsigned long long int ull = 18446744073709551615ULL;
11013 /* Test constant expressions. */
11014 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11015 ? 1 : -1)];
11016 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11017 ? 1 : -1)];
11018 int i = 63;
11020 main ()
11022 /* Test availability of runtime routines for shift and division. */
11023 long long int llmax = 9223372036854775807ll;
11024 unsigned long long int ullmax = 18446744073709551615ull;
11025 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11026 | (llmax / ll) | (llmax % ll)
11027 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11028 | (ullmax / ull) | (ullmax % ull));
11030 return 0;
11033 _ACEOF
11034 if ac_fn_c_try_link "$LINENO"; then :
11035 if test "$cross_compiling" = yes; then :
11036 ac_cv_type_long_long_int=yes
11037 else
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11040 #include <limits.h>
11041 #ifndef LLONG_MAX
11042 # define HALF \
11043 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11044 # define LLONG_MAX (HALF - 1 + HALF)
11045 #endif
11047 main ()
11049 long long int n = 1;
11050 int i;
11051 for (i = 0; ; i++)
11053 long long int m = n << i;
11054 if (m >> i != n)
11055 return 1;
11056 if (LLONG_MAX / 2 < m)
11057 break;
11059 return 0;
11061 return 0;
11063 _ACEOF
11064 if ac_fn_c_try_run "$LINENO"; then :
11065 ac_cv_type_long_long_int=yes
11066 else
11067 ac_cv_type_long_long_int=no
11069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11070 conftest.$ac_objext conftest.beam conftest.$ac_ext
11073 else
11074 ac_cv_type_long_long_int=no
11076 rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11080 $as_echo "$ac_cv_type_long_long_int" >&6; }
11081 if test $ac_cv_type_long_long_int = yes; then
11083 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11089 $as_echo_n "checking for wchar_t... " >&6; }
11090 if test "${gt_cv_c_wchar_t+set}" = set; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095 #include <stddef.h>
11096 wchar_t foo = (wchar_t)'\0';
11098 main ()
11102 return 0;
11104 _ACEOF
11105 if ac_fn_c_try_compile "$LINENO"; then :
11106 gt_cv_c_wchar_t=yes
11107 else
11108 gt_cv_c_wchar_t=no
11110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11113 $as_echo "$gt_cv_c_wchar_t" >&6; }
11114 if test $gt_cv_c_wchar_t = yes; then
11116 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11122 $as_echo_n "checking for wint_t... " >&6; }
11123 if test "${gt_cv_c_wint_t+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11129 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11130 <wchar.h>.
11131 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11132 before <wchar.h>. */
11133 #include <stddef.h>
11134 #include <stdio.h>
11135 #include <time.h>
11136 #include <wchar.h>
11137 wint_t foo = (wchar_t)'\0';
11139 main ()
11143 return 0;
11145 _ACEOF
11146 if ac_fn_c_try_compile "$LINENO"; then :
11147 gt_cv_c_wint_t=yes
11148 else
11149 gt_cv_c_wint_t=no
11151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11154 $as_echo "$gt_cv_c_wint_t" >&6; }
11155 if test $gt_cv_c_wint_t = yes; then
11157 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
11165 $as_echo_n "checking for intmax_t... " >&6; }
11166 if test "${gt_cv_c_intmax_t+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11172 #include <stddef.h>
11173 #include <stdlib.h>
11174 #if HAVE_STDINT_H_WITH_UINTMAX
11175 #include <stdint.h>
11176 #endif
11177 #if HAVE_INTTYPES_H_WITH_UINTMAX
11178 #include <inttypes.h>
11179 #endif
11182 main ()
11184 intmax_t x = -1;
11185 return !x;
11187 return 0;
11189 _ACEOF
11190 if ac_fn_c_try_compile "$LINENO"; then :
11191 gt_cv_c_intmax_t=yes
11192 else
11193 gt_cv_c_intmax_t=no
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
11198 $as_echo "$gt_cv_c_intmax_t" >&6; }
11199 if test $gt_cv_c_intmax_t = yes; then
11201 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
11208 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
11209 if test "${gt_cv_func_printf_posix+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11213 if test "$cross_compiling" = yes; then :
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11218 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
11219 notposix
11220 #endif
11222 _ACEOF
11223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11224 $EGREP "notposix" >/dev/null 2>&1; then :
11225 gt_cv_func_printf_posix="guessing no"
11226 else
11227 gt_cv_func_printf_posix="guessing yes"
11229 rm -f conftest*
11232 else
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11236 #include <stdio.h>
11237 #include <string.h>
11238 /* The string "%2$d %1$d", with dollar characters protected from the shell's
11239 dollar expansion (possibly an autoconf bug). */
11240 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
11241 static char buf[100];
11242 int main ()
11244 sprintf (buf, format, 33, 55);
11245 return (strcmp (buf, "55 33") != 0);
11247 _ACEOF
11248 if ac_fn_c_try_run "$LINENO"; then :
11249 gt_cv_func_printf_posix=yes
11250 else
11251 gt_cv_func_printf_posix=no
11253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11254 conftest.$ac_objext conftest.beam conftest.$ac_ext
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
11260 $as_echo "$gt_cv_func_printf_posix" >&6; }
11261 case $gt_cv_func_printf_posix in
11262 *yes)
11264 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
11267 esac
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11271 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11272 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11278 #include <features.h>
11279 #ifdef __GNU_LIBRARY__
11280 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11281 Lucky GNU user
11282 #endif
11283 #endif
11285 _ACEOF
11286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11287 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11288 ac_cv_gnu_library_2_1=yes
11289 else
11290 ac_cv_gnu_library_2_1=no
11292 rm -f conftest*
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11298 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11300 GLIBC21="$ac_cv_gnu_library_2_1"
11304 for ac_header in stdint.h
11305 do :
11306 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11307 if test "x$ac_cv_header_stdint_h" = x""yes; then :
11308 cat >>confdefs.h <<_ACEOF
11309 #define HAVE_STDINT_H 1
11310 _ACEOF
11314 done
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
11317 $as_echo_n "checking for SIZE_MAX... " >&6; }
11318 if test "${gl_cv_size_max+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11322 gl_cv_size_max=
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11326 #include <limits.h>
11327 #if HAVE_STDINT_H
11328 #include <stdint.h>
11329 #endif
11330 #ifdef SIZE_MAX
11331 Found it
11332 #endif
11334 _ACEOF
11335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11336 $EGREP "Found it" >/dev/null 2>&1; then :
11337 gl_cv_size_max=yes
11339 rm -f conftest*
11341 if test -z "$gl_cv_size_max"; then
11342 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
11343 #include <limits.h>"; then :
11345 else
11346 size_t_bits_minus_1=
11349 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
11351 else
11352 fits_in_uint=
11355 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
11356 if test $fits_in_uint = 1; then
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11359 #include <stddef.h>
11360 extern size_t foo;
11361 extern unsigned long foo;
11364 main ()
11368 return 0;
11370 _ACEOF
11371 if ac_fn_c_try_compile "$LINENO"; then :
11372 fits_in_uint=0
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 if test $fits_in_uint = 1; then
11377 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
11378 else
11379 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
11381 else
11382 gl_cv_size_max='((size_t)~(size_t)0)'
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
11388 $as_echo "$gl_cv_size_max" >&6; }
11389 if test "$gl_cv_size_max" != yes; then
11391 cat >>confdefs.h <<_ACEOF
11392 #define SIZE_MAX $gl_cv_size_max
11393 _ACEOF
11401 for ac_header in stdint.h
11402 do :
11403 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11404 if test "x$ac_cv_header_stdint_h" = x""yes; then :
11405 cat >>confdefs.h <<_ACEOF
11406 #define HAVE_STDINT_H 1
11407 _ACEOF
11411 done
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11417 $as_echo_n "checking for working fcntl.h... " >&6; }
11418 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 if test "$cross_compiling" = yes; then :
11422 gl_cv_header_working_fcntl_h=cross-compiling
11423 else
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11426 #include <sys/types.h>
11427 #include <sys/stat.h>
11428 #include <unistd.h>
11429 #include <fcntl.h>
11430 #ifndef O_NOATIME
11431 #define O_NOATIME 0
11432 #endif
11433 #ifndef O_NOFOLLOW
11434 #define O_NOFOLLOW 0
11435 #endif
11436 static int const constants[] =
11438 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11439 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11443 main ()
11446 int status = !constants;
11448 static char const sym[] = "conftest.sym";
11449 if (symlink (".", sym) != 0
11450 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
11451 status |= 32;
11452 unlink (sym);
11455 static char const file[] = "confdefs.h";
11456 int fd = open (file, O_RDONLY | O_NOATIME);
11457 char c;
11458 struct stat st0, st1;
11459 if (fd < 0
11460 || fstat (fd, &st0) != 0
11461 || sleep (1) != 0
11462 || read (fd, &c, 1) != 1
11463 || close (fd) != 0
11464 || stat (file, &st1) != 0
11465 || st0.st_atime != st1.st_atime)
11466 status |= 64;
11468 return status;
11470 return 0;
11472 _ACEOF
11473 if ac_fn_c_try_run "$LINENO"; then :
11474 gl_cv_header_working_fcntl_h=yes
11475 else
11476 case $? in #(
11477 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
11478 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
11479 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11480 *) gl_cv_header_working_fcntl_h='no';;
11481 esac
11483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11484 conftest.$ac_objext conftest.beam conftest.$ac_ext
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
11489 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
11491 case $gl_cv_header_working_fcntl_h in #(
11492 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
11493 *) ac_val=1;;
11494 esac
11496 cat >>confdefs.h <<_ACEOF
11497 #define HAVE_WORKING_O_NOATIME $ac_val
11498 _ACEOF
11501 case $gl_cv_header_working_fcntl_h in #(
11502 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
11503 *) ac_val=1;;
11504 esac
11506 cat >>confdefs.h <<_ACEOF
11507 #define HAVE_WORKING_O_NOFOLLOW $ac_val
11508 _ACEOF
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11513 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11514 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 gt_save_LIBS="$LIBS"
11518 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11521 #include <CoreFoundation/CFPreferences.h>
11523 main ()
11525 CFPreferencesCopyAppValue(NULL, NULL)
11527 return 0;
11529 _ACEOF
11530 if ac_fn_c_try_link "$LINENO"; then :
11531 gt_cv_func_CFPreferencesCopyAppValue=yes
11532 else
11533 gt_cv_func_CFPreferencesCopyAppValue=no
11535 rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537 LIBS="$gt_save_LIBS"
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11540 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11541 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11543 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11547 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11548 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 gt_save_LIBS="$LIBS"
11552 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11555 #include <CoreFoundation/CFLocale.h>
11557 main ()
11559 CFLocaleCopyCurrent();
11561 return 0;
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 gt_cv_func_CFLocaleCopyCurrent=yes
11566 else
11567 gt_cv_func_CFLocaleCopyCurrent=no
11569 rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LIBS="$gt_save_LIBS"
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11574 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11575 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11577 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11580 INTL_MACOSX_LIBS=
11581 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11582 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11591 case "$enable_silent_rules" in
11592 yes) INTL_DEFAULT_VERBOSITY=0;;
11593 no) INTL_DEFAULT_VERBOSITY=1;;
11594 *) INTL_DEFAULT_VERBOSITY=1;;
11595 esac
11598 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11599 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
11601 else
11603 $as_echo "#define ptrdiff_t long" >>confdefs.h
11608 for ac_header in stddef.h stdlib.h string.h
11609 do :
11610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11611 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11612 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11613 cat >>confdefs.h <<_ACEOF
11614 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11615 _ACEOF
11619 done
11621 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
11622 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
11623 do :
11624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11625 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11626 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11627 cat >>confdefs.h <<_ACEOF
11628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11629 _ACEOF
11632 done
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
11637 $as_echo_n "checking whether _snprintf is declared... " >&6; }
11638 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643 #include <stdio.h>
11645 main ()
11648 #ifndef _snprintf
11649 char *p = (char *) _snprintf;
11650 #endif
11653 return 0;
11655 _ACEOF
11656 if ac_fn_c_try_compile "$LINENO"; then :
11657 ac_cv_have_decl__snprintf=yes
11658 else
11659 ac_cv_have_decl__snprintf=no
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
11664 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
11665 if test $ac_cv_have_decl__snprintf = yes; then
11666 gt_value=1
11667 else
11668 gt_value=0
11671 cat >>confdefs.h <<_ACEOF
11672 #define HAVE_DECL__SNPRINTF $gt_value
11673 _ACEOF
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
11678 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
11679 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 #include <stdio.h>
11686 main ()
11689 #ifndef _snwprintf
11690 char *p = (char *) _snwprintf;
11691 #endif
11694 return 0;
11696 _ACEOF
11697 if ac_fn_c_try_compile "$LINENO"; then :
11698 ac_cv_have_decl__snwprintf=yes
11699 else
11700 ac_cv_have_decl__snwprintf=no
11702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
11705 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
11706 if test $ac_cv_have_decl__snwprintf = yes; then
11707 gt_value=1
11708 else
11709 gt_value=0
11712 cat >>confdefs.h <<_ACEOF
11713 #define HAVE_DECL__SNWPRINTF $gt_value
11714 _ACEOF
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
11720 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
11721 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11726 #include <stdio.h>
11728 main ()
11731 #ifndef getc_unlocked
11732 char *p = (char *) getc_unlocked;
11733 #endif
11736 return 0;
11738 _ACEOF
11739 if ac_fn_c_try_compile "$LINENO"; then :
11740 ac_cv_have_decl_getc_unlocked=yes
11741 else
11742 ac_cv_have_decl_getc_unlocked=no
11744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
11747 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
11748 if test $ac_cv_have_decl_getc_unlocked = yes; then
11749 gt_value=1
11750 else
11751 gt_value=0
11754 cat >>confdefs.h <<_ACEOF
11755 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11756 _ACEOF
11760 case $gt_cv_func_printf_posix in
11761 *yes) HAVE_POSIX_PRINTF=1 ;;
11762 *) HAVE_POSIX_PRINTF=0 ;;
11763 esac
11765 if test "$ac_cv_func_asprintf" = yes; then
11766 HAVE_ASPRINTF=1
11767 else
11768 HAVE_ASPRINTF=0
11771 if test "$ac_cv_func_snprintf" = yes; then
11772 HAVE_SNPRINTF=1
11773 else
11774 HAVE_SNPRINTF=0
11777 if test "$ac_cv_func_newlocale" = yes; then
11778 HAVE_NEWLOCALE=1
11779 else
11780 HAVE_NEWLOCALE=0
11783 if test "$ac_cv_func_wprintf" = yes; then
11784 HAVE_WPRINTF=1
11785 else
11786 HAVE_WPRINTF=0
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11792 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11793 if test "${am_cv_langinfo_codeset+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11798 #include <langinfo.h>
11800 main ()
11802 char* cs = nl_langinfo(CODESET); return !cs;
11804 return 0;
11806 _ACEOF
11807 if ac_fn_c_try_link "$LINENO"; then :
11808 am_cv_langinfo_codeset=yes
11809 else
11810 am_cv_langinfo_codeset=no
11812 rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11817 $as_echo "$am_cv_langinfo_codeset" >&6; }
11818 if test $am_cv_langinfo_codeset = yes; then
11820 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11826 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11827 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h. */
11832 #include <locale.h>
11834 main ()
11836 return LC_MESSAGES
11838 return 0;
11840 _ACEOF
11841 if ac_fn_c_try_link "$LINENO"; then :
11842 gt_cv_val_LC_MESSAGES=yes
11843 else
11844 gt_cv_val_LC_MESSAGES=no
11846 rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
11850 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
11851 if test $gt_cv_val_LC_MESSAGES = yes; then
11853 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11858 if test "$enable_shared" = yes; then
11859 case "$host_os" in
11860 mingw* | cygwin*) is_woe32dll=yes ;;
11861 *) is_woe32dll=no ;;
11862 esac
11863 else
11864 is_woe32dll=no
11866 WOE32DLL=$is_woe32dll
11869 case "$host_os" in
11870 mingw* | cygwin*) is_woe32=yes ;;
11871 *) is_woe32=no ;;
11872 esac
11873 WOE32=$is_woe32
11875 if test $WOE32 = yes; then
11876 if test -n "$ac_tool_prefix"; then
11877 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11878 set dummy ${ac_tool_prefix}windres; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880 $as_echo_n "checking for $ac_word... " >&6; }
11881 if test "${ac_cv_prog_WINDRES+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 if test -n "$WINDRES"; then
11885 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11886 else
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11890 IFS=$as_save_IFS
11891 test -z "$as_dir" && as_dir=.
11892 for ac_exec_ext in '' $ac_executable_extensions; do
11893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11894 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
11895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896 break 2
11898 done
11899 done
11900 IFS=$as_save_IFS
11904 WINDRES=$ac_cv_prog_WINDRES
11905 if test -n "$WINDRES"; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11907 $as_echo "$WINDRES" >&6; }
11908 else
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11915 if test -z "$ac_cv_prog_WINDRES"; then
11916 ac_ct_WINDRES=$WINDRES
11917 # Extract the first word of "windres", so it can be a program name with args.
11918 set dummy windres; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
11922 $as_echo_n "(cached) " >&6
11923 else
11924 if test -n "$ac_ct_WINDRES"; then
11925 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
11926 else
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934 ac_cv_prog_ac_ct_WINDRES="windres"
11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 break 2
11938 done
11939 done
11940 IFS=$as_save_IFS
11944 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
11945 if test -n "$ac_ct_WINDRES"; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
11947 $as_echo "$ac_ct_WINDRES" >&6; }
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11953 if test "x$ac_ct_WINDRES" = x; then
11954 WINDRES=""
11955 else
11956 case $cross_compiling:$ac_tool_warned in
11957 yes:)
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11960 ac_tool_warned=yes ;;
11961 esac
11962 WINDRES=$ac_ct_WINDRES
11964 else
11965 WINDRES="$ac_cv_prog_WINDRES"
11970 case "$host_os" in
11971 hpux*) LTLIBC="" ;;
11972 *) LTLIBC="-lc" ;;
11973 esac
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12002 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12003 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 gt_save_LIBS="$LIBS"
12007 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010 #include <CoreFoundation/CFPreferences.h>
12012 main ()
12014 CFPreferencesCopyAppValue(NULL, NULL)
12016 return 0;
12018 _ACEOF
12019 if ac_fn_c_try_link "$LINENO"; then :
12020 gt_cv_func_CFPreferencesCopyAppValue=yes
12021 else
12022 gt_cv_func_CFPreferencesCopyAppValue=no
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026 LIBS="$gt_save_LIBS"
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12029 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12030 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12032 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12036 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12037 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 gt_save_LIBS="$LIBS"
12041 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12044 #include <CoreFoundation/CFLocale.h>
12046 main ()
12048 CFLocaleCopyCurrent();
12050 return 0;
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 gt_cv_func_CFLocaleCopyCurrent=yes
12055 else
12056 gt_cv_func_CFLocaleCopyCurrent=no
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS="$gt_save_LIBS"
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12063 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12064 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12066 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12069 INTL_MACOSX_LIBS=
12070 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12071 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12079 BUILD_INCLUDED_LIBINTL=no
12080 USE_INCLUDED_LIBINTL=no
12082 LIBINTL=
12083 LTLIBINTL=
12084 POSUB=
12086 case " $gt_needs " in
12087 *" need-formatstring-macros "*) gt_api_version=3 ;;
12088 *" need-ngettext "*) gt_api_version=2 ;;
12089 *) gt_api_version=1 ;;
12090 esac
12091 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12092 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12094 if test "$USE_NLS" = "yes"; then
12095 gt_use_preinstalled_gnugettext=no
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
12098 $as_echo_n "checking whether included gettext is requested... " >&6; }
12100 # Check whether --with-included-gettext was given.
12101 if test "${with_included_gettext+set}" = set; then :
12102 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12103 else
12104 nls_cv_force_use_gnu_gettext=no
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
12108 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
12110 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12111 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12114 if test $gt_api_version -ge 3; then
12115 gt_revision_test_code='
12116 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12117 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12118 #endif
12119 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12121 else
12122 gt_revision_test_code=
12124 if test $gt_api_version -ge 2; then
12125 gt_expression_test_code=' + * ngettext ("", "", 0)'
12126 else
12127 gt_expression_test_code=
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12131 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12132 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12137 #include <libintl.h>
12138 $gt_revision_test_code
12139 extern int _nl_msg_cat_cntr;
12140 extern int *_nl_domain_bindings;
12142 main ()
12144 bindtextdomain ("", "");
12145 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12147 return 0;
12149 _ACEOF
12150 if ac_fn_c_try_link "$LINENO"; then :
12151 eval "$gt_func_gnugettext_libc=yes"
12152 else
12153 eval "$gt_func_gnugettext_libc=no"
12155 rm -f core conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12158 eval ac_res=\$$gt_func_gnugettext_libc
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12160 $as_echo "$ac_res" >&6; }
12162 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12171 use_additional=yes
12173 acl_save_prefix="$prefix"
12174 prefix="$acl_final_prefix"
12175 acl_save_exec_prefix="$exec_prefix"
12176 exec_prefix="$acl_final_exec_prefix"
12178 eval additional_includedir=\"$includedir\"
12179 eval additional_libdir=\"$libdir\"
12181 exec_prefix="$acl_save_exec_prefix"
12182 prefix="$acl_save_prefix"
12185 # Check whether --with-libintl-prefix was given.
12186 if test "${with_libintl_prefix+set}" = set; then :
12187 withval=$with_libintl_prefix;
12188 if test "X$withval" = "Xno"; then
12189 use_additional=no
12190 else
12191 if test "X$withval" = "X"; then
12193 acl_save_prefix="$prefix"
12194 prefix="$acl_final_prefix"
12195 acl_save_exec_prefix="$exec_prefix"
12196 exec_prefix="$acl_final_exec_prefix"
12198 eval additional_includedir=\"$includedir\"
12199 eval additional_libdir=\"$libdir\"
12201 exec_prefix="$acl_save_exec_prefix"
12202 prefix="$acl_save_prefix"
12204 else
12205 additional_includedir="$withval/include"
12206 additional_libdir="$withval/$acl_libdirstem"
12207 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12208 && ! test -d "$withval/$acl_libdirstem"; then
12209 additional_libdir="$withval/$acl_libdirstem2"
12216 LIBINTL=
12217 LTLIBINTL=
12218 INCINTL=
12219 LIBINTL_PREFIX=
12220 HAVE_LIBINTL=
12221 rpathdirs=
12222 ltrpathdirs=
12223 names_already_handled=
12224 names_next_round='intl '
12225 while test -n "$names_next_round"; do
12226 names_this_round="$names_next_round"
12227 names_next_round=
12228 for name in $names_this_round; do
12229 already_handled=
12230 for n in $names_already_handled; do
12231 if test "$n" = "$name"; then
12232 already_handled=yes
12233 break
12235 done
12236 if test -z "$already_handled"; then
12237 names_already_handled="$names_already_handled $name"
12238 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12239 eval value=\"\$HAVE_LIB$uppername\"
12240 if test -n "$value"; then
12241 if test "$value" = yes; then
12242 eval value=\"\$LIB$uppername\"
12243 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12244 eval value=\"\$LTLIB$uppername\"
12245 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12246 else
12249 else
12250 found_dir=
12251 found_la=
12252 found_so=
12253 found_a=
12254 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12255 if test -n "$acl_shlibext"; then
12256 shrext=".$acl_shlibext" # typically: shrext=.so
12257 else
12258 shrext=
12260 if test $use_additional = yes; then
12261 dir="$additional_libdir"
12262 if test -n "$acl_shlibext"; then
12263 if test -f "$dir/$libname$shrext"; then
12264 found_dir="$dir"
12265 found_so="$dir/$libname$shrext"
12266 else
12267 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12268 ver=`(cd "$dir" && \
12269 for f in "$libname$shrext".*; do echo "$f"; done \
12270 | sed -e "s,^$libname$shrext\\\\.,," \
12271 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12272 | sed 1q ) 2>/dev/null`
12273 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12274 found_dir="$dir"
12275 found_so="$dir/$libname$shrext.$ver"
12277 else
12278 eval library_names=\"$acl_library_names_spec\"
12279 for f in $library_names; do
12280 if test -f "$dir/$f"; then
12281 found_dir="$dir"
12282 found_so="$dir/$f"
12283 break
12285 done
12289 if test "X$found_dir" = "X"; then
12290 if test -f "$dir/$libname.$acl_libext"; then
12291 found_dir="$dir"
12292 found_a="$dir/$libname.$acl_libext"
12295 if test "X$found_dir" != "X"; then
12296 if test -f "$dir/$libname.la"; then
12297 found_la="$dir/$libname.la"
12301 if test "X$found_dir" = "X"; then
12302 for x in $LDFLAGS $LTLIBINTL; do
12304 acl_save_prefix="$prefix"
12305 prefix="$acl_final_prefix"
12306 acl_save_exec_prefix="$exec_prefix"
12307 exec_prefix="$acl_final_exec_prefix"
12308 eval x=\"$x\"
12309 exec_prefix="$acl_save_exec_prefix"
12310 prefix="$acl_save_prefix"
12312 case "$x" in
12313 -L*)
12314 dir=`echo "X$x" | sed -e 's/^X-L//'`
12315 if test -n "$acl_shlibext"; then
12316 if test -f "$dir/$libname$shrext"; then
12317 found_dir="$dir"
12318 found_so="$dir/$libname$shrext"
12319 else
12320 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12321 ver=`(cd "$dir" && \
12322 for f in "$libname$shrext".*; do echo "$f"; done \
12323 | sed -e "s,^$libname$shrext\\\\.,," \
12324 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12325 | sed 1q ) 2>/dev/null`
12326 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12327 found_dir="$dir"
12328 found_so="$dir/$libname$shrext.$ver"
12330 else
12331 eval library_names=\"$acl_library_names_spec\"
12332 for f in $library_names; do
12333 if test -f "$dir/$f"; then
12334 found_dir="$dir"
12335 found_so="$dir/$f"
12336 break
12338 done
12342 if test "X$found_dir" = "X"; then
12343 if test -f "$dir/$libname.$acl_libext"; then
12344 found_dir="$dir"
12345 found_a="$dir/$libname.$acl_libext"
12348 if test "X$found_dir" != "X"; then
12349 if test -f "$dir/$libname.la"; then
12350 found_la="$dir/$libname.la"
12354 esac
12355 if test "X$found_dir" != "X"; then
12356 break
12358 done
12360 if test "X$found_dir" != "X"; then
12361 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12362 if test "X$found_so" != "X"; then
12363 if test "$enable_rpath" = no \
12364 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12365 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12366 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12367 else
12368 haveit=
12369 for x in $ltrpathdirs; do
12370 if test "X$x" = "X$found_dir"; then
12371 haveit=yes
12372 break
12374 done
12375 if test -z "$haveit"; then
12376 ltrpathdirs="$ltrpathdirs $found_dir"
12378 if test "$acl_hardcode_direct" = yes; then
12379 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12380 else
12381 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12382 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12383 haveit=
12384 for x in $rpathdirs; do
12385 if test "X$x" = "X$found_dir"; then
12386 haveit=yes
12387 break
12389 done
12390 if test -z "$haveit"; then
12391 rpathdirs="$rpathdirs $found_dir"
12393 else
12394 haveit=
12395 for x in $LDFLAGS $LIBINTL; do
12397 acl_save_prefix="$prefix"
12398 prefix="$acl_final_prefix"
12399 acl_save_exec_prefix="$exec_prefix"
12400 exec_prefix="$acl_final_exec_prefix"
12401 eval x=\"$x\"
12402 exec_prefix="$acl_save_exec_prefix"
12403 prefix="$acl_save_prefix"
12405 if test "X$x" = "X-L$found_dir"; then
12406 haveit=yes
12407 break
12409 done
12410 if test -z "$haveit"; then
12411 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12413 if test "$acl_hardcode_minus_L" != no; then
12414 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12415 else
12416 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12421 else
12422 if test "X$found_a" != "X"; then
12423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12424 else
12425 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12428 additional_includedir=
12429 case "$found_dir" in
12430 */$acl_libdirstem | */$acl_libdirstem/)
12431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12432 if test "$name" = 'intl'; then
12433 LIBINTL_PREFIX="$basedir"
12435 additional_includedir="$basedir/include"
12437 */$acl_libdirstem2 | */$acl_libdirstem2/)
12438 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12439 if test "$name" = 'intl'; then
12440 LIBINTL_PREFIX="$basedir"
12442 additional_includedir="$basedir/include"
12444 esac
12445 if test "X$additional_includedir" != "X"; then
12446 if test "X$additional_includedir" != "X/usr/include"; then
12447 haveit=
12448 if test "X$additional_includedir" = "X/usr/local/include"; then
12449 if test -n "$GCC"; then
12450 case $host_os in
12451 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12452 esac
12455 if test -z "$haveit"; then
12456 for x in $CPPFLAGS $INCINTL; do
12458 acl_save_prefix="$prefix"
12459 prefix="$acl_final_prefix"
12460 acl_save_exec_prefix="$exec_prefix"
12461 exec_prefix="$acl_final_exec_prefix"
12462 eval x=\"$x\"
12463 exec_prefix="$acl_save_exec_prefix"
12464 prefix="$acl_save_prefix"
12466 if test "X$x" = "X-I$additional_includedir"; then
12467 haveit=yes
12468 break
12470 done
12471 if test -z "$haveit"; then
12472 if test -d "$additional_includedir"; then
12473 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12479 if test -n "$found_la"; then
12480 save_libdir="$libdir"
12481 case "$found_la" in
12482 */* | *\\*) . "$found_la" ;;
12483 *) . "./$found_la" ;;
12484 esac
12485 libdir="$save_libdir"
12486 for dep in $dependency_libs; do
12487 case "$dep" in
12488 -L*)
12489 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12490 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12491 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12492 haveit=
12493 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12494 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12495 if test -n "$GCC"; then
12496 case $host_os in
12497 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12498 esac
12501 if test -z "$haveit"; then
12502 haveit=
12503 for x in $LDFLAGS $LIBINTL; do
12505 acl_save_prefix="$prefix"
12506 prefix="$acl_final_prefix"
12507 acl_save_exec_prefix="$exec_prefix"
12508 exec_prefix="$acl_final_exec_prefix"
12509 eval x=\"$x\"
12510 exec_prefix="$acl_save_exec_prefix"
12511 prefix="$acl_save_prefix"
12513 if test "X$x" = "X-L$additional_libdir"; then
12514 haveit=yes
12515 break
12517 done
12518 if test -z "$haveit"; then
12519 if test -d "$additional_libdir"; then
12520 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12523 haveit=
12524 for x in $LDFLAGS $LTLIBINTL; do
12526 acl_save_prefix="$prefix"
12527 prefix="$acl_final_prefix"
12528 acl_save_exec_prefix="$exec_prefix"
12529 exec_prefix="$acl_final_exec_prefix"
12530 eval x=\"$x\"
12531 exec_prefix="$acl_save_exec_prefix"
12532 prefix="$acl_save_prefix"
12534 if test "X$x" = "X-L$additional_libdir"; then
12535 haveit=yes
12536 break
12538 done
12539 if test -z "$haveit"; then
12540 if test -d "$additional_libdir"; then
12541 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12547 -R*)
12548 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12549 if test "$enable_rpath" != no; then
12550 haveit=
12551 for x in $rpathdirs; do
12552 if test "X$x" = "X$dir"; then
12553 haveit=yes
12554 break
12556 done
12557 if test -z "$haveit"; then
12558 rpathdirs="$rpathdirs $dir"
12560 haveit=
12561 for x in $ltrpathdirs; do
12562 if test "X$x" = "X$dir"; then
12563 haveit=yes
12564 break
12566 done
12567 if test -z "$haveit"; then
12568 ltrpathdirs="$ltrpathdirs $dir"
12572 -l*)
12573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12575 *.la)
12576 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12579 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12580 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12582 esac
12583 done
12585 else
12586 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12587 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12591 done
12592 done
12593 if test "X$rpathdirs" != "X"; then
12594 if test -n "$acl_hardcode_libdir_separator"; then
12595 alldirs=
12596 for found_dir in $rpathdirs; do
12597 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12598 done
12599 acl_save_libdir="$libdir"
12600 libdir="$alldirs"
12601 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12602 libdir="$acl_save_libdir"
12603 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12604 else
12605 for found_dir in $rpathdirs; do
12606 acl_save_libdir="$libdir"
12607 libdir="$found_dir"
12608 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12609 libdir="$acl_save_libdir"
12610 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12611 done
12614 if test "X$ltrpathdirs" != "X"; then
12615 for found_dir in $ltrpathdirs; do
12616 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12617 done
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12626 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12627 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 gt_save_CPPFLAGS="$CPPFLAGS"
12631 CPPFLAGS="$CPPFLAGS $INCINTL"
12632 gt_save_LIBS="$LIBS"
12633 LIBS="$LIBS $LIBINTL"
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12636 #include <libintl.h>
12637 $gt_revision_test_code
12638 extern int _nl_msg_cat_cntr;
12639 extern
12640 #ifdef __cplusplus
12642 #endif
12643 const char *_nl_expand_alias (const char *);
12645 main ()
12647 bindtextdomain ("", "");
12648 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12650 return 0;
12652 _ACEOF
12653 if ac_fn_c_try_link "$LINENO"; then :
12654 eval "$gt_func_gnugettext_libintl=yes"
12655 else
12656 eval "$gt_func_gnugettext_libintl=no"
12658 rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12661 LIBS="$LIBS $LIBICONV"
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664 #include <libintl.h>
12665 $gt_revision_test_code
12666 extern int _nl_msg_cat_cntr;
12667 extern
12668 #ifdef __cplusplus
12670 #endif
12671 const char *_nl_expand_alias (const char *);
12673 main ()
12675 bindtextdomain ("", "");
12676 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12678 return 0;
12680 _ACEOF
12681 if ac_fn_c_try_link "$LINENO"; then :
12682 LIBINTL="$LIBINTL $LIBICONV"
12683 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12684 eval "$gt_func_gnugettext_libintl=yes"
12687 rm -f core conftest.err conftest.$ac_objext \
12688 conftest$ac_exeext conftest.$ac_ext
12690 CPPFLAGS="$gt_save_CPPFLAGS"
12691 LIBS="$gt_save_LIBS"
12693 eval ac_res=\$$gt_func_gnugettext_libintl
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12695 $as_echo "$ac_res" >&6; }
12698 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12699 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12700 && test "$PACKAGE" != gettext-runtime \
12701 && test "$PACKAGE" != gettext-tools; }; then
12702 gt_use_preinstalled_gnugettext=yes
12703 else
12704 LIBINTL=
12705 LTLIBINTL=
12706 INCINTL=
12710 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12711 nls_cv_use_gnu_gettext=yes
12715 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12716 BUILD_INCLUDED_LIBINTL=yes
12717 USE_INCLUDED_LIBINTL=yes
12718 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
12719 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
12720 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12723 CATOBJEXT=
12724 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12725 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12726 CATOBJEXT=.gmo
12730 if test -n "$INTL_MACOSX_LIBS"; then
12731 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12732 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12733 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12734 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12738 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12739 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12741 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12743 else
12744 USE_NLS=no
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12749 $as_echo_n "checking whether to use NLS... " >&6; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12751 $as_echo "$USE_NLS" >&6; }
12752 if test "$USE_NLS" = "yes"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12754 $as_echo_n "checking where the gettext function comes from... " >&6; }
12755 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12756 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12757 gt_source="external libintl"
12758 else
12759 gt_source="libc"
12761 else
12762 gt_source="included intl directory"
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12765 $as_echo "$gt_source" >&6; }
12768 if test "$USE_NLS" = "yes"; then
12770 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12771 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12773 $as_echo_n "checking how to link with libintl... " >&6; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12775 $as_echo "$LIBINTL" >&6; }
12777 for element in $INCINTL; do
12778 haveit=
12779 for x in $CPPFLAGS; do
12781 acl_save_prefix="$prefix"
12782 prefix="$acl_final_prefix"
12783 acl_save_exec_prefix="$exec_prefix"
12784 exec_prefix="$acl_final_exec_prefix"
12785 eval x=\"$x\"
12786 exec_prefix="$acl_save_exec_prefix"
12787 prefix="$acl_save_prefix"
12789 if test "X$x" = "X$element"; then
12790 haveit=yes
12791 break
12793 done
12794 if test -z "$haveit"; then
12795 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12797 done
12802 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12805 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12809 POSUB=po
12813 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12814 BUILD_INCLUDED_LIBINTL=yes
12821 nls_cv_header_intl=
12822 nls_cv_header_libgt=
12824 DATADIRNAME=share
12827 INSTOBJEXT=.mo
12830 GENCAT=gencat
12833 INTLOBJS=
12834 if test "$USE_INCLUDED_LIBINTL" = yes; then
12835 INTLOBJS="\$(GETTOBJS)"
12839 INTL_LIBTOOL_SUFFIX_PREFIX=
12843 INTLLIBS="$LIBINTL"
12850 CFLAGS="$CFLAGS -I../${srcdir}/intl"
12851 LIBS="$LIBS $LIBINTL"
12854 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"
12857 cat >confcache <<\_ACEOF
12858 # This file is a shell script that caches the results of configure
12859 # tests run on this system so they can be shared between configure
12860 # scripts and configure runs, see configure's option --config-cache.
12861 # It is not useful on other systems. If it contains results you don't
12862 # want to keep, you may remove or edit it.
12864 # config.status only pays attention to the cache file if you give it
12865 # the --recheck option to rerun configure.
12867 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12868 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12869 # following values.
12871 _ACEOF
12873 # The following way of writing the cache mishandles newlines in values,
12874 # but we know of no workaround that is simple, portable, and efficient.
12875 # So, we kill variables containing newlines.
12876 # Ultrix sh set writes to stderr and can't be redirected directly,
12877 # and sets the high bit in the cache file unless we assign to the vars.
12879 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12880 eval ac_val=\$$ac_var
12881 case $ac_val in #(
12882 *${as_nl}*)
12883 case $ac_var in #(
12884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12885 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12886 esac
12887 case $ac_var in #(
12888 _ | IFS | as_nl) ;; #(
12889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12890 *) { eval $ac_var=; unset $ac_var;} ;;
12891 esac ;;
12892 esac
12893 done
12895 (set) 2>&1 |
12896 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12897 *${as_nl}ac_space=\ *)
12898 # `set' does not quote correctly, so add quotes: double-quote
12899 # substitution turns \\\\ into \\, and sed turns \\ into \.
12900 sed -n \
12901 "s/'/'\\\\''/g;
12902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12903 ;; #(
12905 # `set' quotes correctly as required by POSIX, so do not add quotes.
12906 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12908 esac |
12909 sort
12911 sed '
12912 /^ac_cv_env_/b end
12913 t clear
12914 :clear
12915 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12916 t end
12917 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12918 :end' >>confcache
12919 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12920 if test -w "$cache_file"; then
12921 test "x$cache_file" != "x/dev/null" &&
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12923 $as_echo "$as_me: updating cache $cache_file" >&6;}
12924 cat confcache >$cache_file
12925 else
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12927 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12930 rm -f confcache
12932 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12933 # Let make expand exec_prefix.
12934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12936 DEFS=-DHAVE_CONFIG_H
12938 ac_libobjs=
12939 ac_ltlibobjs=
12941 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12942 # 1. Remove the extension, and $U if already installed.
12943 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12944 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12945 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12946 # will be set to the directory where LIBOBJS objects are built.
12947 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12948 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12949 done
12950 LIBOBJS=$ac_libobjs
12952 LTLIBOBJS=$ac_ltlibobjs
12955 if test -n "$EXEEXT"; then
12956 am__EXEEXT_TRUE=
12957 am__EXEEXT_FALSE='#'
12958 else
12959 am__EXEEXT_TRUE='#'
12960 am__EXEEXT_FALSE=
12963 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12964 as_fn_error $? "conditional \"AMDEP\" was never defined.
12965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12968 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12971 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12972 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12975 if test -z "${GETDELIM_TRUE}" && test -z "${GETDELIM_FALSE}"; then
12976 as_fn_error $? "conditional \"GETDELIM\" was never defined.
12977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12979 if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then
12980 as_fn_error $? "conditional \"GETOPT_LONG\" was never defined.
12981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12983 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
12984 as_fn_error $? "conditional \"NEED_REPLACEMENTS\" was never defined.
12985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12987 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
12988 as_fn_error $? "conditional \"NEED_REPLACEMENTS\" was never defined.
12989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12992 : ${CONFIG_STATUS=./config.status}
12993 ac_write_fail=0
12994 ac_clean_files_save=$ac_clean_files
12995 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12997 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12998 as_write_fail=0
12999 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13000 #! $SHELL
13001 # Generated by $as_me.
13002 # Run this file to recreate the current configuration.
13003 # Compiler output produced by configure, useful for debugging
13004 # configure, is in config.log if it exists.
13006 debug=false
13007 ac_cs_recheck=false
13008 ac_cs_silent=false
13010 SHELL=\${CONFIG_SHELL-$SHELL}
13011 export SHELL
13012 _ASEOF
13013 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13014 ## -------------------- ##
13015 ## M4sh Initialization. ##
13016 ## -------------------- ##
13018 # Be more Bourne compatible
13019 DUALCASE=1; export DUALCASE # for MKS sh
13020 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13021 emulate sh
13022 NULLCMD=:
13023 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13024 # is contrary to our usage. Disable this feature.
13025 alias -g '${1+"$@"}'='"$@"'
13026 setopt NO_GLOB_SUBST
13027 else
13028 case `(set -o) 2>/dev/null` in #(
13029 *posix*) :
13030 set -o posix ;; #(
13031 *) :
13033 esac
13037 as_nl='
13039 export as_nl
13040 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13041 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13044 # Prefer a ksh shell builtin over an external printf program on Solaris,
13045 # but without wasting forks for bash or zsh.
13046 if test -z "$BASH_VERSION$ZSH_VERSION" \
13047 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13048 as_echo='print -r --'
13049 as_echo_n='print -rn --'
13050 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13051 as_echo='printf %s\n'
13052 as_echo_n='printf %s'
13053 else
13054 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13055 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13056 as_echo_n='/usr/ucb/echo -n'
13057 else
13058 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13059 as_echo_n_body='eval
13060 arg=$1;
13061 case $arg in #(
13062 *"$as_nl"*)
13063 expr "X$arg" : "X\\(.*\\)$as_nl";
13064 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13065 esac;
13066 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13068 export as_echo_n_body
13069 as_echo_n='sh -c $as_echo_n_body as_echo'
13071 export as_echo_body
13072 as_echo='sh -c $as_echo_body as_echo'
13075 # The user is always right.
13076 if test "${PATH_SEPARATOR+set}" != set; then
13077 PATH_SEPARATOR=:
13078 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13079 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13080 PATH_SEPARATOR=';'
13085 # IFS
13086 # We need space, tab and new line, in precisely that order. Quoting is
13087 # there to prevent editors from complaining about space-tab.
13088 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13089 # splitting by setting IFS to empty value.)
13090 IFS=" "" $as_nl"
13092 # Find who we are. Look in the path if we contain no directory separator.
13093 case $0 in #((
13094 *[\\/]* ) as_myself=$0 ;;
13095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13101 done
13102 IFS=$as_save_IFS
13105 esac
13106 # We did not find ourselves, most probably we were run as `sh COMMAND'
13107 # in which case we are not to be found in the path.
13108 if test "x$as_myself" = x; then
13109 as_myself=$0
13111 if test ! -f "$as_myself"; then
13112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13113 exit 1
13116 # Unset variables that we do not need and which cause bugs (e.g. in
13117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13118 # suppresses any "Segmentation fault" message there. '((' could
13119 # trigger a bug in pdksh 5.2.14.
13120 for as_var in BASH_ENV ENV MAIL MAILPATH
13121 do eval test x\${$as_var+set} = xset \
13122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13123 done
13124 PS1='$ '
13125 PS2='> '
13126 PS4='+ '
13128 # NLS nuisances.
13129 LC_ALL=C
13130 export LC_ALL
13131 LANGUAGE=C
13132 export LANGUAGE
13134 # CDPATH.
13135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13138 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13139 # ----------------------------------------
13140 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13141 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13142 # script with STATUS, using 1 if that was 0.
13143 as_fn_error ()
13145 as_status=$1; test $as_status -eq 0 && as_status=1
13146 if test "$4"; then
13147 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13148 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13150 $as_echo "$as_me: error: $2" >&2
13151 as_fn_exit $as_status
13152 } # as_fn_error
13155 # as_fn_set_status STATUS
13156 # -----------------------
13157 # Set $? to STATUS, without forking.
13158 as_fn_set_status ()
13160 return $1
13161 } # as_fn_set_status
13163 # as_fn_exit STATUS
13164 # -----------------
13165 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13166 as_fn_exit ()
13168 set +e
13169 as_fn_set_status $1
13170 exit $1
13171 } # as_fn_exit
13173 # as_fn_unset VAR
13174 # ---------------
13175 # Portably unset VAR.
13176 as_fn_unset ()
13178 { eval $1=; unset $1;}
13180 as_unset=as_fn_unset
13181 # as_fn_append VAR VALUE
13182 # ----------------------
13183 # Append the text in VALUE to the end of the definition contained in VAR. Take
13184 # advantage of any shell optimizations that allow amortized linear growth over
13185 # repeated appends, instead of the typical quadratic growth present in naive
13186 # implementations.
13187 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13188 eval 'as_fn_append ()
13190 eval $1+=\$2
13192 else
13193 as_fn_append ()
13195 eval $1=\$$1\$2
13197 fi # as_fn_append
13199 # as_fn_arith ARG...
13200 # ------------------
13201 # Perform arithmetic evaluation on the ARGs, and store the result in the
13202 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13203 # must be portable across $(()) and expr.
13204 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13205 eval 'as_fn_arith ()
13207 as_val=$(( $* ))
13209 else
13210 as_fn_arith ()
13212 as_val=`expr "$@" || test $? -eq 1`
13214 fi # as_fn_arith
13217 if expr a : '\(a\)' >/dev/null 2>&1 &&
13218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13219 as_expr=expr
13220 else
13221 as_expr=false
13224 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13225 as_basename=basename
13226 else
13227 as_basename=false
13230 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13231 as_dirname=dirname
13232 else
13233 as_dirname=false
13236 as_me=`$as_basename -- "$0" ||
13237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13238 X"$0" : 'X\(//\)$' \| \
13239 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13240 $as_echo X/"$0" |
13241 sed '/^.*\/\([^/][^/]*\)\/*$/{
13242 s//\1/
13245 /^X\/\(\/\/\)$/{
13246 s//\1/
13249 /^X\/\(\/\).*/{
13250 s//\1/
13253 s/.*/./; q'`
13255 # Avoid depending upon Character Ranges.
13256 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13259 as_cr_digits='0123456789'
13260 as_cr_alnum=$as_cr_Letters$as_cr_digits
13262 ECHO_C= ECHO_N= ECHO_T=
13263 case `echo -n x` in #(((((
13264 -n*)
13265 case `echo 'xy\c'` in
13266 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13267 xy) ECHO_C='\c';;
13268 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13269 ECHO_T=' ';;
13270 esac;;
13272 ECHO_N='-n';;
13273 esac
13275 rm -f conf$$ conf$$.exe conf$$.file
13276 if test -d conf$$.dir; then
13277 rm -f conf$$.dir/conf$$.file
13278 else
13279 rm -f conf$$.dir
13280 mkdir conf$$.dir 2>/dev/null
13282 if (echo >conf$$.file) 2>/dev/null; then
13283 if ln -s conf$$.file conf$$ 2>/dev/null; then
13284 as_ln_s='ln -s'
13285 # ... but there are two gotchas:
13286 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13287 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13288 # In both cases, we have to default to `cp -p'.
13289 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13290 as_ln_s='cp -p'
13291 elif ln conf$$.file conf$$ 2>/dev/null; then
13292 as_ln_s=ln
13293 else
13294 as_ln_s='cp -p'
13296 else
13297 as_ln_s='cp -p'
13299 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13300 rmdir conf$$.dir 2>/dev/null
13303 # as_fn_mkdir_p
13304 # -------------
13305 # Create "$as_dir" as a directory, including parents if necessary.
13306 as_fn_mkdir_p ()
13309 case $as_dir in #(
13310 -*) as_dir=./$as_dir;;
13311 esac
13312 test -d "$as_dir" || eval $as_mkdir_p || {
13313 as_dirs=
13314 while :; do
13315 case $as_dir in #(
13316 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13317 *) as_qdir=$as_dir;;
13318 esac
13319 as_dirs="'$as_qdir' $as_dirs"
13320 as_dir=`$as_dirname -- "$as_dir" ||
13321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13322 X"$as_dir" : 'X\(//\)[^/]' \| \
13323 X"$as_dir" : 'X\(//\)$' \| \
13324 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13325 $as_echo X"$as_dir" |
13326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13327 s//\1/
13330 /^X\(\/\/\)[^/].*/{
13331 s//\1/
13334 /^X\(\/\/\)$/{
13335 s//\1/
13338 /^X\(\/\).*/{
13339 s//\1/
13342 s/.*/./; q'`
13343 test -d "$as_dir" && break
13344 done
13345 test -z "$as_dirs" || eval "mkdir $as_dirs"
13346 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13349 } # as_fn_mkdir_p
13350 if mkdir -p . 2>/dev/null; then
13351 as_mkdir_p='mkdir -p "$as_dir"'
13352 else
13353 test -d ./-p && rmdir ./-p
13354 as_mkdir_p=false
13357 if test -x / >/dev/null 2>&1; then
13358 as_test_x='test -x'
13359 else
13360 if ls -dL / >/dev/null 2>&1; then
13361 as_ls_L_option=L
13362 else
13363 as_ls_L_option=
13365 as_test_x='
13366 eval sh -c '\''
13367 if test -d "$1"; then
13368 test -d "$1/.";
13369 else
13370 case $1 in #(
13371 -*)set "./$1";;
13372 esac;
13373 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13374 ???[sx]*):;;*)false;;esac;fi
13375 '\'' sh
13378 as_executable_p=$as_test_x
13380 # Sed expression to map a string onto a valid CPP name.
13381 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13383 # Sed expression to map a string onto a valid variable name.
13384 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13387 exec 6>&1
13388 ## ----------------------------------- ##
13389 ## Main body of $CONFIG_STATUS script. ##
13390 ## ----------------------------------- ##
13391 _ASEOF
13392 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13395 # Save the log message, to keep $0 and so on meaningful, and to
13396 # report actual input values of CONFIG_FILES etc. instead of their
13397 # values after options handling.
13398 ac_log="
13399 This file was extended by gliv $as_me 1.9.7, which was
13400 generated by GNU Autoconf 2.67. Invocation command line was
13402 CONFIG_FILES = $CONFIG_FILES
13403 CONFIG_HEADERS = $CONFIG_HEADERS
13404 CONFIG_LINKS = $CONFIG_LINKS
13405 CONFIG_COMMANDS = $CONFIG_COMMANDS
13406 $ $0 $@
13408 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13411 _ACEOF
13413 case $ac_config_files in *"
13414 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13415 esac
13417 case $ac_config_headers in *"
13418 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13419 esac
13422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13423 # Files that config.status was made for.
13424 config_files="$ac_config_files"
13425 config_headers="$ac_config_headers"
13426 config_commands="$ac_config_commands"
13428 _ACEOF
13430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13431 ac_cs_usage="\
13432 \`$as_me' instantiates files and other configuration actions
13433 from templates according to the current configuration. Unless the files
13434 and actions are specified as TAGs, all are instantiated by default.
13436 Usage: $0 [OPTION]... [TAG]...
13438 -h, --help print this help, then exit
13439 -V, --version print version number and configuration settings, then exit
13440 --config print configuration, then exit
13441 -q, --quiet, --silent
13442 do not print progress messages
13443 -d, --debug don't remove temporary files
13444 --recheck update $as_me by reconfiguring in the same conditions
13445 --file=FILE[:TEMPLATE]
13446 instantiate the configuration file FILE
13447 --header=FILE[:TEMPLATE]
13448 instantiate the configuration header FILE
13450 Configuration files:
13451 $config_files
13453 Configuration headers:
13454 $config_headers
13456 Configuration commands:
13457 $config_commands
13459 Report bugs to <guichaz@gmail.com>."
13461 _ACEOF
13462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13463 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13464 ac_cs_version="\\
13465 gliv config.status 1.9.7
13466 configured by $0, generated by GNU Autoconf 2.67,
13467 with options \\"\$ac_cs_config\\"
13469 Copyright (C) 2010 Free Software Foundation, Inc.
13470 This config.status script is free software; the Free Software Foundation
13471 gives unlimited permission to copy, distribute and modify it."
13473 ac_pwd='$ac_pwd'
13474 srcdir='$srcdir'
13475 INSTALL='$INSTALL'
13476 MKDIR_P='$MKDIR_P'
13477 AWK='$AWK'
13478 test -n "\$AWK" || AWK=awk
13479 _ACEOF
13481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13482 # The default lists apply if the user does not specify any file.
13483 ac_need_defaults=:
13484 while test $# != 0
13486 case $1 in
13487 --*=?*)
13488 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13489 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13490 ac_shift=:
13492 --*=)
13493 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13494 ac_optarg=
13495 ac_shift=:
13498 ac_option=$1
13499 ac_optarg=$2
13500 ac_shift=shift
13502 esac
13504 case $ac_option in
13505 # Handling of the options.
13506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13507 ac_cs_recheck=: ;;
13508 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13509 $as_echo "$ac_cs_version"; exit ;;
13510 --config | --confi | --conf | --con | --co | --c )
13511 $as_echo "$ac_cs_config"; exit ;;
13512 --debug | --debu | --deb | --de | --d | -d )
13513 debug=: ;;
13514 --file | --fil | --fi | --f )
13515 $ac_shift
13516 case $ac_optarg in
13517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13518 '') as_fn_error $? "missing file argument" ;;
13519 esac
13520 as_fn_append CONFIG_FILES " '$ac_optarg'"
13521 ac_need_defaults=false;;
13522 --header | --heade | --head | --hea )
13523 $ac_shift
13524 case $ac_optarg in
13525 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13526 esac
13527 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13528 ac_need_defaults=false;;
13529 --he | --h)
13530 # Conflict between --help and --header
13531 as_fn_error $? "ambiguous option: \`$1'
13532 Try \`$0 --help' for more information.";;
13533 --help | --hel | -h )
13534 $as_echo "$ac_cs_usage"; exit ;;
13535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13536 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13537 ac_cs_silent=: ;;
13539 # This is an error.
13540 -*) as_fn_error $? "unrecognized option: \`$1'
13541 Try \`$0 --help' for more information." ;;
13543 *) as_fn_append ac_config_targets " $1"
13544 ac_need_defaults=false ;;
13546 esac
13547 shift
13548 done
13550 ac_configure_extra_args=
13552 if $ac_cs_silent; then
13553 exec 6>/dev/null
13554 ac_configure_extra_args="$ac_configure_extra_args --silent"
13557 _ACEOF
13558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13559 if \$ac_cs_recheck; then
13560 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13561 shift
13562 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13563 CONFIG_SHELL='$SHELL'
13564 export CONFIG_SHELL
13565 exec "\$@"
13568 _ACEOF
13569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13570 exec 5>>config.log
13572 echo
13573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13574 ## Running $as_me. ##
13575 _ASBOX
13576 $as_echo "$ac_log"
13577 } >&5
13579 _ACEOF
13580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13582 # INIT-COMMANDS
13584 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13585 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13586 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13587 # from automake < 1.5.
13588 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13589 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13590 LINGUAS="${LINGUAS-%UNSET%}"
13593 _ACEOF
13595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13597 # Handling of arguments.
13598 for ac_config_target in $ac_config_targets
13600 case $ac_config_target in
13601 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13602 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13603 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13604 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
13605 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13606 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13607 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13608 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13609 "tools/glade/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/Makefile" ;;
13610 "tools/glade/actions/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/actions/Makefile" ;;
13611 "tools/glade/image_nr/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/image_nr/Makefile" ;;
13612 "tools/glade/options/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/options/Makefile" ;;
13613 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13614 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
13615 "man/de/Makefile") CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
13616 "man/en/Makefile") CONFIG_FILES="$CONFIG_FILES man/en/Makefile" ;;
13617 "man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
13618 "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
13619 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13620 "gliv.spec") CONFIG_FILES="$CONFIG_FILES gliv.spec" ;;
13622 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13623 esac
13624 done
13627 # If the user did not use the arguments to specify the items to instantiate,
13628 # then the envvar interface is used. Set only those that are not.
13629 # We use the long form for the default assignment because of an extremely
13630 # bizarre bug on SunOS 4.1.3.
13631 if $ac_need_defaults; then
13632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13634 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13637 # Have a temporary directory for convenience. Make it in the build tree
13638 # simply because there is no reason against having it here, and in addition,
13639 # creating and moving files from /tmp can sometimes cause problems.
13640 # Hook for its removal unless debugging.
13641 # Note that there is a small window in which the directory will not be cleaned:
13642 # after its creation but before its name has been assigned to `$tmp'.
13643 $debug ||
13645 tmp=
13646 trap 'exit_status=$?
13647 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13649 trap 'as_fn_exit 1' 1 2 13 15
13651 # Create a (secure) tmp directory for tmp files.
13654 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13655 test -n "$tmp" && test -d "$tmp"
13656 } ||
13658 tmp=./conf$$-$RANDOM
13659 (umask 077 && mkdir "$tmp")
13660 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13662 # Set up the scripts for CONFIG_FILES section.
13663 # No need to generate them if there are no CONFIG_FILES.
13664 # This happens for instance with `./config.status config.h'.
13665 if test -n "$CONFIG_FILES"; then
13668 ac_cr=`echo X | tr X '\015'`
13669 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13670 # But we know of no other shell where ac_cr would be empty at this
13671 # point, so we can use a bashism as a fallback.
13672 if test "x$ac_cr" = x; then
13673 eval ac_cr=\$\'\\r\'
13675 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13676 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13677 ac_cs_awk_cr='\\r'
13678 else
13679 ac_cs_awk_cr=$ac_cr
13682 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13683 _ACEOF
13687 echo "cat >conf$$subs.awk <<_ACEOF" &&
13688 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13689 echo "_ACEOF"
13690 } >conf$$subs.sh ||
13691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13692 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13693 ac_delim='%!_!# '
13694 for ac_last_try in false false false false false :; do
13695 . ./conf$$subs.sh ||
13696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13698 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13699 if test $ac_delim_n = $ac_delim_num; then
13700 break
13701 elif $ac_last_try; then
13702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13703 else
13704 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13706 done
13707 rm -f conf$$subs.sh
13709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13710 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13711 _ACEOF
13712 sed -n '
13714 s/^/S["/; s/!.*/"]=/
13717 s/^[^!]*!//
13718 :repl
13719 t repl
13720 s/'"$ac_delim"'$//
13721 t delim
13724 s/\(.\{148\}\)..*/\1/
13725 t more1
13726 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13729 b repl
13730 :more1
13731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13734 s/.\{148\}//
13735 t nl
13736 :delim
13738 s/\(.\{148\}\)..*/\1/
13739 t more2
13740 s/["\\]/\\&/g; s/^/"/; s/$/"/
13743 :more2
13744 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13747 s/.\{148\}//
13748 t delim
13749 ' <conf$$subs.awk | sed '
13750 /^[^""]/{
13752 s/\n//
13754 ' >>$CONFIG_STATUS || ac_write_fail=1
13755 rm -f conf$$subs.awk
13756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13757 _ACAWK
13758 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13759 for (key in S) S_is_set[key] = 1
13760 FS = "\a"
13764 line = $ 0
13765 nfields = split(line, field, "@")
13766 substed = 0
13767 len = length(field[1])
13768 for (i = 2; i < nfields; i++) {
13769 key = field[i]
13770 keylen = length(key)
13771 if (S_is_set[key]) {
13772 value = S[key]
13773 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13774 len += length(value) + length(field[++i])
13775 substed = 1
13776 } else
13777 len += 1 + keylen
13780 print line
13783 _ACAWK
13784 _ACEOF
13785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13786 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13787 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13788 else
13790 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13791 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13792 _ACEOF
13794 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13795 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13796 # trailing colons and then remove the whole line if VPATH becomes empty
13797 # (actually we leave an empty line to preserve line numbers).
13798 if test "x$srcdir" = x.; then
13799 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13801 s///
13802 s/^/:/
13803 s/[ ]*$/:/
13804 s/:\$(srcdir):/:/g
13805 s/:\${srcdir}:/:/g
13806 s/:@srcdir@:/:/g
13807 s/^:*//
13808 s/:*$//
13810 s/\(=[ ]*\).*/\1/
13812 s/\n//
13813 s/^[^=]*=[ ]*$//
13817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13818 fi # test -n "$CONFIG_FILES"
13820 # Set up the scripts for CONFIG_HEADERS section.
13821 # No need to generate them if there are no CONFIG_HEADERS.
13822 # This happens for instance with `./config.status Makefile'.
13823 if test -n "$CONFIG_HEADERS"; then
13824 cat >"$tmp/defines.awk" <<\_ACAWK ||
13825 BEGIN {
13826 _ACEOF
13828 # Transform confdefs.h into an awk script `defines.awk', embedded as
13829 # here-document in config.status, that substitutes the proper values into
13830 # config.h.in to produce config.h.
13832 # Create a delimiter string that does not exist in confdefs.h, to ease
13833 # handling of long lines.
13834 ac_delim='%!_!# '
13835 for ac_last_try in false false :; do
13836 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13837 if test -z "$ac_t"; then
13838 break
13839 elif $ac_last_try; then
13840 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13841 else
13842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13844 done
13846 # For the awk script, D is an array of macro values keyed by name,
13847 # likewise P contains macro parameters if any. Preserve backslash
13848 # newline sequences.
13850 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13851 sed -n '
13852 s/.\{148\}/&'"$ac_delim"'/g
13853 t rset
13854 :rset
13855 s/^[ ]*#[ ]*define[ ][ ]*/ /
13856 t def
13858 :def
13859 s/\\$//
13860 t bsnl
13861 s/["\\]/\\&/g
13862 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13863 D["\1"]=" \3"/p
13864 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13866 :bsnl
13867 s/["\\]/\\&/g
13868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13869 D["\1"]=" \3\\\\\\n"\\/p
13870 t cont
13871 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13872 t cont
13874 :cont
13876 s/.\{148\}/&'"$ac_delim"'/g
13877 t clear
13878 :clear
13879 s/\\$//
13880 t bsnlc
13881 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13883 :bsnlc
13884 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13885 b cont
13886 ' <confdefs.h | sed '
13887 s/'"$ac_delim"'/"\\\
13888 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13891 for (key in D) D_is_set[key] = 1
13892 FS = "\a"
13894 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13895 line = \$ 0
13896 split(line, arg, " ")
13897 if (arg[1] == "#") {
13898 defundef = arg[2]
13899 mac1 = arg[3]
13900 } else {
13901 defundef = substr(arg[1], 2)
13902 mac1 = arg[2]
13904 split(mac1, mac2, "(") #)
13905 macro = mac2[1]
13906 prefix = substr(line, 1, index(line, defundef) - 1)
13907 if (D_is_set[macro]) {
13908 # Preserve the white space surrounding the "#".
13909 print prefix "define", macro P[macro] D[macro]
13910 next
13911 } else {
13912 # Replace #undef with comments. This is necessary, for example,
13913 # in the case of _POSIX_SOURCE, which is predefined and required
13914 # on some systems where configure will not decide to define it.
13915 if (defundef == "undef") {
13916 print "/*", prefix defundef, macro, "*/"
13917 next
13921 { print }
13922 _ACAWK
13923 _ACEOF
13924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13925 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13926 fi # test -n "$CONFIG_HEADERS"
13929 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13930 shift
13931 for ac_tag
13933 case $ac_tag in
13934 :[FHLC]) ac_mode=$ac_tag; continue;;
13935 esac
13936 case $ac_mode$ac_tag in
13937 :[FHL]*:*);;
13938 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13939 :[FH]-) ac_tag=-:-;;
13940 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13941 esac
13942 ac_save_IFS=$IFS
13943 IFS=:
13944 set x $ac_tag
13945 IFS=$ac_save_IFS
13946 shift
13947 ac_file=$1
13948 shift
13950 case $ac_mode in
13951 :L) ac_source=$1;;
13952 :[FH])
13953 ac_file_inputs=
13954 for ac_f
13956 case $ac_f in
13957 -) ac_f="$tmp/stdin";;
13958 *) # Look for the file first in the build tree, then in the source tree
13959 # (if the path is not absolute). The absolute path cannot be DOS-style,
13960 # because $ac_f cannot contain `:'.
13961 test -f "$ac_f" ||
13962 case $ac_f in
13963 [\\/$]*) false;;
13964 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13965 esac ||
13966 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13967 esac
13968 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13969 as_fn_append ac_file_inputs " '$ac_f'"
13970 done
13972 # Let's still pretend it is `configure' which instantiates (i.e., don't
13973 # use $as_me), people would be surprised to read:
13974 # /* config.h. Generated by config.status. */
13975 configure_input='Generated from '`
13976 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13977 `' by configure.'
13978 if test x"$ac_file" != x-; then
13979 configure_input="$ac_file. $configure_input"
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13981 $as_echo "$as_me: creating $ac_file" >&6;}
13983 # Neutralize special characters interpreted by sed in replacement strings.
13984 case $configure_input in #(
13985 *\&* | *\|* | *\\* )
13986 ac_sed_conf_input=`$as_echo "$configure_input" |
13987 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13988 *) ac_sed_conf_input=$configure_input;;
13989 esac
13991 case $ac_tag in
13992 *:-:* | *:-) cat >"$tmp/stdin" \
13993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13994 esac
13996 esac
13998 ac_dir=`$as_dirname -- "$ac_file" ||
13999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14000 X"$ac_file" : 'X\(//\)[^/]' \| \
14001 X"$ac_file" : 'X\(//\)$' \| \
14002 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14003 $as_echo X"$ac_file" |
14004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14005 s//\1/
14008 /^X\(\/\/\)[^/].*/{
14009 s//\1/
14012 /^X\(\/\/\)$/{
14013 s//\1/
14016 /^X\(\/\).*/{
14017 s//\1/
14020 s/.*/./; q'`
14021 as_dir="$ac_dir"; as_fn_mkdir_p
14022 ac_builddir=.
14024 case "$ac_dir" in
14025 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14027 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14028 # A ".." for each directory in $ac_dir_suffix.
14029 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14030 case $ac_top_builddir_sub in
14031 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14032 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14033 esac ;;
14034 esac
14035 ac_abs_top_builddir=$ac_pwd
14036 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14037 # for backward compatibility:
14038 ac_top_builddir=$ac_top_build_prefix
14040 case $srcdir in
14041 .) # We are building in place.
14042 ac_srcdir=.
14043 ac_top_srcdir=$ac_top_builddir_sub
14044 ac_abs_top_srcdir=$ac_pwd ;;
14045 [\\/]* | ?:[\\/]* ) # Absolute name.
14046 ac_srcdir=$srcdir$ac_dir_suffix;
14047 ac_top_srcdir=$srcdir
14048 ac_abs_top_srcdir=$srcdir ;;
14049 *) # Relative name.
14050 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14051 ac_top_srcdir=$ac_top_build_prefix$srcdir
14052 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14053 esac
14054 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14057 case $ac_mode in
14060 # CONFIG_FILE
14063 case $INSTALL in
14064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14065 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14066 esac
14067 ac_MKDIR_P=$MKDIR_P
14068 case $MKDIR_P in
14069 [\\/$]* | ?:[\\/]* ) ;;
14070 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14071 esac
14072 _ACEOF
14074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14075 # If the template does not know about datarootdir, expand it.
14076 # FIXME: This hack should be removed a few years after 2.60.
14077 ac_datarootdir_hack=; ac_datarootdir_seen=
14078 ac_sed_dataroot='
14079 /datarootdir/ {
14083 /@datadir@/p
14084 /@docdir@/p
14085 /@infodir@/p
14086 /@localedir@/p
14087 /@mandir@/p'
14088 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14089 *datarootdir*) ac_datarootdir_seen=yes;;
14090 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14092 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14093 _ACEOF
14094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14095 ac_datarootdir_hack='
14096 s&@datadir@&$datadir&g
14097 s&@docdir@&$docdir&g
14098 s&@infodir@&$infodir&g
14099 s&@localedir@&$localedir&g
14100 s&@mandir@&$mandir&g
14101 s&\\\${datarootdir}&$datarootdir&g' ;;
14102 esac
14103 _ACEOF
14105 # Neutralize VPATH when `$srcdir' = `.'.
14106 # Shell code in configure.ac might set extrasub.
14107 # FIXME: do we really want to maintain this feature?
14108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14109 ac_sed_extra="$ac_vpsub
14110 $extrasub
14111 _ACEOF
14112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14115 s|@configure_input@|$ac_sed_conf_input|;t t
14116 s&@top_builddir@&$ac_top_builddir_sub&;t t
14117 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14118 s&@srcdir@&$ac_srcdir&;t t
14119 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14120 s&@top_srcdir@&$ac_top_srcdir&;t t
14121 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14122 s&@builddir@&$ac_builddir&;t t
14123 s&@abs_builddir@&$ac_abs_builddir&;t t
14124 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14125 s&@INSTALL@&$ac_INSTALL&;t t
14126 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14127 $ac_datarootdir_hack
14129 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14132 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14133 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14134 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14136 which seems to be undefined. Please make sure it is defined" >&5
14137 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14138 which seems to be undefined. Please make sure it is defined" >&2;}
14140 rm -f "$tmp/stdin"
14141 case $ac_file in
14142 -) cat "$tmp/out" && rm -f "$tmp/out";;
14143 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14144 esac \
14145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14149 # CONFIG_HEADER
14151 if test x"$ac_file" != x-; then
14153 $as_echo "/* $configure_input */" \
14154 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14155 } >"$tmp/config.h" \
14156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14157 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14159 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14160 else
14161 rm -f "$ac_file"
14162 mv "$tmp/config.h" "$ac_file" \
14163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14165 else
14166 $as_echo "/* $configure_input */" \
14167 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14168 || as_fn_error $? "could not create -" "$LINENO" 5
14170 # Compute "$ac_file"'s index in $config_headers.
14171 _am_arg="$ac_file"
14172 _am_stamp_count=1
14173 for _am_header in $config_headers :; do
14174 case $_am_header in
14175 $_am_arg | $_am_arg:* )
14176 break ;;
14178 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14179 esac
14180 done
14181 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14182 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14183 X"$_am_arg" : 'X\(//\)[^/]' \| \
14184 X"$_am_arg" : 'X\(//\)$' \| \
14185 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14186 $as_echo X"$_am_arg" |
14187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14188 s//\1/
14191 /^X\(\/\/\)[^/].*/{
14192 s//\1/
14195 /^X\(\/\/\)$/{
14196 s//\1/
14199 /^X\(\/\).*/{
14200 s//\1/
14203 s/.*/./; q'`/stamp-h$_am_stamp_count
14206 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14207 $as_echo "$as_me: executing $ac_file commands" >&6;}
14209 esac
14212 case $ac_file$ac_mode in
14213 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14214 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14215 # are listed without --file. Let's play safe and only enable the eval
14216 # if we detect the quoting.
14217 case $CONFIG_FILES in
14218 *\'*) eval set x "$CONFIG_FILES" ;;
14219 *) set x $CONFIG_FILES ;;
14220 esac
14221 shift
14222 for mf
14224 # Strip MF so we end up with the name of the file.
14225 mf=`echo "$mf" | sed -e 's/:.*$//'`
14226 # Check whether this is an Automake generated Makefile or not.
14227 # We used to match only the files named `Makefile.in', but
14228 # some people rename them; so instead we look at the file content.
14229 # Grep'ing the first line is not enough: some people post-process
14230 # each Makefile.in and add a new line on top of each file to say so.
14231 # Grep'ing the whole file is not good either: AIX grep has a line
14232 # limit of 2048, but all sed's we know have understand at least 4000.
14233 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14234 dirpart=`$as_dirname -- "$mf" ||
14235 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14236 X"$mf" : 'X\(//\)[^/]' \| \
14237 X"$mf" : 'X\(//\)$' \| \
14238 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14239 $as_echo X"$mf" |
14240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14241 s//\1/
14244 /^X\(\/\/\)[^/].*/{
14245 s//\1/
14248 /^X\(\/\/\)$/{
14249 s//\1/
14252 /^X\(\/\).*/{
14253 s//\1/
14256 s/.*/./; q'`
14257 else
14258 continue
14260 # Extract the definition of DEPDIR, am__include, and am__quote
14261 # from the Makefile without running `make'.
14262 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14263 test -z "$DEPDIR" && continue
14264 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14265 test -z "am__include" && continue
14266 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14267 # When using ansi2knr, U may be empty or an underscore; expand it
14268 U=`sed -n 's/^U = //p' < "$mf"`
14269 # Find all dependency output files, they are included files with
14270 # $(DEPDIR) in their names. We invoke sed twice because it is the
14271 # simplest approach to changing $(DEPDIR) to its actual value in the
14272 # expansion.
14273 for file in `sed -n "
14274 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14275 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14276 # Make sure the directory exists.
14277 test -f "$dirpart/$file" && continue
14278 fdir=`$as_dirname -- "$file" ||
14279 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14280 X"$file" : 'X\(//\)[^/]' \| \
14281 X"$file" : 'X\(//\)$' \| \
14282 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14283 $as_echo X"$file" |
14284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14285 s//\1/
14288 /^X\(\/\/\)[^/].*/{
14289 s//\1/
14292 /^X\(\/\/\)$/{
14293 s//\1/
14296 /^X\(\/\).*/{
14297 s//\1/
14300 s/.*/./; q'`
14301 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14302 # echo "creating $dirpart/$file"
14303 echo '# dummy' > "$dirpart/$file"
14304 done
14305 done
14308 "po-directories":C)
14309 for ac_file in $CONFIG_FILES; do
14310 # Support "outfile[:infile[:infile...]]"
14311 case "$ac_file" in
14312 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14313 esac
14314 # PO directories have a Makefile.in generated from Makefile.in.in.
14315 case "$ac_file" in */Makefile.in)
14316 # Adjust a relative srcdir.
14317 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14318 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14319 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14320 # In autoconf-2.13 it is called $ac_given_srcdir.
14321 # In autoconf-2.50 it is called $srcdir.
14322 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14323 case "$ac_given_srcdir" in
14324 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14325 /*) top_srcdir="$ac_given_srcdir" ;;
14326 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14327 esac
14328 # Treat a directory as a PO directory if and only if it has a
14329 # POTFILES.in file. This allows packages to have multiple PO
14330 # directories under different names or in different locations.
14331 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14332 rm -f "$ac_dir/POTFILES"
14333 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14334 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14335 POMAKEFILEDEPS="POTFILES.in"
14336 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14337 # on $ac_dir but don't depend on user-specified configuration
14338 # parameters.
14339 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14340 # The LINGUAS file contains the set of available languages.
14341 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14342 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14344 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14345 # Hide the ALL_LINGUAS assigment from automake < 1.5.
14346 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14347 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14348 else
14349 # The set of available languages was given in configure.in.
14350 # Hide the ALL_LINGUAS assigment from automake < 1.5.
14351 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14353 # Compute POFILES
14354 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14355 # Compute UPDATEPOFILES
14356 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14357 # Compute DUMMYPOFILES
14358 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14359 # Compute GMOFILES
14360 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14361 case "$ac_given_srcdir" in
14362 .) srcdirpre= ;;
14363 *) srcdirpre='$(srcdir)/' ;;
14364 esac
14365 POFILES=
14366 UPDATEPOFILES=
14367 DUMMYPOFILES=
14368 GMOFILES=
14369 for lang in $ALL_LINGUAS; do
14370 POFILES="$POFILES $srcdirpre$lang.po"
14371 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14372 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14373 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14374 done
14375 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14376 # environment variable.
14377 INST_LINGUAS=
14378 if test -n "$ALL_LINGUAS"; then
14379 for presentlang in $ALL_LINGUAS; do
14380 useit=no
14381 if test "%UNSET%" != "$LINGUAS"; then
14382 desiredlanguages="$LINGUAS"
14383 else
14384 desiredlanguages="$ALL_LINGUAS"
14386 for desiredlang in $desiredlanguages; do
14387 # Use the presentlang catalog if desiredlang is
14388 # a. equal to presentlang, or
14389 # b. a variant of presentlang (because in this case,
14390 # presentlang can be used as a fallback for messages
14391 # which are not translated in the desiredlang catalog).
14392 case "$desiredlang" in
14393 "$presentlang"*) useit=yes;;
14394 esac
14395 done
14396 if test $useit = yes; then
14397 INST_LINGUAS="$INST_LINGUAS $presentlang"
14399 done
14401 CATALOGS=
14402 if test -n "$INST_LINGUAS"; then
14403 for lang in $INST_LINGUAS; do
14404 CATALOGS="$CATALOGS $lang.gmo"
14405 done
14407 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14408 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"
14409 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14410 if test -f "$f"; then
14411 case "$f" in
14412 *.orig | *.bak | *~) ;;
14413 *) cat "$f" >> "$ac_dir/Makefile" ;;
14414 esac
14416 done
14419 esac
14420 done ;;
14422 esac
14423 done # for ac_tag
14426 as_fn_exit 0
14427 _ACEOF
14428 ac_clean_files=$ac_clean_files_save
14430 test $ac_write_fail = 0 ||
14431 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14434 # configure is writing to config.log, and then calls config.status.
14435 # config.status does its own redirection, appending to config.log.
14436 # Unfortunately, on DOS this fails, as config.log is still kept open
14437 # by configure, so config.status won't be able to write to it; its
14438 # output is simply discarded. So we exec the FD to /dev/null,
14439 # effectively closing config.log, so it can be properly (re)opened and
14440 # appended to by config.status. When coming back to configure, we
14441 # need to make the FD available again.
14442 if test "$no_create" != yes; then
14443 ac_cs_success=:
14444 ac_config_status_args=
14445 test "$silent" = yes &&
14446 ac_config_status_args="$ac_config_status_args --quiet"
14447 exec 5>/dev/null
14448 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14449 exec 5>>config.log
14450 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14451 # would make configure fail if this is the last instruction.
14452 $ac_cs_success || as_fn_exit 1
14454 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14456 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14460 echo
14461 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"
14462 echo