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
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 :
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+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
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
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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 :
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+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
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 :
182 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
187 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir
=.
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 :
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
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.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
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."
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
243 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir
=.
/$as_dir;;
288 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
292 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
322 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
333 eval 'as_fn_append ()
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 :
357 as_val
=`expr "$@" || test $? -eq 1`
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.
369 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
378 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
385 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
397 as_me
=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
451 # Exit status is that of the last command.
455 ECHO_C
= ECHO_N
= ECHO_T
=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
468 rm -f conf$$ conf$$.exe conf$$.
file
469 if test -d conf$$.dir
; then
470 rm -f conf$$.dir
/conf$$.
file
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
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 ||
484 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
498 test -d .
/-p && rmdir .
/-p
502 if test -x / >/dev
/null
2>&1; then
505 if ls -dL / >/dev
/null
2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
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
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`
543 ac_default_prefix
=/usr
/local
545 ac_config_libobj_dir
=.
552 # Identity of this package.
554 PACKAGE_TARNAME
='gliv'
555 PACKAGE_VERSION
='1.9.7'
556 PACKAGE_STRING
='gliv 1.9.7'
557 PACKAGE_BUGREPORT
='guichaz@gmail.com'
560 ac_unique_file
="src/main.c"
561 # Factoring default headers for most tests.
562 ac_includes_default
="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
599 gl_use_threads_default
=
600 ac_subst_vars
='am__EXEEXT_FALSE
608 INTL_LIBTOOL_SUFFIX_PREFIX
615 BUILD_INCLUDED_LIBINTL
625 INTL_DEFAULT_VERBOSITY
651 XGETTEXT_EXTRA_OPTIONS
659 GETTEXT_MACRO_VERSION
673 NEED_REPLACEMENTS_FALSE
674 NEED_REPLACEMENTS_TRUE
707 INSTALL_STRIP_PROGRAM
749 program_transform_name
762 enable_option_checking
763 enable_dependency_tracking
773 with_included_gettext
776 ac_precious_vars
='build_alias
793 # Initialize some variables set by options.
795 ac_init_version
=false
796 ac_unrecognized_opts
=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name
=s
,x
,x
,
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'
837 libdir
='${exec_prefix}/lib'
838 localedir
='${datarootdir}/locale'
839 mandir
='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\
$ac_option
853 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 # Accept the important Cygnus configure options, so we can diagnose typos.
860 case $ac_dashdash$ac_option in
864 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
866 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
882 cache_file
=config.cache
;;
884 -datadir |
--datadir |
--datadi |
--datad)
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
907 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep
=', ';;
910 eval enable_
$ac_useropt=no
;;
912 -docdir |
--docdir |
--docdi |
--doc |
--do)
914 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
917 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
919 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
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
933 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep
=', ';;
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.
951 -help |
--help |
--hel |
--he |
-h)
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)
965 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
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)
978 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
979 infodir
=$ac_optarg ;;
981 -libdir |
--libdir |
--libdi |
--libd)
983 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
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)
1007 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1008 mandir
=$ac_optarg ;;
1010 -nfp |
--nfp |
--nf)
1011 # Obsolete; use --without-fp.
1014 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1015 |
--no-cr |
--no-c |
-n)
1018 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1019 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
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)
1069 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1070 pdfdir
=$ac_optarg ;;
1072 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1074 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1077 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1078 |
-silent |
--silent |
--silen |
--sile |
--sil)
1081 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1083 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1085 sbindir
=$ac_optarg ;;
1087 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1088 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1089 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1091 ac_prev
=sharedstatedir
;;
1092 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1093 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1094 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1096 sharedstatedir
=$ac_optarg ;;
1098 -site |
--site |
--sit)
1100 -site=* |
--site=* |
--sit=*)
1103 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
1123 -version |
--version |
--versio |
--versi |
--vers |
-V)
1124 ac_init_version
=: ;;
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
1137 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep
=', ';;
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
1153 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep
=', ';;
1156 eval with_
$ac_useropt=no
;;
1159 # Obsolete; use --with-x.
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"
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'" ;;
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}
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
1209 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
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.
1224 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\
$ac_val;;
1227 # Be sure to have absolute directory names.
1229 [\\/$
]* | ?
:[\\/]* ) continue;;
1230 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1232 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
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.
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
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 if test ! -r "$srcdir/$ac_unique_file"; then
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"
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1317 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
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.
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.
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
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]
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
1396 --x-includes=DIR X include files are
in DIR
1397 --x-libraries=DIR X library files are
in DIR
1400 --build=BUILD configure
for building on BUILD
[guessed
]
1401 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1405 if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive
) echo "Configuration of gliv 1.9.7:";;
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
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>
1447 XMKMF Path to xmkmf, Makefile generator for X Window System
1448 PKG_CONFIG path to pkg-config utility
1450 directories to add to pkg-config's search path
1452 path overriding pkg-config
's built-in search path
1454 C compiler flags for GTKGLEXT, overriding pkg-config
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
>.
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"; } ||
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/ ;;
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
1491 .
) # We are building in place.
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 ;;
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 ;;
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
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
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.
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"
1547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
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
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 :
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
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.
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1585 *) ac_try_echo
=$ac_try;;
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
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
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.
$ac_ext >&5
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1609 as_fn_set_status
$ac_retval
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
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
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
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. */
1639 if ac_fn_c_try_compile
"$LINENO"; then :
1640 ac_header_compiler
=yes
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. */
1655 if ac_fn_c_try_cpp
"$LINENO"; then :
1656 ac_header_preproc
=yes
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 #((
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;}
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
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
1694 eval "$3=\$ac_header_compiler"
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.
1710 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1711 if { { ac_try
="$ac_link"
1713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
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
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;;
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
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
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
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
1758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1763 if ac_fn_c_try_compile
"$LINENO"; then :
1768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
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.
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"
1786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
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
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
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
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
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. */
1846 # include <limits.h>
1848 # include <assert.h>
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. */
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
1875 if ac_fn_c_try_link "$LINENO"; then :
1880 rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
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
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. */
1906 static int test_array [1 - 2 * !(($2) >= 0)];
1913 if ac_fn_c_try_compile "$LINENO"; then :
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1922 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_hi=$ac_mid; break
1932 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1933 if test $ac_lo -le $ac_mid; then
1937 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1948 static int test_array [1 - 2 * !(($2) < 0)];
1955 if ac_fn_c_try_compile "$LINENO"; then :
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1964 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 ac_lo=$ac_mid; break
1974 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1975 if test $ac_mid -le $ac_hi; then
1979 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
1998 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005 if ac_fn_c_try_compile "$LINENO"; then :
2008 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
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; }
2028 FILE *f = fopen ("conftest.val", "w");
2033 long int i = longval ();
2036 fprintf (f, "%ld", i);
2040 unsigned long int i = ulongval ();
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;
2053 if ac_fn_c_try_run "$LINENO"; then :
2054 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2059 conftest.$ac_objext conftest.beam conftest.$ac_ext
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
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2106 if ac_fn_c_try_compile "$LINENO"; then :
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
`
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 test -z "$as_dir" && as_dir=.
2162 $as_echo "PATH: $as_dir"
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.
2186 ac_must_keep_next=false
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)
2197 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
2215 -* ) ac_must_keep_next=true ;;
2218 as_fn_append ac_configure_args " '$ac_arg'"
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.
2236 $as_echo "## ---------------- ##
2237 ## Cache variables. ##
2238 ## ---------------- ##"
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
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;} ;;
2251 _ | IFS | as_nl) ;; #(
2252 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2253 *) { eval $ac_var=; unset $ac_var;} ;;
2258 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2259 *${as_nl}ac_space=\ *)
2261 "s/'\''/'\''\\\\'\'''\''/g;
2262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2265 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2272 $as_echo "## ----------------- ##
2273 ## Output variables. ##
2274 ## ----------------- ##"
2276 for ac_var in $ac_subst_vars
2278 eval ac_val=\$$ac_var
2280 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 $as_echo "$ac_var='\''$ac_val'\''"
2286 if test -n "$ac_subst_files"; then
2287 $as_echo "## ------------------- ##
2288 ## File substitutions. ##
2289 ## ------------------- ##"
2291 for ac_var in $ac_subst_files
2293 eval ac_val=\$$ac_var
2295 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 $as_echo "$ac_var='\''$ac_val'\''"
2302 if test -s confdefs.h; then
2303 $as_echo "## ----------- ##
2310 test "$ac_signal" != 0 &&
2311 $as_echo "$as_me: caught signal $ac_signal"
2312 $as_echo "$as_me: exit $exit_status"
2314 rm -f core *.core core.conftest.* &&
2315 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2318 for ac_signal in 1 2 13 15; do
2319 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
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"
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_STRING "$PACKAGE_STRING"
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_URL "$PACKAGE_URL"
2355 # Let the site file select an alternate cache file if it wants to.
2356 # Prefer an explicitly selected file to automatically selected ones.
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;;
2366 elif test "x$prefix" != xNONE; then
2367 ac_site_file1=$prefix/share/config.site
2368 ac_site_file2=$prefix/etc/config.site
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
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 ; }
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;}
2395 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2396 *) . "./$cache_file";;
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2401 $as_echo "$as_me: creating cache $cache_file" >&6;}
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
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
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=: ;;
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=: ;;
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=:
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;}
2447 # Pass precious variables to config.status.
2448 if test "$ac_new_set" = set; then
2450 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2451 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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 ## -------------------- ##
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'
2481 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2482 if test -f "$ac_dir/install-sh"; then
2484 ac_install_sh="$ac_aux_dir/install-sh -c"
2486 elif test -f "$ac_dir/install.sh"; then
2488 ac_install_sh="$ac_aux_dir/install.sh -c"
2490 elif test -f "$ac_dir/shtool"; then
2492 ac_install_sh="$ac_aux_dir/shtool install -c"
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
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
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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[\\/]* | \
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
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.
2556 rm -rf conftest.one conftest.two conftest.dir
2557 echo one > conftest.one
2558 echo two > conftest.two
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
2565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
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
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; }
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.
2612 *[\\\"\#\$\&\'\`$am_lf]*)
2613 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5 ;;
2616 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2617 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
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
2626 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2627 if test "$*" = "X"; then
2629 set X
`ls -t "$srcdir/configure" 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
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
2670 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2672 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2675 # Use eval to expand $SHELL
2676 if eval "$MISSING --run true"; then
2677 am_missing_run
="$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
2687 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2689 install_sh
="\${SHELL} $am_aux_dir/install-sh"
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
2706 if test -n "$STRIP"; then
2707 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
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
2746 if test -n "$ac_ct_STRIP"; then
2747 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
2778 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2800 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
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
2821 test -d .
/--version && rmdir .
/--version
2822 if test "${ac_cv_path_mkdir+set}" = set; then
2823 MKDIR_P
="$ac_cv_path_mkdir -p"
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; }
2837 [\\/$
]* | ?
:[\\/]*) ;;
2838 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
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
2850 if test -n "$AWK"; then
2851 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2871 if test -n "$AWK"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2873 $as_echo "$AWK" >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2880 test -n "$AWK" && break
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; }
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
2890 cat >conftest.
make <<\_ACEOF
2893 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2895 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2896 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2898 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2900 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
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; }
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
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'
2943 # Define the identity of the package.
2948 cat >>confdefs.h
<<_ACEOF
2949 #define PACKAGE "$PACKAGE"
2953 cat >>confdefs.h
<<_ACEOF
2954 #define VERSION "$VERSION"
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
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"
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'
3001 @
echo this is the am__doit target
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; }
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
*)
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
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"
3046 if test "x$enable_dependency_tracking" != xno; then
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
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC
="$CC" # Let the user override the test.
3071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
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
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
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
3140 case $cross_compiling:$ac_tool_warned in
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 ;;
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
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC
="$CC" # Let the user override the test.
3164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
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
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC
="$CC" # Let the user override the test.
3205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
3233 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
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
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC
="$CC" # Let the user override the test.
3263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3290 test -n "$CC" && break
3293 if test -z "$CC"; then
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
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3334 test -n "$ac_ct_CC" && break
3337 if test "x$ac_ct_CC" = x
; then
3340 case $cross_compiling:$ac_tool_warned in
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 ;;
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
3362 for ac_option
in --version -v -V -qversion; do
3363 { { ac_try
="$ac_compiler $ac_option >&5"
3365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
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
3372 if test -s conftest.err; then
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; }
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
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
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.*"
3407 for ac_file in $ac_files
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3416 if { { ac_try="$ac_link_default"
3418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3419 *) ac_try_echo
=$ac_try;;
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
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
3432 for ac_file
in $ac_files ''
3434 test -f "$ac_file" ||
continue
3436 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3439 # We found the default executable, but exeext='' is most
3443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
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
3457 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
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 ; }
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"
3488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
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
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
3501 for ac_file
in conftest.exe conftest conftest.
*; do
3502 test -f "$ac_file" ||
continue
3504 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3505 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
3523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3529 FILE *f = fopen ("conftest.out", "w");
3530 return ferror (f) || fclose (f) != 0;
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"
3544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
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
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;;
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
3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563 test $ac_status = 0; }; }; then
3566 if test "$cross_compiling" = maybe
; then
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
3587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3598 rm -f conftest.o conftest.obj
3599 if { { ac_try
="$ac_compile"
3601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
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
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;
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3614 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
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
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
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3652 if ac_fn_c_try_compile "$LINENO"; then :
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
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
3675 ac_save_c_werror_flag=$ac_c_werror_flag
3676 ac_c_werror_flag=yes
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3690 if ac_fn_c_try_compile "$LINENO"; then :
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3705 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_c_werror_flag=$ac_save_c_werror_flag
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3721 if ac_fn_c_try_compile "$LINENO"; then :
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
3742 if test "$GCC" = yes; then
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
3753 ac_cv_prog_cc_c89=no
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.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)
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3775 s = g (p, va_arg (v,int));
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. */
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);
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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
3818 rm -f conftest.$ac_ext
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; } ;;
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; } ;;
3835 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
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
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
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
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
`
3876 case " $depcc " in #(
3877 *\ -arch\ *\ -arch\ *) am__universal=true ;;
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.
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
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"
3905 # This depmode causes a compiler race in universal mode.
3906 test "$am__universal" = false ||
continue
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
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}
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
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
3965 am__fastdepCC_FALSE
='#'
3967 am__fastdepCC_TRUE
='#'
3968 am__fastdepCC_FALSE
=
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
3984 if test -z "$CPP"; then
3985 if test "${ac_cv_prog_CPP+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3988 # Double quotes because CPP needs to be expanded
3989 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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. */
4003 # include <limits.h>
4005 # include <assert.h>
4009 if ac_fn_c_try_cpp
"$LINENO"; then :
4012 # Broken: fails on valid input.
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>
4023 if ac_fn_c_try_cpp
"$LINENO"; then :
4024 # Broken: success on invalid input.
4027 # Passes both tests.
4031 rm -f conftest.err conftest.i conftest.
$ac_ext
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 :
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4049 $as_echo "$CPP" >&6; }
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. */
4062 # include <limits.h>
4064 # include <assert.h>
4068 if ac_fn_c_try_cpp
"$LINENO"; then :
4071 # Broken: fails on valid input.
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>
4082 if ac_fn_c_try_cpp
"$LINENO"; then :
4083 # Broken: success on invalid input.
4086 # Passes both tests.
4090 rm -f conftest.err conftest.i conftest.
$ac_ext
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 :
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 ; }
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
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
/xpg
4/bin
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
4132 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4135 $as_echo_n 0123456789 >"conftest.in"
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
4153 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4156 $ac_path_GREP_found && break 3
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
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
4179 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4180 then ac_cv_path_EGREP
="$GREP -E"
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
/xpg
4/bin
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
4198 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4201 $as_echo_n 0123456789 >"conftest.in"
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
4219 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4222 $ac_path_EGREP_found && break 3
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
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
4246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4261 if ac_fn_c_try_compile
"$LINENO"; then :
4262 ac_cv_header_stdc
=yes
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. */
4275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 $EGREP "memchr" >/dev
/null
2>&1; then :
4279 ac_cv_header_stdc
=no
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. */
4292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4293 $EGREP "free" >/dev
/null
2>&1; then :
4296 ac_cv_header_stdc
=no
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 :
4307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4311 #if ((' ' & 0x0FF) == 0x020)
4312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4327 for (i = 0; i < 256; i++)
4328 if (XOR (islower (i), ISLOWER (i))
4329 || toupper (i) != TOUPPER (i))
4334 if ac_fn_c_try_run
"$LINENO"; then :
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
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
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 :
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
4397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4400 # define __EXTENSIONS__ 1
4401 $ac_includes_default
4410 if ac_fn_c_try_compile
"$LINENO"; then :
4411 ac_cv_safe_to_define___extensions__
=yes
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
4441 # Checks for programs.
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
4455 if test -n "$CC"; then
4456 ac_cv_prog_CC
="$CC" # Let the user override the test.
4458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
4476 if test -n "$CC"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4478 $as_echo "$CC" >&6; }
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
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
4495 if test -n "$ac_ct_CC"; then
4496 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
4527 case $cross_compiling:$ac_tool_warned in
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 ;;
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
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC
="$CC" # Let the user override the test.
4551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
4569 if test -n "$CC"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4571 $as_echo "$CC" >&6; }
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
4588 if test -n "$CC"; then
4589 ac_cv_prog_CC
="$CC" # Let the user override the test.
4592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
4620 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4626 if test -n "$CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4628 $as_echo "$CC" >&6; }
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
4647 if test -n "$CC"; then
4648 ac_cv_prog_CC
="$CC" # Let the user override the test.
4650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
4668 if test -n "$CC"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4670 $as_echo "$CC" >&6; }
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4677 test -n "$CC" && break
4680 if test -z "$CC"; then
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
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4721 test -n "$ac_ct_CC" && break
4724 if test "x$ac_ct_CC" = x
; then
4727 case $cross_compiling:$ac_tool_warned in
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 ;;
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
4749 for ac_option
in --version -v -V -qversion; do
4750 { { ac_try
="$ac_compiler $ac_option >&5"
4752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
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
4759 if test -s conftest.err; then
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; }
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
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4789 if ac_fn_c_try_compile "$LINENO"; then :
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
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
4812 ac_save_c_werror_flag=$ac_c_werror_flag
4813 ac_c_werror_flag=yes
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4827 if ac_fn_c_try_compile "$LINENO"; then :
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4842 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_c_werror_flag=$ac_save_c_werror_flag
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4858 if ac_fn_c_try_compile "$LINENO"; then :
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
4879 if test "$GCC" = yes; then
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
4890 ac_cv_prog_cc_c89=no
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.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)
4907 static char *f (char * (*g) (char **, int), char **p, ...)
4912 s = g (p, va_arg (v,int));
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. */
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);
4940 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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
4955 rm -f conftest.$ac_ext
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; } ;;
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; } ;;
4972 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
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
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
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
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
`
5013 case " $depcc " in #(
5014 *\ -arch\ *\ -arch\ *) am__universal=true ;;
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.
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
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"
5042 # This depmode causes a compiler race in universal mode.
5043 test "$am__universal" = false ||
continue
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
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}
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
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
5102 am__fastdepCC_FALSE
='#'
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
5117 if test -n "$RANLIB"; then
5118 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
5157 if test -n "$ac_ct_RANLIB"; then
5158 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
5189 case $cross_compiling:$ac_tool_warned in
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 ;;
5195 RANLIB
=$ac_ct_RANLIB
5198 RANLIB
="$ac_cv_prog_RANLIB"
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
5222 ac_cv_sys_largefile_CC
=no
5223 if test "$GCC" != yes; then
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)
5247 if ac_fn_c_try_compile
"$LINENO"; then :
5250 rm -f core conftest.err conftest.
$ac_objext
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
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
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)
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)
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
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 #(
5330 cat >>confdefs.h
<<_ACEOF
5331 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
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
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)
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)
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
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 #(
5399 cat >>confdefs.h
<<_ACEOF
5400 #define _LARGE_FILES $ac_cv_sys_large_files
5412 OLD_CFLAGS
="$CFLAGS"
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
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. */
5438 for ac_lib
in '' m mx
; do
5439 if test -z "$ac_lib"; then
5440 ac_res
="none required"
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 \
5450 if test "${ac_cv_search_atan2+set}" = set; then :
5454 if test "${ac_cv_search_atan2+set}" = set; then :
5457 ac_cv_search_atan2
=no
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"
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
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. */
5503 for ac_lib
in '' m mx
; do
5504 if test -z "$ac_lib"; then
5505 ac_res
="none required"
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 \
5515 if test "${ac_cv_search_hypot+set}" = set; then :
5519 if test "${ac_cv_search_hypot+set}" = set; then :
5522 ac_cv_search_hypot
=no
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"
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
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. */
5569 for ac_lib
in '' m mx
; do
5570 if test -z "$ac_lib"; then
5571 ac_res
="none required"
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 \
5581 if test "${ac_cv_search_sqrtf+set}" = set; then :
5585 if test "${ac_cv_search_sqrtf+set}" = set; then :
5588 ac_cv_search_sqrtf
=no
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"
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
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. */
5630 for ac_lib
in '' m mx
; do
5631 if test -z "$ac_lib"; then
5632 ac_res
="none required"
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 \
5642 if test "${ac_cv_search_hypotf+set}" = set; then :
5646 if test "${ac_cv_search_hypotf+set}" = set; then :
5649 ac_cv_search_hypotf
=no
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"
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
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. */
5691 for ac_lib
in '' m mx
; do
5692 if test -z "$ac_lib"; then
5693 ac_res
="none required"
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 \
5703 if test "${ac_cv_search_atan2f+set}" = set; then :
5707 if test "${ac_cv_search_atan2f+set}" = set; then :
5710 ac_cv_search_atan2f
=no
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"
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
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. */
5752 for ac_lib
in '' m mx
; do
5753 if test -z "$ac_lib"; then
5754 ac_res
="none required"
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 \
5764 if test "${ac_cv_search_powf+set}" = set; then :
5768 if test "${ac_cv_search_powf+set}" = set; then :
5771 ac_cv_search_powf
=no
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"
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
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. */
5813 for ac_lib
in '' m mx
; do
5814 if test -z "$ac_lib"; then
5815 ac_res
="none required"
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 \
5825 if test "${ac_cv_search_ceilf+set}" = set; then :
5829 if test "${ac_cv_search_ceilf+set}" = set; then :
5832 ac_cv_search_ceilf
=no
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"
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
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. */
5874 for ac_lib
in '' m mx
; do
5875 if test -z "$ac_lib"; then
5876 ac_res
="none required"
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 \
5886 if test "${ac_cv_search_cosf+set}" = set; then :
5890 if test "${ac_cv_search_cosf+set}" = set; then :
5893 ac_cv_search_cosf
=no
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"
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
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. */
5935 for ac_lib
in '' m mx
; do
5936 if test -z "$ac_lib"; then
5937 ac_res
="none required"
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 \
5947 if test "${ac_cv_search_sinf+set}" = set; then :
5951 if test "${ac_cv_search_sinf+set}" = set; then :
5954 ac_cv_search_sinf
=no
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"
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
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. */
5996 for ac_lib
in '' m mx
; do
5997 if test -z "$ac_lib"; then
5998 ac_res
="none required"
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 \
6008 if test "${ac_cv_search_acosf+set}" = set; then :
6012 if test "${ac_cv_search_acosf+set}" = set; then :
6015 ac_cv_search_acosf
=no
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"
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
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. */
6057 for ac_lib
in '' m mx
; do
6058 if test -z "$ac_lib"; then
6059 ac_res
="none required"
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 \
6069 if test "${ac_cv_search_fmodf+set}" = set; then :
6073 if test "${ac_cv_search_fmodf+set}" = set; then :
6076 ac_cv_search_fmodf
=no
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"
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
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. */
6118 for ac_lib
in '' m mx
; do
6119 if test -z "$ac_lib"; then
6120 ac_res
="none required"
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 \
6130 if test "${ac_cv_search_fabsf+set}" = set; then :
6134 if test "${ac_cv_search_fabsf+set}" = set; then :
6137 ac_cv_search_fabsf
=no
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"
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
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. */
6179 for ac_lib
in '' m mx
; do
6180 if test -z "$ac_lib"; then
6181 ac_res
="none required"
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 \
6191 if test "${ac_cv_search_log10f+set}" = set; then :
6195 if test "${ac_cv_search_log10f+set}" = set; then :
6198 ac_cv_search_log10f
=no
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
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
6228 # If we don't have fseeko, we'll use fseek.
6229 for ac_func
in fseeko
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
6242 # Checks for getdelim, this is a GNU extension.
6243 CFLAGS
="$CFLAGS -D_GNU_SOURCE"
6244 for ac_func
in getdelim
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
6262 if test "$have_getdelim" = "yes"; then
6272 # Checks for getopt_long, another GNU extension.
6273 for ac_func
in getopt_long
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
6281 have_getopt_long
="yes"
6285 have_getopt_long
="no"
6291 if test "$have_getopt_long" = "yes"; then
6293 GETOPT_LONG_FALSE
='#'
6295 GETOPT_LONG_TRUE
='#'
6301 if test "$have_getdelim" = "no" ||
6302 test "$have_getopt_long" = "no"; then
6304 NEED_REPLACEMENTS_TRUE
=
6305 NEED_REPLACEMENTS_FALSE
='#'
6307 NEED_REPLACEMENTS_TRUE
='#'
6308 NEED_REPLACEMENTS_FALSE
=
6313 NEED_REPLACEMENTS_TRUE
=
6314 NEED_REPLACEMENTS_FALSE
='#'
6316 NEED_REPLACEMENTS_TRUE
='#'
6317 NEED_REPLACEMENTS_FALSE
=
6323 # Checks for flavours of varargs macros (borrowed from glib-2)
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. */
6335 int a(int p1, int p2, int p3);
6336 #define call_a(...) a(1,__VA_ARGS__)
6343 if ac_fn_c_try_compile
"$LINENO"; then :
6344 have_iso_c_varargs
=yes
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
6360 cat >>confdefs.h
<<_ACEOF
6361 #define HAVE_ISO_C_VARARGS $iso_c_varargs
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;}
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
6380 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
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 ; }
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
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 :
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.
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
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
6430 cat >Imakefile
<<'_ACEOF'
6432 @echo incroot='${INCROOT}'
6434 @echo usrlibdir='${USRLIBDIR}'
6436 @echo libdir='${LIBDIR}'
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'\`"
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
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;;
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 ;;
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.
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
6495 /usr/XFree86/include/X11
6499 /usr/unsupported/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>
6514 if ac_fn_c_try_cpp
"$LINENO"; then :
6515 # We can compile using X headers with no special include directory.
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
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.
6534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #include <X11/Xlib.h>
6545 if ac_fn_c_try_link
"$LINENO"; then :
6547 # We can link X programs with no special library path.
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
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 #(
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'"
6580 eval "$ac_cv_have_x"
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; }
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
=
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. */
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"
6636 LIBS
="$ac_xsave_LIBS -R $x_libraries"
6637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
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"
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
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"
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. */
6685 char XOpenDisplay ();
6689 return XOpenDisplay ();
6694 if ac_fn_c_try_link
"$LINENO"; then :
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
6702 ac_check_lib_save_LIBS
=$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. */
6717 return dnet_ntoa ();
6722 if ac_fn_c_try_link
"$LINENO"; then :
6723 ac_cv_lib_dnet_dnet_ntoa
=yes
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
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. */
6758 return dnet_ntoa ();
6763 if ac_fn_c_try_link
"$LINENO"; then :
6764 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
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)
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
6803 ac_check_lib_save_LIBS
=$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. */
6814 char gethostbyname ();
6818 return gethostbyname ();
6823 if ac_fn_c_try_link
"$LINENO"; then :
6824 ac_cv_lib_nsl_gethostbyname
=yes
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
6844 ac_check_lib_save_LIBS
=$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. */
6855 char gethostbyname ();
6859 return gethostbyname ();
6864 if ac_fn_c_try_link
"$LINENO"; then :
6865 ac_cv_lib_bsd_gethostbyname
=yes
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
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. */
6920 if ac_fn_c_try_link
"$LINENO"; then :
6921 ac_cv_lib_socket_connect
=yes
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
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. */
6969 if ac_fn_c_try_link
"$LINENO"; then :
6970 ac_cv_lib_posix_remove
=yes
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
6998 ac_check_lib_save_LIBS
=$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. */
7018 if ac_fn_c_try_link
"$LINENO"; then :
7019 ac_cv_lib_ipc_shmat
=yes
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
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. */
7061 char IceConnectionNumber ();
7065 return IceConnectionNumber ();
7070 if ac_fn_c_try_link
"$LINENO"; then :
7071 ac_cv_lib_ICE_IceConnectionNumber
=yes
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
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
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
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; }
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
7151 case $ac_pt_PKG_CONFIG in
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
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
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; }
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
7186 case $cross_compiling:$ac_tool_warned in
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 ;;
7192 PKG_CONFIG
=$ac_pt_PKG_CONFIG
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; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
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
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`
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
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`
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
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`
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
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 ; }
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. */
7317 if ac_fn_c_try_link
"$LINENO"; then :
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. */
7340 if ac_fn_c_try_link
"$LINENO"; then :
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
7350 # Check whether --enable-gtktest was given.
7351 if test "${enable_gtktest+set}" = set; then :
7352 enableval
=$enable_gtktest;
7358 pkg_config_args
=gtk
+-2.0
7359 for module
in . gthread
7363 pkg_config_args
="$pkg_config_args gthread-2.0"
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
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
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
7397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
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; }
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
7416 echo "*** pkg-config too old; version 0.7 or better required."
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"
7435 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
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"
7457 if test "$cross_compiling" = yes; then :
7458 echo $ac_n "cross compiling; assumed OK... $ac_c"
7460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7463 #include <gtk/gtk.h>
7470 int major, minor, micro;
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, µ) != 3) {
7478 printf("%s, bad version string\n", "$min_gtk_version");
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);
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)))
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");
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");
7535 if ac_fn_c_try_run
"$LINENO"; then :
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)"
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"
7563 if test -f conf.gtktest
; then
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>
7580 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
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"
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"
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"
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
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
7644 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
7658 chmod +x conf$$.
file
7659 if test -x conf$$.
file >/dev
/null
2>&1; then
7660 ac_executable_p
="test -x"
7662 ac_executable_p
="test -f"
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
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
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"
7694 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
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; }
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
7716 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
7734 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
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; }
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 ;;
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 ;;
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
7767 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
7781 chmod +x conf$$.
file
7782 if test -x conf$$.
file >/dev
/null
2>&1; then
7783 ac_executable_p
="test -x"
7785 ac_executable_p
="test -f"
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
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
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"
7817 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
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; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
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 ;;
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
7845 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
7859 chmod +x conf$$.
file
7860 if test -x conf$$.
file >/dev
/null
2>&1; then
7861 ac_executable_p
="test -x"
7863 ac_executable_p
="test -f"
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
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
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"
7894 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
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; }
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
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
7939 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5 ;;
7942 ac_save_IFS
=$IFS; IFS
='-'
7948 # Remember, the first character of IFS is used to create $*,
7949 # except with old shells:
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
7960 if test "x$host_alias" = x
; then
7961 ac_cv_host
=$ac_cv_build
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; }
7972 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5 ;;
7975 ac_save_IFS
=$IFS; IFS
='-'
7981 # Remember, the first character of IFS is used to create $*,
7982 # except with old shells:
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
7994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7997 #include <features.h>
7998 #ifdef __GNU_LIBRARY__
7999 #if (__GLIBC__ >= 2)
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
8009 ac_cv_gnu_library_2
=no
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"
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
8033 gl_save_CFLAGS
="$CFLAGS"
8034 CFLAGS
="$CFLAGS -Werror"
8035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8046 if ac_fn_c_try_compile
"$LINENO"; then :
8047 gl_cv_cc_vis_werror
=yes
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
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) {}
8083 if ac_fn_c_try_compile
"$LINENO"; then :
8084 gl_cv_cc_visibility
=yes
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"
8102 cat >>confdefs.h
<<_ACEOF
8103 #define HAVE_VISIBILITY $HAVE_VISIBILITY
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
8113 for ac_kw
in inline __inline__ __inline
; do
8114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8118 static $ac_kw foo_t static_foo () {return 0; }
8119 $ac_kw foo_t foo () {return 0; }
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
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
8137 case $ac_cv_c_inline in
8139 *) ac_val
=$ac_cv_c_inline;;
8141 cat >>confdefs.h
<<_ACEOF
8143 #define inline $ac_val
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 :
8154 cat >>confdefs.h
<<_ACEOF
8155 #define size_t unsigned int
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
8166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 #include <sys/types.h>
8173 uintmax_t i = (uintmax_t) -1; return !i;
8178 if ac_fn_c_try_compile
"$LINENO"; then :
8179 gl_cv_header_stdint_h
=yes
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
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
8202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8208 char *p = (char *) alloca (2 * sizeof (int));
8214 if ac_fn_c_try_link
"$LINENO"; then :
8215 ac_cv_working_alloca_h
=yes
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
8235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8238 # define alloca __builtin_alloca
8241 # include <malloc.h>
8242 # define alloca _alloca
8244 # ifdef HAVE_ALLOCA_H
8245 # include <alloca.h>
8250 # ifndef alloca /* predefined by HP cc +Olibcalls */
8261 char *p = (char *) alloca (1);
8267 if ac_fn_c_try_link
"$LINENO"; then :
8268 ac_cv_func_alloca_works
=yes
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
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
8298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 #if defined CRAY && ! defined CRAY2
8307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308 $EGREP "webecray" >/dev
/null
2>&1; then :
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
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
8339 if test "$cross_compiling" = yes; then :
8340 ac_cv_c_stack_direction
=0
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;
8353 return find_stack_direction ();
8356 return (&dummy > addr) ? 1 : -1;
8362 return find_stack_direction () < 0;
8365 if ac_fn_c_try_run
"$LINENO"; then :
8366 ac_cv_c_stack_direction
=1
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
8387 for ac_header
in $ac_header_list
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
8408 for ac_func
in getpagesize
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
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
8424 if test "$cross_compiling" = yes; then :
8425 ac_cv_func_mmap_fixed_mapped
=no
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. */
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) */
8456 #include <sys/mman.h>
8458 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
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 */
8473 # define getpagesize() NBPG * CLSIZE
8476 # endif /* no CLSIZE */
8477 # else /* no NBPG */
8479 # define getpagesize() NBPC
8480 # else /* no NBPC */
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 */
8497 char *data, *data2, *data3;
8502 pagesize = getpagesize ();
8504 /* First, make a file with some known garbage in it. */
8505 data = (char *) malloc (pagesize);
8508 for (i = 0; i < pagesize; ++i)
8509 *(data + i) = rand ();
8511 fd = creat ("conftest.mmap", 0600);
8514 if (write (fd, data, pagesize) != pagesize)
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);
8524 if (write (fd2, cdata2, 1) != 1)
8526 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8527 if (data2 == MAP_FAILED)
8529 for (i = 0; i < pagesize; ++i)
8533 if (munmap (data2, pagesize))
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);
8542 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8543 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8545 for (i = 0; i < pagesize; ++i)
8546 if (*(data + i) != *(data2 + i))
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);
8557 if (read (fd, data3, pagesize) != pagesize)
8559 for (i = 0; i < pagesize; ++i)
8560 if (*(data + i) != *(data3 + i))
8566 if ac_fn_c_try_run
"$LINENO"; then :
8567 ac_cv_func_mmap_fixed_mapped
=yes
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
8593 gt_cv_int_divbyzero_sigfpe
=
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.
8600 i
[34567]86 | x86_64
)
8601 gt_cv_int_divbyzero_sigfpe
="guessing yes" ;;
8605 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
8606 if test "$cross_compiling" = yes; then :
8608 # Guess based on the CPU.
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";;
8617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8624 sigfpe_handler (int sig)
8626 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8627 exit (sig != SIGFPE);
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);
8642 /* Linux/SPARC yields signal SIGILL. */
8643 #if defined (__sparc__) && defined (__linux__)
8644 signal (SIGILL, sigfpe_handler);
8653 if ac_fn_c_try_run
"$LINENO"; then :
8654 gt_cv_int_divbyzero_sigfpe
=yes
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
8672 cat >>confdefs.h
<<_ACEOF
8673 #define INTDIV0_RAISES_SIGFPE $value
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
8683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685 #include <sys/types.h>
8686 #include <inttypes.h>
8690 uintmax_t i = (uintmax_t) -1; return !i;
8695 if ac_fn_c_try_compile
"$LINENO"; then :
8696 gl_cv_header_inttypes_h
=yes
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
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
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)
8732 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
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));
8750 if ac_fn_c_try_link
"$LINENO"; then :
8751 ac_cv_type_unsigned_long_long_int
=yes
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
8781 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8786 for ac_header
in inttypes.h
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
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
8805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <inttypes.h>
8820 if ac_fn_c_try_compile
"$LINENO"; then :
8821 gt_cv_inttypes_pri_broken
=no
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
8848 # Check whether --enable-threads was given.
8849 if test "${enable_threads+set}" = set; then :
8850 enableval
=$enable_threads; gl_use_threads
=$enableval
8852 if test -n "$gl_use_threads_default"; then
8853 gl_use_threads
="$gl_use_threads_default"
8856 osf
*) gl_use_threads
=no
;;
8859 1.
[0-5].
*) gl_use_threads
=no
;;
8860 *) gl_use_threads
=yes ;;
8863 *) gl_use_threads
=yes ;;
8869 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
8870 # For using <pthread.h>:
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"
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>.
8886 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
8887 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
8895 if test "X$prefix" = "XNONE"; then
8896 acl_final_prefix
="$ac_default_prefix"
8898 acl_final_prefix
="$prefix"
8900 if test "X$exec_prefix" = "XNONE"; then
8901 acl_final_exec_prefix
='${prefix}'
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
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
8924 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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; }
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` ;;
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%/%"`
8952 test -z "$LD" && LD
="$ac_prog"
8955 # If it fails, then pretend we aren't using GCC.
8959 # If it is relative, then search for the first ld in PATH.
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; }
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
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 ;;
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; }
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
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
;;
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
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
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9039 $as_echo "$acl_cv_rpath" >&6; }
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; :
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
9068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
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
9080 gl_cv_solaris_64bit
=no
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
9091 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
9092 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
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
;;
9105 # Better ignore directories of this form. They are misleading.
9107 *) searchdir
=`cd "$searchdir" && pwd`
9108 case "$searchdir" in
9109 */lib64
) acl_libdirstem
=lib64
;;
9118 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
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
9134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136 extern void xyzzy ();
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. */
9156 Extensible Linking Format
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"
9164 gl_cv_have_weak
="guessing no"
9170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9177 return (fputs == NULL);
9180 if ac_fn_c_try_run
"$LINENO"; then :
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
9201 gl_have_pthread_h
=no
9205 if test "$gl_have_pthread_h" = yes; then
9206 # Other possible tests:
9207 # -lpthreads (FSU threads, PCthreads)
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>
9219 pthread_mutex_lock((pthread_mutex_t*)0);
9220 pthread_mutexattr_init((pthread_mutexattr_t*)0);
9225 if ac_fn_c_try_link
"$LINENO"; then :
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
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. */
9251 char pthread_kill ();
9255 return pthread_kill ();
9260 if ac_fn_c_try_link
"$LINENO"; then :
9261 ac_cv_lib_pthread_pthread_kill
=yes
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.
9280 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
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
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. */
9304 char pthread_kill ();
9308 return pthread_kill ();
9313 if ac_fn_c_try_link
"$LINENO"; then :
9314 ac_cv_lib_pthread_pthread_kill
=yes
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 :
9326 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
9327 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
9330 if test -z "$gl_have_pthread"; then
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
9337 ac_check_lib_save_LIBS
=$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. */
9348 char pthread_kill ();
9352 return pthread_kill ();
9357 if ac_fn_c_try_link
"$LINENO"; then :
9358 ac_cv_lib_c_r_pthread_kill
=yes
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 :
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
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. */
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
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
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
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
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"
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"
9507 names_already_handled
=
9508 names_next_round
='pth '
9509 while test -n "$names_next_round"; do
9510 names_this_round
="$names_next_round"
9512 for name
in $names_this_round; do
9514 for n
in $names_already_handled; do
9515 if test "$n" = "$name"; then
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"
9538 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
9539 if test -n "$acl_shlibext"; then
9540 shrext
=".$acl_shlibext" # typically: shrext=.so
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
9549 found_so
="$dir/$libname$shrext"
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
9559 found_so
="$dir/$libname$shrext.$ver"
9562 eval library_names
=\"$acl_library_names_spec\"
9563 for f
in $library_names; do
9564 if test -f "$dir/$f"; then
9573 if test "X$found_dir" = "X"; then
9574 if test -f "$dir/$libname.$acl_libext"; then
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"
9593 exec_prefix
="$acl_save_exec_prefix"
9594 prefix
="$acl_save_prefix"
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
9602 found_so
="$dir/$libname$shrext"
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
9612 found_so
="$dir/$libname$shrext.$ver"
9615 eval library_names
=\"$acl_library_names_spec\"
9616 for f
in $library_names; do
9617 if test -f "$dir/$f"; then
9626 if test "X$found_dir" = "X"; then
9627 if test -f "$dir/$libname.$acl_libext"; then
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"
9639 if test "X$found_dir" != "X"; then
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"
9653 for x
in $ltrpathdirs; do
9654 if test "X$x" = "X$found_dir"; then
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"
9665 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
9666 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
9668 for x
in $rpathdirs; do
9669 if test "X$x" = "X$found_dir"; then
9674 if test -z "$haveit"; then
9675 rpathdirs
="$rpathdirs $found_dir"
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"
9686 exec_prefix
="$acl_save_exec_prefix"
9687 prefix
="$acl_save_prefix"
9689 if test "X$x" = "X-L$found_dir"; then
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"
9700 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
9706 if test "X$found_a" != "X"; then
9707 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
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"
9729 if test "X$additional_includedir" != "X"; then
9730 if test "X$additional_includedir" != "X/usr/include"; then
9732 if test "X$additional_includedir" = "X/usr/local/include"; then
9733 if test -n "$GCC"; then
9735 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
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"
9747 exec_prefix
="$acl_save_exec_prefix"
9748 prefix
="$acl_save_prefix"
9750 if test "X$x" = "X-I$additional_includedir"; then
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"
9766 */* |
*\\*) .
"$found_la" ;;
9767 *) .
"./$found_la" ;;
9769 libdir
="$save_libdir"
9770 for dep
in $dependency_libs; do
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
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
9781 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9785 if test -z "$haveit"; then
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"
9794 exec_prefix
="$acl_save_exec_prefix"
9795 prefix
="$acl_save_prefix"
9797 if test "X$x" = "X-L$additional_libdir"; then
9802 if test -z "$haveit"; then
9803 if test -d "$additional_libdir"; then
9804 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
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"
9815 exec_prefix
="$acl_save_exec_prefix"
9816 prefix
="$acl_save_prefix"
9818 if test "X$x" = "X-L$additional_libdir"; then
9823 if test -z "$haveit"; then
9824 if test -d "$additional_libdir"; then
9825 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
9832 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9833 if test "$enable_rpath" != no
; then
9835 for x
in $rpathdirs; do
9836 if test "X$x" = "X$dir"; then
9841 if test -z "$haveit"; then
9842 rpathdirs
="$rpathdirs $dir"
9845 for x
in $ltrpathdirs; do
9846 if test "X$x" = "X$dir"; then
9851 if test -z "$haveit"; then
9852 ltrpathdirs
="$ltrpathdirs $dir"
9857 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
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"
9870 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
9871 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
9877 if test "X$rpathdirs" != "X"; then
9878 if test -n "$acl_hardcode_libdir_separator"; then
9880 for found_dir
in $rpathdirs; do
9881 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9883 acl_save_libdir
="$libdir"
9885 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9886 libdir
="$acl_save_libdir"
9887 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
9889 for found_dir
in $rpathdirs; do
9890 acl_save_libdir
="$libdir"
9892 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9893 libdir
="$acl_save_libdir"
9894 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
9898 if test "X$ltrpathdirs" != "X"; then
9899 for found_dir
in $ltrpathdirs; do
9900 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
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
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"
9931 exec_prefix
="$acl_save_exec_prefix"
9932 prefix
="$acl_save_prefix"
9934 if test "X$x" = "X$element"; then
9939 if test -z "$haveit"; then
9940 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9952 gl_save_LIBS
="$LIBS"
9954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9965 if ac_fn_c_try_link
"$LINENO"; then :
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
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
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
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>
10041 #if __FreeBSD__ == 4
10042 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
10044 int x = (int)PTHREAD_MUTEX_RECURSIVE;
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
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
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"
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"
10125 names_already_handled
=
10126 names_next_round
='iconv '
10127 while test -n "$names_next_round"; do
10128 names_this_round
="$names_next_round"
10130 for name
in $names_this_round; do
10132 for n
in $names_already_handled; do
10133 if test "$n" = "$name"; then
10134 already_handled
=yes
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"
10156 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
10157 if test -n "$acl_shlibext"; then
10158 shrext
=".$acl_shlibext" # typically: shrext=.so
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
10167 found_so
="$dir/$libname$shrext"
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
10177 found_so
="$dir/$libname$shrext.$ver"
10180 eval library_names
=\"$acl_library_names_spec\"
10181 for f
in $library_names; do
10182 if test -f "$dir/$f"; then
10191 if test "X$found_dir" = "X"; then
10192 if test -f "$dir/$libname.$acl_libext"; then
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"
10211 exec_prefix
="$acl_save_exec_prefix"
10212 prefix
="$acl_save_prefix"
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
10220 found_so
="$dir/$libname$shrext"
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
10230 found_so
="$dir/$libname$shrext.$ver"
10233 eval library_names
=\"$acl_library_names_spec\"
10234 for f
in $library_names; do
10235 if test -f "$dir/$f"; then
10244 if test "X$found_dir" = "X"; then
10245 if test -f "$dir/$libname.$acl_libext"; then
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"
10257 if test "X$found_dir" != "X"; then
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"
10271 for x
in $ltrpathdirs; do
10272 if test "X$x" = "X$found_dir"; then
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"
10283 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
10284 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10286 for x
in $rpathdirs; do
10287 if test "X$x" = "X$found_dir"; then
10292 if test -z "$haveit"; then
10293 rpathdirs
="$rpathdirs $found_dir"
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"
10304 exec_prefix
="$acl_save_exec_prefix"
10305 prefix
="$acl_save_prefix"
10307 if test "X$x" = "X-L$found_dir"; then
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"
10318 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10324 if test "X$found_a" != "X"; then
10325 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
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"
10347 if test "X$additional_includedir" != "X"; then
10348 if test "X$additional_includedir" != "X/usr/include"; then
10350 if test "X$additional_includedir" = "X/usr/local/include"; then
10351 if test -n "$GCC"; then
10353 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
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"
10365 exec_prefix
="$acl_save_exec_prefix"
10366 prefix
="$acl_save_prefix"
10368 if test "X$x" = "X-I$additional_includedir"; then
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" ;;
10387 libdir
="$save_libdir"
10388 for dep
in $dependency_libs; do
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
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
10399 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
10403 if test -z "$haveit"; then
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"
10412 exec_prefix
="$acl_save_exec_prefix"
10413 prefix
="$acl_save_prefix"
10415 if test "X$x" = "X-L$additional_libdir"; then
10420 if test -z "$haveit"; then
10421 if test -d "$additional_libdir"; then
10422 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
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"
10433 exec_prefix
="$acl_save_exec_prefix"
10434 prefix
="$acl_save_prefix"
10436 if test "X$x" = "X-L$additional_libdir"; then
10441 if test -z "$haveit"; then
10442 if test -d "$additional_libdir"; then
10443 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10450 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10451 if test "$enable_rpath" != no
; then
10453 for x
in $rpathdirs; do
10454 if test "X$x" = "X$dir"; then
10459 if test -z "$haveit"; then
10460 rpathdirs
="$rpathdirs $dir"
10463 for x
in $ltrpathdirs; do
10464 if test "X$x" = "X$dir"; then
10469 if test -z "$haveit"; then
10470 ltrpathdirs
="$ltrpathdirs $dir"
10475 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
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"
10488 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10489 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10495 if test "X$rpathdirs" != "X"; then
10496 if test -n "$acl_hardcode_libdir_separator"; then
10498 for found_dir
in $rpathdirs; do
10499 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10501 acl_save_libdir
="$libdir"
10503 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
10504 libdir
="$acl_save_libdir"
10505 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
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"
10516 if test "X$ltrpathdirs" != "X"; then
10517 for found_dir
in $ltrpathdirs; do
10518 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10533 am_save_CPPFLAGS
="$CPPFLAGS"
10535 for element
in $INCICONV; do
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"
10544 exec_prefix
="$acl_save_exec_prefix"
10545 prefix
="$acl_save_prefix"
10547 if test "X$x" = "X$element"; then
10552 if test -z "$haveit"; then
10553 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
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
10564 am_cv_func_iconv
="no, consider installing GNU libiconv"
10566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568 #include <stdlib.h>
10573 iconv_t cd = iconv_open("","");
10574 iconv(cd,NULL,NULL,NULL,NULL);
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>
10595 iconv_t cd = iconv_open("","");
10596 iconv(cd,NULL,NULL,NULL,NULL);
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
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 :
10627 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
10628 *) am_cv_func_iconv_works
="guessing yes" ;;
10631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10635 #include <string.h>
10638 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
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 */
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);
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";
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);
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";
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);
10696 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
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))
10710 if ac_fn_c_try_run
"$LINENO"; then :
10711 am_cv_func_iconv_works
=yes
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 ;;
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; }
10742 CPPFLAGS
="$am_save_CPPFLAGS"
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
10756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 #include <stdlib.h>
10765 #if defined(__STDC__) || defined(__cplusplus)
10766 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10779 if ac_fn_c_try_compile
"$LINENO"; then :
10780 am_cv_proto_iconv_arg1
=""
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
10792 $am_cv_proto_iconv" >&6; }
10794 cat >>confdefs.h
<<_ACEOF
10795 #define ICONV_CONST $am_cv_proto_iconv_arg1
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; }
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
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
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
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
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
10856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10863 #ifndef feof_unlocked
10864 char *p = (char *) feof_unlocked;
10871 if ac_fn_c_try_compile
"$LINENO"; then :
10872 ac_cv_have_decl_feof_unlocked
=yes
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
10886 cat >>confdefs.h
<<_ACEOF
10887 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
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
10897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10904 #ifndef fgets_unlocked
10905 char *p = (char *) fgets_unlocked;
10912 if ac_fn_c_try_compile
"$LINENO"; then :
10913 ac_cv_have_decl_fgets_unlocked
=yes
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
10927 cat >>confdefs.h
<<_ACEOF
10928 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
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
10944 if test -n "$INTLBISON"; then
10945 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
10947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10948 for as_dir
in $PATH
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
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; }
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10974 test -n "$INTLBISON" && break
10977 if test -z "$INTLBISON"; then
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;;
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
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
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)
11016 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
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));
11034 if ac_fn_c_try_link
"$LINENO"; then :
11035 if test "$cross_compiling" = yes; then :
11036 ac_cv_type_long_long_int
=yes
11038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11040 #include <limits.h>
11043 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11044 # define LLONG_MAX (HALF - 1 + HALF)
11049 long long int n = 1;
11053 long long int m = n << i;
11056 if (LLONG_MAX / 2 < m)
11064 if ac_fn_c_try_run
"$LINENO"; then :
11065 ac_cv_type_long_long_int
=yes
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
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
11093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095 #include <stddef.h>
11096 wchar_t foo = (wchar_t)'\0';
11105 if ac_fn_c_try_compile
"$LINENO"; then :
11106 gt_cv_c_wchar_t
=yes
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
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
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>
11137 wint_t foo = (wchar_t)'\0';
11146 if ac_fn_c_try_compile
"$LINENO"; then :
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
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>
11177 #if HAVE_INTTYPES_H_WITH_UINTMAX
11178 #include <inttypes.h>
11190 if ac_fn_c_try_compile
"$LINENO"; then :
11191 gt_cv_c_intmax_t
=yes
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
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__
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"
11227 gt_cv_func_printf_posix
="guessing yes"
11233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.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];
11244 sprintf (buf, format, 33, 55);
11245 return (strcmp (buf, "55 33") != 0);
11248 if ac_fn_c_try_run
"$LINENO"; then :
11249 gt_cv_func_printf_posix
=yes
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
11264 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
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
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)
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
11290 ac_cv_gnu_library_2_1
=no
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
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
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
11323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11326 #include <limits.h>
11328 #include <stdint.h>
11335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11336 $EGREP "Found it" >/dev
/null
2>&1; then :
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 :
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 :
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>
11361 extern unsigned long foo;
11371 if ac_fn_c_try_compile
"$LINENO"; then :
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)"
11379 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
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
11401 for ac_header
in stdint.h
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
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
11421 if test "$cross_compiling" = yes; then :
11422 gl_cv_header_working_fcntl_h
=cross-compiling
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>
11431 #define O_NOATIME 0
11434 #define O_NOFOLLOW 0
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
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)
11455 static char const file[] = "confdefs.h";
11456 int fd = open (file, O_RDONLY | O_NOATIME);
11458 struct stat st0, st1;
11460 || fstat (fd, &st0) != 0
11462 || read (fd, &c, 1) != 1
11464 || stat (file, &st1) != 0
11465 || st0.st_atime != st1.st_atime)
11473 if ac_fn_c_try_run
"$LINENO"; then :
11474 gl_cv_header_working_fcntl_h
=yes
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';;
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;; #(
11496 cat >>confdefs.h
<<_ACEOF
11497 #define HAVE_WORKING_O_NOATIME $ac_val
11501 case $gl_cv_header_working_fcntl_h in #(
11502 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
11506 cat >>confdefs.h
<<_ACEOF
11507 #define HAVE_WORKING_O_NOFOLLOW $ac_val
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
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>
11525 CFPreferencesCopyAppValue(NULL, NULL)
11530 if ac_fn_c_try_link
"$LINENO"; then :
11531 gt_cv_func_CFPreferencesCopyAppValue
=yes
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
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>
11559 CFLocaleCopyCurrent();
11564 if ac_fn_c_try_link
"$LINENO"; then :
11565 gt_cv_func_CFLocaleCopyCurrent
=yes
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
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;;
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 :
11603 $as_echo "#define ptrdiff_t long" >>confdefs.h
11608 for ac_header
in stddef.h stdlib.h string.h
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
11621 for ac_func
in asprintf fwprintf newlocale putenv setenv setlocale \
11622 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
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
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
11641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11649 char *p = (char *) _snprintf;
11656 if ac_fn_c_try_compile
"$LINENO"; then :
11657 ac_cv_have_decl__snprintf
=yes
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
11671 cat >>confdefs.h
<<_ACEOF
11672 #define HAVE_DECL__SNPRINTF $gt_value
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
11682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11690 char *p = (char *) _snwprintf;
11697 if ac_fn_c_try_compile
"$LINENO"; then :
11698 ac_cv_have_decl__snwprintf
=yes
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
11712 cat >>confdefs.h
<<_ACEOF
11713 #define HAVE_DECL__SNWPRINTF $gt_value
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
11724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11731 #ifndef getc_unlocked
11732 char *p = (char *) getc_unlocked;
11739 if ac_fn_c_try_compile
"$LINENO"; then :
11740 ac_cv_have_decl_getc_unlocked
=yes
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
11754 cat >>confdefs.h
<<_ACEOF
11755 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11760 case $gt_cv_func_printf_posix in
11761 *yes) HAVE_POSIX_PRINTF
=1 ;;
11762 *) HAVE_POSIX_PRINTF
=0 ;;
11765 if test "$ac_cv_func_asprintf" = yes; then
11771 if test "$ac_cv_func_snprintf" = yes; then
11777 if test "$ac_cv_func_newlocale" = yes; then
11783 if test "$ac_cv_func_wprintf" = yes; then
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
11796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11798 #include <langinfo.h>
11802 char* cs = nl_langinfo(CODESET); return !cs;
11807 if ac_fn_c_try_link
"$LINENO"; then :
11808 am_cv_langinfo_codeset
=yes
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
11830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h. */
11832 #include <locale.h>
11841 if ac_fn_c_try_link
"$LINENO"; then :
11842 gt_cv_val_LC_MESSAGES
=yes
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
11860 mingw
* | cygwin
*) is_woe32dll
=yes ;;
11861 *) is_woe32dll
=no
;;
11866 WOE32DLL
=$is_woe32dll
11870 mingw
* | cygwin
*) is_woe32
=yes ;;
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
11884 if test -n "$WINDRES"; then
11885 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
11887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11888 for as_dir
in $PATH
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
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; }
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
11924 if test -n "$ac_ct_WINDRES"; then
11925 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
11927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11928 for as_dir
in $PATH
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
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; }
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
11956 case $cross_compiling:$ac_tool_warned in
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 ;;
11962 WINDRES
=$ac_ct_WINDRES
11965 WINDRES
="$ac_cv_prog_WINDRES"
11971 hpux
*) LTLIBC
="" ;;
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
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>
12014 CFPreferencesCopyAppValue(NULL, NULL)
12019 if ac_fn_c_try_link
"$LINENO"; then :
12020 gt_cv_func_CFPreferencesCopyAppValue
=yes
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
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>
12048 CFLocaleCopyCurrent();
12053 if ac_fn_c_try_link
"$LINENO"; then :
12054 gt_cv_func_CFLocaleCopyCurrent
=yes
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
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
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 ;;
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
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)
12119 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12122 gt_revision_test_code
=
12124 if test $gt_api_version -ge 2; then
12125 gt_expression_test_code
=' + * ngettext ("", "", 0)'
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
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;
12144 bindtextdomain ("", "");
12145 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12150 if ac_fn_c_try_link
"$LINENO"; then :
12151 eval "$gt_func_gnugettext_libc=yes"
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
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
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"
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"
12223 names_already_handled
=
12224 names_next_round
='intl '
12225 while test -n "$names_next_round"; do
12226 names_this_round
="$names_next_round"
12228 for name
in $names_this_round; do
12230 for n
in $names_already_handled; do
12231 if test "$n" = "$name"; then
12232 already_handled
=yes
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"
12254 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
12255 if test -n "$acl_shlibext"; then
12256 shrext
=".$acl_shlibext" # typically: shrext=.so
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
12265 found_so
="$dir/$libname$shrext"
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
12275 found_so
="$dir/$libname$shrext.$ver"
12278 eval library_names
=\"$acl_library_names_spec\"
12279 for f
in $library_names; do
12280 if test -f "$dir/$f"; then
12289 if test "X$found_dir" = "X"; then
12290 if test -f "$dir/$libname.$acl_libext"; then
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"
12309 exec_prefix
="$acl_save_exec_prefix"
12310 prefix
="$acl_save_prefix"
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
12318 found_so
="$dir/$libname$shrext"
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
12328 found_so
="$dir/$libname$shrext.$ver"
12331 eval library_names
=\"$acl_library_names_spec\"
12332 for f
in $library_names; do
12333 if test -f "$dir/$f"; then
12342 if test "X$found_dir" = "X"; then
12343 if test -f "$dir/$libname.$acl_libext"; then
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"
12355 if test "X$found_dir" != "X"; then
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"
12369 for x
in $ltrpathdirs; do
12370 if test "X$x" = "X$found_dir"; then
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"
12381 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
12382 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
12384 for x
in $rpathdirs; do
12385 if test "X$x" = "X$found_dir"; then
12390 if test -z "$haveit"; then
12391 rpathdirs
="$rpathdirs $found_dir"
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"
12402 exec_prefix
="$acl_save_exec_prefix"
12403 prefix
="$acl_save_prefix"
12405 if test "X$x" = "X-L$found_dir"; then
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"
12416 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
12422 if test "X$found_a" != "X"; then
12423 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
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"
12445 if test "X$additional_includedir" != "X"; then
12446 if test "X$additional_includedir" != "X/usr/include"; then
12448 if test "X$additional_includedir" = "X/usr/local/include"; then
12449 if test -n "$GCC"; then
12451 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
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"
12463 exec_prefix
="$acl_save_exec_prefix"
12464 prefix
="$acl_save_prefix"
12466 if test "X$x" = "X-I$additional_includedir"; then
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" ;;
12485 libdir
="$save_libdir"
12486 for dep
in $dependency_libs; do
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
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
12497 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
12501 if test -z "$haveit"; then
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"
12510 exec_prefix
="$acl_save_exec_prefix"
12511 prefix
="$acl_save_prefix"
12513 if test "X$x" = "X-L$additional_libdir"; then
12518 if test -z "$haveit"; then
12519 if test -d "$additional_libdir"; then
12520 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
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"
12531 exec_prefix
="$acl_save_exec_prefix"
12532 prefix
="$acl_save_prefix"
12534 if test "X$x" = "X-L$additional_libdir"; then
12539 if test -z "$haveit"; then
12540 if test -d "$additional_libdir"; then
12541 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12548 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12549 if test "$enable_rpath" != no
; then
12551 for x
in $rpathdirs; do
12552 if test "X$x" = "X$dir"; then
12557 if test -z "$haveit"; then
12558 rpathdirs
="$rpathdirs $dir"
12561 for x
in $ltrpathdirs; do
12562 if test "X$x" = "X$dir"; then
12567 if test -z "$haveit"; then
12568 ltrpathdirs
="$ltrpathdirs $dir"
12573 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
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"
12586 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
12587 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12593 if test "X$rpathdirs" != "X"; then
12594 if test -n "$acl_hardcode_libdir_separator"; then
12596 for found_dir
in $rpathdirs; do
12597 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12599 acl_save_libdir
="$libdir"
12601 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
12602 libdir
="$acl_save_libdir"
12603 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
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"
12614 if test "X$ltrpathdirs" != "X"; then
12615 for found_dir
in $ltrpathdirs; do
12616 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
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
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;
12643 const char *_nl_expand_alias (const char *);
12647 bindtextdomain ("", "");
12648 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12653 if ac_fn_c_try_link
"$LINENO"; then :
12654 eval "$gt_func_gnugettext_libintl=yes"
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;
12671 const char *_nl_expand_alias (const char *);
12675 bindtextdomain ("", "");
12676 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
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
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/ $//'`
12724 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12725 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
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
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"
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
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"
12786 exec_prefix
="$acl_save_exec_prefix"
12787 prefix
="$acl_save_prefix"
12789 if test "X$x" = "X$element"; then
12794 if test -z "$haveit"; then
12795 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12802 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12805 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
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
=
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.
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
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;} ;;
12888 _ | IFS | as_nl
) ;; #(
12889 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12890 *) { eval $ac_var=; unset $ac_var;} ;;
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 \.
12902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12905 # `set' quotes correctly as required by POSIX, so do not add quotes.
12906 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12915 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12917 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
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;}
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
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'
12950 LIBOBJS
=$ac_libobjs
12952 LTLIBOBJS
=$ac_ltlibobjs
12955 if test -n "$EXEEXT"; then
12957 am__EXEEXT_FALSE
='#'
12959 am__EXEEXT_TRUE
='#'
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}
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;}
12999 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
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.
13007 ac_cs_recheck=false
13010 SHELL=\${CONFIG_SHELL-$SHELL}
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 :
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
13028 case `(set -o) 2>/dev/null` in #(
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
'
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'
13058 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13059 as_echo_n_body='eval
13063 expr "X$arg" : "X\\(.*\\)$as_nl";
13064 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
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
13078 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13079 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
13092 # Find who we are. Look in the path if we contain no directory separator.
13094 *[\\/]* ) as_myself=$0 ;;
13095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13099 test -z "$as_dir" && as_dir=.
13100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
13111 if test ! -f "$as_myself"; then
13112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
13145 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
13155 # as_fn_set_status STATUS
13156 # -----------------------
13157 # Set $? to STATUS, without forking.
13158 as_fn_set_status
()
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.
13169 as_fn_set_status
$1
13175 # Portably unset VAR.
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
13187 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13188 eval '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 ()
13212 as_val
=`expr "$@" || test $? -eq 1`
13217 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13218 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13224 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13225 as_basename
=basename
13230 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13236 as_me
=`$as_basename -- "$0" ||
13237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13238 X"$0" : 'X\(//\)$' \| \
13239 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13241 sed '/^.*\/\([^/][^/]*\)\/*$/{
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 #(((((
13265 case `echo 'xy\c'` in
13266 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13268 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13275 rm -f conf$$ conf$$.exe conf$$.
file
13276 if test -d conf$$.dir
; then
13277 rm -f conf$$.dir
/conf$$.
file
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
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 ||
13291 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13299 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13300 rmdir conf$$.dir
2>/dev
/null
13305 # Create "$as_dir" as a directory, including parents if necessary.
13310 -*) as_dir
=.
/$as_dir;;
13312 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13316 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13317 *) as_qdir
=$as_dir;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13330 /^X\(\/\/\)[^/].*/{
13343 test -d "$as_dir" && break
13345 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13346 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
13350 if mkdir
-p .
2>/dev
/null
; then
13351 as_mkdir_p
='mkdir -p "$as_dir"'
13353 test -d .
/-p && rmdir .
/-p
13357 if test -x / >/dev
/null
2>&1; then
13358 as_test_x
='test -x'
13360 if ls -dL / >/dev
/null
2>&1; then
13367 if test -d "$1"; then
13373 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13374 ???[sx]*):;;*)false;;esac;fi
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'"
13388 ## ----------------------------------- ##
13389 ## Main body of $CONFIG_STATUS script. ##
13390 ## ----------------------------------- ##
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.
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
13408 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13413 case $ac_config_files in *"
13414 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13417 case $ac_config_headers in *"
13418 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
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"
13430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
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:
13453 Configuration headers:
13456 Configuration commands:
13459 Report bugs to <guichaz@gmail.com>."
13462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13463 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
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."
13478 test -n "\$AWK" || AWK=awk
13481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13482 # The default lists apply if the user does not specify any file.
13488 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13489 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13493 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13505 # Handling of the options.
13506 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
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 )
13514 --file |
--fil |
--fi |
--f )
13517 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13518 '') as_fn_error $?
"missing file argument" ;;
13520 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13521 ac_need_defaults
=false
;;
13522 --header |
--heade |
--head |
--hea )
13525 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13527 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13528 ac_need_defaults
=false
;;
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)
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
;;
13550 ac_configure_extra_args
=
13552 if $ac_cs_silent; then
13554 ac_configure_extra_args
="$ac_configure_extra_args --silent"
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
13562 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13563 CONFIG_SHELL='$SHELL'
13564 export CONFIG_SHELL
13569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13574 ## Running $as_me. ##
13580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
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%}"
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 ;;
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'.
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"
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
13679 ac_cs_awk_cr
=$ac_cr
13682 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13687 echo "cat >conf$$subs.awk <<_ACEOF" &&
13688 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
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 '^'`
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
13701 elif $ac_last_try; then
13702 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13704 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13707 rm -f conf$$subs.sh
13709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13710 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
13714 s/^/S["/; s
/!.
*/"]=/
13724 s/\(.\{148\}\)..*/\1/
13726 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13731 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13738 s/\(.\{148\}\)..*/\1/
13740 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13744 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13749 ' <conf$$subs.awk | sed '
13754 ' >>$CONFIG_STATUS || ac_write_fail=1
13755 rm -f conf$$subs.awk
13756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13758 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
13759 for (key in S) S_is_set[key] = 1
13765 nfields = split(line, field, "@
")
13767 len = length(field[1])
13768 for (i = 2; i < nfields; i++) {
13770 keylen = length(key)
13771 if (S_is_set[key]) {
13773 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13774 len += length(value) + length(field[++i])
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
"
13790 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
13791 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
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[ ]*=[ ]*/{
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 ||
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.
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
13839 elif $ac_last_try; then
13840 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
13842 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
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]*
13852 s/.\{148\}/&'"$ac_delim"'/g
13855 s/^[ ]*#[ ]*define[ ][ ]*/ /
13862 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13864 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13869 D["\
1"]=" \
3\\\\\\n
"\\/p
13871 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13876 s/.\{148\}/&'"$ac_delim"'/g
13881 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13884 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
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
13894 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13896 split(line, arg, " ")
13897 if (arg[1] == "#") {
13901 defundef
= substr
(arg
[1], 2)
13904 split(mac1
, mac2
, "(") #)
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
]
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
, "*/"
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"
13934 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13936 case $ac_mode$ac_tag in
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;;
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 `:'.
13964 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13966 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13968 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13969 as_fn_append ac_file_inputs
" '$ac_f'"
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'
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;;
13992 *:-:* |
*:-) cat >"$tmp/stdin" \
13993 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14008 /^X\(\/\/\)[^/].*/{
14021 as_dir
="$ac_dir"; as_fn_mkdir_p
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/ ;;
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
14041 .
) # We are building in place.
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 ;;
14054 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14064 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14065 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14067 ac_MKDIR_P
=$MKDIR_P
14069 [\\/$
]* | ?
:[\\/]* ) ;;
14070 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
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
=
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;}
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' ;;
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
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;}
14142 -) cat "$tmp/out" && rm -f "$tmp/out";;
14143 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
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;}
14162 mv "$tmp/config.h" "$ac_file" \
14163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
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.
14173 for _am_header
in $config_headers :; do
14174 case $_am_header in
14175 $_am_arg |
$_am_arg:* )
14178 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14191 /^X\(\/\/\)[^/].*/{
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;}
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 ;;
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 ||
14240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14244 /^X\(\/\/\)[^/].*/{
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
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14288 /^X\(\/\/\)[^/].*/{
14301 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
14302 # echo "creating $dirpart/$file"
14303 echo '# dummy' > "$dirpart/$file"
14308 "po-directories":C
)
14309 for ac_file
in $CONFIG_FILES; do
14310 # Support "outfile[:infile[:infile...]]"
14312 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
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" ;;
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
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"
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'
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)
14360 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14361 case "$ac_given_srcdir" in
14363 *) srcdirpre
='$(srcdir)/' ;;
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"
14375 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14376 # environment variable.
14378 if test -n "$ALL_LINGUAS"; then
14379 for presentlang
in $ALL_LINGUAS; do
14381 if test "%UNSET%" != "$LINGUAS"; then
14382 desiredlanguages
="$LINGUAS"
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;;
14396 if test $useit = yes; then
14397 INST_LINGUAS
="$INST_LINGUAS $presentlang"
14402 if test -n "$INST_LINGUAS"; then
14403 for lang
in $INST_LINGUAS; do
14404 CATALOGS
="$CATALOGS $lang.gmo"
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
14412 *.orig |
*.bak |
*~
) ;;
14413 *) cat "$f" >> "$ac_dir/Makefile" ;;
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
14444 ac_config_status_args
=
14445 test "$silent" = yes &&
14446 ac_config_status_args
="$ac_config_status_args --quiet"
14448 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
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;}
14461 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"