2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for gliv 1.9.7.
5 # Report bugs to <guichaz@gmail.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
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 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
=$?
; test $as_status -eq 0 && as_status
=1
371 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit
$as_status
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, 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 ac_subst_vars
='am__EXEEXT_FALSE
607 INTL_LIBTOOL_SUFFIX_PREFIX
614 BUILD_INCLUDED_LIBINTL
648 XGETTEXT_EXTRA_OPTIONS
656 GETTEXT_MACRO_VERSION
668 NEED_REPLACEMENTS_FALSE
669 NEED_REPLACEMENTS_TRUE
702 INSTALL_STRIP_PROGRAM
744 program_transform_name
757 enable_option_checking
758 enable_dependency_tracking
768 with_included_gettext
771 ac_precious_vars
='build_alias
786 # Initialize some variables set by options.
788 ac_init_version
=false
789 ac_unrecognized_opts
=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
800 program_transform_name
=s
,x
,x
,
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir
='${exec_prefix}/bin'
815 sbindir
='${exec_prefix}/sbin'
816 libexecdir
='${exec_prefix}/libexec'
817 datarootdir
='${prefix}/share'
818 datadir
='${datarootdir}'
819 sysconfdir
='${prefix}/etc'
820 sharedstatedir
='${prefix}/com'
821 localstatedir
='${prefix}/var'
822 includedir
='${prefix}/include'
823 oldincludedir
='/usr/include'
824 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir
='${datarootdir}/info'
830 libdir
='${exec_prefix}/lib'
831 localedir
='${datarootdir}/locale'
832 mandir
='${datarootdir}/man'
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\
$ac_option
846 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
856 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
858 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
861 -build |
--build |
--buil |
--bui |
--bu)
862 ac_prev
=build_alias
;;
863 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
864 build_alias
=$ac_optarg ;;
866 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
867 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
868 ac_prev
=cache_file
;;
869 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
870 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
871 cache_file
=$ac_optarg ;;
874 cache_file
=config.cache
;;
876 -datadir |
--datadir |
--datadi |
--datad)
878 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
879 datadir
=$ac_optarg ;;
881 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
882 |
--dataroo |
--dataro |
--datar)
883 ac_prev
=datarootdir
;;
884 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
885 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
886 datarootdir
=$ac_optarg ;;
888 -disable-* |
--disable-*)
889 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
892 as_fn_error
"invalid feature name: $ac_useropt"
893 ac_useropt_orig
=$ac_useropt
894 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep
=', ';;
902 eval enable_
$ac_useropt=no
;;
904 -docdir |
--docdir |
--docdi |
--doc |
--do)
906 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
909 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
911 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
914 -enable-* |
--enable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 as_fn_error
"invalid feature name: $ac_useropt"
919 ac_useropt_orig
=$ac_useropt
920 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep
=', ';;
928 eval enable_
$ac_useropt=\
$ac_optarg ;;
930 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
931 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
932 |
--exec |
--exe |
--ex)
933 ac_prev
=exec_prefix
;;
934 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
935 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
936 |
--exec=* |
--exe=* |
--ex=*)
937 exec_prefix
=$ac_optarg ;;
939 -gas |
--gas |
--ga |
--g)
940 # Obsolete; use --with-gas.
943 -help |
--help |
--hel |
--he |
-h)
945 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
946 ac_init_help
=recursive
;;
947 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
948 ac_init_help
=short
;;
950 -host |
--host |
--hos |
--ho)
951 ac_prev
=host_alias
;;
952 -host=* |
--host=* |
--hos=* |
--ho=*)
953 host_alias
=$ac_optarg ;;
955 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
957 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
959 htmldir
=$ac_optarg ;;
961 -includedir |
--includedir |
--includedi |
--included |
--include \
962 |
--includ |
--inclu |
--incl |
--inc)
963 ac_prev
=includedir
;;
964 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
965 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
966 includedir
=$ac_optarg ;;
968 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
970 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
971 infodir
=$ac_optarg ;;
973 -libdir |
--libdir |
--libdi |
--libd)
975 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
978 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
979 |
--libexe |
--libex |
--libe)
980 ac_prev
=libexecdir
;;
981 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
982 |
--libexe=* |
--libex=* |
--libe=*)
983 libexecdir
=$ac_optarg ;;
985 -localedir |
--localedir |
--localedi |
--localed |
--locale)
987 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
988 localedir
=$ac_optarg ;;
990 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
991 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
992 ac_prev
=localstatedir
;;
993 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
994 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
995 localstatedir
=$ac_optarg ;;
997 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
999 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1000 mandir
=$ac_optarg ;;
1002 -nfp |
--nfp |
--nf)
1003 # Obsolete; use --without-fp.
1006 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1007 |
--no-cr |
--no-c |
-n)
1010 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1011 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1014 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1015 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1016 |
--oldin |
--oldi |
--old |
--ol |
--o)
1017 ac_prev
=oldincludedir
;;
1018 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1019 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1020 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1021 oldincludedir
=$ac_optarg ;;
1023 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1025 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1026 prefix
=$ac_optarg ;;
1028 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1029 |
--program-pre |
--program-pr |
--program-p)
1030 ac_prev
=program_prefix
;;
1031 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1032 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1033 program_prefix
=$ac_optarg ;;
1035 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1036 |
--program-suf |
--program-su |
--program-s)
1037 ac_prev
=program_suffix
;;
1038 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1039 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1040 program_suffix
=$ac_optarg ;;
1042 -program-transform-name |
--program-transform-name \
1043 |
--program-transform-nam |
--program-transform-na \
1044 |
--program-transform-n |
--program-transform- \
1045 |
--program-transform |
--program-transfor \
1046 |
--program-transfo |
--program-transf \
1047 |
--program-trans |
--program-tran \
1048 |
--progr-tra |
--program-tr |
--program-t)
1049 ac_prev
=program_transform_name
;;
1050 -program-transform-name=* |
--program-transform-name=* \
1051 |
--program-transform-nam=* |
--program-transform-na=* \
1052 |
--program-transform-n=* |
--program-transform-=* \
1053 |
--program-transform=* |
--program-transfor=* \
1054 |
--program-transfo=* |
--program-transf=* \
1055 |
--program-trans=* |
--program-tran=* \
1056 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1057 program_transform_name
=$ac_optarg ;;
1059 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1061 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1062 pdfdir
=$ac_optarg ;;
1064 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1066 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1070 |
-silent |
--silent |
--silen |
--sile |
--sil)
1073 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1075 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1077 sbindir
=$ac_optarg ;;
1079 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1080 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1081 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1083 ac_prev
=sharedstatedir
;;
1084 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1085 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1086 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1088 sharedstatedir
=$ac_optarg ;;
1090 -site |
--site |
--sit)
1092 -site=* |
--site=* |
--sit=*)
1095 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1097 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1098 srcdir
=$ac_optarg ;;
1100 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1101 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1102 ac_prev
=sysconfdir
;;
1103 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1104 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1105 sysconfdir
=$ac_optarg ;;
1107 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1108 ac_prev
=target_alias
;;
1109 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1110 target_alias
=$ac_optarg ;;
1112 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1115 -version |
--version |
--versio |
--versi |
--vers |
-V)
1116 ac_init_version
=: ;;
1119 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1122 as_fn_error
"invalid package name: $ac_useropt"
1123 ac_useropt_orig
=$ac_useropt
1124 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep
=', ';;
1132 eval with_
$ac_useropt=\
$ac_optarg ;;
1134 -without-* |
--without-*)
1135 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1138 as_fn_error
"invalid package name: $ac_useropt"
1139 ac_useropt_orig
=$ac_useropt
1140 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep
=', ';;
1148 eval with_
$ac_useropt=no
;;
1151 # Obsolete; use --with-x.
1154 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1155 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1156 ac_prev
=x_includes
;;
1157 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1158 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1159 x_includes
=$ac_optarg ;;
1161 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1162 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1163 ac_prev
=x_libraries
;;
1164 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1165 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1166 x_libraries
=$ac_optarg ;;
1168 -*) as_fn_error
"unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information."
1173 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1177 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1179 eval $ac_envvar=\
$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 if test -n "$ac_prev"; then
1194 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error
"missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1201 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 # Check all directory arguments for consistency.
1207 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val
=\$
$ac_var
1213 # Remove trailing slashes.
1216 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\
$ac_val;;
1219 # Be sure to have absolute directory names.
1221 [\\/$
]* | ?
:[\\/]* ) continue;;
1222 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1224 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target
=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x
; then
1236 if test "x$build_alias" = x
; then
1237 cross_compiling
=maybe
1238 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1248 test "$silent" = yes && exec 6>/dev
/null
1251 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di
=`ls -di .` &&
1253 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error
"working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error
"pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted
=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir
=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted
=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1295 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var
in $ac_precious_vars; do
1312 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1314 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures gliv 1.9.7 to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/gliv]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1388 --x-includes=DIR X include files are
in DIR
1389 --x-libraries=DIR X library files are
in DIR
1392 --build=BUILD configure
for building on BUILD
[guessed
]
1393 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive
) echo "Configuration of gliv 1.9.7:";;
1404 --disable-option-checking ignore unrecognized
--enable/--with options
1405 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1406 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1407 --disable-dependency-tracking speeds up one-time build
1408 --enable-dependency-tracking do not reject slow dependency extractors
1409 --disable-largefile omit support
for large files
1410 --disable-gtktest do not try to compile and run a
test GTK
+ program
1411 --disable-nls do not use Native Language Support
1412 --enable-threads={posix|solaris|pth|win32
}
1413 specify multithreading API
1414 --disable-threads build without multithread safety
1415 --disable-rpath do not hardcode runtime library paths
1418 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1419 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1420 --with-x use the X Window System
1421 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1422 --with-libpth-prefix[=DIR
] search
for libpth
in DIR
/include and DIR
/lib
1423 --without-libpth-prefix don
't search for libpth in includedir and libdir
1424 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1425 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1426 --with-included-gettext use the GNU
gettext library included here
1427 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
1428 --without-libintl-prefix don
't search for libintl in includedir and libdir
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1439 XMKMF Path to xmkmf, Makefile generator for X Window System
1440 PKG_CONFIG path to pkg-config utility
1442 C compiler flags for GTKGLEXT, overriding pkg-config
1444 linker flags for GTKGLEXT, overriding pkg-config
1446 Use these variables to override the choices made by `configure' or to
help
1447 it to
find libraries and programs with nonstandard names
/locations.
1449 Report bugs to
<guichaz@gmail.com
>.
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1463 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1465 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1470 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1473 ac_abs_top_builddir
=$ac_pwd
1474 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir
=$ac_top_build_prefix
1479 .
) # We are building in place.
1481 ac_top_srcdir
=$ac_top_builddir_sub
1482 ac_abs_top_srcdir
=$ac_pwd ;;
1483 [\\/]* | ?
:[\\/]* ) # Absolute name.
1484 ac_srcdir
=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir
=$srcdir
1486 ac_abs_top_srcdir
=$srcdir ;;
1488 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1492 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1494 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1512 gliv configure
1.9.7
1513 generated by GNU Autoconf
2.65
1515 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1516 This configure
script is free software
; the Free Software Foundation
1517 gives unlimited permission to copy
, distribute and modify it.
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile
()
1531 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1532 rm -f conftest.
$ac_objext
1533 if { { ac_try
="$ac_compile"
1535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 as_fn_set_status $ac_retval
1562 } # ac_fn_c_try_compile
1564 # ac_fn_c_try_cpp LINENO
1565 # ----------------------
1566 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 if { { ac_try="$ac_cpp conftest.$ac_ext"
1572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1573 *) ac_try_echo
=$ac_try;;
1575 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1579 if test -s conftest.err
; then
1580 grep -v '^ *+' conftest.err
>conftest.er1
1581 cat conftest.er1
>&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } >/dev
/null
&& {
1586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.
$ac_ext >&5
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1597 as_fn_set_status
$ac_retval
1601 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1602 # -------------------------------------------------------
1603 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1604 # the include files in INCLUDES and setting the cache variable VAR
1606 ac_fn_c_check_header_mongrel
()
1608 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1609 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611 $as_echo_n "checking for $2... " >&6; }
1612 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1613 $as_echo_n "(cached) " >&6
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617 $as_echo "$ac_res" >&6; }
1619 # Is the header compilable?
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1621 $as_echo_n "checking $2 usability... " >&6; }
1622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1627 if ac_fn_c_try_compile
"$LINENO"; then :
1628 ac_header_compiler
=yes
1630 ac_header_compiler
=no
1632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1634 $as_echo "$ac_header_compiler" >&6; }
1636 # Is the header present?
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1638 $as_echo_n "checking $2 presence... " >&6; }
1639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1643 if ac_fn_c_try_cpp
"$LINENO"; then :
1644 ac_header_preproc
=yes
1646 ac_header_preproc
=no
1648 rm -f conftest.err conftest.
$ac_ext
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1650 $as_echo "$ac_header_preproc" >&6; }
1652 # So? What about this header?
1653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1656 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1658 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1662 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1664 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1666 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1668 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1670 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ## -------------------------------- ##
1673 ## Report this to guichaz@gmail.com ##
1674 ## -------------------------------- ##
1676 ) |
sed "s/^/$as_me: WARNING: /" >&2
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1684 eval "$3=\$ac_header_compiler"
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1692 } # ac_fn_c_check_header_mongrel
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1700 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1701 if { { ac_try
="$ac_link"
1703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1714 *) ac_try_echo
=$ac_try;;
1716 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.
$ac_ext >&5
1728 ac_retval
=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1732 as_fn_set_status
$ac_retval
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile
()
1742 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1753 if ac_fn_c_try_compile
"$LINENO"; then :
1758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1773 rm -f conftest.
$ac_objext conftest
$ac_exeext
1774 if { { ac_try
="$ac_link"
1776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 as_fn_set_status $ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1836 # include <limits.h>
1838 # include <assert.h>
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1865 if ac_fn_c_try_link "$LINENO"; then :
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 } # ac_fn_c_check_func
1880 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1881 # --------------------------------------------
1882 # Tries to find the compile-time value of EXPR in a program that includes
1883 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1885 ac_fn_c_compute_int ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if test "$cross_compiling" = yes; then
1889 # Depending upon the size, compute the lo and hi bounds.
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1896 static int test_array [1 - 2 * !(($2) >= 0)];
1903 if ac_fn_c_try_compile "$LINENO"; then :
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1912 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_hi=$ac_mid; break
1922 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1923 if test $ac_lo -le $ac_mid; then
1927 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1938 static int test_array [1 - 2 * !(($2) < 0)];
1945 if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1954 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_lo=$ac_mid; break
1964 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965 if test $ac_mid -le $ac_hi; then
1969 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 # Binary search between lo and hi bounds.
1980 while test "x$ac_lo" != "x$ac_hi"; do
1981 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1988 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1995 if ac_fn_c_try_compile "$LINENO"; then :
1998 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2010 static long int longval () { return $2; }
2011 static unsigned long int ulongval () { return $2; }
2018 FILE *f = fopen ("conftest.val", "w");
2023 long int i = longval ();
2026 fprintf (f, "%ld", i);
2030 unsigned long int i = ulongval ();
2033 fprintf (f, "%lu", i);
2035 /* Do not output a trailing newline, as this causes \r\n confusion
2036 on some platforms. */
2037 return ferror (f) || fclose (f) != 0;
2043 if ac_fn_c_try_run "$LINENO"; then :
2044 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2049 conftest.$ac_objext conftest.beam conftest.$ac_ext
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 as_fn_set_status $ac_retval
2056 } # ac_fn_c_compute_int
2058 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059 # -------------------------------------------
2060 # Tests whether TYPE exists after having included INCLUDES, setting cache
2061 # variable VAR accordingly.
2062 ac_fn_c_check_type ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2068 $as_echo_n "(cached) " >&6
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2096 if ac_fn_c_try_compile "$LINENO"; then :
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110 } # ac_fn_c_check_type
2111 cat >config.log <<_ACEOF
2112 This file contains any messages produced by compilers while
2113 running configure, to aid debugging if configure makes a mistake.
2115 It was created by gliv $as_me 1.9.7, which was
2116 generated by GNU Autoconf 2.65. Invocation command line was
2128 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2129 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2130 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2131 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2132 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2134 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2135 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2137 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2138 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2139 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2140 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2141 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2142 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2143 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 test -z "$as_dir" && as_dir=.
2152 $as_echo "PATH: $as_dir"
2168 # Keep a trace of the command line.
2169 # Strip out --no-create and --no-recursion so they do not pile up.
2170 # Strip out --silent because we don't want to record it for future runs.
2171 # Also quote any args containing shell meta-characters.
2172 # Make two passes to allow for proper duplicate-argument suppression.
2176 ac_must_keep_next=false
2182 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2184 | -silent | --silent | --silen | --sile | --sil)
2187 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2190 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2192 as_fn_append ac_configure_args1 " '$ac_arg'"
2193 if test $ac_must_keep_next = true; then
2194 ac_must_keep_next=false # Got value, back to normal.
2197 *=* | --config-cache | -C | -disable-* | --disable-* \
2198 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2199 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2200 | -with-* | --with-* | -without-* | --without-* | --x)
2201 case "$ac_configure_args0 " in
2202 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2205 -* ) ac_must_keep_next=true ;;
2208 as_fn_append ac_configure_args " '$ac_arg'"
2213 { ac_configure_args0=; unset ac_configure_args0;}
2214 { ac_configure_args1=; unset ac_configure_args1;}
2216 # When interrupted or exit'd, cleanup temporary files, and complete
2217 # config.log. We remove comments because anyway the quotes in there
2218 # would cause problems or look ugly.
2219 # WARNING: Use '\'' to represent an apostrophe within the trap.
2220 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2221 trap 'exit_status=$?
2222 # Save into config.log some information that might help in debugging.
2227 ## ---------------- ##
2228 ## Cache variables. ##
2229 ## ---------------- ##
2232 # The following way of writing the cache mishandles newlines in values,
2234 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2235 eval ac_val=\$$ac_var
2239 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2240 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2243 _ | IFS | as_nl) ;; #(
2244 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2245 *) { eval $ac_var=; unset $ac_var;} ;;
2250 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2251 *${as_nl}ac_space=\ *)
2253 "s/'\''/'\''\\\\'\'''\''/g;
2254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2265 ## ----------------- ##
2266 ## Output variables. ##
2267 ## ----------------- ##
2270 for ac_var in $ac_subst_vars
2272 eval ac_val=\$$ac_var
2274 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 $as_echo "$ac_var='\''$ac_val'\''"
2280 if test -n "$ac_subst_files"; then
2282 ## ------------------- ##
2283 ## File substitutions. ##
2284 ## ------------------- ##
2287 for ac_var in $ac_subst_files
2289 eval ac_val=\$$ac_var
2291 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2293 $as_echo "$ac_var='\''$ac_val'\''"
2298 if test -s confdefs.h; then
2308 test "$ac_signal" != 0 &&
2309 $as_echo "$as_me: caught signal $ac_signal"
2310 $as_echo "$as_me: exit $exit_status"
2312 rm -f core *.core core.conftest.* &&
2313 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2316 for ac_signal in 1 2 13 15; do
2317 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2321 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2322 rm -f -r conftest* confdefs.h
2324 $as_echo "/* confdefs.h */" > confdefs.h
2326 # Predefined preprocessor variables.
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_NAME "$PACKAGE_NAME"
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_STRING "$PACKAGE_STRING"
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_URL "$PACKAGE_URL"
2353 # Let the site file select an alternate cache file if it wants to.
2354 # Prefer an explicitly selected file to automatically selected ones.
2357 if test -n "$CONFIG_SITE"; then
2358 ac_site_file1=$CONFIG_SITE
2359 elif test "x$prefix" != xNONE; then
2360 ac_site_file1=$prefix/share/config.site
2361 ac_site_file2=$prefix/etc/config.site
2363 ac_site_file1=$ac_default_prefix/share/config.site
2364 ac_site_file2=$ac_default_prefix/etc/config.site
2366 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2368 test "x$ac_site_file" = xNONE && continue
2369 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2371 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2372 sed 's/^/| /' "$ac_site_file" >&5
2377 if test -r "$cache_file"; then
2378 # Some versions of bash will fail to source /dev/null (special files
2379 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2380 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2382 $as_echo "$as_me: loading cache $cache_file" >&6;}
2384 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2385 *) . "./$cache_file";;
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2390 $as_echo "$as_me: creating cache $cache_file" >&6;}
2394 gt_needs="$gt_needs "
2395 as_fn_append ac_header_list " stdlib.h"
2396 as_fn_append ac_header_list " unistd.h"
2397 as_fn_append ac_header_list " sys/param.h"
2398 # Check that the precious variables saved in the cache have kept the same
2400 ac_cache_corrupted=false
2401 for ac_var in $ac_precious_vars; do
2402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2403 eval ac_new_set=\$ac_env_${ac_var}_set
2404 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2405 eval ac_new_val=\$ac_env_${ac_var}_value
2406 case $ac_old_set,$ac_new_set in
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2409 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2410 ac_cache_corrupted=: ;;
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2413 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2417 if test "x$ac_old_val" != "x$ac_new_val"; then
2418 # differences in whitespace do not lead to failure.
2419 ac_old_val_w=`echo x
$ac_old_val`
2420 ac_new_val_w=`echo x
$ac_new_val`
2421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2423 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2424 ac_cache_corrupted=:
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2427 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2428 eval $ac_var=\$ac_old_val
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2431 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2433 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2436 # Pass precious variables to config.status.
2437 if test "$ac_new_set" = set; then
2439 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2440 *) ac_arg=$ac_var=$ac_new_val ;;
2442 case " $ac_configure_args " in
2443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2444 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2448 if $ac_cache_corrupted; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2452 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2453 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2455 ## -------------------- ##
2456 ## Main body of script. ##
2457 ## -------------------- ##
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 am__api_version='1.11'
2470 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2471 for ac_t in install-sh install.sh shtool; do
2472 if test -f "$ac_dir/$ac_t"; then
2474 ac_install_sh="$ac_aux_dir/$ac_t -c"
2479 if test -z "$ac_aux_dir"; then
2480 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2483 # These three variables are undocumented and unsupported,
2484 # and are intended to be withdrawn in a future Autoconf release.
2485 # They can cause serious problems if a builder's source tree is in a directory
2486 # whose full name contains unusual characters.
2487 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2488 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2489 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2492 # Find a good install program. We prefer a C program (faster),
2493 # so one script is as good as another. But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 # Reject install programs that cannot install multiple files.
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2507 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2508 if test -z "$INSTALL"; then
2509 if test "${ac_cv_path_install+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518 case $as_dir/ in #((
2519 ./ | .// | /[cC]/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2530 if test $ac_prog = install &&
2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # AIX install. It has an incompatible calling convention.
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2539 rm -rf conftest.one conftest.two conftest.dir
2540 echo one > conftest.one
2541 echo two > conftest.two
2543 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2544 test -s conftest.one && test -s conftest.two &&
2545 test -s conftest.dir/conftest.one &&
2546 test -s conftest.dir/conftest.two
2548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2561 rm -rf conftest.one conftest.two conftest.dir
2564 if test "${ac_cv_path_install+set}" = set; then
2565 INSTALL=$ac_cv_path_install
2567 # As a last resort, use the slow shell script. Don't cache a
2568 # value for INSTALL within a source directory, because that will
2569 # break other packages using the cache if that directory is
2570 # removed, or if the value is a relative name.
2571 INSTALL=$ac_install_sh
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2575 $as_echo "$INSTALL" >&6; }
2577 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2578 # It thinks the first close brace ends the variable substitution.
2579 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2581 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2583 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2586 $as_echo_n "checking whether build environment is sane... " >&6; }
2589 echo timestamp > conftest.file
2590 # Reject unsafe characters in $srcdir or the absolute working directory
2591 # name. Accept space and tab only in the latter.
2595 *[\\\"\#\$\&\'\`$am_lf]*)
2596 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2599 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2600 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2603 # Do `set' in a subshell so we don't clobber the current shell's
2604 # arguments. Must try -L first in case configure is actually a
2605 # symlink; some systems play weird games with the mod time of symlinks
2606 # (eg FreeBSD returns the mod time of the symlink's containing
2609 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2610 if test "$*" = "X"; then
2612 set X
`ls -t "$srcdir/configure" conftest.file`
2615 if test "$*" != "X $srcdir/configure conftest.file" \
2616 && test "$*" != "X conftest.file $srcdir/configure"; then
2618 # If neither matched, then we have a broken ls. This can happen
2619 # if, for instance, CONFIG_SHELL is bash and it inherits a
2620 # broken ls alias from the environment. This has actually
2621 # happened. Such a system could not be considered "sane".
2622 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2623 alias in your environment" "$LINENO" 5
2626 test "$2" = conftest.
file
2632 as_fn_error
"newly created file is older than distributed files!
2633 Check your system clock" "$LINENO" 5
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 $as_echo "yes" >&6; }
2637 test "$program_prefix" != NONE
&&
2638 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2639 # Use a double $ so make ignores it.
2640 test "$program_suffix" != NONE
&&
2641 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2642 # Double any \ or $.
2643 # By default was `s,x,x', remove it if useless.
2644 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2645 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2647 # expand $ac_aux_dir to an absolute path
2648 am_aux_dir
=`cd $ac_aux_dir && pwd`
2650 if test x
"${MISSING+set}" != xset
; then
2653 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2655 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2658 # Use eval to expand $SHELL
2659 if eval "$MISSING --run true"; then
2660 am_missing_run
="$MISSING --run "
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2664 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2667 if test x
"${install_sh}" != xset
; then
2670 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2672 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2676 # Installed binaries are usually stripped using `strip' when the user
2677 # run `make install-strip'. However `strip' might not be the right
2678 # tool to use in cross-compilation environments, therefore Automake
2679 # will honor the `STRIP' environment variable to overrule this program.
2680 if test "$cross_compiling" != no
; then
2681 if test -n "$ac_tool_prefix"; then
2682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2683 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if test "${ac_cv_prog_STRIP+set}" = set; then :
2687 $as_echo_n "(cached) " >&6
2689 if test -n "$STRIP"; then
2690 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir
=.
2697 for ac_exec_ext
in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 STRIP
=$ac_cv_prog_STRIP
2710 if test -n "$STRIP"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2712 $as_echo "$STRIP" >&6; }
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2720 if test -z "$ac_cv_prog_STRIP"; then
2722 # Extract the first word of "strip", so it can be a program name with args.
2723 set dummy strip
; ac_word
=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2729 if test -n "$ac_ct_STRIP"; then
2730 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir
=.
2737 for ac_exec_ext
in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_STRIP
="strip"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2750 if test -n "$ac_ct_STRIP"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2752 $as_echo "$ac_ct_STRIP" >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2758 if test "x$ac_ct_STRIP" = x
; then
2761 case $cross_compiling:$ac_tool_warned in
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765 ac_tool_warned
=yes ;;
2770 STRIP
="$ac_cv_prog_STRIP"
2774 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2777 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2778 if test -z "$MKDIR_P"; then
2779 if test "${ac_cv_path_mkdir+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2783 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2786 test -z "$as_dir" && as_dir
=.
2787 for ac_prog
in mkdir gmkdir
; do
2788 for ac_exec_ext
in '' $ac_executable_extensions; do
2789 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2790 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2791 'mkdir (GNU coreutils) '* | \
2792 'mkdir (coreutils) '* | \
2793 'mkdir (fileutils) '4.1*)
2794 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2804 test -d .
/--version && rmdir .
/--version
2805 if test "${ac_cv_path_mkdir+set}" = set; then
2806 MKDIR_P
="$ac_cv_path_mkdir -p"
2808 # As a last resort, use the slow shell script. Don't cache a
2809 # value for MKDIR_P within a source directory, because that will
2810 # break other packages using the cache if that directory is
2811 # removed, or if the value is a relative name.
2812 MKDIR_P
="$ac_install_sh -d"
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2816 $as_echo "$MKDIR_P" >&6; }
2820 [\\/$
]* | ?
:[\\/]*) ;;
2821 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2824 for ac_prog
in gawk mawk nawk
awk
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827 set dummy
$ac_prog; ac_word
=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if test "${ac_cv_prog_AWK+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2833 if test -n "$AWK"; then
2834 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir
=.
2841 for ac_exec_ext
in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_AWK
="$ac_prog"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$AWK"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2856 $as_echo "$AWK" >&6; }
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2863 test -n "$AWK" && break
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2869 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2870 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2871 $as_echo_n "(cached) " >&6
2873 cat >conftest.
make <<\_ACEOF
2876 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2879 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2881 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2883 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2887 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 SET_MAKE
="MAKE=${MAKE-make}"
2897 rm -rf .tst
2>/dev
/null
2898 mkdir .tst
2>/dev
/null
2899 if test -d .tst
; then
2904 rmdir .tst
2>/dev
/null
2906 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2907 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2908 # is not polluted with repeated "-I."
2909 am__isrc
=' -I$(srcdir)'
2910 # test to see if srcdir already configured
2911 if test -f $srcdir/config.status
; then
2912 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2916 # test whether we have cygpath
2917 if test -z "$CYGPATH_W"; then
2918 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2919 CYGPATH_W
='cygpath -w'
2926 # Define the identity of the package.
2931 cat >>confdefs.h
<<_ACEOF
2932 #define PACKAGE "$PACKAGE"
2936 cat >>confdefs.h
<<_ACEOF
2937 #define VERSION "$VERSION"
2940 # Some tools Automake needs.
2942 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2945 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2948 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2951 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2954 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2956 # We need awk for the "check" target. The system "awk" is bad on
2958 # Always define AMTAR for backward compatibility.
2960 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2962 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2968 ac_config_headers
="$ac_config_headers config.h"
2971 ac_cpp
='$CPP $CPPFLAGS'
2972 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2976 DEPDIR
="${am__leading_dot}deps"
2978 ac_config_commands
="$ac_config_commands depfiles"
2981 am_make
=${MAKE-make}
2982 cat > confinc
<< 'END'
2984 @
echo this is the am__doit target
2987 # If we don't find an include directive, just comment out the code.
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2989 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2993 # First try GNU make style include.
2994 echo "include confinc" > confmf
2995 # Ignore all kinds of additional output from `make'.
2996 case `$am_make -s -f confmf 2> /dev/null` in #(
2997 *the\ am__doit\ target
*)
3003 # Now try BSD make style include.
3004 if test "$am__include" = "#"; then
3005 echo '.include "confinc"' > confmf
3006 case `$am_make -s -f confmf 2> /dev/null` in #(
3007 *the\ am__doit\ target
*)
3008 am__include
=.include
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3017 $as_echo "$_am_result" >&6; }
3018 rm -f confinc confmf
3020 # Check whether --enable-dependency-tracking was given.
3021 if test "${enable_dependency_tracking+set}" = set; then :
3022 enableval
=$enable_dependency_tracking;
3025 if test "x$enable_dependency_tracking" != xno
; then
3026 am_depcomp
="$ac_aux_dir/depcomp"
3029 if test "x$enable_dependency_tracking" != xno; then
3039 ac_cpp
='$CPP $CPPFLAGS'
3040 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3045 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC
="$CC" # Let the user override the test.
3054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir
=.
3059 for ac_exec_ext
in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3082 if test -z "$ac_cv_prog_CC"; then
3084 # Extract the first word of "gcc", so it can be a program name with args.
3085 set dummy gcc
; ac_word
=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir
=.
3099 for ac_exec_ext
in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 ac_cv_prog_ac_ct_CC
="gcc"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3120 if test "x$ac_ct_CC" = x
; then
3123 case $cross_compiling:$ac_tool_warned in
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127 ac_tool_warned
=yes ;;
3135 if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3138 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC
="$CC" # Let the user override the test.
3147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir
=.
3152 for ac_exec_ext
in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3176 if test -z "$CC"; then
3177 # Extract the first word of "cc", so it can be a program name with args.
3178 set dummy cc
; ac_word
=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC
="$CC" # Let the user override the test.
3188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir
=.
3193 for ac_exec_ext
in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3196 ac_prog_rejected
=yes
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 if test $ac_prog_rejected = yes; then
3208 # We found a bogon in the path, so make sure we never use it.
3209 set dummy
$ac_cv_prog_CC
3211 if test $# != 0; then
3212 # We chose a different compiler from the bogus one.
3213 # However, it has the same basename, so the bogon will be chosen
3214 # first if we set CC to just the basename; use the full file name.
3216 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 for ac_prog
in cl.exe
3236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3237 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then :
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC
="$CC" # Let the user override the test.
3246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir
=.
3251 for ac_exec_ext
in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3273 test -n "$CC" && break
3276 if test -z "$CC"; then
3278 for ac_prog
in cl.exe
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy
$ac_prog; ac_word
=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3287 if test -n "$ac_ct_CC"; then
3288 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir
=.
3295 for ac_exec_ext
in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_ac_ct_CC
="$ac_prog"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3308 if test -n "$ac_ct_CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3310 $as_echo "$ac_ct_CC" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3317 test -n "$ac_ct_CC" && break
3320 if test "x$ac_ct_CC" = x
; then
3323 case $cross_compiling:$ac_tool_warned in
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3327 ac_tool_warned
=yes ;;
3336 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error
"no acceptable C compiler found in \$PATH
3339 See \`config.log' for more details." "$LINENO" 5; }
3341 # Provide some information about the compiler.
3342 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3345 for ac_option
in --version -v -V -qversion; do
3346 { { ac_try
="$ac_compiler $ac_option >&5"
3348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3355 if test -s conftest.err; then
3357 ... rest of stderr output deleted ...
3358 10q' conftest.err >conftest.er1
3359 cat conftest.er1 >&5
3361 rm -f conftest.er1 conftest.err
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3377 ac_clean_files_save=$ac_clean_files
3378 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3379 # Try to create an executable without -o first, disregard a.out.
3380 # It will help us diagnose broken compilers, and finding out an intuition
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3383 $as_echo_n "checking whether the C compiler works... " >&6; }
3384 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3386 # The possible output files:
3387 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3390 for ac_file in $ac_files
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3394 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399 if { { ac_try="$ac_link_default"
3401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3402 *) ac_try_echo
=$ac_try;;
3404 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_link_default") 2>&5
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; then :
3410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3412 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3413 # so that the user can short-circuit this test for compilers unknown to
3415 for ac_file
in $ac_files ''
3417 test -f "$ac_file" ||
continue
3419 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3422 # We found the default executable, but exeext='' is most
3426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3428 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 # We set ac_cv_exeext here because the later test for it is not
3431 # safe: cross compilers may not add the suffix if given an `-o'
3432 # argument, so we may need to know it at that point already.
3433 # Even if this section looks crufty: it has the advantage of
3440 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3445 if test -z "$ac_file"; then :
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.
$ac_ext >&5
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 { as_fn_set_status
77
3454 as_fn_error
"C compiler cannot create executables
3455 See \`config.log' for more details." "$LINENO" 5; }; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3458 $as_echo "yes" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3461 $as_echo_n "checking for C compiler default output file name... " >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3463 $as_echo "$ac_file" >&6; }
3464 ac_exeext
=$ac_cv_exeext
3466 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3467 ac_clean_files
=$ac_clean_files_save
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3469 $as_echo_n "checking for suffix of executables... " >&6; }
3470 if { { ac_try
="$ac_link"
3472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_link") 2>&5
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; then :
3481 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3482 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3483 # work properly (i.e., refer to `conftest.exe'), while it won't with
3485 for ac_file
in conftest.exe conftest conftest.
*; do
3486 test -f "$ac_file" ||
continue
3488 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3489 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3498 See \`config.log' for more details." "$LINENO" 5; }
3500 rm -f conftest conftest
$ac_cv_exeext
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3502 $as_echo "$ac_cv_exeext" >&6; }
3504 rm -f conftest.
$ac_ext
3505 EXEEXT
=$ac_cv_exeext
3507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3513 FILE *f = fopen ("conftest.out", "w");
3514 return ferror (f) || fclose (f) != 0;
3520 ac_clean_files
="$ac_clean_files conftest.out"
3521 # Check that the compiler produces executables we can run. If not, either
3522 # the compiler is broken, or we cross compile.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3524 $as_echo_n "checking whether we are cross compiling... " >&6; }
3525 if test "$cross_compiling" != yes; then
3526 { { ac_try
="$ac_link"
3528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_link") 2>&5
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }
3537 if { ac_try='./conftest$ac_cv_exeext'
3538 { { case "(($ac_try" in
3539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3540 *) ac_try_echo
=$ac_try;;
3542 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_try") 2>&5
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }; }; then
3550 if test "$cross_compiling" = maybe
; then
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error
"cannot run C compiled programs.
3556 If you meant to cross compile, use \`--host'.
3557 See \`config.log' for more details." "$LINENO" 5; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3562 $as_echo "$cross_compiling" >&6; }
3564 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3565 ac_clean_files
=$ac_clean_files_save
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3567 $as_echo_n "checking for suffix of object files... " >&6; }
3568 if test "${ac_cv_objext+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3582 rm -f conftest.o conftest.obj
3583 if { { ac_try
="$ac_compile"
3585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_compile") 2>&5
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 for ac_file in conftest.o conftest.obj conftest.*; do
3595 test -f "$ac_file" || continue;
3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3603 $as_echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error "cannot compute suffix of object files
: cannot compile
3609 See \
`config.log' for more details." "$LINENO" 5; }
3611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3614 $as_echo "$ac_cv_objext" >&6; }
3615 OBJEXT=$ac_cv_objext
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3618 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3619 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3636 if ac_fn_c_try_compile "$LINENO"; then :
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3647 if test $ac_compiler_gnu = yes; then
3652 ac_test_CFLAGS=${CFLAGS+set}
3653 ac_save_CFLAGS=$CFLAGS
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3656 if test "${ac_cv_prog_cc_g+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3659 ac_save_c_werror_flag=$ac_c_werror_flag
3660 ac_c_werror_flag=yes
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3674 if ac_fn_c_try_compile "$LINENO"; then :
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3689 if ac_fn_c_try_compile "$LINENO"; then :
3692 ac_c_werror_flag=$ac_save_c_werror_flag
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3705 if ac_fn_c_try_compile "$LINENO"; then :
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_c_werror_flag=$ac_save_c_werror_flag
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3716 $as_echo "$ac_cv_prog_cc_g" >&6; }
3717 if test "$ac_test_CFLAGS" = set; then
3718 CFLAGS=$ac_save_CFLAGS
3719 elif test $ac_cv_prog_cc_g = yes; then
3720 if test "$GCC" = yes; then
3726 if test "$GCC" = yes; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3733 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3734 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3737 ac_cv_prog_cc_c89=no
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3743 #include <sys/types.h>
3744 #include <sys/stat.h>
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3759 s = g (p, va_arg (v,int));
3764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3765 function prototypes and stuff, but not '\xHH' hex character constants.
3766 These don't provoke an error unfortunately, instead are silently treated
3767 as 'x'. The following induces an error, until -std is added to get
3768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3769 array size at least. It's necessary to write '\x00'==0 to get something
3770 that's true only with -std. */
3771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3774 inside strings and character constants. */
3776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 CC="$ac_save_CC $ac_arg"
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797 ac_cv_prog_cc_c89=$ac_arg
3799 rm -f core conftest.err conftest.$ac_objext
3800 test "x$ac_cv_prog_cc_c89" != "xno" && break
3802 rm -f conftest.$ac_ext
3807 case "x$ac_cv_prog_cc_c89" in
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3810 $as_echo "none needed" >&6; } ;;
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3813 $as_echo "unsupported" >&6; } ;;
3815 CC="$CC $ac_cv_prog_cc_c89"
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3819 if test "x$ac_cv_prog_cc_c89" != xno; then :
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829 depcc="$CC" am_compiler_list=
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3832 $as_echo_n "checking dependency style of $depcc... " >&6; }
3833 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3837 # We make a subdir and do the tests there. Otherwise we can end up
3838 # making bogus files that we don't know about and never remove. For
3839 # instance it was reported that on HP-UX the gcc test will end up
3840 # making a dummy file named `D
' -- because `-MD' means
`put the output
3843 # Copy depcomp to subdir because otherwise we won't find it if we're
3844 # using a relative directory.
3845 cp "$am_depcomp" conftest.dir
3847 # We will build objects and dependencies in a subdirectory because
3848 # it helps to detect inapplicable dependency modes. For instance
3849 # both Tru64's cc and ICC support -MD to output dependencies as a
3850 # side effect of compilation, but ICC will put the dependencies in
3851 # the current directory while Tru64 will put them in the object
3855 am_cv_CC_dependencies_compiler_type=none
3856 if test "$am_compiler_list" = ""; then
3857 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
3860 case " $depcc " in #(
3861 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3864 for depmode in $am_compiler_list; do
3865 # Setup a source with many dependencies, because some compilers
3866 # like to wrap large dependency lists on column 80 (with \), and
3867 # we should not choose a depcomp mode which is confused by this.
3869 # We need to recreate these files for each test, as the compiler may
3870 # overwrite some of them when testing with obscure command lines.
3871 # This happens at least with the AIX C compiler.
3873 for i in 1 2 3 4 5 6; do
3874 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3875 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
3876 # Solaris 8's
{/usr
,}/bin
/sh.
3877 touch sub
/conftst
$i.h
3879 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3882 # mode. It turns out that the SunPro C++ compiler does not properly
3883 # handle `-M -o', and we need to detect this. Also, some Intel
3884 # versions had trouble with output in subdirs
3885 am__obj
=sub
/conftest.
${OBJEXT-o}
3886 am__minus_obj
="-o $am__obj"
3889 # This depmode causes a compiler race in universal mode.
3890 test "$am__universal" = false ||
continue
3893 # after this tag, mechanisms are not by side-effect, so they'll
3894 # only be used when explicitly requested
3895 if test "x$enable_dependency_tracking" = xyes
; then
3901 msvisualcpp | msvcmsys
)
3902 # This compiler won't grok `-c -o', but also, the minuso test has
3903 # not run yet. These depmodes are late enough in the game, and
3904 # so weak that their functioning should not be impacted.
3905 am__obj
=conftest.
${OBJEXT-o}
3910 if depmode
=$depmode \
3911 source=sub
/conftest.c object
=$am__obj \
3912 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3913 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
3914 >/dev
/null
2>conftest.err
&&
3915 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3916 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3917 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
3918 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3919 # icc doesn't choke on unknown options, it will just issue warnings
3920 # or remarks (even with -Werror). So we grep stderr for any message
3921 # that says an option was ignored or not supported.
3922 # When given -MP, icc 7.0 and 7.1 complain thusly:
3923 # icc: Command line warning: ignoring option '-M'; no argument required
3924 # The diagnosis changed in icc 8.0:
3925 # icc: Command line remark: option '-MP' not supported
3926 if (grep 'ignoring option' conftest.err ||
3927 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3928 am_cv_CC_dependencies_compiler_type
=$depmode
3937 am_cv_CC_dependencies_compiler_type
=none
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3942 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3943 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3946 test "x$enable_dependency_tracking" != xno \
3947 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3949 am__fastdepCC_FALSE
='#'
3951 am__fastdepCC_TRUE
='#'
3952 am__fastdepCC_FALSE
=
3958 ac_cpp
='$CPP $CPPFLAGS'
3959 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3963 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3964 # On Suns, sometimes $CPP names a directory.
3965 if test -n "$CPP" && test -d "$CPP"; then
3968 if test -z "$CPP"; then
3969 if test "${ac_cv_prog_CPP+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3972 # Double quotes because CPP needs to be expanded
3973 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3976 for ac_c_preproc_warn_flag
in '' yes
3978 # Use a header file that comes with gcc, so configuring glibc
3979 # with a fresh cross-compiler works.
3980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3981 # <limits.h> exists even on freestanding compilers.
3982 # On the NeXT, cc -E runs the code through the compiler's parser,
3983 # not just through cpp. "Syntax error" is here to catch this case.
3984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3987 # include <limits.h>
3989 # include <assert.h>
3993 if ac_fn_c_try_cpp
"$LINENO"; then :
3996 # Broken: fails on valid input.
3999 rm -f conftest.err conftest.
$ac_ext
4001 # OK, works on sane cases. Now check whether nonexistent headers
4002 # can be detected and how.
4003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4007 if ac_fn_c_try_cpp
"$LINENO"; then :
4008 # Broken: success on invalid input.
4011 # Passes both tests.
4015 rm -f conftest.err conftest.
$ac_ext
4018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4019 rm -f conftest.err conftest.
$ac_ext
4020 if $ac_preproc_ok; then :
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4033 $as_echo "$CPP" >&6; }
4035 for ac_c_preproc_warn_flag
in '' yes
4037 # Use a header file that comes with gcc, so configuring glibc
4038 # with a fresh cross-compiler works.
4039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4040 # <limits.h> exists even on freestanding compilers.
4041 # On the NeXT, cc -E runs the code through the compiler's parser,
4042 # not just through cpp. "Syntax error" is here to catch this case.
4043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4046 # include <limits.h>
4048 # include <assert.h>
4052 if ac_fn_c_try_cpp
"$LINENO"; then :
4055 # Broken: fails on valid input.
4058 rm -f conftest.err conftest.
$ac_ext
4060 # OK, works on sane cases. Now check whether nonexistent headers
4061 # can be detected and how.
4062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064 #include <ac_nonexistent.h>
4066 if ac_fn_c_try_cpp
"$LINENO"; then :
4067 # Broken: success on invalid input.
4070 # Passes both tests.
4074 rm -f conftest.err conftest.
$ac_ext
4077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4078 rm -f conftest.err conftest.
$ac_ext
4079 if $ac_preproc_ok; then :
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4085 See \`config.log' for more details." "$LINENO" 5; }
4089 ac_cpp
='$CPP $CPPFLAGS'
4090 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4097 if test "${ac_cv_path_GREP+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4100 if test -z "$GREP"; then
4101 ac_path_GREP_found
=false
4102 # Loop through the user's path and test for each of PROGNAME-LIST
4103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4104 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4107 test -z "$as_dir" && as_dir
=.
4108 for ac_prog
in grep ggrep
; do
4109 for ac_exec_ext
in '' $ac_executable_extensions; do
4110 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4112 # Check for GNU ac_path_GREP and select it if it is found.
4113 # Check for GNU $ac_path_GREP
4114 case `"$ac_path_GREP" --version 2>&1` in
4116 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4119 $as_echo_n 0123456789 >"conftest.in"
4122 cat "conftest.in" "conftest.in" >"conftest.tmp"
4123 mv "conftest.tmp" "conftest.in"
4124 cp "conftest.in" "conftest.nl"
4125 $as_echo 'GREP' >> "conftest.nl"
4126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4127 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4128 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4130 # Best one so far, save it but keep looking for a better one
4131 ac_cv_path_GREP
="$ac_path_GREP"
4132 ac_path_GREP_max
=$ac_count
4134 # 10*(2^10) chars as input seems more than enough
4135 test $ac_count -gt 10 && break
4137 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4140 $ac_path_GREP_found && break 3
4145 if test -z "$ac_cv_path_GREP"; then
4146 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4149 ac_cv_path_GREP
=$GREP
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4154 $as_echo "$ac_cv_path_GREP" >&6; }
4155 GREP
="$ac_cv_path_GREP"
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4159 $as_echo_n "checking for egrep... " >&6; }
4160 if test "${ac_cv_path_EGREP+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4163 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4164 then ac_cv_path_EGREP
="$GREP -E"
4166 if test -z "$EGREP"; then
4167 ac_path_EGREP_found
=false
4168 # Loop through the user's path and test for each of PROGNAME-LIST
4169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4170 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4173 test -z "$as_dir" && as_dir
=.
4174 for ac_prog
in egrep; do
4175 for ac_exec_ext
in '' $ac_executable_extensions; do
4176 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4178 # Check for GNU ac_path_EGREP and select it if it is found.
4179 # Check for GNU $ac_path_EGREP
4180 case `"$ac_path_EGREP" --version 2>&1` in
4182 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4185 $as_echo_n 0123456789 >"conftest.in"
4188 cat "conftest.in" "conftest.in" >"conftest.tmp"
4189 mv "conftest.tmp" "conftest.in"
4190 cp "conftest.in" "conftest.nl"
4191 $as_echo 'EGREP' >> "conftest.nl"
4192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4193 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4194 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4196 # Best one so far, save it but keep looking for a better one
4197 ac_cv_path_EGREP
="$ac_path_EGREP"
4198 ac_path_EGREP_max
=$ac_count
4200 # 10*(2^10) chars as input seems more than enough
4201 test $ac_count -gt 10 && break
4203 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4206 $ac_path_EGREP_found && break 3
4211 if test -z "$ac_cv_path_EGREP"; then
4212 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4215 ac_cv_path_EGREP
=$EGREP
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4221 $as_echo "$ac_cv_path_EGREP" >&6; }
4222 EGREP
="$ac_cv_path_EGREP"
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4226 $as_echo_n "checking for ANSI C header files... " >&6; }
4227 if test "${ac_cv_header_stdc+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4245 if ac_fn_c_try_compile
"$LINENO"; then :
4246 ac_cv_header_stdc
=yes
4248 ac_cv_header_stdc
=no
4250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4252 if test $ac_cv_header_stdc = yes; then
4253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260 $EGREP "memchr" >/dev
/null
2>&1; then :
4263 ac_cv_header_stdc
=no
4269 if test $ac_cv_header_stdc = yes; then
4270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277 $EGREP "free" >/dev
/null
2>&1; then :
4280 ac_cv_header_stdc
=no
4286 if test $ac_cv_header_stdc = yes; then
4287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4288 if test "$cross_compiling" = yes; then :
4291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4295 #if ((' ' & 0x0FF) == 0x020)
4296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4299 # define ISLOWER(c) \
4300 (('a' <= (c) && (c) <= 'i') \
4301 || ('j' <= (c) && (c) <= 'r') \
4302 || ('s' <= (c) && (c) <= 'z'))
4303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4311 for (i = 0; i < 256; i++)
4312 if (XOR (islower (i), ISLOWER (i))
4313 || toupper (i) != TOUPPER (i))
4318 if ac_fn_c_try_run
"$LINENO"; then :
4321 ac_cv_header_stdc
=no
4323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4330 $as_echo "$ac_cv_header_stdc" >&6; }
4331 if test $ac_cv_header_stdc = yes; then
4333 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4337 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4338 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4339 inttypes.h stdint.h unistd.h
4341 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4342 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4344 eval as_val
=\$
$as_ac_Header
4345 if test "x$as_val" = x
""yes; then :
4346 cat >>confdefs.h
<<_ACEOF
4347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4356 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4357 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4364 if test "$MINIX" = yes; then
4366 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4369 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4372 $as_echo "#define _MINIX 1" >>confdefs.h
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4378 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4379 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
4382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4385 # define __EXTENSIONS__ 1
4386 $ac_includes_default
4395 if ac_fn_c_try_compile
"$LINENO"; then :
4396 ac_cv_safe_to_define___extensions__
=yes
4398 ac_cv_safe_to_define___extensions__
=no
4400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4403 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4404 test $ac_cv_safe_to_define___extensions__ = yes &&
4405 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4407 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4409 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4411 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4413 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4419 # We check this before AC_PROG_CC fills blank CFLAGS with "-g -O2".
4420 if test "x$CFLAGS" = "x"; then
4426 # Checks for programs.
4428 ac_cpp
='$CPP $CPPFLAGS'
4429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4432 if test -n "$ac_tool_prefix"; then
4433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4434 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_prog_CC+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4440 if test -n "$CC"; then
4441 ac_cv_prog_CC
="$CC" # Let the user override the test.
4443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4447 test -z "$as_dir" && as_dir
=.
4448 for ac_exec_ext
in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 if test -n "$CC"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4463 $as_echo "$CC" >&6; }
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4471 if test -z "$ac_cv_prog_CC"; then
4473 # Extract the first word of "gcc", so it can be a program name with args.
4474 set dummy gcc
; ac_word
=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4480 if test -n "$ac_ct_CC"; then
4481 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4487 test -z "$as_dir" && as_dir
=.
4488 for ac_exec_ext
in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_prog_ac_ct_CC
="gcc"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4501 if test -n "$ac_ct_CC"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4503 $as_echo "$ac_ct_CC" >&6; }
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4509 if test "x$ac_ct_CC" = x
; then
4512 case $cross_compiling:$ac_tool_warned in
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516 ac_tool_warned
=yes ;;
4524 if test -z "$CC"; then
4525 if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4527 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CC+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4533 if test -n "$CC"; then
4534 ac_cv_prog_CC
="$CC" # Let the user override the test.
4536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir
=.
4541 for ac_exec_ext
in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 if test -n "$CC"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4556 $as_echo "$CC" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4565 if test -z "$CC"; then
4566 # Extract the first word of "cc", so it can be a program name with args.
4567 set dummy cc
; ac_word
=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if test "${ac_cv_prog_CC+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4573 if test -n "$CC"; then
4574 ac_cv_prog_CC
="$CC" # Let the user override the test.
4577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir
=.
4582 for ac_exec_ext
in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4585 ac_prog_rejected
=yes
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 if test $ac_prog_rejected = yes; then
4597 # We found a bogon in the path, so make sure we never use it.
4598 set dummy
$ac_cv_prog_CC
4600 if test $# != 0; then
4601 # We chose a different compiler from the bogus one.
4602 # However, it has the same basename, so the bogon will be chosen
4603 # first if we set CC to just the basename; use the full file name.
4605 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4611 if test -n "$CC"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4613 $as_echo "$CC" >&6; }
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4621 if test -z "$CC"; then
4622 if test -n "$ac_tool_prefix"; then
4623 for ac_prog
in cl.exe
4625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4626 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if test "${ac_cv_prog_CC+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC
="$CC" # Let the user override the test.
4635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir
=.
4640 for ac_exec_ext
in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 if test -n "$CC"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4655 $as_echo "$CC" >&6; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4662 test -n "$CC" && break
4665 if test -z "$CC"; then
4667 for ac_prog
in cl.exe
4669 # Extract the first word of "$ac_prog", so it can be a program name with args.
4670 set dummy
$ac_prog; ac_word
=$2
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4676 if test -n "$ac_ct_CC"; then
4677 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4683 test -z "$as_dir" && as_dir
=.
4684 for ac_exec_ext
in '' $ac_executable_extensions; do
4685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4686 ac_cv_prog_ac_ct_CC
="$ac_prog"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4697 if test -n "$ac_ct_CC"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4699 $as_echo "$ac_ct_CC" >&6; }
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4706 test -n "$ac_ct_CC" && break
4709 if test "x$ac_ct_CC" = x
; then
4712 case $cross_compiling:$ac_tool_warned in
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716 ac_tool_warned
=yes ;;
4725 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4727 as_fn_error
"no acceptable C compiler found in \$PATH
4728 See \`config.log' for more details." "$LINENO" 5; }
4730 # Provide some information about the compiler.
4731 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4734 for ac_option
in --version -v -V -qversion; do
4735 { { ac_try
="$ac_compiler $ac_option >&5"
4737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4741 $as_echo "$ac_try_echo"; } >&5
4742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4744 if test -s conftest.err; then
4746 ... rest of stderr output deleted ...
4747 10q' conftest.err >conftest.er1
4748 cat conftest.er1 >&5
4750 rm -f conftest.er1 conftest.err
4751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4752 test $ac_status = 0; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4756 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4757 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4774 if ac_fn_c_try_compile "$LINENO"; then :
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4784 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4785 if test $ac_compiler_gnu = yes; then
4790 ac_test_CFLAGS=${CFLAGS+set}
4791 ac_save_CFLAGS=$CFLAGS
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4793 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4794 if test "${ac_cv_prog_cc_g+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4797 ac_save_c_werror_flag=$ac_c_werror_flag
4798 ac_c_werror_flag=yes
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4812 if ac_fn_c_try_compile "$LINENO"; then :
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4827 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_c_werror_flag=$ac_save_c_werror_flag
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4843 if ac_fn_c_try_compile "$LINENO"; then :
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 ac_c_werror_flag=$ac_save_c_werror_flag
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4854 $as_echo "$ac_cv_prog_cc_g" >&6; }
4855 if test "$ac_test_CFLAGS" = set; then
4856 CFLAGS=$ac_save_CFLAGS
4857 elif test $ac_cv_prog_cc_g = yes; then
4858 if test "$GCC" = yes; then
4864 if test "$GCC" = yes; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4871 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4872 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4875 ac_cv_prog_cc_c89=no
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4881 #include <sys/types.h>
4882 #include <sys/stat.h>
4883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4884 struct buf { int x; };
4885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4886 static char *e (p, i)
4892 static char *f (char * (*g) (char **, int), char **p, ...)
4897 s = g (p, va_arg (v,int));
4902 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4903 function prototypes and stuff, but not '\xHH' hex character constants.
4904 These don't provoke an error unfortunately, instead are silently treated
4905 as 'x'. The following induces an error, until -std is added to get
4906 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4907 array size at least. It's necessary to write '\x00'==0 to get something
4908 that's true only with -std. */
4909 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4911 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4912 inside strings and character constants. */
4914 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4916 int test (int i, double x);
4917 struct s1 {int (*f) (int a);};
4918 struct s2 {int (*f) (double a);};
4919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4925 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4930 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4931 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4933 CC="$ac_save_CC $ac_arg"
4934 if ac_fn_c_try_compile "$LINENO"; then :
4935 ac_cv_prog_cc_c89=$ac_arg
4937 rm -f core conftest.err conftest.$ac_objext
4938 test "x$ac_cv_prog_cc_c89" != "xno" && break
4940 rm -f conftest.$ac_ext
4945 case "x$ac_cv_prog_cc_c89" in
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4948 $as_echo "none needed" >&6; } ;;
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4951 $as_echo "unsupported" >&6; } ;;
4953 CC="$CC $ac_cv_prog_cc_c89"
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4955 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4957 if test "x$ac_cv_prog_cc_c89" != xno; then :
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 depcc="$CC" am_compiler_list=
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4970 $as_echo_n "checking dependency style of $depcc... " >&6; }
4971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4975 # We make a subdir and do the tests there. Otherwise we can end up
4976 # making bogus files that we don't know about and never remove. For
4977 # instance it was reported that on HP-UX the gcc test will end up
4978 # making a dummy file named `D
' -- because `-MD' means
`put the output
4981 # Copy depcomp to subdir because otherwise we won't find it if we're
4982 # using a relative directory.
4983 cp "$am_depcomp" conftest.dir
4985 # We will build objects and dependencies in a subdirectory because
4986 # it helps to detect inapplicable dependency modes. For instance
4987 # both Tru64's cc and ICC support -MD to output dependencies as a
4988 # side effect of compilation, but ICC will put the dependencies in
4989 # the current directory while Tru64 will put them in the object
4993 am_cv_CC_dependencies_compiler_type=none
4994 if test "$am_compiler_list" = ""; then
4995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4998 case " $depcc " in #(
4999 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5002 for depmode in $am_compiler_list; do
5003 # Setup a source with many dependencies, because some compilers
5004 # like to wrap large dependency lists on column 80 (with \), and
5005 # we should not choose a depcomp mode which is confused by this.
5007 # We need to recreate these files for each test, as the compiler may
5008 # overwrite some of them when testing with obscure command lines.
5009 # This happens at least with the AIX C compiler.
5011 for i in 1 2 3 4 5 6; do
5012 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5013 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5014 # Solaris 8's
{/usr
,}/bin
/sh.
5015 touch sub
/conftst
$i.h
5017 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5019 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5020 # mode. It turns out that the SunPro C++ compiler does not properly
5021 # handle `-M -o', and we need to detect this. Also, some Intel
5022 # versions had trouble with output in subdirs
5023 am__obj
=sub
/conftest.
${OBJEXT-o}
5024 am__minus_obj
="-o $am__obj"
5027 # This depmode causes a compiler race in universal mode.
5028 test "$am__universal" = false ||
continue
5031 # after this tag, mechanisms are not by side-effect, so they'll
5032 # only be used when explicitly requested
5033 if test "x$enable_dependency_tracking" = xyes
; then
5039 msvisualcpp | msvcmsys
)
5040 # This compiler won't grok `-c -o', but also, the minuso test has
5041 # not run yet. These depmodes are late enough in the game, and
5042 # so weak that their functioning should not be impacted.
5043 am__obj
=conftest.
${OBJEXT-o}
5048 if depmode
=$depmode \
5049 source=sub
/conftest.c object
=$am__obj \
5050 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5051 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5052 >/dev
/null
2>conftest.err
&&
5053 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5054 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5055 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5056 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5057 # icc doesn't choke on unknown options, it will just issue warnings
5058 # or remarks (even with -Werror). So we grep stderr for any message
5059 # that says an option was ignored or not supported.
5060 # When given -MP, icc 7.0 and 7.1 complain thusly:
5061 # icc: Command line warning: ignoring option '-M'; no argument required
5062 # The diagnosis changed in icc 8.0:
5063 # icc: Command line remark: option '-MP' not supported
5064 if (grep 'ignoring option' conftest.err ||
5065 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5066 am_cv_CC_dependencies_compiler_type
=$depmode
5075 am_cv_CC_dependencies_compiler_type
=none
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5080 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5081 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5084 test "x$enable_dependency_tracking" != xno \
5085 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5087 am__fastdepCC_FALSE
='#'
5089 am__fastdepCC_TRUE
='#'
5090 am__fastdepCC_FALSE
=
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5096 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5102 if test -n "$RANLIB"; then
5103 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir
=.
5110 for ac_exec_ext
in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 RANLIB
=$ac_cv_prog_RANLIB
5123 if test -n "$RANLIB"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5125 $as_echo "$RANLIB" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5133 if test -z "$ac_cv_prog_RANLIB"; then
5134 ac_ct_RANLIB
=$RANLIB
5135 # Extract the first word of "ranlib", so it can be a program name with args.
5136 set dummy ranlib
; ac_word
=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5142 if test -n "$ac_ct_RANLIB"; then
5143 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir
=.
5150 for ac_exec_ext
in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5163 if test -n "$ac_ct_RANLIB"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5165 $as_echo "$ac_ct_RANLIB" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5171 if test "x$ac_ct_RANLIB" = x
; then
5174 case $cross_compiling:$ac_tool_warned in
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned
=yes ;;
5180 RANLIB
=$ac_ct_RANLIB
5183 RANLIB
="$ac_cv_prog_RANLIB"
5189 if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
5190 CFLAGS
="-Wall -O2 -fomit-frame-pointer -ffast-math"
5192 CFLAGS
="$CFLAGS -I${srcdir}/../lib"
5194 # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
5195 # Check whether --enable-largefile was given.
5196 if test "${enable_largefile+set}" = set; then :
5197 enableval
=$enable_largefile;
5200 if test "$enable_largefile" != no
; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5203 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5204 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5207 ac_cv_sys_largefile_CC
=no
5208 if test "$GCC" != yes; then
5211 # IRIX 6.2 and later do not support large files by default,
5212 # so use the C compiler's -n32 option if that helps.
5213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #include <sys/types.h>
5216 /* Check that off_t can represent 2**63 - 1 correctly.
5217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5218 since some C++ compilers masquerading as C compilers
5219 incorrectly reject 9223372036854775807. */
5220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5222 && LARGE_OFF_T % 2147483647 == 1)
5232 if ac_fn_c_try_compile
"$LINENO"; then :
5235 rm -f core conftest.err conftest.
$ac_objext
5237 if ac_fn_c_try_compile
"$LINENO"; then :
5238 ac_cv_sys_largefile_CC
=' -n32'; break
5240 rm -f core conftest.err conftest.
$ac_objext
5244 rm -f conftest.
$ac_ext
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5248 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5249 if test "$ac_cv_sys_largefile_CC" != no
; then
5250 CC
=$CC$ac_cv_sys_largefile_CC
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5254 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5255 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 #include <sys/types.h>
5262 /* Check that off_t can represent 2**63 - 1 correctly.
5263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5264 since some C++ compilers masquerading as C compilers
5265 incorrectly reject 9223372036854775807. */
5266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5268 && LARGE_OFF_T % 2147483647 == 1)
5278 if ac_fn_c_try_compile
"$LINENO"; then :
5279 ac_cv_sys_file_offset_bits
=no
; break
5281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #define _FILE_OFFSET_BITS 64
5285 #include <sys/types.h>
5286 /* Check that off_t can represent 2**63 - 1 correctly.
5287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5288 since some C++ compilers masquerading as C compilers
5289 incorrectly reject 9223372036854775807. */
5290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5292 && LARGE_OFF_T % 2147483647 == 1)
5302 if ac_fn_c_try_compile
"$LINENO"; then :
5303 ac_cv_sys_file_offset_bits
=64; break
5305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5306 ac_cv_sys_file_offset_bits
=unknown
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5311 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5312 case $ac_cv_sys_file_offset_bits in #(
5315 cat >>confdefs.h
<<_ACEOF
5316 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5321 if test $ac_cv_sys_file_offset_bits = unknown
; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5323 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5324 if test "${ac_cv_sys_large_files+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 #include <sys/types.h>
5331 /* Check that off_t can represent 2**63 - 1 correctly.
5332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5333 since some C++ compilers masquerading as C compilers
5334 incorrectly reject 9223372036854775807. */
5335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5337 && LARGE_OFF_T % 2147483647 == 1)
5347 if ac_fn_c_try_compile
"$LINENO"; then :
5348 ac_cv_sys_large_files
=no
; break
5350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5353 #define _LARGE_FILES 1
5354 #include <sys/types.h>
5355 /* Check that off_t can represent 2**63 - 1 correctly.
5356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5357 since some C++ compilers masquerading as C compilers
5358 incorrectly reject 9223372036854775807. */
5359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5361 && LARGE_OFF_T % 2147483647 == 1)
5371 if ac_fn_c_try_compile
"$LINENO"; then :
5372 ac_cv_sys_large_files
=1; break
5374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5375 ac_cv_sys_large_files
=unknown
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5380 $as_echo "$ac_cv_sys_large_files" >&6; }
5381 case $ac_cv_sys_large_files in #(
5384 cat >>confdefs.h
<<_ACEOF
5385 #define _LARGE_FILES $ac_cv_sys_large_files
5397 OLD_CFLAGS
="$CFLAGS"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2" >&5
5400 $as_echo_n "checking for library containing atan2... " >&6; }
5401 if test "${ac_cv_search_atan2+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5404 ac_func_search_save_LIBS
=$LIBS
5405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5408 /* Override any GCC internal prototype to avoid an error.
5409 Use char because int might match the return type of a GCC
5410 builtin and then its argument prototype would still apply. */
5423 for ac_lib
in '' m mx
; do
5424 if test -z "$ac_lib"; then
5425 ac_res
="none required"
5428 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5430 if ac_fn_c_try_link
"$LINENO"; then :
5431 ac_cv_search_atan2
=$ac_res
5433 rm -f core conftest.err conftest.
$ac_objext \
5435 if test "${ac_cv_search_atan2+set}" = set; then :
5439 if test "${ac_cv_search_atan2+set}" = set; then :
5442 ac_cv_search_atan2
=no
5445 LIBS
=$ac_func_search_save_LIBS
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2" >&5
5448 $as_echo "$ac_cv_search_atan2" >&6; }
5449 ac_res
=$ac_cv_search_atan2
5450 if test "$ac_res" != no
; then :
5451 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5453 $as_echo "#define HAVE_ATAN2 1" >>confdefs.h
5457 CFLAGS
="$OLD_CFLAGS"
5460 # Checks for hypot (SVID 3, BSD 4.3).
5461 # The replacement is #defined in the source.
5462 OLD_CFLAGS
="$CFLAGS"
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypot" >&5
5465 $as_echo_n "checking for library containing hypot... " >&6; }
5466 if test "${ac_cv_search_hypot+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5469 ac_func_search_save_LIBS
=$LIBS
5470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5473 /* Override any GCC internal prototype to avoid an error.
5474 Use char because int might match the return type of a GCC
5475 builtin and then its argument prototype would still apply. */
5488 for ac_lib
in '' m mx
; do
5489 if test -z "$ac_lib"; then
5490 ac_res
="none required"
5493 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5495 if ac_fn_c_try_link
"$LINENO"; then :
5496 ac_cv_search_hypot
=$ac_res
5498 rm -f core conftest.err conftest.
$ac_objext \
5500 if test "${ac_cv_search_hypot+set}" = set; then :
5504 if test "${ac_cv_search_hypot+set}" = set; then :
5507 ac_cv_search_hypot
=no
5510 LIBS
=$ac_func_search_save_LIBS
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypot" >&5
5513 $as_echo "$ac_cv_search_hypot" >&6; }
5514 ac_res
=$ac_cv_search_hypot
5515 if test "$ac_res" != no
; then :
5516 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5518 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
5522 CFLAGS
="$OLD_CFLAGS"
5525 # Checks for math functions using floats.
5526 # Using floats instead of doubles makes gcc use SSE with -msse
5527 # The replacement are #defined in math_floats.h.
5528 OLD_CFLAGS
="$CFLAGS"
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrtf" >&5
5531 $as_echo_n "checking for library containing sqrtf... " >&6; }
5532 if test "${ac_cv_search_sqrtf+set}" = set; then :
5533 $as_echo_n "(cached) " >&6
5535 ac_func_search_save_LIBS
=$LIBS
5536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5539 /* Override any GCC internal prototype to avoid an error.
5540 Use char because int might match the return type of a GCC
5541 builtin and then its argument prototype would still apply. */
5554 for ac_lib
in '' m mx
; do
5555 if test -z "$ac_lib"; then
5556 ac_res
="none required"
5559 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5561 if ac_fn_c_try_link
"$LINENO"; then :
5562 ac_cv_search_sqrtf
=$ac_res
5564 rm -f core conftest.err conftest.
$ac_objext \
5566 if test "${ac_cv_search_sqrtf+set}" = set; then :
5570 if test "${ac_cv_search_sqrtf+set}" = set; then :
5573 ac_cv_search_sqrtf
=no
5576 LIBS
=$ac_func_search_save_LIBS
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrtf" >&5
5579 $as_echo "$ac_cv_search_sqrtf" >&6; }
5580 ac_res
=$ac_cv_search_sqrtf
5581 if test "$ac_res" != no
; then :
5582 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5584 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
5588 CFLAGS
="$OLD_CFLAGS"
5589 OLD_CFLAGS
="$CFLAGS"
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypotf" >&5
5592 $as_echo_n "checking for library containing hypotf... " >&6; }
5593 if test "${ac_cv_search_hypotf+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5596 ac_func_search_save_LIBS
=$LIBS
5597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5600 /* Override any GCC internal prototype to avoid an error.
5601 Use char because int might match the return type of a GCC
5602 builtin and then its argument prototype would still apply. */
5615 for ac_lib
in '' m mx
; do
5616 if test -z "$ac_lib"; then
5617 ac_res
="none required"
5620 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5622 if ac_fn_c_try_link
"$LINENO"; then :
5623 ac_cv_search_hypotf
=$ac_res
5625 rm -f core conftest.err conftest.
$ac_objext \
5627 if test "${ac_cv_search_hypotf+set}" = set; then :
5631 if test "${ac_cv_search_hypotf+set}" = set; then :
5634 ac_cv_search_hypotf
=no
5637 LIBS
=$ac_func_search_save_LIBS
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypotf" >&5
5640 $as_echo "$ac_cv_search_hypotf" >&6; }
5641 ac_res
=$ac_cv_search_hypotf
5642 if test "$ac_res" != no
; then :
5643 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5645 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
5649 CFLAGS
="$OLD_CFLAGS"
5650 OLD_CFLAGS
="$CFLAGS"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2f" >&5
5653 $as_echo_n "checking for library containing atan2f... " >&6; }
5654 if test "${ac_cv_search_atan2f+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5657 ac_func_search_save_LIBS
=$LIBS
5658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5661 /* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5676 for ac_lib
in '' m mx
; do
5677 if test -z "$ac_lib"; then
5678 ac_res
="none required"
5681 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5683 if ac_fn_c_try_link
"$LINENO"; then :
5684 ac_cv_search_atan2f
=$ac_res
5686 rm -f core conftest.err conftest.
$ac_objext \
5688 if test "${ac_cv_search_atan2f+set}" = set; then :
5692 if test "${ac_cv_search_atan2f+set}" = set; then :
5695 ac_cv_search_atan2f
=no
5698 LIBS
=$ac_func_search_save_LIBS
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2f" >&5
5701 $as_echo "$ac_cv_search_atan2f" >&6; }
5702 ac_res
=$ac_cv_search_atan2f
5703 if test "$ac_res" != no
; then :
5704 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5706 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
5710 CFLAGS
="$OLD_CFLAGS"
5711 OLD_CFLAGS
="$CFLAGS"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing powf" >&5
5714 $as_echo_n "checking for library containing powf... " >&6; }
5715 if test "${ac_cv_search_powf+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5718 ac_func_search_save_LIBS
=$LIBS
5719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5722 /* Override any GCC internal prototype to avoid an error.
5723 Use char because int might match the return type of a GCC
5724 builtin and then its argument prototype would still apply. */
5737 for ac_lib
in '' m mx
; do
5738 if test -z "$ac_lib"; then
5739 ac_res
="none required"
5742 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5744 if ac_fn_c_try_link
"$LINENO"; then :
5745 ac_cv_search_powf
=$ac_res
5747 rm -f core conftest.err conftest.
$ac_objext \
5749 if test "${ac_cv_search_powf+set}" = set; then :
5753 if test "${ac_cv_search_powf+set}" = set; then :
5756 ac_cv_search_powf
=no
5759 LIBS
=$ac_func_search_save_LIBS
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_powf" >&5
5762 $as_echo "$ac_cv_search_powf" >&6; }
5763 ac_res
=$ac_cv_search_powf
5764 if test "$ac_res" != no
; then :
5765 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5767 $as_echo "#define HAVE_POWF 1" >>confdefs.h
5771 CFLAGS
="$OLD_CFLAGS"
5772 OLD_CFLAGS
="$CFLAGS"
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceilf" >&5
5775 $as_echo_n "checking for library containing ceilf... " >&6; }
5776 if test "${ac_cv_search_ceilf+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5779 ac_func_search_save_LIBS
=$LIBS
5780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5783 /* Override any GCC internal prototype to avoid an error.
5784 Use char because int might match the return type of a GCC
5785 builtin and then its argument prototype would still apply. */
5798 for ac_lib
in '' m mx
; do
5799 if test -z "$ac_lib"; then
5800 ac_res
="none required"
5803 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5805 if ac_fn_c_try_link
"$LINENO"; then :
5806 ac_cv_search_ceilf
=$ac_res
5808 rm -f core conftest.err conftest.
$ac_objext \
5810 if test "${ac_cv_search_ceilf+set}" = set; then :
5814 if test "${ac_cv_search_ceilf+set}" = set; then :
5817 ac_cv_search_ceilf
=no
5820 LIBS
=$ac_func_search_save_LIBS
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceilf" >&5
5823 $as_echo "$ac_cv_search_ceilf" >&6; }
5824 ac_res
=$ac_cv_search_ceilf
5825 if test "$ac_res" != no
; then :
5826 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5828 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
5832 CFLAGS
="$OLD_CFLAGS"
5833 OLD_CFLAGS
="$CFLAGS"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
5836 $as_echo_n "checking for library containing cosf... " >&6; }
5837 if test "${ac_cv_search_cosf+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5840 ac_func_search_save_LIBS
=$LIBS
5841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5844 /* Override any GCC internal prototype to avoid an error.
5845 Use char because int might match the return type of a GCC
5846 builtin and then its argument prototype would still apply. */
5859 for ac_lib
in '' m mx
; do
5860 if test -z "$ac_lib"; then
5861 ac_res
="none required"
5864 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5866 if ac_fn_c_try_link
"$LINENO"; then :
5867 ac_cv_search_cosf
=$ac_res
5869 rm -f core conftest.err conftest.
$ac_objext \
5871 if test "${ac_cv_search_cosf+set}" = set; then :
5875 if test "${ac_cv_search_cosf+set}" = set; then :
5878 ac_cv_search_cosf
=no
5881 LIBS
=$ac_func_search_save_LIBS
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
5884 $as_echo "$ac_cv_search_cosf" >&6; }
5885 ac_res
=$ac_cv_search_cosf
5886 if test "$ac_res" != no
; then :
5887 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5889 $as_echo "#define HAVE_COSF 1" >>confdefs.h
5893 CFLAGS
="$OLD_CFLAGS"
5894 OLD_CFLAGS
="$CFLAGS"
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sinf" >&5
5897 $as_echo_n "checking for library containing sinf... " >&6; }
5898 if test "${ac_cv_search_sinf+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5901 ac_func_search_save_LIBS
=$LIBS
5902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5905 /* Override any GCC internal prototype to avoid an error.
5906 Use char because int might match the return type of a GCC
5907 builtin and then its argument prototype would still apply. */
5920 for ac_lib
in '' m mx
; do
5921 if test -z "$ac_lib"; then
5922 ac_res
="none required"
5925 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5927 if ac_fn_c_try_link
"$LINENO"; then :
5928 ac_cv_search_sinf
=$ac_res
5930 rm -f core conftest.err conftest.
$ac_objext \
5932 if test "${ac_cv_search_sinf+set}" = set; then :
5936 if test "${ac_cv_search_sinf+set}" = set; then :
5939 ac_cv_search_sinf
=no
5942 LIBS
=$ac_func_search_save_LIBS
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sinf" >&5
5945 $as_echo "$ac_cv_search_sinf" >&6; }
5946 ac_res
=$ac_cv_search_sinf
5947 if test "$ac_res" != no
; then :
5948 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5950 $as_echo "#define HAVE_SINF 1" >>confdefs.h
5954 CFLAGS
="$OLD_CFLAGS"
5955 OLD_CFLAGS
="$CFLAGS"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acosf" >&5
5958 $as_echo_n "checking for library containing acosf... " >&6; }
5959 if test "${ac_cv_search_acosf+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
5962 ac_func_search_save_LIBS
=$LIBS
5963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5966 /* Override any GCC internal prototype to avoid an error.
5967 Use char because int might match the return type of a GCC
5968 builtin and then its argument prototype would still apply. */
5981 for ac_lib
in '' m mx
; do
5982 if test -z "$ac_lib"; then
5983 ac_res
="none required"
5986 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5988 if ac_fn_c_try_link
"$LINENO"; then :
5989 ac_cv_search_acosf
=$ac_res
5991 rm -f core conftest.err conftest.
$ac_objext \
5993 if test "${ac_cv_search_acosf+set}" = set; then :
5997 if test "${ac_cv_search_acosf+set}" = set; then :
6000 ac_cv_search_acosf
=no
6003 LIBS
=$ac_func_search_save_LIBS
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acosf" >&5
6006 $as_echo "$ac_cv_search_acosf" >&6; }
6007 ac_res
=$ac_cv_search_acosf
6008 if test "$ac_res" != no
; then :
6009 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6011 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
6015 CFLAGS
="$OLD_CFLAGS"
6016 OLD_CFLAGS
="$CFLAGS"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmodf" >&5
6019 $as_echo_n "checking for library containing fmodf... " >&6; }
6020 if test "${ac_cv_search_fmodf+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6023 ac_func_search_save_LIBS
=$LIBS
6024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6027 /* Override any GCC internal prototype to avoid an error.
6028 Use char because int might match the return type of a GCC
6029 builtin and then its argument prototype would still apply. */
6042 for ac_lib
in '' m mx
; do
6043 if test -z "$ac_lib"; then
6044 ac_res
="none required"
6047 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6049 if ac_fn_c_try_link
"$LINENO"; then :
6050 ac_cv_search_fmodf
=$ac_res
6052 rm -f core conftest.err conftest.
$ac_objext \
6054 if test "${ac_cv_search_fmodf+set}" = set; then :
6058 if test "${ac_cv_search_fmodf+set}" = set; then :
6061 ac_cv_search_fmodf
=no
6064 LIBS
=$ac_func_search_save_LIBS
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmodf" >&5
6067 $as_echo "$ac_cv_search_fmodf" >&6; }
6068 ac_res
=$ac_cv_search_fmodf
6069 if test "$ac_res" != no
; then :
6070 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6072 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
6076 CFLAGS
="$OLD_CFLAGS"
6077 OLD_CFLAGS
="$CFLAGS"
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
6080 $as_echo_n "checking for library containing fabsf... " >&6; }
6081 if test "${ac_cv_search_fabsf+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 ac_func_search_save_LIBS
=$LIBS
6085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6088 /* Override any GCC internal prototype to avoid an error.
6089 Use char because int might match the return type of a GCC
6090 builtin and then its argument prototype would still apply. */
6103 for ac_lib
in '' m mx
; do
6104 if test -z "$ac_lib"; then
6105 ac_res
="none required"
6108 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6110 if ac_fn_c_try_link
"$LINENO"; then :
6111 ac_cv_search_fabsf
=$ac_res
6113 rm -f core conftest.err conftest.
$ac_objext \
6115 if test "${ac_cv_search_fabsf+set}" = set; then :
6119 if test "${ac_cv_search_fabsf+set}" = set; then :
6122 ac_cv_search_fabsf
=no
6125 LIBS
=$ac_func_search_save_LIBS
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
6128 $as_echo "$ac_cv_search_fabsf" >&6; }
6129 ac_res
=$ac_cv_search_fabsf
6130 if test "$ac_res" != no
; then :
6131 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6133 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
6137 CFLAGS
="$OLD_CFLAGS"
6138 OLD_CFLAGS
="$CFLAGS"
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10f" >&5
6141 $as_echo_n "checking for library containing log10f... " >&6; }
6142 if test "${ac_cv_search_log10f+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6145 ac_func_search_save_LIBS
=$LIBS
6146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6149 /* Override any GCC internal prototype to avoid an error.
6150 Use char because int might match the return type of a GCC
6151 builtin and then its argument prototype would still apply. */
6164 for ac_lib
in '' m mx
; do
6165 if test -z "$ac_lib"; then
6166 ac_res
="none required"
6169 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6171 if ac_fn_c_try_link
"$LINENO"; then :
6172 ac_cv_search_log10f
=$ac_res
6174 rm -f core conftest.err conftest.
$ac_objext \
6176 if test "${ac_cv_search_log10f+set}" = set; then :
6180 if test "${ac_cv_search_log10f+set}" = set; then :
6183 ac_cv_search_log10f
=no
6186 LIBS
=$ac_func_search_save_LIBS
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10f" >&5
6189 $as_echo "$ac_cv_search_log10f" >&6; }
6190 ac_res
=$ac_cv_search_log10f
6191 if test "$ac_res" != no
; then :
6192 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6194 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
6198 CFLAGS
="$OLD_CFLAGS"
6200 # If we don't have ftello, we'll use ftell.
6201 for ac_func
in ftello
6203 ac_fn_c_check_func
"$LINENO" "ftello" "ac_cv_func_ftello"
6204 if test "x$ac_cv_func_ftello" = x
""yes; then :
6205 cat >>confdefs.h
<<_ACEOF
6206 #define HAVE_FTELLO 1
6213 # If we don't have fseeko, we'll use fseek.
6214 for ac_func
in fseeko
6216 ac_fn_c_check_func
"$LINENO" "fseeko" "ac_cv_func_fseeko"
6217 if test "x$ac_cv_func_fseeko" = x
""yes; then :
6218 cat >>confdefs.h
<<_ACEOF
6219 #define HAVE_FSEEKO 1
6227 # Checks for getdelim, this is a GNU extension.
6228 CFLAGS
="$CFLAGS -D_GNU_SOURCE"
6229 for ac_func
in getdelim
6231 ac_fn_c_check_func
"$LINENO" "getdelim" "ac_cv_func_getdelim"
6232 if test "x$ac_cv_func_getdelim" = x
""yes; then :
6233 cat >>confdefs.h
<<_ACEOF
6234 #define HAVE_GETDELIM 1
6247 if test "$have_getdelim" = "yes"; then
6257 # Checks for getopt_long, another GNU extension.
6258 for ac_func
in getopt_long
6260 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6261 if test "x$ac_cv_func_getopt_long" = x
""yes; then :
6262 cat >>confdefs.h
<<_ACEOF
6263 #define HAVE_GETOPT_LONG 1
6266 have_getopt_long
="yes"
6270 have_getopt_long
="no"
6276 if test "$have_getopt_long" = "yes"; then
6278 GETOPT_LONG_FALSE
='#'
6280 GETOPT_LONG_TRUE
='#'
6286 if test "$have_getdelim" = "no" ||
6287 test "$have_getopt_long" = "no"; then
6289 NEED_REPLACEMENTS_TRUE
=
6290 NEED_REPLACEMENTS_FALSE
='#'
6292 NEED_REPLACEMENTS_TRUE
='#'
6293 NEED_REPLACEMENTS_FALSE
=
6298 NEED_REPLACEMENTS_TRUE
=
6299 NEED_REPLACEMENTS_FALSE
='#'
6301 NEED_REPLACEMENTS_TRUE
='#'
6302 NEED_REPLACEMENTS_FALSE
=
6308 # Checks for flavours of varargs macros (borrowed from glib-2)
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros" >&5
6311 $as_echo_n "checking for ISO C99 varargs macros... " >&6; }
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6320 int a(int p1, int p2, int p3);
6321 #define call_a(...) a(1,__VA_ARGS__)
6328 if ac_fn_c_try_compile
"$LINENO"; then :
6329 have_iso_c_varargs
=yes
6331 have_iso_c_varargs
=no
6333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_iso_c_varargs" >&5
6336 $as_echo "$have_iso_c_varargs" >&6; }
6338 if test $have_iso_c_varargs = yes; then
6345 cat >>confdefs.h
<<_ACEOF
6346 #define HAVE_ISO_C_VARARGS $iso_c_varargs
6350 if test $have_iso_c_varargs = no
; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ISO C99 variadic macros" >&5
6352 $as_echo "$as_me: WARNING: No ISO C99 variadic macros" >&2;}
6356 # The cast to long int works around a bug in the HP C Compiler
6357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6359 # This bug is HP SR number 8606223364.
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
6361 $as_echo_n "checking size of unsigned long... " >&6; }
6362 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
6365 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
6368 if test "$ac_cv_type_unsigned_long" = yes; then
6369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6371 { as_fn_set_status
77
6372 as_fn_error
"cannot compute sizeof (unsigned long)
6373 See \`config.log' for more details." "$LINENO" 5; }; }
6375 ac_cv_sizeof_unsigned_long
=0
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
6381 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
6385 cat >>confdefs.h
<<_ACEOF
6386 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6393 $as_echo_n "checking for X... " >&6; }
6396 # Check whether --with-x was given.
6397 if test "${with_x+set}" = set; then :
6401 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6402 if test "x$with_x" = xno
; then
6403 # The user explicitly disabled X.
6406 case $x_includes,$x_libraries in #(
6407 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
6408 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6411 # One or both of the vars are not set, and there is no cached value.
6412 ac_x_includes
=no ac_x_libraries
=no
6413 rm -f -r conftest.dir
6414 if mkdir conftest.dir
; then
6416 cat >Imakefile
<<'_ACEOF'
6418 @echo incroot='${INCROOT}'
6420 @echo usrlibdir='${USRLIBDIR}'
6422 @echo libdir='${LIBDIR}'
6424 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6426 for ac_var
in incroot usrlibdir libdir
; do
6427 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6429 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6430 for ac_extension
in a so sl dylib la dll
; do
6431 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6432 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6433 ac_im_usrlibdir
=$ac_im_libdir; break
6436 # Screen out bogus values from the imake configuration. They are
6437 # bogus both because they are the default anyway, and because
6438 # using them would break gcc on systems where it needs fixed includes.
6439 case $ac_im_incroot in
6440 /usr
/include
) ac_x_includes
= ;;
6441 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6443 case $ac_im_usrlibdir in
6444 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6445 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6449 rm -f -r conftest.dir
6452 # Standard set of common directories for X headers.
6453 # Check X11 before X11Rn because it is often a symlink to the current release.
6467 /usr/local/X11/include
6468 /usr/local/X11R7/include
6469 /usr/local/X11R6/include
6470 /usr/local/X11R5/include
6471 /usr/local/X11R4/include
6473 /usr/local/include/X11
6474 /usr/local/include/X11R7
6475 /usr/local/include/X11R6
6476 /usr/local/include/X11R5
6477 /usr/local/include/X11R4
6481 /usr/XFree86/include/X11
6485 /usr/unsupported/include
6487 /usr/local/x11r5/include
6488 /usr/lpp/Xamples/include
6490 /usr/openwin/include
6491 /usr/openwin/share/include'
6493 if test "$ac_x_includes" = no
; then
6494 # Guess where to find include files, by looking for Xlib.h.
6495 # First, try using that file with no special directory specified.
6496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 #include <X11/Xlib.h>
6500 if ac_fn_c_try_cpp
"$LINENO"; then :
6501 # We can compile using X headers with no special include directory.
6504 for ac_dir
in $ac_x_header_dirs; do
6505 if test -r "$ac_dir/X11/Xlib.h"; then
6506 ac_x_includes
=$ac_dir
6511 rm -f conftest.err conftest.
$ac_ext
6512 fi # $ac_x_includes = no
6514 if test "$ac_x_libraries" = no
; then
6515 # Check for the libraries.
6516 # See if we find them without any special options.
6517 # Don't add to $LIBS permanently.
6520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 #include <X11/Xlib.h>
6531 if ac_fn_c_try_link
"$LINENO"; then :
6533 # We can link X programs with no special library path.
6537 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6539 # Don't even attempt the hair of trying to link an X program!
6540 for ac_extension
in a so sl dylib la dll
; do
6541 if test -r "$ac_dir/libX11.$ac_extension"; then
6542 ac_x_libraries
=$ac_dir
6548 rm -f core conftest.err conftest.
$ac_objext \
6549 conftest
$ac_exeext conftest.
$ac_ext
6550 fi # $ac_x_libraries = no
6552 case $ac_x_includes,$ac_x_libraries in #(
6554 # Didn't find X, or a directory has "'" in its name.
6555 ac_cv_have_x
="have_x=no";; #(
6557 # Record where we found X for the cache.
6558 ac_cv_have_x
="have_x=yes\
6559 ac_x_includes='$ac_x_includes'\
6560 ac_x_libraries='$ac_x_libraries'"
6566 eval "$ac_cv_have_x"
6569 if test "$have_x" != yes; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6571 $as_echo "$have_x" >&6; }
6574 # If each of the values was on the command line, it overrides each guess.
6575 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6576 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6577 # Update the cache value to reflect the command line values.
6578 ac_cv_have_x
="have_x=yes\
6579 ac_x_includes='$x_includes'\
6580 ac_x_libraries='$x_libraries'"
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6582 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6585 if test "$no_x" = yes; then
6586 # Not all programs may use this symbol, but it does not hurt to define it.
6588 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6590 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6592 if test -n "$x_includes"; then
6593 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6596 # It would also be nice to do this for all -L options, not just this one.
6597 if test -n "$x_libraries"; then
6598 X_LIBS
="$X_LIBS -L$x_libraries"
6599 # For Solaris; some versions of Sun CC require a space after -R and
6600 # others require no space. Words are not sufficient . . . .
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6602 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6603 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6604 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6605 ac_c_werror_flag
=yes
6606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6617 if ac_fn_c_try_link
"$LINENO"; then :
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 X_LIBS
="$X_LIBS -R$x_libraries"
6622 LIBS
="$ac_xsave_LIBS -R $x_libraries"
6623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6634 if ac_fn_c_try_link
"$LINENO"; then :
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6636 $as_echo "yes" >&6; }
6637 X_LIBS
="$X_LIBS -R $x_libraries"
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6640 $as_echo "neither works" >&6; }
6642 rm -f core conftest.err conftest.
$ac_objext \
6643 conftest
$ac_exeext conftest.
$ac_ext
6645 rm -f core conftest.err conftest.
$ac_objext \
6646 conftest
$ac_exeext conftest.
$ac_ext
6647 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6651 # Check for system-dependent libraries X programs must link with.
6652 # Do this before checking for the system-independent R6 libraries
6653 # (-lICE), since we may need -lsocket or whatever for X linking.
6655 if test "$ISC" = yes; then
6656 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6658 # Martyn Johnson says this is needed for Ultrix, if the X
6659 # libraries were built with DECnet support. And Karl Berry says
6660 # the Alpha needs dnet_stub (dnet does not exist).
6661 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6665 /* Override any GCC internal prototype to avoid an error.
6666 Use char because int might match the return type of a GCC
6667 builtin and then its argument prototype would still apply. */
6671 char XOpenDisplay ();
6675 return XOpenDisplay ();
6680 if ac_fn_c_try_link
"$LINENO"; then :
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6684 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6685 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6686 $as_echo_n "(cached) " >&6
6688 ac_check_lib_save_LIBS
=$LIBS
6690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6693 /* Override any GCC internal prototype to avoid an error.
6694 Use char because int might match the return type of a GCC
6695 builtin and then its argument prototype would still apply. */
6703 return dnet_ntoa ();
6708 if ac_fn_c_try_link
"$LINENO"; then :
6709 ac_cv_lib_dnet_dnet_ntoa
=yes
6711 ac_cv_lib_dnet_dnet_ntoa
=no
6713 rm -f core conftest.err conftest.
$ac_objext \
6714 conftest
$ac_exeext conftest.
$ac_ext
6715 LIBS
=$ac_check_lib_save_LIBS
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6718 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6719 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
6720 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6723 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6725 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6726 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6729 ac_check_lib_save_LIBS
=$LIBS
6730 LIBS
="-ldnet_stub $LIBS"
6731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6734 /* Override any GCC internal prototype to avoid an error.
6735 Use char because int might match the return type of a GCC
6736 builtin and then its argument prototype would still apply. */
6744 return dnet_ntoa ();
6749 if ac_fn_c_try_link
"$LINENO"; then :
6750 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
6752 ac_cv_lib_dnet_stub_dnet_ntoa
=no
6754 rm -f core conftest.err conftest.
$ac_objext \
6755 conftest
$ac_exeext conftest.
$ac_ext
6756 LIBS
=$ac_check_lib_save_LIBS
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6759 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6760 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x
""yes; then :
6761 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
6766 rm -f core conftest.err conftest.
$ac_objext \
6767 conftest
$ac_exeext conftest.
$ac_ext
6768 LIBS
="$ac_xsave_LIBS"
6770 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6771 # to get the SysV transport functions.
6772 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6774 # The nsl library prevents programs from opening the X display
6775 # on Irix 5.2, according to T.E. Dickey.
6776 # The functions gethostbyname, getservbyname, and inet_addr are
6777 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6778 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6779 if test "x$ac_cv_func_gethostbyname" = x
""yes; then :
6783 if test $ac_cv_func_gethostbyname = no
; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6785 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6786 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6789 ac_check_lib_save_LIBS
=$LIBS
6791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6794 /* Override any GCC internal prototype to avoid an error.
6795 Use char because int might match the return type of a GCC
6796 builtin and then its argument prototype would still apply. */
6800 char gethostbyname ();
6804 return gethostbyname ();
6809 if ac_fn_c_try_link
"$LINENO"; then :
6810 ac_cv_lib_nsl_gethostbyname
=yes
6812 ac_cv_lib_nsl_gethostbyname
=no
6814 rm -f core conftest.err conftest.
$ac_objext \
6815 conftest
$ac_exeext conftest.
$ac_ext
6816 LIBS
=$ac_check_lib_save_LIBS
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6819 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6820 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
6821 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
6824 if test $ac_cv_lib_nsl_gethostbyname = no
; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6826 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6827 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6830 ac_check_lib_save_LIBS
=$LIBS
6832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6835 /* Override any GCC internal prototype to avoid an error.
6836 Use char because int might match the return type of a GCC
6837 builtin and then its argument prototype would still apply. */
6841 char gethostbyname ();
6845 return gethostbyname ();
6850 if ac_fn_c_try_link
"$LINENO"; then :
6851 ac_cv_lib_bsd_gethostbyname
=yes
6853 ac_cv_lib_bsd_gethostbyname
=no
6855 rm -f core conftest.err conftest.
$ac_objext \
6856 conftest
$ac_exeext conftest.
$ac_ext
6857 LIBS
=$ac_check_lib_save_LIBS
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6860 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6861 if test "x$ac_cv_lib_bsd_gethostbyname" = x
""yes; then :
6862 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
6868 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6869 # socket/setsockopt and other routines are undefined under SCO ODT
6870 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6871 # on later versions), says Simon Leinen: it contains gethostby*
6872 # variants that don't use the name server (or something). -lsocket
6873 # must be given before -lnsl if both are needed. We assume that
6874 # if connect needs -lnsl, so does gethostbyname.
6875 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
6876 if test "x$ac_cv_func_connect" = x
""yes; then :
6880 if test $ac_cv_func_connect = no
; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6882 $as_echo_n "checking for connect in -lsocket... " >&6; }
6883 if test "${ac_cv_lib_socket_connect+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6886 ac_check_lib_save_LIBS
=$LIBS
6887 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
6888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6891 /* Override any GCC internal prototype to avoid an error.
6892 Use char because int might match the return type of a GCC
6893 builtin and then its argument prototype would still apply. */
6906 if ac_fn_c_try_link
"$LINENO"; then :
6907 ac_cv_lib_socket_connect
=yes
6909 ac_cv_lib_socket_connect
=no
6911 rm -f core conftest.err conftest.
$ac_objext \
6912 conftest
$ac_exeext conftest.
$ac_ext
6913 LIBS
=$ac_check_lib_save_LIBS
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6916 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6917 if test "x$ac_cv_lib_socket_connect" = x
""yes; then :
6918 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
6923 # Guillermo Gomez says -lposix is necessary on A/UX.
6924 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
6925 if test "x$ac_cv_func_remove" = x
""yes; then :
6929 if test $ac_cv_func_remove = no
; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6931 $as_echo_n "checking for remove in -lposix... " >&6; }
6932 if test "${ac_cv_lib_posix_remove+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6935 ac_check_lib_save_LIBS
=$LIBS
6936 LIBS
="-lposix $LIBS"
6937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6940 /* Override any GCC internal prototype to avoid an error.
6941 Use char because int might match the return type of a GCC
6942 builtin and then its argument prototype would still apply. */
6955 if ac_fn_c_try_link
"$LINENO"; then :
6956 ac_cv_lib_posix_remove
=yes
6958 ac_cv_lib_posix_remove
=no
6960 rm -f core conftest.err conftest.
$ac_objext \
6961 conftest
$ac_exeext conftest.
$ac_ext
6962 LIBS
=$ac_check_lib_save_LIBS
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6965 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6966 if test "x$ac_cv_lib_posix_remove" = x
""yes; then :
6967 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
6972 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6973 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
6974 if test "x$ac_cv_func_shmat" = x
""yes; then :
6978 if test $ac_cv_func_shmat = no
; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6980 $as_echo_n "checking for shmat in -lipc... " >&6; }
6981 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6982 $as_echo_n "(cached) " >&6
6984 ac_check_lib_save_LIBS
=$LIBS
6986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6989 /* Override any GCC internal prototype to avoid an error.
6990 Use char because int might match the return type of a GCC
6991 builtin and then its argument prototype would still apply. */
7004 if ac_fn_c_try_link
"$LINENO"; then :
7005 ac_cv_lib_ipc_shmat
=yes
7007 ac_cv_lib_ipc_shmat
=no
7009 rm -f core conftest.err conftest.
$ac_objext \
7010 conftest
$ac_exeext conftest.
$ac_ext
7011 LIBS
=$ac_check_lib_save_LIBS
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7014 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7015 if test "x$ac_cv_lib_ipc_shmat" = x
""yes; then :
7016 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7022 # Check for libraries that X11R6 Xt/Xaw programs need.
7023 ac_save_LDFLAGS
=$LDFLAGS
7024 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7025 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7026 # check for ICE first), but we must link in the order -lSM -lICE or
7027 # we get undefined symbols. So assume we have SM if we have ICE.
7028 # These have to be linked with before -lX11, unlike the other
7029 # libraries we check for below, so use a different variable.
7030 # John Interrante, Karl Berry
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7032 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7033 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7034 $as_echo_n "(cached) " >&6
7036 ac_check_lib_save_LIBS
=$LIBS
7037 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7041 /* Override any GCC internal prototype to avoid an error.
7042 Use char because int might match the return type of a GCC
7043 builtin and then its argument prototype would still apply. */
7047 char IceConnectionNumber ();
7051 return IceConnectionNumber ();
7056 if ac_fn_c_try_link
"$LINENO"; then :
7057 ac_cv_lib_ICE_IceConnectionNumber
=yes
7059 ac_cv_lib_ICE_IceConnectionNumber
=no
7061 rm -f core conftest.err conftest.
$ac_objext \
7062 conftest
$ac_exeext conftest.
$ac_ext
7063 LIBS
=$ac_check_lib_save_LIBS
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7066 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7067 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x
""yes; then :
7068 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
7071 LDFLAGS
=$ac_save_LDFLAGS
7075 CFLAGS
="$X_CFLAGS $CFLAGS"
7076 LDFLAGS
="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS"
7078 # Checks for GtkGLExt.
7081 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7082 if test -n "$ac_tool_prefix"; then
7083 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7084 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7092 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir
=.
7100 for ac_exec_ext
in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7114 if test -n "$PKG_CONFIG"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7116 $as_echo "$PKG_CONFIG" >&6; }
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7124 if test -z "$ac_cv_path_PKG_CONFIG"; then
7125 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7126 # Extract the first word of "pkg-config", so it can be a program name with args.
7127 set dummy pkg-config
; ac_word
=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7133 case $ac_pt_PKG_CONFIG in
7135 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir
=.
7143 for ac_exec_ext
in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7157 if test -n "$ac_pt_PKG_CONFIG"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7159 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7165 if test "x$ac_pt_PKG_CONFIG" = x
; then
7168 case $cross_compiling:$ac_tool_warned in
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7172 ac_tool_warned
=yes ;;
7174 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7177 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7181 if test -n "$PKG_CONFIG"; then
7182 _pkg_min_version
=0.9.0
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7184 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7185 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7187 $as_echo "yes" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKGLEXT" >&5
7198 $as_echo_n "checking for GTKGLEXT... " >&6; }
7200 if test -n "$PKG_CONFIG"; then
7201 if test -n "$GTKGLEXT_CFLAGS"; then
7202 pkg_cv_GTKGLEXT_CFLAGS
="$GTKGLEXT_CFLAGS"
7204 if test -n "$PKG_CONFIG" && \
7205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5
7206 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5
7208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7209 test $ac_status = 0; }; then
7210 pkg_cv_GTKGLEXT_CFLAGS
=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0" 2>/dev/null`
7218 if test -n "$PKG_CONFIG"; then
7219 if test -n "$GTKGLEXT_LIBS"; then
7220 pkg_cv_GTKGLEXT_LIBS
="$GTKGLEXT_LIBS"
7222 if test -n "$PKG_CONFIG" && \
7223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5
7224 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 pkg_cv_GTKGLEXT_LIBS
=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0" 2>/dev/null`
7239 if test $pkg_failed = yes; then
7241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7242 _pkg_short_errors_supported
=yes
7244 _pkg_short_errors_supported
=no
7246 if test $_pkg_short_errors_supported = yes; then
7247 GTKGLEXT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
7249 GTKGLEXT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
7251 # Put the nasty error message in config.log where it belongs
7252 echo "$GTKGLEXT_PKG_ERRORS" >&5
7254 as_fn_error
"Package requirements (gtkglext-1.0 >= 0.7.0) were not met:
7256 $GTKGLEXT_PKG_ERRORS
7258 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7259 installed software in a non-standard prefix.
7261 Alternatively, you may set the environment variables GTKGLEXT_CFLAGS
7262 and GTKGLEXT_LIBS to avoid the need to call pkg-config.
7263 See the pkg-config man page for more details.
7265 elif test $pkg_failed = untried
; then
7266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7268 as_fn_error
"The pkg-config script could not be found or is too old. Make sure it
7269 is in your PATH or set the PKG_CONFIG environment variable to the full
7272 Alternatively, you may set the environment variables GTKGLEXT_CFLAGS
7273 and GTKGLEXT_LIBS to avoid the need to call pkg-config.
7274 See the pkg-config man page for more details.
7276 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7277 See \`config.log' for more details." "$LINENO" 5; }
7279 GTKGLEXT_CFLAGS
=$pkg_cv_GTKGLEXT_CFLAGS
7280 GTKGLEXT_LIBS
=$pkg_cv_GTKGLEXT_LIBS
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7282 $as_echo "yes" >&6; }
7285 CFLAGS
="$GTKGLEXT_CFLAGS $CFLAGS"
7286 LDFLAGS
="$GTKGLEXT_LIBS $LDFLAGS"
7287 GTKGL_VERSION
="$($PKG_CONFIG --modversion gtkglext-1.0)"
7289 # Checks for OpenGL.
7290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7301 if ac_fn_c_try_link
"$LINENO"; then :
7306 rm -f core conftest.err conftest.
$ac_objext \
7307 conftest
$ac_exeext conftest.
$ac_ext
7309 if test "x$ogl" = "xno"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: maybe libGL requires libpthread..." >&5
7311 $as_echo "$as_me: maybe libGL requires libpthread..." >&6;}
7312 OLD_LDFLAGS
="$LDFLAGS"
7313 LDFLAGS
="$LDFLAGS -lpthread"
7314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7325 if ac_fn_c_try_link
"$LINENO"; then :
7328 as_fn_error
"cannot use -lGL" "$LINENO" 5
7330 rm -f core conftest.err conftest.
$ac_objext \
7331 conftest
$ac_exeext conftest.
$ac_ext
7335 # Check whether --enable-gtktest was given.
7336 if test "${enable_gtktest+set}" = set; then :
7337 enableval
=$enable_gtktest;
7343 pkg_config_args
=gtk
+-2.0
7344 for module
in . gthread
7348 pkg_config_args
="$pkg_config_args gthread-2.0"
7355 # Extract the first word of "pkg-config", so it can be a program name with args.
7356 set dummy pkg-config
; ac_word
=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7364 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7371 test -z "$as_dir" && as_dir
=.
7372 for ac_exec_ext
in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7386 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7387 if test -n "$PKG_CONFIG"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7389 $as_echo "$PKG_CONFIG" >&6; }
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7397 if test x
$PKG_CONFIG != xno
; then
7398 if pkg-config
--atleast-pkgconfig-version 0.7 ; then
7401 echo "*** pkg-config too old; version 0.7 or better required."
7409 min_gtk_version
=2.6.0
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
7411 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
7413 if test x
$PKG_CONFIG != xno
; then
7414 ## don't try to run the test against uninstalled libtool libs
7415 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7416 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7420 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7427 if test x
"$no_gtk" = x
; then
7428 GTK_CFLAGS
=`$PKG_CONFIG $pkg_config_args --cflags`
7429 GTK_LIBS
=`$PKG_CONFIG $pkg_config_args --libs`
7430 gtk_config_major_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7432 gtk_config_minor_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7434 gtk_config_micro_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7436 if test "x$enable_gtktest" = "xyes" ; then
7437 ac_save_CFLAGS
="$CFLAGS"
7438 ac_save_LIBS
="$LIBS"
7439 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7440 LIBS
="$GTK_LIBS $LIBS"
7442 if test "$cross_compiling" = yes; then :
7443 echo $ac_n "cross compiling; assumed OK... $ac_c"
7445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7448 #include <gtk/gtk.h>
7455 int major, minor, micro;
7458 fclose (fopen ("conf.gtktest", "w"));
7460 /* HP/UX 9 (%@#!) writes to sscanf strings */
7461 tmp_version = g_strdup("$min_gtk_version");
7462 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7463 printf("%s, bad version string\n", "$min_gtk_version");
7467 if ((gtk_major_version != $gtk_config_major_version) ||
7468 (gtk_minor_version != $gtk_config_minor_version) ||
7469 (gtk_micro_version != $gtk_config_micro_version))
7471 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7472 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7473 gtk_major_version, gtk_minor_version, gtk_micro_version);
7474 printf ("*** was found! If pkg-config was correct, then it is best\n");
7475 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7476 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7477 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7478 printf("*** required on your system.\n");
7479 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7480 printf("*** to point to the correct configuration files\n");
7482 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7483 (gtk_minor_version != GTK_MINOR_VERSION) ||
7484 (gtk_micro_version != GTK_MICRO_VERSION))
7486 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7487 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7488 printf("*** library (version %d.%d.%d)\n",
7489 gtk_major_version, gtk_minor_version, gtk_micro_version);
7493 if ((gtk_major_version > major) ||
7494 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7495 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7501 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7502 gtk_major_version, gtk_minor_version, gtk_micro_version);
7503 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7504 major, minor, micro);
7505 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7507 printf("*** If you have already installed a sufficiently new version, this error\n");
7508 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7509 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7510 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7511 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7512 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7513 printf("*** so that the correct libraries are found at run-time))\n");
7520 if ac_fn_c_try_run
"$LINENO"; then :
7525 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7526 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7529 CFLAGS
="$ac_save_CFLAGS"
7530 LIBS
="$ac_save_LIBS"
7533 if test "x$no_gtk" = x
; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7535 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7537 CFLAGS
="$GTK_CFLAGS $CFLAGS"
7538 LDFLAGS
="$GTK_LIBS $LDFLAGS"
7539 GTK_VERSION
="$($PKG_CONFIG --modversion gtk+-2.0)"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 if test "$PKG_CONFIG" = "no" ; then
7545 echo "*** A new enough version of pkg-config was not found."
7546 echo "*** See http://pkgconfig.sourceforge.net"
7548 if test -f conf.gtktest
; then
7551 echo "*** Could not run GTK+ test program, checking why..."
7552 ac_save_CFLAGS
="$CFLAGS"
7553 ac_save_LIBS
="$LIBS"
7554 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7555 LIBS
="$LIBS $GTK_LIBS"
7556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7559 #include <gtk/gtk.h>
7565 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7570 if ac_fn_c_try_link
"$LINENO"; then :
7571 echo "*** The test program compiled, but did not run. This usually means"
7572 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7573 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7574 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7575 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7576 echo "*** is required on your system"
7578 echo "*** If you have an old version installed, it is best to remove it, although"
7579 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7581 echo "*** The test program failed to compile or link. See the file config.log for the"
7582 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7584 rm -f core conftest.err conftest.
$ac_objext \
7585 conftest
$ac_exeext conftest.
$ac_ext
7586 CFLAGS
="$ac_save_CFLAGS"
7587 LIBS
="$ac_save_LIBS"
7600 ALL_LINGUAS
=$
(echo po
/*.po |
sed -e 's|\.po||g' -e 's|po/||g')
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7604 $as_echo_n "checking whether NLS is requested... " >&6; }
7605 # Check whether --enable-nls was given.
7606 if test "${enable_nls+set}" = set; then :
7607 enableval
=$enable_nls; USE_NLS
=$enableval
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7613 $as_echo "$USE_NLS" >&6; }
7618 GETTEXT_MACRO_VERSION
=0.17
7623 # Prepare PATH_SEPARATOR.
7624 # The user is always right.
7625 if test "${PATH_SEPARATOR+set}" != set; then
7626 echo "#! /bin/sh" >conf$$.sh
7627 echo "exit 0" >>conf$$.sh
7629 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7637 # Find out how to test for executable files. Don't use a zero-byte file,
7638 # as systems may use methods other than mode bits to determine executability.
7639 cat >conf$$.
file <<_ASEOF
7643 chmod +x conf$$.
file
7644 if test -x conf$$.
file >/dev
/null
2>&1; then
7645 ac_executable_p
="test -x"
7647 ac_executable_p
="test -f"
7651 # Extract the first word of "msgfmt", so it can be a program name with args.
7652 set dummy msgfmt
; ac_word
=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if test "${ac_cv_path_MSGFMT+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7660 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7663 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7664 for ac_dir
in $PATH; do
7666 test -z "$ac_dir" && ac_dir
=.
7667 for ac_exec_ext
in '' $ac_executable_extensions; do
7668 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7669 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7670 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
7671 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7672 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
7679 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
7683 MSGFMT
="$ac_cv_path_MSGFMT"
7684 if test "$MSGFMT" != ":"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7686 $as_echo "$MSGFMT" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7692 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7693 set dummy gmsgfmt
; ac_word
=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
7701 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7708 test -z "$as_dir" && as_dir
=.
7709 for ac_exec_ext
in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7723 GMSGFMT
=$ac_cv_path_GMSGFMT
7724 if test -n "$GMSGFMT"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7726 $as_echo "$GMSGFMT" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7734 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7735 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
7736 *) MSGFMT_015
=$MSGFMT ;;
7739 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7740 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
7741 *) GMSGFMT_015
=$GMSGFMT ;;
7746 # Prepare PATH_SEPARATOR.
7747 # The user is always right.
7748 if test "${PATH_SEPARATOR+set}" != set; then
7749 echo "#! /bin/sh" >conf$$.sh
7750 echo "exit 0" >>conf$$.sh
7752 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7760 # Find out how to test for executable files. Don't use a zero-byte file,
7761 # as systems may use methods other than mode bits to determine executability.
7762 cat >conf$$.
file <<_ASEOF
7766 chmod +x conf$$.
file
7767 if test -x conf$$.
file >/dev
/null
2>&1; then
7768 ac_executable_p
="test -x"
7770 ac_executable_p
="test -f"
7774 # Extract the first word of "xgettext", so it can be a program name with args.
7775 set dummy xgettext
; ac_word
=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7783 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7786 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7787 for ac_dir
in $PATH; do
7789 test -z "$ac_dir" && ac_dir
=.
7790 for ac_exec_ext
in '' $ac_executable_extensions; do
7791 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7792 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7793 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
7794 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7795 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
7802 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7806 XGETTEXT
="$ac_cv_path_XGETTEXT"
7807 if test "$XGETTEXT" != ":"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7809 $as_echo "$XGETTEXT" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7817 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7818 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
7819 *) XGETTEXT_015
=$XGETTEXT ;;
7824 # Prepare PATH_SEPARATOR.
7825 # The user is always right.
7826 if test "${PATH_SEPARATOR+set}" != set; then
7827 echo "#! /bin/sh" >conf$$.sh
7828 echo "exit 0" >>conf$$.sh
7830 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7838 # Find out how to test for executable files. Don't use a zero-byte file,
7839 # as systems may use methods other than mode bits to determine executability.
7840 cat >conf$$.
file <<_ASEOF
7844 chmod +x conf$$.
file
7845 if test -x conf$$.
file >/dev
/null
2>&1; then
7846 ac_executable_p
="test -x"
7848 ac_executable_p
="test -f"
7852 # Extract the first word of "msgmerge", so it can be a program name with args.
7853 set dummy msgmerge
; ac_word
=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7861 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
7864 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7865 for ac_dir
in $PATH; do
7867 test -z "$ac_dir" && ac_dir
=.
7868 for ac_exec_ext
in '' $ac_executable_extensions; do
7869 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7870 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7871 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
7872 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
7879 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
7883 MSGMERGE
="$ac_cv_path_MSGMERGE"
7884 if test "$MSGMERGE" != ":"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7886 $as_echo "$MSGMERGE" >&6; }
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7893 test -n "$localedir" || localedir
='${datadir}/locale'
7896 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS
=
7899 ac_config_commands
="$ac_config_commands po-directories"
7902 # Make sure we can run config.sub.
7903 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
7904 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7907 $as_echo_n "checking build system type... " >&6; }
7908 if test "${ac_cv_build+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7911 ac_build_alias
=$build_alias
7912 test "x$ac_build_alias" = x
&&
7913 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
7914 test "x$ac_build_alias" = x
&&
7915 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
7916 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7917 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7921 $as_echo "$ac_cv_build" >&6; }
7922 case $ac_cv_build in
7924 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
7927 ac_save_IFS
=$IFS; IFS
='-'
7933 # Remember, the first character of IFS is used to create $*,
7934 # except with old shells:
7937 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7941 $as_echo_n "checking host system type... " >&6; }
7942 if test "${ac_cv_host+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7945 if test "x$host_alias" = x
; then
7946 ac_cv_host
=$ac_cv_build
7948 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7949 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7954 $as_echo "$ac_cv_host" >&6; }
7957 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
7960 ac_save_IFS
=$IFS; IFS
='-'
7966 # Remember, the first character of IFS is used to create $*,
7967 # except with old shells:
7970 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
7975 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
7976 if test "${ac_cv_gnu_library_2+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7982 #include <features.h>
7983 #ifdef __GNU_LIBRARY__
7984 #if (__GLIBC__ >= 2)
7990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
7992 ac_cv_gnu_library_2
=yes
7994 ac_cv_gnu_library_2
=no
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
8002 $as_echo "$ac_cv_gnu_library_2" >&6; }
8004 GLIBC2
="$ac_cv_gnu_library_2"
8011 if test -n "$GCC"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
8013 $as_echo_n "checking for simple visibility declarations... " >&6; }
8014 if test "${gl_cv_cc_visibility+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8018 gl_save_CFLAGS
="$CFLAGS"
8019 CFLAGS
="$CFLAGS -fvisibility=hidden"
8020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8022 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
8023 extern __attribute__((__visibility__("default"))) int exportedvar;
8024 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
8025 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
8034 if ac_fn_c_try_compile
"$LINENO"; then :
8035 gl_cv_cc_visibility
=yes
8037 gl_cv_cc_visibility
=no
8039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8040 CFLAGS
="$gl_save_CFLAGS"
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
8044 $as_echo "$gl_cv_cc_visibility" >&6; }
8045 if test $gl_cv_cc_visibility = yes; then
8046 CFLAG_VISIBILITY
="-fvisibility=hidden"
8053 cat >>confdefs.h
<<_ACEOF
8054 #define HAVE_VISIBILITY $HAVE_VISIBILITY
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8059 $as_echo_n "checking for inline... " >&6; }
8060 if test "${ac_cv_c_inline+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8064 for ac_kw
in inline __inline__ __inline
; do
8065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8069 static $ac_kw foo_t static_foo () {return 0; }
8070 $ac_kw foo_t foo () {return 0; }
8074 if ac_fn_c_try_compile
"$LINENO"; then :
8075 ac_cv_c_inline
=$ac_kw
8077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8078 test "$ac_cv_c_inline" != no
&& break
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8083 $as_echo "$ac_cv_c_inline" >&6; }
8085 case $ac_cv_c_inline in
8088 case $ac_cv_c_inline in
8090 *) ac_val
=$ac_cv_c_inline;;
8092 cat >>confdefs.h
<<_ACEOF
8094 #define inline $ac_val
8100 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8101 if test "x$ac_cv_type_size_t" = x
""yes; then :
8105 cat >>confdefs.h
<<_ACEOF
8106 #define size_t unsigned int
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
8113 $as_echo_n "checking for stdint.h... " >&6; }
8114 if test "${gl_cv_header_stdint_h+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 #include <sys/types.h>
8124 uintmax_t i = (uintmax_t) -1; return !i;
8129 if ac_fn_c_try_compile
"$LINENO"; then :
8130 gl_cv_header_stdint_h
=yes
8132 gl_cv_header_stdint_h
=no
8134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
8137 $as_echo "$gl_cv_header_stdint_h" >&6; }
8138 if test $gl_cv_header_stdint_h = yes; then
8140 cat >>confdefs.h
<<_ACEOF
8141 #define HAVE_STDINT_H_WITH_UINTMAX 1
8146 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8147 # for constant arguments. Useless!
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8149 $as_echo_n "checking for working alloca.h... " >&6; }
8150 if test "${ac_cv_working_alloca_h+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8159 char *p = (char *) alloca (2 * sizeof (int));
8165 if ac_fn_c_try_link
"$LINENO"; then :
8166 ac_cv_working_alloca_h
=yes
8168 ac_cv_working_alloca_h
=no
8170 rm -f core conftest.err conftest.
$ac_objext \
8171 conftest
$ac_exeext conftest.
$ac_ext
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8174 $as_echo "$ac_cv_working_alloca_h" >&6; }
8175 if test $ac_cv_working_alloca_h = yes; then
8177 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8182 $as_echo_n "checking for alloca... " >&6; }
8183 if test "${ac_cv_func_alloca_works+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8189 # define alloca __builtin_alloca
8192 # include <malloc.h>
8193 # define alloca _alloca
8195 # ifdef HAVE_ALLOCA_H
8196 # include <alloca.h>
8201 # ifndef alloca /* predefined by HP cc +Olibcalls */
8212 char *p = (char *) alloca (1);
8218 if ac_fn_c_try_link
"$LINENO"; then :
8219 ac_cv_func_alloca_works
=yes
8221 ac_cv_func_alloca_works
=no
8223 rm -f core conftest.err conftest.
$ac_objext \
8224 conftest
$ac_exeext conftest.
$ac_ext
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8227 $as_echo "$ac_cv_func_alloca_works" >&6; }
8229 if test $ac_cv_func_alloca_works = yes; then
8231 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8234 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8235 # that cause trouble. Some versions do not even contain alloca or
8236 # contain a buggy version. If you still want to use their alloca,
8237 # use ar to extract alloca.o from them instead of compiling alloca.c.
8239 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8241 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8245 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8246 if test "${ac_cv_os_cray+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8251 #if defined CRAY && ! defined CRAY2
8258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8259 $EGREP "webecray" >/dev
/null
2>&1; then :
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8268 $as_echo "$ac_cv_os_cray" >&6; }
8269 if test $ac_cv_os_cray = yes; then
8270 for ac_func
in _getb67 GETB67 getb67
; do
8271 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8272 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8273 eval as_val
=\$
$as_ac_var
8274 if test "x$as_val" = x
""yes; then :
8276 cat >>confdefs.h
<<_ACEOF
8277 #define CRAY_STACKSEG_END $ac_func
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8287 $as_echo_n "checking stack direction for C alloca... " >&6; }
8288 if test "${ac_cv_c_stack_direction+set}" = set; then :
8289 $as_echo_n "(cached) " >&6
8291 if test "$cross_compiling" = yes; then :
8292 ac_cv_c_stack_direction
=0
8294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296 $ac_includes_default
8298 find_stack_direction ()
8300 static char *addr = 0;
8305 return find_stack_direction ();
8308 return (&dummy > addr) ? 1 : -1;
8314 return find_stack_direction () < 0;
8317 if ac_fn_c_try_run
"$LINENO"; then :
8318 ac_cv_c_stack_direction
=1
8320 ac_cv_c_stack_direction
=-1
8322 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8323 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8328 $as_echo "$ac_cv_c_stack_direction" >&6; }
8329 cat >>confdefs.h
<<_ACEOF
8330 #define STACK_DIRECTION $ac_cv_c_stack_direction
8339 for ac_header
in $ac_header_list
8341 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8344 eval as_val
=\$
$as_ac_Header
8345 if test "x$as_val" = x
""yes; then :
8346 cat >>confdefs.h
<<_ACEOF
8347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8361 for ac_func
in getpagesize
8363 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8364 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
8365 cat >>confdefs.h
<<_ACEOF
8366 #define HAVE_GETPAGESIZE 1
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8373 $as_echo_n "checking for working mmap... " >&6; }
8374 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8377 if test "$cross_compiling" = yes; then :
8378 ac_cv_func_mmap_fixed_mapped
=no
8380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 /* malloc might have been renamed as rpl_malloc. */
8386 /* Thanks to Mike Haertel and Jim Avera for this test.
8387 Here is a matrix of mmap possibilities:
8388 mmap private not fixed
8389 mmap private fixed at somewhere currently unmapped
8390 mmap private fixed at somewhere already mapped
8391 mmap shared not fixed
8392 mmap shared fixed at somewhere currently unmapped
8393 mmap shared fixed at somewhere already mapped
8394 For private mappings, we should verify that changes cannot be read()
8395 back from the file, nor mmap's back from the file at a different
8396 address. (There have been systems where private was not correctly
8397 implemented like the infamous i386 svr4.0, and systems where the
8398 VM page cache was not coherent with the file system buffer cache
8399 like early versions of FreeBSD and possibly contemporary NetBSD.)
8400 For shared mappings, we should conversely verify that changes get
8401 propagated back to all the places they're supposed to be.
8403 Grep wants private fixed already mapped.
8404 The main things grep needs to know about mmap are:
8405 * does it exist and is it safe to write into the mmap'd area
8406 * how to use it (BSD variants) */
8409 #include <sys/mman.h>
8411 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8415 /* This mess was copied from the GNU getpagesize.h. */
8416 #ifndef HAVE_GETPAGESIZE
8417 # ifdef _SC_PAGESIZE
8418 # define getpagesize() sysconf(_SC_PAGESIZE)
8419 # else /* no _SC_PAGESIZE */
8420 # ifdef HAVE_SYS_PARAM_H
8421 # include <sys/param.h>
8422 # ifdef EXEC_PAGESIZE
8423 # define getpagesize() EXEC_PAGESIZE
8424 # else /* no EXEC_PAGESIZE */
8426 # define getpagesize() NBPG * CLSIZE
8429 # endif /* no CLSIZE */
8430 # else /* no NBPG */
8432 # define getpagesize() NBPC
8433 # else /* no NBPC */
8435 # define getpagesize() PAGESIZE
8436 # endif /* PAGESIZE */
8437 # endif /* no NBPC */
8438 # endif /* no NBPG */
8439 # endif /* no EXEC_PAGESIZE */
8440 # else /* no HAVE_SYS_PARAM_H */
8441 # define getpagesize() 8192 /* punt totally */
8442 # endif /* no HAVE_SYS_PARAM_H */
8443 # endif /* no _SC_PAGESIZE */
8445 #endif /* no HAVE_GETPAGESIZE */
8450 char *data, *data2, *data3;
8455 pagesize = getpagesize ();
8457 /* First, make a file with some known garbage in it. */
8458 data = (char *) malloc (pagesize);
8461 for (i = 0; i < pagesize; ++i)
8462 *(data + i) = rand ();
8464 fd = creat ("conftest.mmap", 0600);
8467 if (write (fd, data, pagesize) != pagesize)
8471 /* Next, check that the tail of a page is zero-filled. File must have
8472 non-zero length, otherwise we risk SIGBUS for entire page. */
8473 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8477 if (write (fd2, cdata2, 1) != 1)
8479 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8480 if (data2 == MAP_FAILED)
8482 for (i = 0; i < pagesize; ++i)
8486 if (munmap (data2, pagesize))
8489 /* Next, try to mmap the file at a fixed address which already has
8490 something else allocated at it. If we can, also make sure that
8491 we see the same garbage. */
8492 fd = open ("conftest.mmap", O_RDWR);
8495 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8496 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8498 for (i = 0; i < pagesize; ++i)
8499 if (*(data + i) != *(data2 + i))
8502 /* Finally, make sure that changes to the mapped area do not
8503 percolate back to the file as seen by read(). (This is a bug on
8504 some variants of i386 svr4.0.) */
8505 for (i = 0; i < pagesize; ++i)
8506 *(data2 + i) = *(data2 + i) + 1;
8507 data3 = (char *) malloc (pagesize);
8510 if (read (fd, data3, pagesize) != pagesize)
8512 for (i = 0; i < pagesize; ++i)
8513 if (*(data + i) != *(data3 + i))
8519 if ac_fn_c_try_run
"$LINENO"; then :
8520 ac_cv_func_mmap_fixed_mapped
=yes
8522 ac_cv_func_mmap_fixed_mapped
=no
8524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8530 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8531 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8533 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8536 rm -f conftest.mmap conftest.txt
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
8541 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
8542 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8546 gt_cv_int_divbyzero_sigfpe
=
8548 macos
* | darwin
[6-9]* | darwin
[1-9][0-9]*)
8549 # On MacOS X 10.2 or newer, just assume the same as when cross-
8550 # compiling. If we were to perform the real test, 1 Crash Report
8551 # dialog window would pop up.
8553 i
[34567]86 | x86_64
)
8554 gt_cv_int_divbyzero_sigfpe
="guessing yes" ;;
8558 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
8559 if test "$cross_compiling" = yes; then :
8561 # Guess based on the CPU.
8563 alpha
* | i
[34567]86 | x86_64 | m68k | s390
*)
8564 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
8566 gt_cv_int_divbyzero_sigfpe
="guessing no";;
8570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8577 sigfpe_handler (int sig)
8579 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8580 exit (sig != SIGFPE);
8590 signal (SIGFPE, sigfpe_handler);
8591 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8592 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8593 signal (SIGTRAP, sigfpe_handler);
8595 /* Linux/SPARC yields signal SIGILL. */
8596 #if defined (__sparc__) && defined (__linux__)
8597 signal (SIGILL, sigfpe_handler);
8606 if ac_fn_c_try_run
"$LINENO"; then :
8607 gt_cv_int_divbyzero_sigfpe
=yes
8609 gt_cv_int_divbyzero_sigfpe
=no
8611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8612 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
8619 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8620 case "$gt_cv_int_divbyzero_sigfpe" in
8625 cat >>confdefs.h
<<_ACEOF
8626 #define INTDIV0_RAISES_SIGFPE $value
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8632 $as_echo_n "checking for inttypes.h... " >&6; }
8633 if test "${gl_cv_header_inttypes_h+set}" = set; then :
8634 $as_echo_n "(cached) " >&6
8636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 #include <sys/types.h>
8639 #include <inttypes.h>
8643 uintmax_t i = (uintmax_t) -1; return !i;
8648 if ac_fn_c_try_compile
"$LINENO"; then :
8649 gl_cv_header_inttypes_h
=yes
8651 gl_cv_header_inttypes_h
=no
8653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
8656 $as_echo "$gl_cv_header_inttypes_h" >&6; }
8657 if test $gl_cv_header_inttypes_h = yes; then
8659 cat >>confdefs.h
<<_ACEOF
8660 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8667 $as_echo_n "checking for unsigned long long int... " >&6; }
8668 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8674 /* Test preprocessor. */
8675 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8676 error in preprocessor;
8678 #if ! (18446744073709551615ULL <= -1ull)
8679 error in preprocessor;
8681 /* Test literals. */
8682 long long int ll = 9223372036854775807ll;
8683 long long int nll = -9223372036854775807LL;
8684 unsigned long long int ull = 18446744073709551615ULL;
8685 /* Test constant expressions. */
8686 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8688 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8694 /* Test availability of runtime routines for shift and division. */
8695 long long int llmax = 9223372036854775807ll;
8696 unsigned long long int ullmax = 18446744073709551615ull;
8697 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8698 | (llmax / ll) | (llmax % ll)
8699 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8700 | (ullmax / ull) | (ullmax % ull));
8706 if ac_fn_c_try_link
"$LINENO"; then :
8707 ac_cv_type_unsigned_long_long_int
=yes
8709 ac_cv_type_unsigned_long_long_int
=no
8711 rm -f core conftest.err conftest.
$ac_objext \
8712 conftest
$ac_exeext conftest.
$ac_ext
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8715 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8716 if test $ac_cv_type_unsigned_long_long_int = yes; then
8718 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8725 if test $gl_cv_header_inttypes_h = no
&& test $gl_cv_header_stdint_h = no
; then
8727 test $ac_cv_type_unsigned_long_long_int = yes \
8728 && ac_type
='unsigned long long' \
8729 || ac_type
='unsigned long'
8731 cat >>confdefs.h
<<_ACEOF
8732 #define uintmax_t $ac_type
8737 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8742 for ac_header
in inttypes.h
8744 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8745 if test "x$ac_cv_header_inttypes_h" = x
""yes; then :
8746 cat >>confdefs.h
<<_ACEOF
8747 #define HAVE_INTTYPES_H 1
8754 if test $ac_cv_header_inttypes_h = yes; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8756 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8757 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 #include <inttypes.h>
8776 if ac_fn_c_try_compile
"$LINENO"; then :
8777 gt_cv_inttypes_pri_broken
=no
8779 gt_cv_inttypes_pri_broken
=yes
8781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8785 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8787 if test "$gt_cv_inttypes_pri_broken" = yes; then
8789 cat >>confdefs.h
<<_ACEOF
8790 #define PRI_MACROS_BROKEN 1
8803 # Check whether --enable-threads was given.
8804 if test "${enable_threads+set}" = set; then :
8805 enableval
=$enable_threads; gl_use_threads
=$enableval
8808 osf
*) gl_use_threads
=no
;;
8809 *) gl_use_threads
=yes ;;
8814 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
8815 # For using <pthread.h>:
8818 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8819 # groks <pthread.h>. cc also understands the flag -pthread, but
8820 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8821 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8822 # causes the AC_TRY_LINK test below to succeed unexpectedly,
8823 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8824 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
8827 # Some systems optimize for single-threaded programs by default, and
8828 # need special flags to disable these optimizations. For example, the
8829 # definition of 'errno' in <errno.h>.
8831 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
8832 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
8840 if test "X$prefix" = "XNONE"; then
8841 acl_final_prefix
="$ac_default_prefix"
8843 acl_final_prefix
="$prefix"
8845 if test "X$exec_prefix" = "XNONE"; then
8846 acl_final_exec_prefix
='${prefix}'
8848 acl_final_exec_prefix
="$exec_prefix"
8850 acl_save_prefix
="$prefix"
8851 prefix
="$acl_final_prefix"
8852 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8853 prefix
="$acl_save_prefix"
8856 # Check whether --with-gnu-ld was given.
8857 if test "${with_gnu_ld+set}" = set; then :
8858 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8863 # Prepare PATH_SEPARATOR.
8864 # The user is always right.
8865 if test "${PATH_SEPARATOR+set}" != set; then
8866 echo "#! /bin/sh" >conf$$.sh
8867 echo "exit 0" >>conf$$.sh
8869 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8877 if test "$GCC" = yes; then
8878 # Check if gcc -print-prog-name=ld gives a path.
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8880 $as_echo_n "checking for ld used by GCC... " >&6; }
8883 # gcc leaves a trailing carriage return which upsets mingw
8884 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8886 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8889 # Accept absolute paths.
8890 [\\/]* |
[A-Za-z
]:[\\/]*)
8891 re_direlt
='/[^/][^/]*/\.\./'
8892 # Canonicalize the path of ld
8893 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8894 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8895 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8897 test -z "$LD" && LD
="$ac_prog"
8900 # If it fails, then pretend we aren't using GCC.
8904 # If it is relative, then search for the first ld in PATH.
8908 elif test "$with_gnu_ld" = yes; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8910 $as_echo_n "checking for GNU ld... " >&6; }
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8913 $as_echo_n "checking for non-GNU ld... " >&6; }
8915 if test "${acl_cv_path_LD+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8918 if test -z "$LD"; then
8919 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8920 for ac_dir
in $PATH; do
8921 test -z "$ac_dir" && ac_dir
=.
8922 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8923 acl_cv_path_LD
="$ac_dir/$ac_prog"
8924 # Check to see if the program is GNU ld. I'd rather use --version,
8925 # but apparently some GNU ld's only accept -v.
8926 # Break only if it was the GNU/non-GNU ld that we prefer.
8927 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8928 *GNU
* |
*'with BFD'*)
8929 test "$with_gnu_ld" != no
&& break ;;
8931 test "$with_gnu_ld" != yes && break ;;
8937 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8941 LD
="$acl_cv_path_LD"
8942 if test -n "$LD"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8944 $as_echo "$LD" >&6; }
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8949 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8952 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8953 $as_echo_n "(cached) " >&6
8955 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8956 case `$LD -v 2>&1 </dev/null` in
8957 *GNU
* |
*'with BFD'*)
8958 acl_cv_prog_gnu_ld
=yes ;;
8960 acl_cv_prog_gnu_ld
=no
;;
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8964 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8965 with_gnu_ld
=$acl_cv_prog_gnu_ld
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8971 $as_echo_n "checking for shared library run path origin... " >&6; }
8972 if test "${acl_cv_rpath+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
8976 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8977 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8984 $as_echo "$acl_cv_rpath" >&6; }
8986 acl_libext
="$acl_cv_libext"
8987 acl_shlibext
="$acl_cv_shlibext"
8988 acl_libname_spec
="$acl_cv_libname_spec"
8989 acl_library_names_spec
="$acl_cv_library_names_spec"
8990 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8991 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8992 acl_hardcode_direct
="$acl_cv_hardcode_direct"
8993 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8994 # Check whether --enable-rpath was given.
8995 if test "${enable_rpath+set}" = set; then :
8996 enableval
=$enable_rpath; :
9004 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9005 if test -n "$searchpath"; then
9006 acl_save_IFS
="${IFS= }"; IFS
=":"
9007 for searchdir
in $searchpath; do
9008 if test -d "$searchdir"; then
9009 case "$searchdir" in
9010 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
9011 *) searchdir
=`cd "$searchdir" && pwd`
9012 case "$searchdir" in
9013 */lib64
) acl_libdirstem
=lib64
;;
9028 if test "$gl_use_threads" != no
; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9030 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
9032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 extern void xyzzy ();
9044 if ac_fn_c_try_link
"$LINENO"; then :
9047 rm -f core conftest.err conftest.
$ac_objext \
9048 conftest
$ac_exeext conftest.
$ac_ext
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
9050 $as_echo "$gl_have_weak" >&6; }
9051 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
9052 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9053 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
9054 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9055 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
9056 gl_have_pthread_h
=yes
9058 gl_have_pthread_h
=no
9062 if test "$gl_have_pthread_h" = yes; then
9063 # Other possible tests:
9064 # -lpthreads (FSU threads, PCthreads)
9067 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9068 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9069 # the second one only in libpthread, and lock.c needs it.
9070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9072 #include <pthread.h>
9076 pthread_mutex_lock((pthread_mutex_t*)0);
9077 pthread_mutexattr_init((pthread_mutexattr_t*)0);
9082 if ac_fn_c_try_link
"$LINENO"; then :
9085 rm -f core conftest.err conftest.
$ac_objext \
9086 conftest
$ac_exeext conftest.
$ac_ext
9087 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9088 # since it is defined as a macro on OSF/1.)
9089 if test -n "$gl_have_pthread"; then
9090 # The program links fine without libpthread. But it may actually
9091 # need to link with libpthread in order to create multiple threads.
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9093 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9094 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
9097 ac_check_lib_save_LIBS
=$LIBS
9098 LIBS
="-lpthread $LIBS"
9099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9102 /* Override any GCC internal prototype to avoid an error.
9103 Use char because int might match the return type of a GCC
9104 builtin and then its argument prototype would still apply. */
9108 char pthread_kill ();
9112 return pthread_kill ();
9117 if ac_fn_c_try_link
"$LINENO"; then :
9118 ac_cv_lib_pthread_pthread_kill
=yes
9120 ac_cv_lib_pthread_pthread_kill
=no
9122 rm -f core conftest.err conftest.
$ac_objext \
9123 conftest
$ac_exeext conftest.
$ac_ext
9124 LIBS
=$ac_check_lib_save_LIBS
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9127 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9128 if test "x$ac_cv_lib_pthread_pthread_kill" = x
""yes; then :
9129 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
9130 # On Solaris and HP-UX, most pthread functions exist also in libc.
9131 # Therefore pthread_in_use() needs to actually try to create a
9132 # thread: pthread_create from libc will fail, whereas
9133 # pthread_create will actually create a thread.
9137 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9144 # Some library is needed. Try libpthread and libc_r.
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9146 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9147 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9150 ac_check_lib_save_LIBS
=$LIBS
9151 LIBS
="-lpthread $LIBS"
9152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9155 /* Override any GCC internal prototype to avoid an error.
9156 Use char because int might match the return type of a GCC
9157 builtin and then its argument prototype would still apply. */
9161 char pthread_kill ();
9165 return pthread_kill ();
9170 if ac_fn_c_try_link
"$LINENO"; then :
9171 ac_cv_lib_pthread_pthread_kill
=yes
9173 ac_cv_lib_pthread_pthread_kill
=no
9175 rm -f core conftest.err conftest.
$ac_objext \
9176 conftest
$ac_exeext conftest.
$ac_ext
9177 LIBS
=$ac_check_lib_save_LIBS
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9180 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9181 if test "x$ac_cv_lib_pthread_pthread_kill" = x
""yes; then :
9183 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
9184 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
9187 if test -z "$gl_have_pthread"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9190 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
9191 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9194 ac_check_lib_save_LIBS
=$LIBS
9196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9199 /* Override any GCC internal prototype to avoid an error.
9200 Use char because int might match the return type of a GCC
9201 builtin and then its argument prototype would still apply. */
9205 char pthread_kill ();
9209 return pthread_kill ();
9214 if ac_fn_c_try_link
"$LINENO"; then :
9215 ac_cv_lib_c_r_pthread_kill
=yes
9217 ac_cv_lib_c_r_pthread_kill
=no
9219 rm -f core conftest.err conftest.
$ac_objext \
9220 conftest
$ac_exeext conftest.
$ac_ext
9221 LIBS
=$ac_check_lib_save_LIBS
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9224 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
9225 if test "x$ac_cv_lib_c_r_pthread_kill" = x
""yes; then :
9227 LIBTHREAD
=-lc_r LTLIBTHREAD
=-lc_r
9228 LIBMULTITHREAD
=-lc_r LTLIBMULTITHREAD
=-lc_r
9233 if test -n "$gl_have_pthread"; then
9234 gl_threads_api
=posix
9236 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9238 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
9239 if test $gl_have_weak = yes; then
9241 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9247 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
9248 # pthread_rwlock_* functions.
9249 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
9251 if test "x$ac_cv_type_pthread_rwlock_t" = x
""yes; then :
9253 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
9257 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
9258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260 #include <pthread.h>
9264 #if __FreeBSD__ == 4
9265 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
9267 int x = (int)PTHREAD_MUTEX_RECURSIVE;
9274 if ac_fn_c_try_compile
"$LINENO"; then :
9276 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
9279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9283 if test -z "$gl_have_pthread"; then
9284 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = solaris
; then
9285 gl_have_solaristhread
=
9286 gl_save_LIBS
="$LIBS"
9287 LIBS
="$LIBS -lthread"
9288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9300 if ac_fn_c_try_link
"$LINENO"; then :
9301 gl_have_solaristhread
=yes
9303 rm -f core conftest.err conftest.
$ac_objext \
9304 conftest
$ac_exeext conftest.
$ac_ext
9305 LIBS
="$gl_save_LIBS"
9306 if test -n "$gl_have_solaristhread"; then
9307 gl_threads_api
=solaris
9309 LTLIBTHREAD
=-lthread
9310 LIBMULTITHREAD
="$LIBTHREAD"
9311 LTLIBMULTITHREAD
="$LTLIBTHREAD"
9313 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9315 if test $gl_have_weak = yes; then
9317 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9325 if test "$gl_use_threads" = pth
; then
9326 gl_save_CPPFLAGS
="$CPPFLAGS"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9333 $as_echo_n "checking how to link with libpth... " >&6; }
9334 if test "${ac_cv_libpth_libs+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9344 acl_save_prefix
="$prefix"
9345 prefix
="$acl_final_prefix"
9346 acl_save_exec_prefix
="$exec_prefix"
9347 exec_prefix
="$acl_final_exec_prefix"
9349 eval additional_includedir
=\"$includedir\"
9350 eval additional_libdir
=\"$libdir\"
9352 exec_prefix
="$acl_save_exec_prefix"
9353 prefix
="$acl_save_prefix"
9356 # Check whether --with-libpth-prefix was given.
9357 if test "${with_libpth_prefix+set}" = set; then :
9358 withval
=$with_libpth_prefix;
9359 if test "X$withval" = "Xno"; then
9362 if test "X$withval" = "X"; then
9364 acl_save_prefix
="$prefix"
9365 prefix
="$acl_final_prefix"
9366 acl_save_exec_prefix
="$exec_prefix"
9367 exec_prefix
="$acl_final_exec_prefix"
9369 eval additional_includedir
=\"$includedir\"
9370 eval additional_libdir
=\"$libdir\"
9372 exec_prefix
="$acl_save_exec_prefix"
9373 prefix
="$acl_save_prefix"
9376 additional_includedir
="$withval/include"
9377 additional_libdir
="$withval/$acl_libdirstem"
9389 names_already_handled
=
9390 names_next_round
='pth '
9391 while test -n "$names_next_round"; do
9392 names_this_round
="$names_next_round"
9394 for name
in $names_this_round; do
9396 for n
in $names_already_handled; do
9397 if test "$n" = "$name"; then
9402 if test -z "$already_handled"; then
9403 names_already_handled
="$names_already_handled $name"
9404 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9405 eval value
=\"\
$HAVE_LIB$uppername\"
9406 if test -n "$value"; then
9407 if test "$value" = yes; then
9408 eval value
=\"\
$LIB$uppername\"
9409 test -z "$value" || LIBPTH
="${LIBPTH}${LIBPTH:+ }$value"
9410 eval value
=\"\
$LTLIB$uppername\"
9411 test -z "$value" || LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$value"
9420 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
9421 if test -n "$acl_shlibext"; then
9422 shrext
=".$acl_shlibext" # typically: shrext=.so
9426 if test $use_additional = yes; then
9427 dir
="$additional_libdir"
9428 if test -n "$acl_shlibext"; then
9429 if test -f "$dir/$libname$shrext"; then
9431 found_so
="$dir/$libname$shrext"
9433 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9434 ver
=`(cd "$dir" && \
9435 for f in "$libname$shrext".*; do echo "$f"; done \
9436 | sed -e "s,^$libname$shrext\\\\.,," \
9437 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9438 | sed 1q ) 2>/dev/null`
9439 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9441 found_so
="$dir/$libname$shrext.$ver"
9444 eval library_names
=\"$acl_library_names_spec\"
9445 for f
in $library_names; do
9446 if test -f "$dir/$f"; then
9455 if test "X$found_dir" = "X"; then
9456 if test -f "$dir/$libname.$acl_libext"; then
9458 found_a
="$dir/$libname.$acl_libext"
9461 if test "X$found_dir" != "X"; then
9462 if test -f "$dir/$libname.la"; then
9463 found_la
="$dir/$libname.la"
9467 if test "X$found_dir" = "X"; then
9468 for x
in $LDFLAGS $LTLIBPTH; do
9470 acl_save_prefix
="$prefix"
9471 prefix
="$acl_final_prefix"
9472 acl_save_exec_prefix
="$exec_prefix"
9473 exec_prefix
="$acl_final_exec_prefix"
9475 exec_prefix
="$acl_save_exec_prefix"
9476 prefix
="$acl_save_prefix"
9480 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9481 if test -n "$acl_shlibext"; then
9482 if test -f "$dir/$libname$shrext"; then
9484 found_so
="$dir/$libname$shrext"
9486 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9487 ver
=`(cd "$dir" && \
9488 for f in "$libname$shrext".*; do echo "$f"; done \
9489 | sed -e "s,^$libname$shrext\\\\.,," \
9490 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9491 | sed 1q ) 2>/dev/null`
9492 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9494 found_so
="$dir/$libname$shrext.$ver"
9497 eval library_names
=\"$acl_library_names_spec\"
9498 for f
in $library_names; do
9499 if test -f "$dir/$f"; then
9508 if test "X$found_dir" = "X"; then
9509 if test -f "$dir/$libname.$acl_libext"; then
9511 found_a
="$dir/$libname.$acl_libext"
9514 if test "X$found_dir" != "X"; then
9515 if test -f "$dir/$libname.la"; then
9516 found_la
="$dir/$libname.la"
9521 if test "X$found_dir" != "X"; then
9526 if test "X$found_dir" != "X"; then
9527 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
9528 if test "X$found_so" != "X"; then
9529 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/$acl_libdirstem"; then
9530 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
9533 for x
in $ltrpathdirs; do
9534 if test "X$x" = "X$found_dir"; then
9539 if test -z "$haveit"; then
9540 ltrpathdirs
="$ltrpathdirs $found_dir"
9542 if test "$acl_hardcode_direct" = yes; then
9543 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
9545 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
9546 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
9548 for x
in $rpathdirs; do
9549 if test "X$x" = "X$found_dir"; then
9554 if test -z "$haveit"; then
9555 rpathdirs
="$rpathdirs $found_dir"
9559 for x
in $LDFLAGS $LIBPTH; do
9561 acl_save_prefix
="$prefix"
9562 prefix
="$acl_final_prefix"
9563 acl_save_exec_prefix
="$exec_prefix"
9564 exec_prefix
="$acl_final_exec_prefix"
9566 exec_prefix
="$acl_save_exec_prefix"
9567 prefix
="$acl_save_prefix"
9569 if test "X$x" = "X-L$found_dir"; then
9574 if test -z "$haveit"; then
9575 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir"
9577 if test "$acl_hardcode_minus_L" != no
; then
9578 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
9580 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
9586 if test "X$found_a" != "X"; then
9587 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
9589 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
9592 additional_includedir
=
9593 case "$found_dir" in
9594 */$acl_libdirstem |
*/$acl_libdirstem/)
9595 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9596 LIBPTH_PREFIX
="$basedir"
9597 additional_includedir
="$basedir/include"
9600 if test "X$additional_includedir" != "X"; then
9601 if test "X$additional_includedir" != "X/usr/include"; then
9603 if test "X$additional_includedir" = "X/usr/local/include"; then
9604 if test -n "$GCC"; then
9606 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9610 if test -z "$haveit"; then
9611 for x
in $CPPFLAGS $INCPTH; do
9613 acl_save_prefix
="$prefix"
9614 prefix
="$acl_final_prefix"
9615 acl_save_exec_prefix
="$exec_prefix"
9616 exec_prefix
="$acl_final_exec_prefix"
9618 exec_prefix
="$acl_save_exec_prefix"
9619 prefix
="$acl_save_prefix"
9621 if test "X$x" = "X-I$additional_includedir"; then
9626 if test -z "$haveit"; then
9627 if test -d "$additional_includedir"; then
9628 INCPTH
="${INCPTH}${INCPTH:+ }-I$additional_includedir"
9634 if test -n "$found_la"; then
9635 save_libdir
="$libdir"
9637 */* |
*\\*) .
"$found_la" ;;
9638 *) .
"./$found_la" ;;
9640 libdir
="$save_libdir"
9641 for dep
in $dependency_libs; do
9644 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9645 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9647 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9648 if test -n "$GCC"; then
9650 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9654 if test -z "$haveit"; then
9656 for x
in $LDFLAGS $LIBPTH; do
9658 acl_save_prefix
="$prefix"
9659 prefix
="$acl_final_prefix"
9660 acl_save_exec_prefix
="$exec_prefix"
9661 exec_prefix
="$acl_final_exec_prefix"
9663 exec_prefix
="$acl_save_exec_prefix"
9664 prefix
="$acl_save_prefix"
9666 if test "X$x" = "X-L$additional_libdir"; then
9671 if test -z "$haveit"; then
9672 if test -d "$additional_libdir"; then
9673 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
9677 for x
in $LDFLAGS $LTLIBPTH; do
9679 acl_save_prefix
="$prefix"
9680 prefix
="$acl_final_prefix"
9681 acl_save_exec_prefix
="$exec_prefix"
9682 exec_prefix
="$acl_final_exec_prefix"
9684 exec_prefix
="$acl_save_exec_prefix"
9685 prefix
="$acl_save_prefix"
9687 if test "X$x" = "X-L$additional_libdir"; then
9692 if test -z "$haveit"; then
9693 if test -d "$additional_libdir"; then
9694 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
9701 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9702 if test "$enable_rpath" != no
; then
9704 for x
in $rpathdirs; do
9705 if test "X$x" = "X$dir"; then
9710 if test -z "$haveit"; then
9711 rpathdirs
="$rpathdirs $dir"
9714 for x
in $ltrpathdirs; do
9715 if test "X$x" = "X$dir"; then
9720 if test -z "$haveit"; then
9721 ltrpathdirs
="$ltrpathdirs $dir"
9726 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9729 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9732 LIBPTH
="${LIBPTH}${LIBPTH:+ }$dep"
9733 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$dep"
9739 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
9740 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
9746 if test "X$rpathdirs" != "X"; then
9747 if test -n "$acl_hardcode_libdir_separator"; then
9749 for found_dir
in $rpathdirs; do
9750 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9752 acl_save_libdir
="$libdir"
9754 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9755 libdir
="$acl_save_libdir"
9756 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
9758 for found_dir
in $rpathdirs; do
9759 acl_save_libdir
="$libdir"
9761 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9762 libdir
="$acl_save_libdir"
9763 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
9767 if test "X$ltrpathdirs" != "X"; then
9768 for found_dir
in $ltrpathdirs; do
9769 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
9773 ac_cv_libpth_libs
="$LIBPTH"
9774 ac_cv_libpth_ltlibs
="$LTLIBPTH"
9775 ac_cv_libpth_cppflags
="$INCPTH"
9776 ac_cv_libpth_prefix
="$LIBPTH_PREFIX"
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
9780 $as_echo "$ac_cv_libpth_libs" >&6; }
9781 LIBPTH
="$ac_cv_libpth_libs"
9782 LTLIBPTH
="$ac_cv_libpth_ltlibs"
9783 INCPTH
="$ac_cv_libpth_cppflags"
9784 LIBPTH_PREFIX
="$ac_cv_libpth_prefix"
9786 for element
in $INCPTH; do
9788 for x
in $CPPFLAGS; do
9790 acl_save_prefix
="$prefix"
9791 prefix
="$acl_final_prefix"
9792 acl_save_exec_prefix
="$exec_prefix"
9793 exec_prefix
="$acl_final_exec_prefix"
9795 exec_prefix
="$acl_save_exec_prefix"
9796 prefix
="$acl_save_prefix"
9798 if test "X$x" = "X$element"; then
9803 if test -z "$haveit"; then
9804 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9816 gl_save_LIBS
="$LIBS"
9818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9829 if ac_fn_c_try_link
"$LINENO"; then :
9832 rm -f core conftest.err conftest.
$ac_objext \
9833 conftest
$ac_exeext conftest.
$ac_ext
9834 LIBS
="$gl_save_LIBS"
9835 if test -n "$gl_have_pth"; then
9838 LTLIBTHREAD
="$LTLIBPTH"
9839 LIBMULTITHREAD
="$LIBTHREAD"
9840 LTLIBMULTITHREAD
="$LTLIBTHREAD"
9842 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
9844 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
9845 if test $gl_have_weak = yes; then
9847 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
9854 CPPFLAGS
="$gl_save_CPPFLAGS"
9857 if test -z "$gl_have_pthread"; then
9858 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = win32
; then
9859 if { case "$host_os" in
9864 gl_threads_api
=win32
9866 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
9873 $as_echo_n "checking for multithread API to use... " >&6; }
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
9875 $as_echo "$gl_threads_api" >&6; }
9898 acl_save_prefix
="$prefix"
9899 prefix
="$acl_final_prefix"
9900 acl_save_exec_prefix
="$exec_prefix"
9901 exec_prefix
="$acl_final_exec_prefix"
9903 eval additional_includedir
=\"$includedir\"
9904 eval additional_libdir
=\"$libdir\"
9906 exec_prefix
="$acl_save_exec_prefix"
9907 prefix
="$acl_save_prefix"
9910 # Check whether --with-libiconv-prefix was given.
9911 if test "${with_libiconv_prefix+set}" = set; then :
9912 withval
=$with_libiconv_prefix;
9913 if test "X$withval" = "Xno"; then
9916 if test "X$withval" = "X"; then
9918 acl_save_prefix
="$prefix"
9919 prefix
="$acl_final_prefix"
9920 acl_save_exec_prefix
="$exec_prefix"
9921 exec_prefix
="$acl_final_exec_prefix"
9923 eval additional_includedir
=\"$includedir\"
9924 eval additional_libdir
=\"$libdir\"
9926 exec_prefix
="$acl_save_exec_prefix"
9927 prefix
="$acl_save_prefix"
9930 additional_includedir
="$withval/include"
9931 additional_libdir
="$withval/$acl_libdirstem"
9943 names_already_handled
=
9944 names_next_round
='iconv '
9945 while test -n "$names_next_round"; do
9946 names_this_round
="$names_next_round"
9948 for name
in $names_this_round; do
9950 for n
in $names_already_handled; do
9951 if test "$n" = "$name"; then
9956 if test -z "$already_handled"; then
9957 names_already_handled
="$names_already_handled $name"
9958 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9959 eval value
=\"\
$HAVE_LIB$uppername\"
9960 if test -n "$value"; then
9961 if test "$value" = yes; then
9962 eval value
=\"\
$LIB$uppername\"
9963 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9964 eval value
=\"\
$LTLIB$uppername\"
9965 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9974 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
9975 if test -n "$acl_shlibext"; then
9976 shrext
=".$acl_shlibext" # typically: shrext=.so
9980 if test $use_additional = yes; then
9981 dir
="$additional_libdir"
9982 if test -n "$acl_shlibext"; then
9983 if test -f "$dir/$libname$shrext"; then
9985 found_so
="$dir/$libname$shrext"
9987 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9988 ver
=`(cd "$dir" && \
9989 for f in "$libname$shrext".*; do echo "$f"; done \
9990 | sed -e "s,^$libname$shrext\\\\.,," \
9991 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9992 | sed 1q ) 2>/dev/null`
9993 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9995 found_so
="$dir/$libname$shrext.$ver"
9998 eval library_names
=\"$acl_library_names_spec\"
9999 for f
in $library_names; do
10000 if test -f "$dir/$f"; then
10009 if test "X$found_dir" = "X"; then
10010 if test -f "$dir/$libname.$acl_libext"; then
10012 found_a
="$dir/$libname.$acl_libext"
10015 if test "X$found_dir" != "X"; then
10016 if test -f "$dir/$libname.la"; then
10017 found_la
="$dir/$libname.la"
10021 if test "X$found_dir" = "X"; then
10022 for x
in $LDFLAGS $LTLIBICONV; do
10024 acl_save_prefix
="$prefix"
10025 prefix
="$acl_final_prefix"
10026 acl_save_exec_prefix
="$exec_prefix"
10027 exec_prefix
="$acl_final_exec_prefix"
10029 exec_prefix
="$acl_save_exec_prefix"
10030 prefix
="$acl_save_prefix"
10034 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10035 if test -n "$acl_shlibext"; then
10036 if test -f "$dir/$libname$shrext"; then
10038 found_so
="$dir/$libname$shrext"
10040 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10041 ver
=`(cd "$dir" && \
10042 for f in "$libname$shrext".*; do echo "$f"; done \
10043 | sed -e "s,^$libname$shrext\\\\.,," \
10044 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10045 | sed 1q ) 2>/dev/null`
10046 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10048 found_so
="$dir/$libname$shrext.$ver"
10051 eval library_names
=\"$acl_library_names_spec\"
10052 for f
in $library_names; do
10053 if test -f "$dir/$f"; then
10062 if test "X$found_dir" = "X"; then
10063 if test -f "$dir/$libname.$acl_libext"; then
10065 found_a
="$dir/$libname.$acl_libext"
10068 if test "X$found_dir" != "X"; then
10069 if test -f "$dir/$libname.la"; then
10070 found_la
="$dir/$libname.la"
10075 if test "X$found_dir" != "X"; then
10080 if test "X$found_dir" != "X"; then
10081 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10082 if test "X$found_so" != "X"; then
10083 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10084 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10087 for x
in $ltrpathdirs; do
10088 if test "X$x" = "X$found_dir"; then
10093 if test -z "$haveit"; then
10094 ltrpathdirs
="$ltrpathdirs $found_dir"
10096 if test "$acl_hardcode_direct" = yes; then
10097 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10099 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
10100 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10102 for x
in $rpathdirs; do
10103 if test "X$x" = "X$found_dir"; then
10108 if test -z "$haveit"; then
10109 rpathdirs
="$rpathdirs $found_dir"
10113 for x
in $LDFLAGS $LIBICONV; do
10115 acl_save_prefix
="$prefix"
10116 prefix
="$acl_final_prefix"
10117 acl_save_exec_prefix
="$exec_prefix"
10118 exec_prefix
="$acl_final_exec_prefix"
10120 exec_prefix
="$acl_save_exec_prefix"
10121 prefix
="$acl_save_prefix"
10123 if test "X$x" = "X-L$found_dir"; then
10128 if test -z "$haveit"; then
10129 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10131 if test "$acl_hardcode_minus_L" != no
; then
10132 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10134 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10140 if test "X$found_a" != "X"; then
10141 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10143 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10146 additional_includedir
=
10147 case "$found_dir" in
10148 */$acl_libdirstem |
*/$acl_libdirstem/)
10149 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10150 LIBICONV_PREFIX
="$basedir"
10151 additional_includedir
="$basedir/include"
10154 if test "X$additional_includedir" != "X"; then
10155 if test "X$additional_includedir" != "X/usr/include"; then
10157 if test "X$additional_includedir" = "X/usr/local/include"; then
10158 if test -n "$GCC"; then
10160 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
10164 if test -z "$haveit"; then
10165 for x
in $CPPFLAGS $INCICONV; do
10167 acl_save_prefix
="$prefix"
10168 prefix
="$acl_final_prefix"
10169 acl_save_exec_prefix
="$exec_prefix"
10170 exec_prefix
="$acl_final_exec_prefix"
10172 exec_prefix
="$acl_save_exec_prefix"
10173 prefix
="$acl_save_prefix"
10175 if test "X$x" = "X-I$additional_includedir"; then
10180 if test -z "$haveit"; then
10181 if test -d "$additional_includedir"; then
10182 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10188 if test -n "$found_la"; then
10189 save_libdir
="$libdir"
10190 case "$found_la" in
10191 */* |
*\\*) .
"$found_la" ;;
10192 *) .
"./$found_la" ;;
10194 libdir
="$save_libdir"
10195 for dep
in $dependency_libs; do
10198 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10199 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10201 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10202 if test -n "$GCC"; then
10204 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
10208 if test -z "$haveit"; then
10210 for x
in $LDFLAGS $LIBICONV; do
10212 acl_save_prefix
="$prefix"
10213 prefix
="$acl_final_prefix"
10214 acl_save_exec_prefix
="$exec_prefix"
10215 exec_prefix
="$acl_final_exec_prefix"
10217 exec_prefix
="$acl_save_exec_prefix"
10218 prefix
="$acl_save_prefix"
10220 if test "X$x" = "X-L$additional_libdir"; then
10225 if test -z "$haveit"; then
10226 if test -d "$additional_libdir"; then
10227 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10231 for x
in $LDFLAGS $LTLIBICONV; do
10233 acl_save_prefix
="$prefix"
10234 prefix
="$acl_final_prefix"
10235 acl_save_exec_prefix
="$exec_prefix"
10236 exec_prefix
="$acl_final_exec_prefix"
10238 exec_prefix
="$acl_save_exec_prefix"
10239 prefix
="$acl_save_prefix"
10241 if test "X$x" = "X-L$additional_libdir"; then
10246 if test -z "$haveit"; then
10247 if test -d "$additional_libdir"; then
10248 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10255 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10256 if test "$enable_rpath" != no
; then
10258 for x
in $rpathdirs; do
10259 if test "X$x" = "X$dir"; then
10264 if test -z "$haveit"; then
10265 rpathdirs
="$rpathdirs $dir"
10268 for x
in $ltrpathdirs; do
10269 if test "X$x" = "X$dir"; then
10274 if test -z "$haveit"; then
10275 ltrpathdirs
="$ltrpathdirs $dir"
10280 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10283 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10286 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10287 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10293 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10294 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10300 if test "X$rpathdirs" != "X"; then
10301 if test -n "$acl_hardcode_libdir_separator"; then
10303 for found_dir
in $rpathdirs; do
10304 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10306 acl_save_libdir
="$libdir"
10308 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
10309 libdir
="$acl_save_libdir"
10310 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10312 for found_dir
in $rpathdirs; do
10313 acl_save_libdir
="$libdir"
10314 libdir
="$found_dir"
10315 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
10316 libdir
="$acl_save_libdir"
10317 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10321 if test "X$ltrpathdirs" != "X"; then
10322 for found_dir
in $ltrpathdirs; do
10323 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
10342 if ac_fn_c_try_link
"$LINENO"; then :
10344 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
10347 rm -f core conftest.err conftest.
$ac_objext \
10348 conftest
$ac_exeext conftest.
$ac_ext
10350 for ac_header
in argz.h inttypes.h limits.h unistd.h sys
/param.h
10352 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10353 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10354 eval as_val
=\$
$as_ac_Header
10355 if test "x$as_val" = x
""yes; then :
10356 cat >>confdefs.h
<<_ACEOF
10357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10364 for ac_func
in getcwd getegid geteuid getgid getuid mempcpy munmap \
10365 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
10366 argz_next __fsetlocking
10368 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10369 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10370 eval as_val
=\$
$as_ac_var
10371 if test "x$as_val" = x
""yes; then :
10372 cat >>confdefs.h
<<_ACEOF
10373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
10382 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
10383 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10393 #ifndef feof_unlocked
10394 char *p = (char *) feof_unlocked;
10401 if ac_fn_c_try_compile
"$LINENO"; then :
10402 ac_cv_have_decl_feof_unlocked
=yes
10404 ac_cv_have_decl_feof_unlocked
=no
10406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
10409 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
10410 if test $ac_cv_have_decl_feof_unlocked = yes; then
10416 cat >>confdefs.h
<<_ACEOF
10417 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
10423 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
10424 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10434 #ifndef fgets_unlocked
10435 char *p = (char *) fgets_unlocked;
10442 if ac_fn_c_try_compile
"$LINENO"; then :
10443 ac_cv_have_decl_fgets_unlocked
=yes
10445 ac_cv_have_decl_fgets_unlocked
=no
10447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
10450 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10451 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10457 cat >>confdefs.h
<<_ACEOF
10458 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10468 am_save_CPPFLAGS
="$CPPFLAGS"
10470 for element
in $INCICONV; do
10472 for x
in $CPPFLAGS; do
10474 acl_save_prefix
="$prefix"
10475 prefix
="$acl_final_prefix"
10476 acl_save_exec_prefix
="$exec_prefix"
10477 exec_prefix
="$acl_final_exec_prefix"
10479 exec_prefix
="$acl_save_exec_prefix"
10480 prefix
="$acl_save_prefix"
10482 if test "X$x" = "X$element"; then
10487 if test -z "$haveit"; then
10488 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10494 $as_echo_n "checking for iconv... " >&6; }
10495 if test "${am_cv_func_iconv+set}" = set; then :
10496 $as_echo_n "(cached) " >&6
10499 am_cv_func_iconv
="no, consider installing GNU libiconv"
10501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10503 #include <stdlib.h>
10508 iconv_t cd = iconv_open("","");
10509 iconv(cd,NULL,NULL,NULL,NULL);
10515 if ac_fn_c_try_link
"$LINENO"; then :
10516 am_cv_func_iconv
=yes
10518 rm -f core conftest.err conftest.
$ac_objext \
10519 conftest
$ac_exeext conftest.
$ac_ext
10520 if test "$am_cv_func_iconv" != yes; then
10521 am_save_LIBS
="$LIBS"
10522 LIBS
="$LIBS $LIBICONV"
10523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525 #include <stdlib.h>
10530 iconv_t cd = iconv_open("","");
10531 iconv(cd,NULL,NULL,NULL,NULL);
10537 if ac_fn_c_try_link
"$LINENO"; then :
10538 am_cv_lib_iconv
=yes
10539 am_cv_func_iconv
=yes
10541 rm -f core conftest.err conftest.
$ac_objext \
10542 conftest
$ac_exeext conftest.
$ac_ext
10543 LIBS
="$am_save_LIBS"
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10548 $as_echo "$am_cv_func_iconv" >&6; }
10549 if test "$am_cv_func_iconv" = yes; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10551 $as_echo_n "checking for working iconv... " >&6; }
10552 if test "${am_cv_func_iconv_works+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10556 am_save_LIBS
="$LIBS"
10557 if test $am_cv_lib_iconv = yes; then
10558 LIBS
="$LIBS $LIBICONV"
10560 if test "$cross_compiling" = yes; then :
10562 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
10563 *) am_cv_func_iconv_works
="guessing yes" ;;
10566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10570 #include <string.h>
10573 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10576 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10577 if (cd_utf8_to_88591 != (iconv_t)(-1))
10579 static const char input[] = "\342\202\254"; /* EURO SIGN */
10581 const char *inptr = input;
10582 size_t inbytesleft = strlen (input);
10583 char *outptr = buf;
10584 size_t outbytesleft = sizeof (buf);
10585 size_t res = iconv (cd_utf8_to_88591,
10586 (char **) &inptr, &inbytesleft,
10587 &outptr, &outbytesleft);
10592 #if 0 /* This bug could be worked around by the caller. */
10593 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10595 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10596 if (cd_88591_to_utf8 != (iconv_t)(-1))
10598 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10600 const char *inptr = input;
10601 size_t inbytesleft = strlen (input);
10602 char *outptr = buf;
10603 size_t outbytesleft = sizeof (buf);
10604 size_t res = iconv (cd_88591_to_utf8,
10605 (char **) &inptr, &inbytesleft,
10606 &outptr, &outbytesleft);
10612 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10614 if (/* Try standardized names. */
10615 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
10616 /* Try IRIX, OSF/1 names. */
10617 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
10618 /* Try AIX names. */
10619 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
10620 /* Try HP-UX names. */
10621 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
10626 if ac_fn_c_try_run
"$LINENO"; then :
10627 am_cv_func_iconv_works
=yes
10629 am_cv_func_iconv_works
=no
10631 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10632 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10635 LIBS
="$am_save_LIBS"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10639 $as_echo "$am_cv_func_iconv_works" >&6; }
10640 case "$am_cv_func_iconv_works" in
10641 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
10642 *) am_func_iconv
=yes ;;
10645 am_func_iconv
=no am_cv_lib_iconv
=no
10647 if test "$am_func_iconv" = yes; then
10649 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10652 if test "$am_cv_lib_iconv" = yes; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10654 $as_echo_n "checking how to link with libiconv... " >&6; }
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10656 $as_echo "$LIBICONV" >&6; }
10658 CPPFLAGS
="$am_save_CPPFLAGS"
10665 if test "$am_cv_func_iconv" = yes; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10667 $as_echo_n "checking for iconv declaration... " >&6; }
10668 if test "${am_cv_proto_iconv+set}" = set; then :
10669 $as_echo_n "(cached) " >&6
10672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 #include <stdlib.h>
10681 #if defined(__STDC__) || defined(__cplusplus)
10682 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10695 if ac_fn_c_try_compile
"$LINENO"; then :
10696 am_cv_proto_iconv_arg1
=""
10698 am_cv_proto_iconv_arg1
="const"
10700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10701 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10704 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10706 }$am_cv_proto_iconv" >&5
10708 }$am_cv_proto_iconv" >&6; }
10710 cat >>confdefs.h
<<_ACEOF
10711 #define ICONV_CONST $am_cv_proto_iconv_arg1
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
10718 $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
10719 if test "${gt_cv_nl_locale_name+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10724 #include <langinfo.h>
10725 #include <locale.h>
10729 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
10736 if ac_fn_c_try_link
"$LINENO"; then :
10737 gt_cv_nl_locale_name
=yes
10739 gt_cv_nl_locale_name
=no
10741 rm -f core conftest.err conftest.
$ac_objext \
10742 conftest
$ac_exeext conftest.
$ac_ext
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
10746 $as_echo "$gt_cv_nl_locale_name" >&6; }
10747 if test $gt_cv_nl_locale_name = yes; then
10749 $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
10753 for ac_prog
in bison
10755 # Extract the first word of "$ac_prog", so it can be a program name with args.
10756 set dummy
$ac_prog; ac_word
=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10762 if test -n "$INTLBISON"; then
10763 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
10765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10766 for as_dir
in $PATH
10769 test -z "$as_dir" && as_dir
=.
10770 for ac_exec_ext
in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_prog_INTLBISON
="$ac_prog"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10782 INTLBISON
=$ac_cv_prog_INTLBISON
10783 if test -n "$INTLBISON"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
10785 $as_echo "$INTLBISON" >&6; }
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10792 test -n "$INTLBISON" && break
10795 if test -z "$INTLBISON"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
10799 $as_echo_n "checking version of bison... " >&6; }
10800 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10801 case $ac_prog_version in
10802 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
10803 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
10804 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
10805 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
10808 $as_echo "$ac_prog_version" >&6; }
10810 if test $ac_verc_fail = yes; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10816 $as_echo_n "checking for long long int... " >&6; }
10817 if test "${ac_cv_type_long_long_int+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10823 /* Test preprocessor. */
10824 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10825 error in preprocessor;
10827 #if ! (18446744073709551615ULL <= -1ull)
10828 error in preprocessor;
10830 /* Test literals. */
10831 long long int ll = 9223372036854775807ll;
10832 long long int nll = -9223372036854775807LL;
10833 unsigned long long int ull = 18446744073709551615ULL;
10834 /* Test constant expressions. */
10835 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10837 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10843 /* Test availability of runtime routines for shift and division. */
10844 long long int llmax = 9223372036854775807ll;
10845 unsigned long long int ullmax = 18446744073709551615ull;
10846 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10847 | (llmax / ll) | (llmax % ll)
10848 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10849 | (ullmax / ull) | (ullmax % ull));
10855 if ac_fn_c_try_link
"$LINENO"; then :
10856 if test "$cross_compiling" = yes; then :
10857 ac_cv_type_long_long_int
=yes
10859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861 #include <limits.h>
10864 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10865 # define LLONG_MAX (HALF - 1 + HALF)
10870 long long int n = 1;
10874 long long int m = n << i;
10877 if (LLONG_MAX / 2 < m)
10885 if ac_fn_c_try_run
"$LINENO"; then :
10886 ac_cv_type_long_long_int
=yes
10888 ac_cv_type_long_long_int
=no
10890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10895 ac_cv_type_long_long_int
=no
10897 rm -f core conftest.err conftest.
$ac_objext \
10898 conftest
$ac_exeext conftest.
$ac_ext
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10901 $as_echo "$ac_cv_type_long_long_int" >&6; }
10902 if test $ac_cv_type_long_long_int = yes; then
10904 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10910 $as_echo_n "checking for wchar_t... " >&6; }
10911 if test "${gt_cv_c_wchar_t+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916 #include <stddef.h>
10917 wchar_t foo = (wchar_t)'\0';
10926 if ac_fn_c_try_compile
"$LINENO"; then :
10927 gt_cv_c_wchar_t
=yes
10931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10934 $as_echo "$gt_cv_c_wchar_t" >&6; }
10935 if test $gt_cv_c_wchar_t = yes; then
10937 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10943 $as_echo_n "checking for wint_t... " >&6; }
10944 if test "${gt_cv_c_wint_t+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10950 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10952 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10953 before <wchar.h>. */
10954 #include <stddef.h>
10958 wint_t foo = (wchar_t)'\0';
10967 if ac_fn_c_try_compile
"$LINENO"; then :
10972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10975 $as_echo "$gt_cv_c_wint_t" >&6; }
10976 if test $gt_cv_c_wint_t = yes; then
10978 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
10986 $as_echo_n "checking for intmax_t... " >&6; }
10987 if test "${gt_cv_c_intmax_t+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 #include <stddef.h>
10994 #include <stdlib.h>
10995 #if HAVE_STDINT_H_WITH_UINTMAX
10996 #include <stdint.h>
10998 #if HAVE_INTTYPES_H_WITH_UINTMAX
10999 #include <inttypes.h>
11011 if ac_fn_c_try_compile
"$LINENO"; then :
11012 gt_cv_c_intmax_t
=yes
11014 gt_cv_c_intmax_t
=no
11016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
11019 $as_echo "$gt_cv_c_intmax_t" >&6; }
11020 if test $gt_cv_c_intmax_t = yes; then
11022 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
11029 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
11030 if test "${gt_cv_func_printf_posix+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11034 if test "$cross_compiling" = yes; then :
11036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
11044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11045 $EGREP "notposix" >/dev
/null
2>&1; then :
11046 gt_cv_func_printf_posix
="guessing no"
11048 gt_cv_func_printf_posix
="guessing yes"
11054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11058 #include <string.h>
11059 /* The string "%2$d %1$d", with dollar characters protected from the shell's
11060 dollar expansion (possibly an autoconf bug). */
11061 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
11062 static char buf[100];
11065 sprintf (buf, format, 33, 55);
11066 return (strcmp (buf, "55 33") != 0);
11069 if ac_fn_c_try_run
"$LINENO"; then :
11070 gt_cv_func_printf_posix
=yes
11072 gt_cv_func_printf_posix
=no
11074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
11081 $as_echo "$gt_cv_func_printf_posix" >&6; }
11082 case $gt_cv_func_printf_posix in
11085 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11092 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11093 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11094 $as_echo_n "(cached) " >&6
11096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11099 #include <features.h>
11100 #ifdef __GNU_LIBRARY__
11101 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11108 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
11109 ac_cv_gnu_library_2_1
=yes
11111 ac_cv_gnu_library_2_1
=no
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11119 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11121 GLIBC21
="$ac_cv_gnu_library_2_1"
11125 for ac_header
in stdint.h
11127 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11128 if test "x$ac_cv_header_stdint_h" = x
""yes; then :
11129 cat >>confdefs.h
<<_ACEOF
11130 #define HAVE_STDINT_H 1
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
11138 $as_echo_n "checking for SIZE_MAX... " >&6; }
11139 if test "${gl_cv_size_max+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 #include <limits.h>
11149 #include <stdint.h>
11156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11157 $EGREP "Found it" >/dev
/null
2>&1; then :
11162 if test -z "$gl_cv_size_max"; then
11163 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
11164 #include <limits.h>"; then :
11167 size_t_bits_minus_1
=
11170 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
11176 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
11177 if test $fits_in_uint = 1; then
11178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180 #include <stddef.h>
11182 extern unsigned long foo;
11192 if ac_fn_c_try_compile
"$LINENO"; then :
11195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11197 if test $fits_in_uint = 1; then
11198 gl_cv_size_max
="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
11200 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
11203 gl_cv_size_max
='((size_t)~(size_t)0)'
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
11210 $as_echo "$gl_cv_size_max" >&6; }
11211 if test "$gl_cv_size_max" != yes; then
11213 cat >>confdefs.h
<<_ACEOF
11214 #define SIZE_MAX $gl_cv_size_max
11222 for ac_header
in stdint.h
11224 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11225 if test "x$ac_cv_header_stdint_h" = x
""yes; then :
11226 cat >>confdefs.h
<<_ACEOF
11227 #define HAVE_STDINT_H 1
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11237 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11238 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
11239 $as_echo_n "(cached) " >&6
11241 gt_save_LIBS
="$LIBS"
11242 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
11243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245 #include <CoreFoundation/CFPreferences.h>
11249 CFPreferencesCopyAppValue(NULL, NULL)
11254 if ac_fn_c_try_link
"$LINENO"; then :
11255 gt_cv_func_CFPreferencesCopyAppValue
=yes
11257 gt_cv_func_CFPreferencesCopyAppValue
=no
11259 rm -f core conftest.err conftest.
$ac_objext \
11260 conftest
$ac_exeext conftest.
$ac_ext
11261 LIBS
="$gt_save_LIBS"
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11264 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11265 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11267 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11271 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11272 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
11275 gt_save_LIBS
="$LIBS"
11276 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
11277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11279 #include <CoreFoundation/CFLocale.h>
11283 CFLocaleCopyCurrent();
11288 if ac_fn_c_try_link
"$LINENO"; then :
11289 gt_cv_func_CFLocaleCopyCurrent
=yes
11291 gt_cv_func_CFLocaleCopyCurrent
=no
11293 rm -f core conftest.err conftest.
$ac_objext \
11294 conftest
$ac_exeext conftest.
$ac_ext
11295 LIBS
="$gt_save_LIBS"
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11298 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11299 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11301 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11305 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11306 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
11315 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11316 if test "x$ac_cv_type_ptrdiff_t" = x
""yes; then :
11320 $as_echo "#define ptrdiff_t long" >>confdefs.h
11325 for ac_header
in stddef.h stdlib.h string.h
11327 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11328 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11329 eval as_val
=\$
$as_ac_Header
11330 if test "x$as_val" = x
""yes; then :
11331 cat >>confdefs.h
<<_ACEOF
11332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11339 for ac_func
in asprintf fwprintf putenv setenv setlocale snprintf wcslen
11341 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11342 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11343 eval as_val
=\$
$as_ac_var
11344 if test "x$as_val" = x
""yes; then :
11345 cat >>confdefs.h
<<_ACEOF
11346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
11355 $as_echo_n "checking whether _snprintf is declared... " >&6; }
11356 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
11359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11367 char *p = (char *) _snprintf;
11374 if ac_fn_c_try_compile
"$LINENO"; then :
11375 ac_cv_have_decl__snprintf
=yes
11377 ac_cv_have_decl__snprintf
=no
11379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
11382 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
11383 if test $ac_cv_have_decl__snprintf = yes; then
11389 cat >>confdefs.h
<<_ACEOF
11390 #define HAVE_DECL__SNPRINTF $gt_value
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
11396 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
11397 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11408 char *p = (char *) _snwprintf;
11415 if ac_fn_c_try_compile
"$LINENO"; then :
11416 ac_cv_have_decl__snwprintf
=yes
11418 ac_cv_have_decl__snwprintf
=no
11420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
11423 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
11424 if test $ac_cv_have_decl__snwprintf = yes; then
11430 cat >>confdefs.h
<<_ACEOF
11431 #define HAVE_DECL__SNWPRINTF $gt_value
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
11438 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
11439 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11449 #ifndef getc_unlocked
11450 char *p = (char *) getc_unlocked;
11457 if ac_fn_c_try_compile
"$LINENO"; then :
11458 ac_cv_have_decl_getc_unlocked
=yes
11460 ac_cv_have_decl_getc_unlocked
=no
11462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
11465 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
11466 if test $ac_cv_have_decl_getc_unlocked = yes; then
11472 cat >>confdefs.h
<<_ACEOF
11473 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11478 case $gt_cv_func_printf_posix in
11479 *yes) HAVE_POSIX_PRINTF
=1 ;;
11480 *) HAVE_POSIX_PRINTF
=0 ;;
11483 if test "$ac_cv_func_asprintf" = yes; then
11489 if test "$ac_cv_func_snprintf" = yes; then
11495 if test "$ac_cv_func_wprintf" = yes; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11504 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11505 if test "${am_cv_langinfo_codeset+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510 #include <langinfo.h>
11514 char* cs = nl_langinfo(CODESET); return !cs;
11519 if ac_fn_c_try_link
"$LINENO"; then :
11520 am_cv_langinfo_codeset
=yes
11522 am_cv_langinfo_codeset
=no
11524 rm -f core conftest.err conftest.
$ac_objext \
11525 conftest
$ac_exeext conftest.
$ac_ext
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11529 $as_echo "$am_cv_langinfo_codeset" >&6; }
11530 if test $am_cv_langinfo_codeset = yes; then
11532 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11538 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11539 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
11540 $as_echo_n "(cached) " >&6
11542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11544 #include <locale.h>
11553 if ac_fn_c_try_link
"$LINENO"; then :
11554 gt_cv_val_LC_MESSAGES
=yes
11556 gt_cv_val_LC_MESSAGES
=no
11558 rm -f core conftest.err conftest.
$ac_objext \
11559 conftest
$ac_exeext conftest.
$ac_ext
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
11562 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
11563 if test $gt_cv_val_LC_MESSAGES = yes; then
11565 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11570 if test "$enable_shared" = yes; then
11572 mingw
* | cygwin
*) is_woe32dll
=yes ;;
11573 *) is_woe32dll
=no
;;
11578 WOE32DLL
=$is_woe32dll
11582 mingw
* | cygwin
*) is_woe32
=yes ;;
11587 if test $WOE32 = yes; then
11588 if test -n "$ac_tool_prefix"; then
11589 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11590 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592 $as_echo_n "checking for $ac_word... " >&6; }
11593 if test "${ac_cv_prog_WINDRES+set}" = set; then :
11594 $as_echo_n "(cached) " >&6
11596 if test -n "$WINDRES"; then
11597 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
11599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11600 for as_dir
in $PATH
11603 test -z "$as_dir" && as_dir
=.
11604 for ac_exec_ext
in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 WINDRES
=$ac_cv_prog_WINDRES
11617 if test -n "$WINDRES"; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11619 $as_echo "$WINDRES" >&6; }
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622 $as_echo "no" >&6; }
11627 if test -z "$ac_cv_prog_WINDRES"; then
11628 ac_ct_WINDRES
=$WINDRES
11629 # Extract the first word of "windres", so it can be a program name with args.
11630 set dummy windres
; ac_word
=$2
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 $as_echo_n "checking for $ac_word... " >&6; }
11633 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
11636 if test -n "$ac_ct_WINDRES"; then
11637 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
11639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11640 for as_dir
in $PATH
11643 test -z "$as_dir" && as_dir
=.
11644 for ac_exec_ext
in '' $ac_executable_extensions; do
11645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11646 ac_cv_prog_ac_ct_WINDRES
="windres"
11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
11657 if test -n "$ac_ct_WINDRES"; then
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
11659 $as_echo "$ac_ct_WINDRES" >&6; }
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11665 if test "x$ac_ct_WINDRES" = x
; then
11668 case $cross_compiling:$ac_tool_warned in
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11672 ac_tool_warned
=yes ;;
11674 WINDRES
=$ac_ct_WINDRES
11677 WINDRES
="$ac_cv_prog_WINDRES"
11683 hpux
*) LTLIBC
="" ;;
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11713 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11714 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11717 gt_save_LIBS
="$LIBS"
11718 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
11719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721 #include <CoreFoundation/CFPreferences.h>
11725 CFPreferencesCopyAppValue(NULL, NULL)
11730 if ac_fn_c_try_link
"$LINENO"; then :
11731 gt_cv_func_CFPreferencesCopyAppValue
=yes
11733 gt_cv_func_CFPreferencesCopyAppValue
=no
11735 rm -f core conftest.err conftest.
$ac_objext \
11736 conftest
$ac_exeext conftest.
$ac_ext
11737 LIBS
="$gt_save_LIBS"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11740 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11741 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11743 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11747 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11748 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11751 gt_save_LIBS
="$LIBS"
11752 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
11753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11755 #include <CoreFoundation/CFLocale.h>
11759 CFLocaleCopyCurrent();
11764 if ac_fn_c_try_link
"$LINENO"; then :
11765 gt_cv_func_CFLocaleCopyCurrent
=yes
11767 gt_cv_func_CFLocaleCopyCurrent
=no
11769 rm -f core conftest.err conftest.
$ac_objext \
11770 conftest
$ac_exeext conftest.
$ac_ext
11771 LIBS
="$gt_save_LIBS"
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11774 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11775 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11777 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11781 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11782 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
11790 BUILD_INCLUDED_LIBINTL
=no
11791 USE_INCLUDED_LIBINTL
=no
11797 case " $gt_needs " in
11798 *" need-formatstring-macros "*) gt_api_version
=3 ;;
11799 *" need-ngettext "*) gt_api_version
=2 ;;
11800 *) gt_api_version
=1 ;;
11802 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
11803 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
11805 if test "$USE_NLS" = "yes"; then
11806 gt_use_preinstalled_gnugettext
=no
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
11809 $as_echo_n "checking whether included gettext is requested... " >&6; }
11811 # Check whether --with-included-gettext was given.
11812 if test "${with_included_gettext+set}" = set; then :
11813 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
11815 nls_cv_force_use_gnu_gettext
=no
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
11819 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
11821 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
11822 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11825 if test $gt_api_version -ge 3; then
11826 gt_revision_test_code
='
11827 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11828 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11830 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11833 gt_revision_test_code
=
11835 if test $gt_api_version -ge 2; then
11836 gt_expression_test_code
=' + * ngettext ("", "", 0)'
11838 gt_expression_test_code
=
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
11842 $as_echo_n "checking for GNU gettext in libc... " >&6; }
11843 if { as_var
=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
11844 $as_echo_n "(cached) " >&6
11846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848 #include <libintl.h>
11849 $gt_revision_test_code
11850 extern int _nl_msg_cat_cntr;
11851 extern int *_nl_domain_bindings;
11855 bindtextdomain ("", "");
11856 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11861 if ac_fn_c_try_link
"$LINENO"; then :
11862 eval "$gt_func_gnugettext_libc=yes"
11864 eval "$gt_func_gnugettext_libc=no"
11866 rm -f core conftest.err conftest.
$ac_objext \
11867 conftest
$ac_exeext conftest.
$ac_ext
11869 eval ac_res
=\$
$gt_func_gnugettext_libc
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11871 $as_echo "$ac_res" >&6; }
11873 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
11881 acl_save_prefix
="$prefix"
11882 prefix
="$acl_final_prefix"
11883 acl_save_exec_prefix
="$exec_prefix"
11884 exec_prefix
="$acl_final_exec_prefix"
11886 eval additional_includedir
=\"$includedir\"
11887 eval additional_libdir
=\"$libdir\"
11889 exec_prefix
="$acl_save_exec_prefix"
11890 prefix
="$acl_save_prefix"
11893 # Check whether --with-libintl-prefix was given.
11894 if test "${with_libintl_prefix+set}" = set; then :
11895 withval
=$with_libintl_prefix;
11896 if test "X$withval" = "Xno"; then
11899 if test "X$withval" = "X"; then
11901 acl_save_prefix
="$prefix"
11902 prefix
="$acl_final_prefix"
11903 acl_save_exec_prefix
="$exec_prefix"
11904 exec_prefix
="$acl_final_exec_prefix"
11906 eval additional_includedir
=\"$includedir\"
11907 eval additional_libdir
=\"$libdir\"
11909 exec_prefix
="$acl_save_exec_prefix"
11910 prefix
="$acl_save_prefix"
11913 additional_includedir
="$withval/include"
11914 additional_libdir
="$withval/$acl_libdirstem"
11926 names_already_handled
=
11927 names_next_round
='intl '
11928 while test -n "$names_next_round"; do
11929 names_this_round
="$names_next_round"
11931 for name
in $names_this_round; do
11933 for n
in $names_already_handled; do
11934 if test "$n" = "$name"; then
11935 already_handled
=yes
11939 if test -z "$already_handled"; then
11940 names_already_handled
="$names_already_handled $name"
11941 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11942 eval value
=\"\
$HAVE_LIB$uppername\"
11943 if test -n "$value"; then
11944 if test "$value" = yes; then
11945 eval value
=\"\
$LIB$uppername\"
11946 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
11947 eval value
=\"\
$LTLIB$uppername\"
11948 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
11957 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
11958 if test -n "$acl_shlibext"; then
11959 shrext
=".$acl_shlibext" # typically: shrext=.so
11963 if test $use_additional = yes; then
11964 dir
="$additional_libdir"
11965 if test -n "$acl_shlibext"; then
11966 if test -f "$dir/$libname$shrext"; then
11968 found_so
="$dir/$libname$shrext"
11970 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11971 ver
=`(cd "$dir" && \
11972 for f in "$libname$shrext".*; do echo "$f"; done \
11973 | sed -e "s,^$libname$shrext\\\\.,," \
11974 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11975 | sed 1q ) 2>/dev/null`
11976 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11978 found_so
="$dir/$libname$shrext.$ver"
11981 eval library_names
=\"$acl_library_names_spec\"
11982 for f
in $library_names; do
11983 if test -f "$dir/$f"; then
11992 if test "X$found_dir" = "X"; then
11993 if test -f "$dir/$libname.$acl_libext"; then
11995 found_a
="$dir/$libname.$acl_libext"
11998 if test "X$found_dir" != "X"; then
11999 if test -f "$dir/$libname.la"; then
12000 found_la
="$dir/$libname.la"
12004 if test "X$found_dir" = "X"; then
12005 for x
in $LDFLAGS $LTLIBINTL; do
12007 acl_save_prefix
="$prefix"
12008 prefix
="$acl_final_prefix"
12009 acl_save_exec_prefix
="$exec_prefix"
12010 exec_prefix
="$acl_final_exec_prefix"
12012 exec_prefix
="$acl_save_exec_prefix"
12013 prefix
="$acl_save_prefix"
12017 dir
=`echo "X$x" | sed -e 's/^X-L//'`
12018 if test -n "$acl_shlibext"; then
12019 if test -f "$dir/$libname$shrext"; then
12021 found_so
="$dir/$libname$shrext"
12023 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12024 ver
=`(cd "$dir" && \
12025 for f in "$libname$shrext".*; do echo "$f"; done \
12026 | sed -e "s,^$libname$shrext\\\\.,," \
12027 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12028 | sed 1q ) 2>/dev/null`
12029 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12031 found_so
="$dir/$libname$shrext.$ver"
12034 eval library_names
=\"$acl_library_names_spec\"
12035 for f
in $library_names; do
12036 if test -f "$dir/$f"; then
12045 if test "X$found_dir" = "X"; then
12046 if test -f "$dir/$libname.$acl_libext"; then
12048 found_a
="$dir/$libname.$acl_libext"
12051 if test "X$found_dir" != "X"; then
12052 if test -f "$dir/$libname.la"; then
12053 found_la
="$dir/$libname.la"
12058 if test "X$found_dir" != "X"; then
12063 if test "X$found_dir" != "X"; then
12064 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12065 if test "X$found_so" != "X"; then
12066 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12067 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
12070 for x
in $ltrpathdirs; do
12071 if test "X$x" = "X$found_dir"; then
12076 if test -z "$haveit"; then
12077 ltrpathdirs
="$ltrpathdirs $found_dir"
12079 if test "$acl_hardcode_direct" = yes; then
12080 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
12082 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
12083 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
12085 for x
in $rpathdirs; do
12086 if test "X$x" = "X$found_dir"; then
12091 if test -z "$haveit"; then
12092 rpathdirs
="$rpathdirs $found_dir"
12096 for x
in $LDFLAGS $LIBINTL; do
12098 acl_save_prefix
="$prefix"
12099 prefix
="$acl_final_prefix"
12100 acl_save_exec_prefix
="$exec_prefix"
12101 exec_prefix
="$acl_final_exec_prefix"
12103 exec_prefix
="$acl_save_exec_prefix"
12104 prefix
="$acl_save_prefix"
12106 if test "X$x" = "X-L$found_dir"; then
12111 if test -z "$haveit"; then
12112 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12114 if test "$acl_hardcode_minus_L" != no
; then
12115 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
12117 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
12123 if test "X$found_a" != "X"; then
12124 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
12126 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12129 additional_includedir
=
12130 case "$found_dir" in
12131 */$acl_libdirstem |
*/$acl_libdirstem/)
12132 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12133 LIBINTL_PREFIX
="$basedir"
12134 additional_includedir
="$basedir/include"
12137 if test "X$additional_includedir" != "X"; then
12138 if test "X$additional_includedir" != "X/usr/include"; then
12140 if test "X$additional_includedir" = "X/usr/local/include"; then
12141 if test -n "$GCC"; then
12143 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
12147 if test -z "$haveit"; then
12148 for x
in $CPPFLAGS $INCINTL; do
12150 acl_save_prefix
="$prefix"
12151 prefix
="$acl_final_prefix"
12152 acl_save_exec_prefix
="$exec_prefix"
12153 exec_prefix
="$acl_final_exec_prefix"
12155 exec_prefix
="$acl_save_exec_prefix"
12156 prefix
="$acl_save_prefix"
12158 if test "X$x" = "X-I$additional_includedir"; then
12163 if test -z "$haveit"; then
12164 if test -d "$additional_includedir"; then
12165 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12171 if test -n "$found_la"; then
12172 save_libdir
="$libdir"
12173 case "$found_la" in
12174 */* |
*\\*) .
"$found_la" ;;
12175 *) .
"./$found_la" ;;
12177 libdir
="$save_libdir"
12178 for dep
in $dependency_libs; do
12181 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
12182 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12184 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12185 if test -n "$GCC"; then
12187 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
12191 if test -z "$haveit"; then
12193 for x
in $LDFLAGS $LIBINTL; do
12195 acl_save_prefix
="$prefix"
12196 prefix
="$acl_final_prefix"
12197 acl_save_exec_prefix
="$exec_prefix"
12198 exec_prefix
="$acl_final_exec_prefix"
12200 exec_prefix
="$acl_save_exec_prefix"
12201 prefix
="$acl_save_prefix"
12203 if test "X$x" = "X-L$additional_libdir"; then
12208 if test -z "$haveit"; then
12209 if test -d "$additional_libdir"; then
12210 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12214 for x
in $LDFLAGS $LTLIBINTL; do
12216 acl_save_prefix
="$prefix"
12217 prefix
="$acl_final_prefix"
12218 acl_save_exec_prefix
="$exec_prefix"
12219 exec_prefix
="$acl_final_exec_prefix"
12221 exec_prefix
="$acl_save_exec_prefix"
12222 prefix
="$acl_save_prefix"
12224 if test "X$x" = "X-L$additional_libdir"; then
12229 if test -z "$haveit"; then
12230 if test -d "$additional_libdir"; then
12231 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12238 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12239 if test "$enable_rpath" != no
; then
12241 for x
in $rpathdirs; do
12242 if test "X$x" = "X$dir"; then
12247 if test -z "$haveit"; then
12248 rpathdirs
="$rpathdirs $dir"
12251 for x
in $ltrpathdirs; do
12252 if test "X$x" = "X$dir"; then
12257 if test -z "$haveit"; then
12258 ltrpathdirs
="$ltrpathdirs $dir"
12263 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12266 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12269 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
12270 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12276 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
12277 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12283 if test "X$rpathdirs" != "X"; then
12284 if test -n "$acl_hardcode_libdir_separator"; then
12286 for found_dir
in $rpathdirs; do
12287 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12289 acl_save_libdir
="$libdir"
12291 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
12292 libdir
="$acl_save_libdir"
12293 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
12295 for found_dir
in $rpathdirs; do
12296 acl_save_libdir
="$libdir"
12297 libdir
="$found_dir"
12298 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
12299 libdir
="$acl_save_libdir"
12300 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
12304 if test "X$ltrpathdirs" != "X"; then
12305 for found_dir
in $ltrpathdirs; do
12306 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12311 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12312 if { as_var
=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
12313 $as_echo_n "(cached) " >&6
12315 gt_save_CPPFLAGS
="$CPPFLAGS"
12316 CPPFLAGS
="$CPPFLAGS $INCINTL"
12317 gt_save_LIBS
="$LIBS"
12318 LIBS
="$LIBS $LIBINTL"
12319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321 #include <libintl.h>
12322 $gt_revision_test_code
12323 extern int _nl_msg_cat_cntr;
12328 const char *_nl_expand_alias (const char *);
12332 bindtextdomain ("", "");
12333 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12338 if ac_fn_c_try_link
"$LINENO"; then :
12339 eval "$gt_func_gnugettext_libintl=yes"
12341 eval "$gt_func_gnugettext_libintl=no"
12343 rm -f core conftest.err conftest.
$ac_objext \
12344 conftest
$ac_exeext conftest.
$ac_ext
12345 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12346 LIBS
="$LIBS $LIBICONV"
12347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349 #include <libintl.h>
12350 $gt_revision_test_code
12351 extern int _nl_msg_cat_cntr;
12356 const char *_nl_expand_alias (const char *);
12360 bindtextdomain ("", "");
12361 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12366 if ac_fn_c_try_link
"$LINENO"; then :
12367 LIBINTL
="$LIBINTL $LIBICONV"
12368 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
12369 eval "$gt_func_gnugettext_libintl=yes"
12372 rm -f core conftest.err conftest.
$ac_objext \
12373 conftest
$ac_exeext conftest.
$ac_ext
12375 CPPFLAGS
="$gt_save_CPPFLAGS"
12376 LIBS
="$gt_save_LIBS"
12378 eval ac_res
=\$
$gt_func_gnugettext_libintl
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12380 $as_echo "$ac_res" >&6; }
12383 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12384 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12385 && test "$PACKAGE" != gettext-runtime \
12386 && test "$PACKAGE" != gettext-tools
; }; then
12387 gt_use_preinstalled_gnugettext
=yes
12395 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12396 nls_cv_use_gnu_gettext
=yes
12400 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12401 BUILD_INCLUDED_LIBINTL
=yes
12402 USE_INCLUDED_LIBINTL
=yes
12403 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
12404 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
12405 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12409 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12410 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
12415 if test -n "$INTL_MACOSX_LIBS"; then
12416 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12417 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
12418 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
12419 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
12423 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12424 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
12426 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12434 $as_echo_n "checking whether to use NLS... " >&6; }
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12436 $as_echo "$USE_NLS" >&6; }
12437 if test "$USE_NLS" = "yes"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12439 $as_echo_n "checking where the gettext function comes from... " >&6; }
12440 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12441 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12442 gt_source
="external libintl"
12447 gt_source
="included intl directory"
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12450 $as_echo "$gt_source" >&6; }
12453 if test "$USE_NLS" = "yes"; then
12455 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12456 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12458 $as_echo_n "checking how to link with libintl... " >&6; }
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12460 $as_echo "$LIBINTL" >&6; }
12462 for element
in $INCINTL; do
12464 for x
in $CPPFLAGS; do
12466 acl_save_prefix
="$prefix"
12467 prefix
="$acl_final_prefix"
12468 acl_save_exec_prefix
="$exec_prefix"
12469 exec_prefix
="$acl_final_exec_prefix"
12471 exec_prefix
="$acl_save_exec_prefix"
12472 prefix
="$acl_save_prefix"
12474 if test "X$x" = "X$element"; then
12479 if test -z "$haveit"; then
12480 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12487 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12490 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12498 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
12499 BUILD_INCLUDED_LIBINTL
=yes
12506 nls_cv_header_intl
=
12507 nls_cv_header_libgt
=
12519 if test "$USE_INCLUDED_LIBINTL" = yes; then
12520 INTLOBJS
="\$(GETTOBJS)"
12524 INTL_LIBTOOL_SUFFIX_PREFIX
=
12528 INTLLIBS
="$LIBINTL"
12535 CFLAGS
="$CFLAGS -I../${srcdir}/intl"
12536 LIBS
="$LIBS $LIBINTL"
12539 ac_config_files
="$ac_config_files intl/Makefile Makefile lib/Makefile po/Makefile.in tools/Makefile tools/glade/Makefile tools/glade/actions/Makefile tools/glade/image_nr/Makefile tools/glade/options/Makefile man/Makefile man/cs/Makefile man/de/Makefile man/en/Makefile man/fr/Makefile man/ru/Makefile src/Makefile gliv.spec"
12542 cat >confcache
<<\_ACEOF
12543 # This file is a shell script that caches the results of configure
12544 # tests run on this system so they can be shared between configure
12545 # scripts and configure runs, see configure's option --config-cache.
12546 # It is not useful on other systems. If it contains results you don't
12547 # want to keep, you may remove or edit it.
12549 # config.status only pays attention to the cache file if you give it
12550 # the --recheck option to rerun configure.
12552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12554 # following values.
12558 # The following way of writing the cache mishandles newlines in values,
12559 # but we know of no workaround that is simple, portable, and efficient.
12560 # So, we kill variables containing newlines.
12561 # Ultrix sh set writes to stderr and can't be redirected directly,
12562 # and sets the high bit in the cache file unless we assign to the vars.
12564 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12565 eval ac_val
=\$
$ac_var
12569 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12573 _ | IFS | as_nl
) ;; #(
12574 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12575 *) { eval $ac_var=; unset $ac_var;} ;;
12581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12582 *${as_nl}ac_space
=\
*)
12583 # `set' does not quote correctly, so add quotes: double-quote
12584 # substitution turns \\\\ into \\, and sed turns \\ into \.
12587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12590 # `set' quotes correctly as required by POSIX, so do not add quotes.
12591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12604 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12605 if test -w "$cache_file"; then
12606 test "x$cache_file" != "x/dev/null" &&
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12608 $as_echo "$as_me: updating cache $cache_file" >&6;}
12609 cat confcache
>$cache_file
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12612 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12617 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12618 # Let make expand exec_prefix.
12619 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12621 DEFS
=-DHAVE_CONFIG_H
12625 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12626 # 1. Remove the extension, and $U if already installed.
12627 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12628 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12630 # will be set to the directory where LIBOBJS objects are built.
12631 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12632 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12634 LIBOBJS
=$ac_libobjs
12636 LTLIBOBJS
=$ac_ltlibobjs
12639 if test -n "$EXEEXT"; then
12641 am__EXEEXT_FALSE
='#'
12643 am__EXEEXT_TRUE
='#'
12647 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12648 as_fn_error
"conditional \"AMDEP\" was never defined.
12649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12651 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12652 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
12653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12655 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12656 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
12657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12659 if test -z "${GETDELIM_TRUE}" && test -z "${GETDELIM_FALSE}"; then
12660 as_fn_error
"conditional \"GETDELIM\" was never defined.
12661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12663 if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then
12664 as_fn_error
"conditional \"GETOPT_LONG\" was never defined.
12665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12667 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
12668 as_fn_error
"conditional \"NEED_REPLACEMENTS\" was never defined.
12669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12671 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
12672 as_fn_error
"conditional \"NEED_REPLACEMENTS\" was never defined.
12673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12676 : ${CONFIG_STATUS=./config.status}
12678 ac_clean_files_save
=$ac_clean_files
12679 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12683 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12685 # Generated by $as_me.
12686 # Run this file to recreate the current configuration.
12687 # Compiler output produced by configure, useful for debugging
12688 # configure, is in config.log if it exists.
12691 ac_cs_recheck=false
12694 SHELL=\${CONFIG_SHELL-$SHELL}
12697 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12698 ## -------------------- ##
12699 ## M4sh Initialization. ##
12700 ## -------------------- ##
12702 # Be more Bourne compatible
12703 DUALCASE
=1; export DUALCASE
# for MKS sh
12704 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12708 # is contrary to our usage. Disable this feature.
12709 alias -g '${1+"$@"}'='"$@"'
12710 setopt NO_GLOB_SUBST
12712 case `(set -o) 2>/dev/null` in #(
12724 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12725 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12728 # Prefer a ksh shell builtin over an external printf program on Solaris,
12729 # but without wasting forks for bash or zsh.
12730 if test -z "$BASH_VERSION$ZSH_VERSION" \
12731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12732 as_echo='print
-r --'
12733 as_echo_n='print
-rn --'
12734 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12735 as_echo='printf %s
\n'
12736 as_echo_n='printf %s
'
12738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12739 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12740 as_echo_n='/usr
/ucb
/echo -n'
12742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12743 as_echo_n_body='eval
12747 expr "X$arg" : "X\\(.*\\)$as_nl";
12748 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12750 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12752 export as_echo_n_body
12753 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12755 export as_echo_body
12756 as_echo='sh
-c $as_echo_body as_echo
'
12759 # The user is always right.
12760 if test "${PATH_SEPARATOR+set}" != set; then
12762 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12763 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12770 # We need space, tab and new line, in precisely that order. Quoting is
12771 # there to prevent editors from complaining about space-tab.
12772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12773 # splitting by setting IFS to empty value.)
12776 # Find who we are. Look in the path if we contain no directory separator.
12778 *[\\/]* ) as_myself=$0 ;;
12779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780 for as_dir in $PATH
12783 test -z "$as_dir" && as_dir=.
12784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12790 # We did not find ourselves, most probably we were run as `sh COMMAND'
12791 # in which case we are not to be found in the path.
12792 if test "x$as_myself" = x
; then
12795 if test ! -f "$as_myself"; then
12796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12800 # Unset variables that we do not need and which cause bugs (e.g. in
12801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12802 # suppresses any "Segmentation fault" message there. '((' could
12803 # trigger a bug in pdksh 5.2.14.
12804 for as_var
in BASH_ENV ENV MAIL MAILPATH
12805 do eval test x\
${$as_var+set} = xset \
12806 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12819 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12822 # as_fn_error ERROR [LINENO LOG_FD]
12823 # ---------------------------------
12824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12826 # script with status $?, using 1 if that was 0.
12829 as_status
=$?
; test $as_status -eq 0 && as_status
=1
12831 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12834 $as_echo "$as_me: error: $1" >&2
12835 as_fn_exit
$as_status
12839 # as_fn_set_status STATUS
12840 # -----------------------
12841 # Set $? to STATUS, without forking.
12842 as_fn_set_status
()
12845 } # as_fn_set_status
12847 # as_fn_exit STATUS
12848 # -----------------
12849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12853 as_fn_set_status
$1
12859 # Portably unset VAR.
12862 { eval $1=; unset $1;}
12864 as_unset
=as_fn_unset
12865 # as_fn_append VAR VALUE
12866 # ----------------------
12867 # Append the text in VALUE to the end of the definition contained in VAR. Take
12868 # advantage of any shell optimizations that allow amortized linear growth over
12869 # repeated appends, instead of the typical quadratic growth present in naive
12871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12872 eval 'as_fn_append ()
12883 # as_fn_arith ARG...
12884 # ------------------
12885 # Perform arithmetic evaluation on the ARGs, and store the result in the
12886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12887 # must be portable across $(()) and expr.
12888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12889 eval 'as_fn_arith ()
12896 as_val
=`expr "$@" || test $? -eq 1`
12901 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12902 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12908 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12909 as_basename
=basename
12914 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12920 as_me
=`$as_basename -- "$0" ||
12921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12922 X"$0" : 'X\(//\)$' \| \
12923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12925 sed '/^.*\/\([^/][^/]*\)\/*$/{
12939 # Avoid depending upon Character Ranges.
12940 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12941 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12942 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12943 as_cr_digits
='0123456789'
12944 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12946 ECHO_C
= ECHO_N
= ECHO_T
=
12947 case `echo -n x` in #(((((
12949 case `echo 'xy\c'` in
12950 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12952 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12959 rm -f conf$$ conf$$.exe conf$$.
file
12960 if test -d conf$$.dir
; then
12961 rm -f conf$$.dir
/conf$$.
file
12964 mkdir conf$$.dir
2>/dev
/null
12966 if (echo >conf$$.
file) 2>/dev
/null
; then
12967 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12969 # ... but there are two gotchas:
12970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12972 # In both cases, we have to default to `cp -p'.
12973 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12975 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12983 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12984 rmdir conf$$.dir
2>/dev
/null
12989 # Create "$as_dir" as a directory, including parents if necessary.
12994 -*) as_dir
=.
/$as_dir;;
12996 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13000 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13001 *) as_qdir
=$as_dir;;
13003 as_dirs
="'$as_qdir' $as_dirs"
13004 as_dir
=`$as_dirname -- "$as_dir" ||
13005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13006 X"$as_dir" : 'X\(//\)[^/]' \| \
13007 X"$as_dir" : 'X\(//\)$' \| \
13008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13009 $as_echo X"$as_dir" |
13010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13014 /^X\(\/\/\)[^/].*/{
13027 test -d "$as_dir" && break
13029 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13030 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
13034 if mkdir
-p .
2>/dev
/null
; then
13035 as_mkdir_p
='mkdir -p "$as_dir"'
13037 test -d .
/-p && rmdir .
/-p
13041 if test -x / >/dev
/null
2>&1; then
13042 as_test_x
='test -x'
13044 if ls -dL / >/dev
/null
2>&1; then
13051 if test -d "$1"; then
13057 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13058 ???[sx]*):;;*)false;;esac;fi
13062 as_executable_p
=$as_test_x
13064 # Sed expression to map a string onto a valid CPP name.
13065 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13067 # Sed expression to map a string onto a valid variable name.
13068 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13072 ## ----------------------------------- ##
13073 ## Main body of $CONFIG_STATUS script. ##
13074 ## ----------------------------------- ##
13076 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13079 # Save the log message, to keep $0 and so on meaningful, and to
13080 # report actual input values of CONFIG_FILES etc. instead of their
13081 # values after options handling.
13083 This file was extended by gliv $as_me 1.9.7, which was
13084 generated by GNU Autoconf 2.65. Invocation command line was
13086 CONFIG_FILES = $CONFIG_FILES
13087 CONFIG_HEADERS = $CONFIG_HEADERS
13088 CONFIG_LINKS = $CONFIG_LINKS
13089 CONFIG_COMMANDS = $CONFIG_COMMANDS
13092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13097 case $ac_config_files in *"
13098 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13101 case $ac_config_headers in *"
13102 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107 # Files that config.status was made for.
13108 config_files="$ac_config_files"
13109 config_headers="$ac_config_headers"
13110 config_commands="$ac_config_commands"
13114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13116 \`$as_me' instantiates files and other configuration actions
13117 from templates according to the current configuration. Unless the files
13118 and actions are specified as TAGs, all are instantiated by default.
13120 Usage: $0 [OPTION]... [TAG]...
13122 -h, --help print this help, then exit
13123 -V, --version print version number and configuration settings, then exit
13124 --config print configuration, then exit
13125 -q, --quiet, --silent
13126 do not print progress messages
13127 -d, --debug don't remove temporary files
13128 --recheck update $as_me by reconfiguring in the same conditions
13129 --file=FILE[:TEMPLATE]
13130 instantiate the configuration file FILE
13131 --header=FILE[:TEMPLATE]
13132 instantiate the configuration header FILE
13134 Configuration files:
13137 Configuration headers:
13140 Configuration commands:
13143 Report bugs to <guichaz@gmail.com>."
13146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13147 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13149 gliv config.status 1.9.7
13150 configured by $0, generated by GNU Autoconf 2.65,
13151 with options \\"\$ac_cs_config\\"
13153 Copyright (C) 2009 Free Software Foundation, Inc.
13154 This config.status script is free software; the Free Software Foundation
13155 gives unlimited permission to copy, distribute and modify it."
13162 test -n "\$AWK" || AWK=awk
13165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13166 # The default lists apply if the user does not specify any file.
13172 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13173 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13184 # Handling of the options.
13185 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13187 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13188 $as_echo "$ac_cs_version"; exit ;;
13189 --config |
--confi |
--conf |
--con |
--co |
--c )
13190 $as_echo "$ac_cs_config"; exit ;;
13191 --debug |
--debu |
--deb |
--de |
--d |
-d )
13193 --file |
--fil |
--fi |
--f )
13196 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13198 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13199 ac_need_defaults
=false
;;
13200 --header |
--heade |
--head |
--hea )
13203 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13205 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13206 ac_need_defaults
=false
;;
13208 # Conflict between --help and --header
13209 as_fn_error
"ambiguous option: \`$1'
13210 Try \`$0 --help' for more information.";;
13211 --help |
--hel |
-h )
13212 $as_echo "$ac_cs_usage"; exit ;;
13213 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13214 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13217 # This is an error.
13218 -*) as_fn_error
"unrecognized option: \`$1'
13219 Try \`$0 --help' for more information." ;;
13221 *) as_fn_append ac_config_targets
" $1"
13222 ac_need_defaults
=false
;;
13228 ac_configure_extra_args
=
13230 if $ac_cs_silent; then
13232 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13237 if \$ac_cs_recheck; then
13238 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13240 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13241 CONFIG_SHELL='$SHELL'
13242 export CONFIG_SHELL
13247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13251 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13252 ## Running $as_me. ##
13258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13262 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13263 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13264 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13265 # from automake < 1.5.
13266 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13267 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13268 LINGUAS="${LINGUAS-%UNSET%}"
13273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13275 # Handling of arguments.
13276 for ac_config_target
in $ac_config_targets
13278 case $ac_config_target in
13279 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
13280 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
13281 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
13282 "intl/Makefile") CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
13283 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13284 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
13285 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
13286 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
13287 "tools/glade/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/glade/Makefile" ;;
13288 "tools/glade/actions/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/glade/actions/Makefile" ;;
13289 "tools/glade/image_nr/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/glade/image_nr/Makefile" ;;
13290 "tools/glade/options/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/glade/options/Makefile" ;;
13291 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
13292 "man/cs/Makefile") CONFIG_FILES
="$CONFIG_FILES man/cs/Makefile" ;;
13293 "man/de/Makefile") CONFIG_FILES
="$CONFIG_FILES man/de/Makefile" ;;
13294 "man/en/Makefile") CONFIG_FILES
="$CONFIG_FILES man/en/Makefile" ;;
13295 "man/fr/Makefile") CONFIG_FILES
="$CONFIG_FILES man/fr/Makefile" ;;
13296 "man/ru/Makefile") CONFIG_FILES
="$CONFIG_FILES man/ru/Makefile" ;;
13297 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
13298 "gliv.spec") CONFIG_FILES
="$CONFIG_FILES gliv.spec" ;;
13300 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13305 # If the user did not use the arguments to specify the items to instantiate,
13306 # then the envvar interface is used. Set only those that are not.
13307 # We use the long form for the default assignment because of an extremely
13308 # bizarre bug on SunOS 4.1.3.
13309 if $ac_need_defaults; then
13310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13312 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13315 # Have a temporary directory for convenience. Make it in the build tree
13316 # simply because there is no reason against having it here, and in addition,
13317 # creating and moving files from /tmp can sometimes cause problems.
13318 # Hook for its removal unless debugging.
13319 # Note that there is a small window in which the directory will not be cleaned:
13320 # after its creation but before its name has been assigned to `$tmp'.
13324 trap 'exit_status=$?
13325 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13327 trap 'as_fn_exit 1' 1 2 13 15
13329 # Create a (secure) tmp directory for tmp files.
13332 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13333 test -n "$tmp" && test -d "$tmp"
13336 tmp
=.
/conf$$
-$RANDOM
13337 (umask 077 && mkdir
"$tmp")
13338 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
13340 # Set up the scripts for CONFIG_FILES section.
13341 # No need to generate them if there are no CONFIG_FILES.
13342 # This happens for instance with `./config.status config.h'.
13343 if test -n "$CONFIG_FILES"; then
13346 ac_cr
=`echo X | tr X '\015'`
13347 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13348 # But we know of no other shell where ac_cr would be empty at this
13349 # point, so we can use a bashism as a fallback.
13350 if test "x$ac_cr" = x
; then
13351 eval ac_cr
=\$
\'\\r
\'
13353 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13354 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13357 ac_cs_awk_cr
=$ac_cr
13360 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13365 echo "cat >conf$$subs.awk <<_ACEOF" &&
13366 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13368 } >conf$$subs.sh ||
13369 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
13370 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13372 for ac_last_try in false false false false false :; do
13373 . ./conf$$subs.sh ||
13374 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
13376 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13377 if test $ac_delim_n = $ac_delim_num; then
13379 elif $ac_last_try; then
13380 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
13382 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13385 rm -f conf$$subs.sh
13387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13388 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
13392 s/^/S["/; s
/!.
*/"]=/
13402 s/\(.\{148\}\)..*/\1/
13404 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13409 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13416 s/\(.\{148\}\)..*/\1/
13418 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13422 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13427 ' <conf$$subs.awk | sed '
13432 ' >>$CONFIG_STATUS || ac_write_fail=1
13433 rm -f conf$$subs.awk
13434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13436 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
13437 for (key in S) S_is_set[key] = 1
13443 nfields = split(line, field, "@
")
13445 len = length(field[1])
13446 for (i = 2; i < nfields; i++) {
13448 keylen = length(key)
13449 if (S_is_set[key]) {
13451 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13452 len += length(value) + length(field[++i])
13463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13464 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13465 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13468 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
13469 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
13472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
13474 # trailing colons and then remove the whole line if VPATH becomes empty
13475 # (actually we leave an empty line to preserve line numbers).
13476 if test "x
$srcdir" = x.; then
13477 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13478 s/:*\$(srcdir):*/:/
13479 s/:*\${srcdir}:*/:/
13481 s/^\([^=]*=[ ]*\):*/\1/
13487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13488 fi # test -n "$CONFIG_FILES"
13490 # Set up the scripts for CONFIG_HEADERS section.
13491 # No need to generate them if there are no CONFIG_HEADERS.
13492 # This happens for instance with `./config.status Makefile'.
13493 if test -n "$CONFIG_HEADERS"; then
13494 cat >"$tmp/defines.
awk" <<\_ACAWK ||
13498 # Transform confdefs.h into an awk script `defines.awk', embedded as
13499 # here-document in config.status, that substitutes the proper values into
13500 # config.h.in to produce config.h.
13502 # Create a delimiter string that does not exist in confdefs.h, to ease
13503 # handling of long lines.
13505 for ac_last_try in false false :; do
13506 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
13507 if test -z "$ac_t"; then
13509 elif $ac_last_try; then
13510 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
13512 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13516 # For the awk script, D is an array of macro values keyed by name,
13517 # likewise P contains macro parameters if any. Preserve backslash
13518 # newline sequences.
13520 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13522 s/.\{148\}/&'"$ac_delim"'/g
13525 s/^[ ]*#[ ]*define[ ][ ]*/ /
13532 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13534 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13538 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13539 D["\
1"]=" \
3\\\\\\n
"\\/p
13541 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13546 s/.\{148\}/&'"$ac_delim"'/g
13551 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13554 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13556 ' <confdefs.h | sed '
13557 s/'"$ac_delim"'/"\\\
13558 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13561 for (key in D) D_is_set[key] = 1
13564 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13566 split(line, arg, " ")
13567 if (arg[1] == "#") {
13571 defundef
= substr
(arg
[1], 2)
13574 split(mac1
, mac2
, "(") #)
13576 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13577 if (D_is_set
[macro
]) {
13578 # Preserve the white space surrounding the "#".
13579 print prefix
"define", macro P
[macro
] D
[macro
]
13582 # Replace #undef with comments. This is necessary, for example,
13583 # in the case of _POSIX_SOURCE, which is predefined and required
13584 # on some systems where configure will not decide to define it.
13585 if (defundef
== "undef") {
13586 print
"/*", prefix defundef
, macro
, "*/"
13594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13595 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
13596 fi # test -n "$CONFIG_HEADERS"
13599 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13604 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13606 case $ac_mode$ac_tag in
13608 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13609 :[FH
]-) ac_tag
=-:-;;
13610 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13627 -) ac_f
="$tmp/stdin";;
13628 *) # Look for the file first in the build tree, then in the source tree
13629 # (if the path is not absolute). The absolute path cannot be DOS-style,
13630 # because $ac_f cannot contain `:'.
13634 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13636 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
13638 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13639 as_fn_append ac_file_inputs
" '$ac_f'"
13642 # Let's still pretend it is `configure' which instantiates (i.e., don't
13643 # use $as_me), people would be surprised to read:
13644 # /* config.h. Generated by config.status. */
13645 configure_input
='Generated from '`
13646 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13648 if test x
"$ac_file" != x-
; then
13649 configure_input
="$ac_file. $configure_input"
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13651 $as_echo "$as_me: creating $ac_file" >&6;}
13653 # Neutralize special characters interpreted by sed in replacement strings.
13654 case $configure_input in #(
13655 *\
&* |
*\|
* |
*\\* )
13656 ac_sed_conf_input
=`$as_echo "$configure_input" |
13657 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13658 *) ac_sed_conf_input
=$configure_input;;
13662 *:-:* |
*:-) cat >"$tmp/stdin" \
13663 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
13668 ac_dir
=`$as_dirname -- "$ac_file" ||
13669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13670 X"$ac_file" : 'X\(//\)[^/]' \| \
13671 X"$ac_file" : 'X\(//\)$' \| \
13672 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13673 $as_echo X"$ac_file" |
13674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13678 /^X\(\/\/\)[^/].*/{
13691 as_dir
="$ac_dir"; as_fn_mkdir_p
13695 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13697 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13698 # A ".." for each directory in $ac_dir_suffix.
13699 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13700 case $ac_top_builddir_sub in
13701 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13702 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13705 ac_abs_top_builddir
=$ac_pwd
13706 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13707 # for backward compatibility:
13708 ac_top_builddir
=$ac_top_build_prefix
13711 .
) # We are building in place.
13713 ac_top_srcdir
=$ac_top_builddir_sub
13714 ac_abs_top_srcdir
=$ac_pwd ;;
13715 [\\/]* | ?
:[\\/]* ) # Absolute name.
13716 ac_srcdir
=$srcdir$ac_dir_suffix;
13717 ac_top_srcdir
=$srcdir
13718 ac_abs_top_srcdir
=$srcdir ;;
13719 *) # Relative name.
13720 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13721 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13722 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13724 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13734 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13735 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13737 ac_MKDIR_P
=$MKDIR_P
13739 [\\/$
]* | ?
:[\\/]* ) ;;
13740 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
13744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13745 # If the template does not know about datarootdir, expand it.
13746 # FIXME: This hack should be removed a few years after 2.60.
13747 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13758 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13759 *datarootdir
*) ac_datarootdir_seen
=yes;;
13760 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13762 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13765 ac_datarootdir_hack='
13766 s&@datadir@&$datadir&g
13767 s&@docdir@&$docdir&g
13768 s&@infodir@&$infodir&g
13769 s&@localedir@&$localedir&g
13770 s&@mandir@&$mandir&g
13771 s&\\\${datarootdir}&$datarootdir&g' ;;
13775 # Neutralize VPATH when `$srcdir' = `.'.
13776 # Shell code in configure.ac might set extrasub.
13777 # FIXME: do we really want to maintain this feature?
13778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13779 ac_sed_extra="$ac_vpsub
13782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13784 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13785 s|@configure_input@|
$ac_sed_conf_input|
;t t
13786 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13787 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13788 s
&@srcdir@
&$ac_srcdir&;t t
13789 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13790 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13791 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13792 s
&@builddir@
&$ac_builddir&;t t
13793 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13794 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13795 s
&@INSTALL@
&$ac_INSTALL&;t t
13796 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
13797 $ac_datarootdir_hack
13799 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
13800 || as_fn_error "could not create
$ac_file" "$LINENO" 5
13802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13803 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13804 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13806 which seems to be undefined. Please make sure it is defined." >&5
13807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13808 which seems to be undefined. Please make sure it is defined." >&2;}
13812 -) cat "$tmp/out" && rm -f "$tmp/out";;
13813 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13815 || as_fn_error "could not create $ac_file" "$LINENO" 5
13821 if test x"$ac_file" != x-; then
13823 $as_echo "/* $configure_input */" \
13824 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13825 } >"$tmp/config.h" \
13826 || as_fn_error "could not create $ac_file" "$LINENO" 5
13827 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13829 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13832 mv "$tmp/config.h" "$ac_file" \
13833 || as_fn_error "could not create $ac_file" "$LINENO" 5
13836 $as_echo "/* $configure_input */" \
13837 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13838 || as_fn_error "could not create -" "$LINENO" 5
13840 # Compute "$ac_file"'s index
in $config_headers.
13843 for _am_header
in $config_headers :; do
13844 case $_am_header in
13845 $_am_arg |
$_am_arg:* )
13848 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
13851 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13852 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13853 X"$_am_arg" : 'X\(//\)[^/]' \| \
13854 X"$_am_arg" : 'X\(//\)$' \| \
13855 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13856 $as_echo X"$_am_arg" |
13857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13861 /^X\(\/\/\)[^/].*/{
13873 s/.*/./; q'`/stamp-h
$_am_stamp_count
13876 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13877 $as_echo "$as_me: executing $ac_file commands" >&6;}
13882 case $ac_file$ac_mode in
13883 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
13884 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13885 # are listed without --file. Let's play safe and only enable the eval
13886 # if we detect the quoting.
13887 case $CONFIG_FILES in
13888 *\'*) eval set x
"$CONFIG_FILES" ;;
13889 *) set x
$CONFIG_FILES ;;
13894 # Strip MF so we end up with the name of the file.
13895 mf
=`echo "$mf" | sed -e 's/:.*$//'`
13896 # Check whether this is an Automake generated Makefile or not.
13897 # We used to match only the files named `Makefile.in', but
13898 # some people rename them; so instead we look at the file content.
13899 # Grep'ing the first line is not enough: some people post-process
13900 # each Makefile.in and add a new line on top of each file to say so.
13901 # Grep'ing the whole file is not good either: AIX grep has a line
13902 # limit of 2048, but all sed's we know have understand at least 4000.
13903 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
13904 dirpart
=`$as_dirname -- "$mf" ||
13905 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13906 X"$mf" : 'X\(//\)[^/]' \| \
13907 X"$mf" : 'X\(//\)$' \| \
13908 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13914 /^X\(\/\/\)[^/].*/{
13930 # Extract the definition of DEPDIR, am__include, and am__quote
13931 # from the Makefile without running `make'.
13932 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
13933 test -z "$DEPDIR" && continue
13934 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
13935 test -z "am__include" && continue
13936 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
13937 # When using ansi2knr, U may be empty or an underscore; expand it
13938 U
=`sed -n 's/^U = //p' < "$mf"`
13939 # Find all dependency output files, they are included files with
13940 # $(DEPDIR) in their names. We invoke sed twice because it is the
13941 # simplest approach to changing $(DEPDIR) to its actual value in the
13943 for file in `sed -n "
13944 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13945 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13946 # Make sure the directory exists.
13947 test -f "$dirpart/$file" && continue
13948 fdir
=`$as_dirname -- "$file" ||
13949 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13950 X"$file" : 'X\(//\)[^/]' \| \
13951 X"$file" : 'X\(//\)$' \| \
13952 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13953 $as_echo X"$file" |
13954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13958 /^X\(\/\/\)[^/].*/{
13971 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
13972 # echo "creating $dirpart/$file"
13973 echo '# dummy' > "$dirpart/$file"
13978 "po-directories":C
)
13979 for ac_file
in $CONFIG_FILES; do
13980 # Support "outfile[:infile[:infile...]]"
13982 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13984 # PO directories have a Makefile.in generated from Makefile.in.in.
13985 case "$ac_file" in */Makefile.
in)
13986 # Adjust a relative srcdir.
13987 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13988 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
13989 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13990 # In autoconf-2.13 it is called $ac_given_srcdir.
13991 # In autoconf-2.50 it is called $srcdir.
13992 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
13993 case "$ac_given_srcdir" in
13994 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
13995 /*) top_srcdir
="$ac_given_srcdir" ;;
13996 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13998 # Treat a directory as a PO directory if and only if it has a
13999 # POTFILES.in file. This allows packages to have multiple PO
14000 # directories under different names or in different locations.
14001 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14002 rm -f "$ac_dir/POTFILES"
14003 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
14004 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14005 POMAKEFILEDEPS
="POTFILES.in"
14006 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14007 # on $ac_dir but don't depend on user-specified configuration
14009 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14010 # The LINGUAS file contains the set of available languages.
14011 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14012 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
14014 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14015 # Hide the ALL_LINGUAS assigment from automake < 1.5.
14016 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14017 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
14019 # The set of available languages was given in configure.in.
14020 # Hide the ALL_LINGUAS assigment from automake < 1.5.
14021 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14024 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14025 # Compute UPDATEPOFILES
14026 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14027 # Compute DUMMYPOFILES
14028 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14030 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14031 case "$ac_given_srcdir" in
14033 *) srcdirpre
='$(srcdir)/' ;;
14039 for lang
in $ALL_LINGUAS; do
14040 POFILES
="$POFILES $srcdirpre$lang.po"
14041 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
14042 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
14043 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
14045 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14046 # environment variable.
14048 if test -n "$ALL_LINGUAS"; then
14049 for presentlang
in $ALL_LINGUAS; do
14051 if test "%UNSET%" != "$LINGUAS"; then
14052 desiredlanguages
="$LINGUAS"
14054 desiredlanguages
="$ALL_LINGUAS"
14056 for desiredlang
in $desiredlanguages; do
14057 # Use the presentlang catalog if desiredlang is
14058 # a. equal to presentlang, or
14059 # b. a variant of presentlang (because in this case,
14060 # presentlang can be used as a fallback for messages
14061 # which are not translated in the desiredlang catalog).
14062 case "$desiredlang" in
14063 "$presentlang"*) useit
=yes;;
14066 if test $useit = yes; then
14067 INST_LINGUAS
="$INST_LINGUAS $presentlang"
14072 if test -n "$INST_LINGUAS"; then
14073 for lang
in $INST_LINGUAS; do
14074 CATALOGS
="$CATALOGS $lang.gmo"
14077 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
14078 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14079 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
14080 if test -f "$f"; then
14082 *.orig |
*.bak |
*~
) ;;
14083 *) cat "$f" >> "$ac_dir/Makefile" ;;
14098 ac_clean_files
=$ac_clean_files_save
14100 test $ac_write_fail = 0 ||
14101 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
14104 # configure is writing to config.log, and then calls config.status.
14105 # config.status does its own redirection, appending to config.log.
14106 # Unfortunately, on DOS this fails, as config.log is still kept open
14107 # by configure, so config.status won't be able to write to it; its
14108 # output is simply discarded. So we exec the FD to /dev/null,
14109 # effectively closing config.log, so it can be properly (re)opened and
14110 # appended to by config.status. When coming back to configure, we
14111 # need to make the FD available again.
14112 if test "$no_create" != yes; then
14114 ac_config_status_args
=
14115 test "$silent" = yes &&
14116 ac_config_status_args
="$ac_config_status_args --quiet"
14118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14121 # would make configure fail if this is the last instruction.
14122 $ac_cs_success || as_fn_exit $?
14124 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14126 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14131 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"