2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for libguess 1.0.
5
# Report bugs to <bugs+libguess@atheme.org>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
if test "x$CONFIG_SHELL" = x; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in #(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
test -z "$as_dir" && as_dir=.
192
for as_base in sh bash ksh sh5; do
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
231
$as_echo "$0: Please tell bug-autoconf@gnu.org and
232
$0: bugs+libguess@atheme.org about your system, including
233
$0: any error possibly output before this message. Then
234
$0: install a modern shell, or manually run the script
235
$0: under such a shell if you do have one."
241
SHELL=${CONFIG_SHELL-/bin/sh}
243
# Unset more variables known to interfere with behavior of common tools.
244
CLICOLOR_FORCE= GREP_OPTIONS=
245
unset CLICOLOR_FORCE GREP_OPTIONS
247
## --------------------- ##
248
## M4sh Shell Functions. ##
249
## --------------------- ##
252
# Portably unset VAR.
255
{ eval $1=; unset $1;}
259
# as_fn_set_status STATUS
260
# -----------------------
261
# Set $? to STATUS, without forking.
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279
# Create "$as_dir" as a directory, including parents if necessary.
284
-*) as_dir=./$as_dir;;
286
test -d "$as_dir" || eval $as_mkdir_p || {
290
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293
as_dirs="'$as_qdir' $as_dirs"
294
as_dir=`$as_dirname -- "$as_dir" ||
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296
X"$as_dir" : 'X\(//\)[^/]' \| \
297
X"$as_dir" : 'X\(//\)$' \| \
298
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299
$as_echo X"$as_dir" |
300
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317
test -d "$as_dir" && break
319
test -z "$as_dirs" || eval "mkdir $as_dirs"
320
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
# as_fn_append VAR VALUE
325
# ----------------------
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
327
# advantage of any shell optimizations that allow amortized linear growth over
328
# repeated appends, instead of the typical quadratic growth present in naive
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331
eval 'as_fn_append ()
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
346
# must be portable across $(()) and expr.
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355
as_val=`expr "$@" || test $? -eq 1`
360
# as_fn_error ERROR [LINENO LOG_FD]
361
# ---------------------------------
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364
# script with status $?, using 1 if that was 0.
367
as_status=$?; test $as_status -eq 0 && as_status=1
369
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372
$as_echo "$as_me: error: $1" >&2
373
as_fn_exit $as_status
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
377
test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
as_me=`$as_basename -- "$0" ||
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397
X"$0" : 'X\(//\)$' \| \
398
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400
sed '/^.*\/\([^/][^/]*\)\/*$/{
414
# Avoid depending upon Character Ranges.
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418
as_cr_digits='0123456789'
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
422
as_lineno_1=$LINENO as_lineno_1a=$LINENO
423
as_lineno_2=$LINENO as_lineno_2a=$LINENO
424
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442
chmod +x "$as_me.lineno" ||
443
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
# Don't try to exec as it changes $[0], causing all sort of problems
446
# (the dirname of $[0] is not the place where we might find the
447
# original and so on. Autoconf is especially sensitive to this).
449
# Exit status is that of the last command.
453
ECHO_C= ECHO_N= ECHO_T=
454
case `echo -n x` in #(((((
456
case `echo 'xy\c'` in
457
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
459
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466
rm -f conf$$ conf$$.exe conf$$.file
467
if test -d conf$$.dir; then
468
rm -f conf$$.dir/conf$$.file
471
mkdir conf$$.dir 2>/dev/null
473
if (echo >conf$$.file) 2>/dev/null; then
474
if ln -s conf$$.file conf$$ 2>/dev/null; then
476
# ... but there are two gotchas:
477
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479
# In both cases, we have to default to `cp -p'.
480
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482
elif ln conf$$.file conf$$ 2>/dev/null; then
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491
rmdir conf$$.dir 2>/dev/null
493
if mkdir -p . 2>/dev/null; then
494
as_mkdir_p='mkdir -p "$as_dir"'
496
test -d ./-p && rmdir ./-p
500
if test -x / >/dev/null 2>&1; then
503
if ls -dL / >/dev/null 2>&1; then
510
if test -d "$1"; then
516
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517
???[sx]*):;;*)false;;esac;fi
521
as_executable_p=$as_test_x
523
# Sed expression to map a string onto a valid CPP name.
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
# Sed expression to map a string onto a valid variable name.
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
exec 7<&0 </dev/null 6>&1
533
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534
# so uname gets run too.
535
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540
ac_default_prefix=/usr/local
542
ac_config_libobj_dir=.
549
# Identity of this package.
550
PACKAGE_NAME='libguess'
551
PACKAGE_TARNAME='libguess'
552
PACKAGE_VERSION='1.0'
553
PACKAGE_STRING='libguess 1.0'
554
PACKAGE_BUGREPORT='bugs+libguess@atheme.org'
557
ac_unique_file="src/libguess/guess.c"
558
# Factoring default headers for most tests.
559
ac_includes_default="\
561
#ifdef HAVE_SYS_TYPES_H
562
# include <sys/types.h>
564
#ifdef HAVE_SYS_STAT_H
565
# include <sys/stat.h>
571
# ifdef HAVE_STDLIB_H
576
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581
#ifdef HAVE_STRINGS_H
582
# include <strings.h>
584
#ifdef HAVE_INTTYPES_H
585
# include <inttypes.h>
594
ac_subst_vars='LTLIBOBJS
668
program_transform_name
681
enable_option_checking
684
ac_precious_vars='build_alias
695
# Initialize some variables set by options.
697
ac_init_version=false
698
ac_unrecognized_opts=
700
# The variables have the same names as the options, with
701
# dashes changed to underlines.
709
program_transform_name=s,x,x,
717
# Installation directory options.
718
# These are left unexpanded so users can "make install exec_prefix=/foo"
719
# and all the variables that are supposed to be based on exec_prefix
720
# by default will actually change.
721
# Use braces instead of parens because sh, perl, etc. also accept them.
722
# (The list follows the same order as the GNU Coding Standards.)
723
bindir='${exec_prefix}/bin'
724
sbindir='${exec_prefix}/sbin'
725
libexecdir='${exec_prefix}/libexec'
726
datarootdir='${prefix}/share'
727
datadir='${datarootdir}'
728
sysconfdir='${prefix}/etc'
729
sharedstatedir='${prefix}/com'
730
localstatedir='${prefix}/var'
731
includedir='${prefix}/include'
732
oldincludedir='/usr/include'
733
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
734
infodir='${datarootdir}/info'
739
libdir='${exec_prefix}/lib'
740
localedir='${datarootdir}/locale'
741
mandir='${datarootdir}/man'
747
# If the previous option needs an argument, assign it.
748
if test -n "$ac_prev"; then
749
eval $ac_prev=\$ac_option
755
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759
# Accept the important Cygnus configure options, so we can diagnose typos.
761
case $ac_dashdash$ac_option in
765
-bindir | --bindir | --bindi | --bind | --bin | --bi)
767
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
770
-build | --build | --buil | --bui | --bu)
771
ac_prev=build_alias ;;
772
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
773
build_alias=$ac_optarg ;;
775
-cache-file | --cache-file | --cache-fil | --cache-fi \
776
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
777
ac_prev=cache_file ;;
778
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
779
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
780
cache_file=$ac_optarg ;;
783
cache_file=config.cache ;;
785
-datadir | --datadir | --datadi | --datad)
787
-datadir=* | --datadir=* | --datadi=* | --datad=*)
788
datadir=$ac_optarg ;;
790
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
791
| --dataroo | --dataro | --datar)
792
ac_prev=datarootdir ;;
793
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
794
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
795
datarootdir=$ac_optarg ;;
797
-disable-* | --disable-*)
798
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
799
# Reject names that are not valid shell variable names.
800
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
801
as_fn_error "invalid feature name: $ac_useropt"
802
ac_useropt_orig=$ac_useropt
803
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
804
case $ac_user_opts in
808
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
809
ac_unrecognized_sep=', ';;
811
eval enable_$ac_useropt=no ;;
813
-docdir | --docdir | --docdi | --doc | --do)
815
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
818
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
820
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
823
-enable-* | --enable-*)
824
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
825
# Reject names that are not valid shell variable names.
826
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827
as_fn_error "invalid feature name: $ac_useropt"
828
ac_useropt_orig=$ac_useropt
829
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
830
case $ac_user_opts in
834
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
835
ac_unrecognized_sep=', ';;
837
eval enable_$ac_useropt=\$ac_optarg ;;
839
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
840
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
841
| --exec | --exe | --ex)
842
ac_prev=exec_prefix ;;
843
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
844
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
845
| --exec=* | --exe=* | --ex=*)
846
exec_prefix=$ac_optarg ;;
848
-gas | --gas | --ga | --g)
849
# Obsolete; use --with-gas.
852
-help | --help | --hel | --he | -h)
854
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
855
ac_init_help=recursive ;;
856
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
857
ac_init_help=short ;;
859
-host | --host | --hos | --ho)
860
ac_prev=host_alias ;;
861
-host=* | --host=* | --hos=* | --ho=*)
862
host_alias=$ac_optarg ;;
864
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
866
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
868
htmldir=$ac_optarg ;;
870
-includedir | --includedir | --includedi | --included | --include \
871
| --includ | --inclu | --incl | --inc)
872
ac_prev=includedir ;;
873
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
874
| --includ=* | --inclu=* | --incl=* | --inc=*)
875
includedir=$ac_optarg ;;
877
-infodir | --infodir | --infodi | --infod | --info | --inf)
879
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
880
infodir=$ac_optarg ;;
882
-libdir | --libdir | --libdi | --libd)
884
-libdir=* | --libdir=* | --libdi=* | --libd=*)
887
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
888
| --libexe | --libex | --libe)
889
ac_prev=libexecdir ;;
890
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
891
| --libexe=* | --libex=* | --libe=*)
892
libexecdir=$ac_optarg ;;
894
-localedir | --localedir | --localedi | --localed | --locale)
896
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
897
localedir=$ac_optarg ;;
899
-localstatedir | --localstatedir | --localstatedi | --localstated \
900
| --localstate | --localstat | --localsta | --localst | --locals)
901
ac_prev=localstatedir ;;
902
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
903
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
904
localstatedir=$ac_optarg ;;
906
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
908
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
912
# Obsolete; use --without-fp.
915
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
916
| --no-cr | --no-c | -n)
919
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
920
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
923
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
924
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
925
| --oldin | --oldi | --old | --ol | --o)
926
ac_prev=oldincludedir ;;
927
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
928
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
929
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
930
oldincludedir=$ac_optarg ;;
932
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
934
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
937
-program-prefix | --program-prefix | --program-prefi | --program-pref \
938
| --program-pre | --program-pr | --program-p)
939
ac_prev=program_prefix ;;
940
-program-prefix=* | --program-prefix=* | --program-prefi=* \
941
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
942
program_prefix=$ac_optarg ;;
944
-program-suffix | --program-suffix | --program-suffi | --program-suff \
945
| --program-suf | --program-su | --program-s)
946
ac_prev=program_suffix ;;
947
-program-suffix=* | --program-suffix=* | --program-suffi=* \
948
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
949
program_suffix=$ac_optarg ;;
951
-program-transform-name | --program-transform-name \
952
| --program-transform-nam | --program-transform-na \
953
| --program-transform-n | --program-transform- \
954
| --program-transform | --program-transfor \
955
| --program-transfo | --program-transf \
956
| --program-trans | --program-tran \
957
| --progr-tra | --program-tr | --program-t)
958
ac_prev=program_transform_name ;;
959
-program-transform-name=* | --program-transform-name=* \
960
| --program-transform-nam=* | --program-transform-na=* \
961
| --program-transform-n=* | --program-transform-=* \
962
| --program-transform=* | --program-transfor=* \
963
| --program-transfo=* | --program-transf=* \
964
| --program-trans=* | --program-tran=* \
965
| --progr-tra=* | --program-tr=* | --program-t=*)
966
program_transform_name=$ac_optarg ;;
968
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
970
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
973
-psdir | --psdir | --psdi | --psd | --ps)
975
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
978
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
979
| -silent | --silent | --silen | --sile | --sil)
982
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
984
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
986
sbindir=$ac_optarg ;;
988
-sharedstatedir | --sharedstatedir | --sharedstatedi \
989
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
990
| --sharedst | --shareds | --shared | --share | --shar \
992
ac_prev=sharedstatedir ;;
993
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
994
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
995
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
997
sharedstatedir=$ac_optarg ;;
999
-site | --site | --sit)
1001
-site=* | --site=* | --sit=*)
1004
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1006
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1007
srcdir=$ac_optarg ;;
1009
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1010
| --syscon | --sysco | --sysc | --sys | --sy)
1011
ac_prev=sysconfdir ;;
1012
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1013
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1014
sysconfdir=$ac_optarg ;;
1016
-target | --target | --targe | --targ | --tar | --ta | --t)
1017
ac_prev=target_alias ;;
1018
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1019
target_alias=$ac_optarg ;;
1021
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1024
-version | --version | --versio | --versi | --vers | -V)
1025
ac_init_version=: ;;
1028
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1029
# Reject names that are not valid shell variable names.
1030
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031
as_fn_error "invalid package name: $ac_useropt"
1032
ac_useropt_orig=$ac_useropt
1033
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034
case $ac_user_opts in
1038
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1039
ac_unrecognized_sep=', ';;
1041
eval with_$ac_useropt=\$ac_optarg ;;
1043
-without-* | --without-*)
1044
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1045
# Reject names that are not valid shell variable names.
1046
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047
as_fn_error "invalid package name: $ac_useropt"
1048
ac_useropt_orig=$ac_useropt
1049
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050
case $ac_user_opts in
1054
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1055
ac_unrecognized_sep=', ';;
1057
eval with_$ac_useropt=no ;;
1060
# Obsolete; use --with-x.
1063
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1064
| --x-incl | --x-inc | --x-in | --x-i)
1065
ac_prev=x_includes ;;
1066
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1067
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1068
x_includes=$ac_optarg ;;
1070
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1071
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1072
ac_prev=x_libraries ;;
1073
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1074
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1075
x_libraries=$ac_optarg ;;
1077
-*) as_fn_error "unrecognized option: \`$ac_option'
1078
Try \`$0 --help' for more information."
1082
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1083
# Reject names that are not valid shell variable names.
1084
case $ac_envvar in #(
1085
'' | [0-9]* | *[!_$as_cr_alnum]* )
1086
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1088
eval $ac_envvar=\$ac_optarg
1089
export $ac_envvar ;;
1092
# FIXME: should be removed in autoconf 3.0.
1093
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1094
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1096
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1102
if test -n "$ac_prev"; then
1103
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1104
as_fn_error "missing argument to $ac_option"
1107
if test -n "$ac_unrecognized_opts"; then
1108
case $enable_option_checking in
1110
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1111
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1115
# Check all directory arguments for consistency.
1116
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1117
datadir sysconfdir sharedstatedir localstatedir includedir \
1118
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1119
libdir localedir mandir
1121
eval ac_val=\$$ac_var
1122
# Remove trailing slashes.
1125
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1126
eval $ac_var=\$ac_val;;
1128
# Be sure to have absolute directory names.
1130
[\\/$]* | ?:[\\/]* ) continue;;
1131
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1133
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1136
# There might be people who depend on the old broken behavior: `$host'
1137
# used to hold the argument of --host etc.
1138
# FIXME: To remove some day.
1141
target=$target_alias
1143
# FIXME: To remove some day.
1144
if test "x$host_alias" != x; then
1145
if test "x$build_alias" = x; then
1146
cross_compiling=maybe
1147
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148
If a cross compiler is detected then cross compile mode will be used." >&2
1149
elif test "x$build_alias" != "x$host_alias"; then
1155
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157
test "$silent" = yes && exec 6>/dev/null
1160
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161
ac_ls_di=`ls -di .` &&
1162
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163
as_fn_error "working directory cannot be determined"
1164
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165
as_fn_error "pwd does not report name of working directory"
1168
# Find the source files, if location was not specified.
1169
if test -z "$srcdir"; then
1170
ac_srcdir_defaulted=yes
1171
# Try the directory containing this script, then the parent directory.
1172
ac_confdir=`$as_dirname -- "$as_myself" ||
1173
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174
X"$as_myself" : 'X\(//\)[^/]' \| \
1175
X"$as_myself" : 'X\(//\)$' \| \
1176
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1177
$as_echo X"$as_myself" |
1178
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196
if test ! -r "$srcdir/$ac_unique_file"; then
1200
ac_srcdir_defaulted=no
1202
if test ! -r "$srcdir/$ac_unique_file"; then
1203
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1206
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1210
# When building in place, set srcdir=.
1211
if test "$ac_abs_confdir" = "$ac_pwd"; then
1214
# Remove unnecessary trailing slashes from srcdir.
1215
# Double slashes in file names in object file debugging info
1216
# mess up M-x gdb in Emacs.
1218
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220
for ac_var in $ac_precious_vars; do
1221
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1222
eval ac_env_${ac_var}_value=\$${ac_var}
1223
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1224
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228
# Report the --help message.
1230
if test "$ac_init_help" = "long"; then
1231
# Omit some internal or obsolete options to make the list less imposing.
1232
# This message is too long to be a string in the A/UX 3.1 sh.
1234
\`configure' configures libguess 1.0 to adapt to many kinds of systems.
1236
Usage: $0 [OPTION]... [VAR=VALUE]...
1238
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1239
VAR=VALUE. See below for descriptions of some of the useful variables.
1241
Defaults for the options are specified in brackets.
1244
-h, --help display this help and exit
1245
--help=short display options specific to this package
1246
--help=recursive display the short help of all the included packages
1247
-V, --version display version information and exit
1248
-q, --quiet, --silent do not print \`checking...' messages
1249
--cache-file=FILE cache test results in FILE [disabled]
1250
-C, --config-cache alias for \`--cache-file=config.cache'
1251
-n, --no-create do not create output files
1252
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1254
Installation directories:
1255
--prefix=PREFIX install architecture-independent files in PREFIX
1256
[$ac_default_prefix]
1257
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260
By default, \`make install' will install all the files in
1261
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1262
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1263
for instance \`--prefix=\$HOME'.
1265
For better control, use the options below.
1267
Fine tuning of the installation directories:
1268
--bindir=DIR user executables [EPREFIX/bin]
1269
--sbindir=DIR system admin executables [EPREFIX/sbin]
1270
--libexecdir=DIR program executables [EPREFIX/libexec]
1271
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1272
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1273
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1274
--libdir=DIR object code libraries [EPREFIX/lib]
1275
--includedir=DIR C header files [PREFIX/include]
1276
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1277
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1278
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1279
--infodir=DIR info documentation [DATAROOTDIR/info]
1280
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1281
--mandir=DIR man documentation [DATAROOTDIR/man]
1282
--docdir=DIR documentation root [DATAROOTDIR/doc/libguess]
1283
--htmldir=DIR html documentation [DOCDIR]
1284
--dvidir=DIR dvi documentation [DOCDIR]
1285
--pdfdir=DIR pdf documentation [DOCDIR]
1286
--psdir=DIR ps documentation [DOCDIR]
1292
--build=BUILD configure for building on BUILD [guessed]
1293
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1294
--target=TARGET configure for building compilers for TARGET [HOST]
1298
if test -n "$ac_init_help"; then
1299
case $ac_init_help in
1300
short | recursive ) echo "Configuration of libguess 1.0:";;
1305
--disable-option-checking ignore unrecognized --enable/--with options
1306
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1307
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1308
--enable-examples build and install example programs
1310
Some influential environment variables:
1311
CC C compiler command
1312
CFLAGS C compiler flags
1313
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1314
nonstandard directory <lib dir>
1315
LIBS libraries to pass to the linker, e.g. -l<library>
1316
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1317
you have headers in a nonstandard directory <include dir>
1320
Use these variables to override the choices made by `configure' or to help
1321
it to find libraries and programs with nonstandard names/locations.
1323
Report bugs to <bugs+libguess@atheme.org>.
1328
if test "$ac_init_help" = "recursive"; then
1329
# If there are subdirs, report their specific --help.
1330
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1331
test -d "$ac_dir" ||
1332
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1337
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1340
# A ".." for each directory in $ac_dir_suffix.
1341
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1342
case $ac_top_builddir_sub in
1343
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1347
ac_abs_top_builddir=$ac_pwd
1348
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1349
# for backward compatibility:
1350
ac_top_builddir=$ac_top_build_prefix
1353
.) # We are building in place.
1355
ac_top_srcdir=$ac_top_builddir_sub
1356
ac_abs_top_srcdir=$ac_pwd ;;
1357
[\\/]* | ?:[\\/]* ) # Absolute name.
1358
ac_srcdir=$srcdir$ac_dir_suffix;
1359
ac_top_srcdir=$srcdir
1360
ac_abs_top_srcdir=$srcdir ;;
1362
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1363
ac_top_srcdir=$ac_top_build_prefix$srcdir
1364
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1366
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1368
cd "$ac_dir" || { ac_status=$?; continue; }
1369
# Check for guested configure.
1370
if test -f "$ac_srcdir/configure.gnu"; then
1372
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1373
elif test -f "$ac_srcdir/configure"; then
1375
$SHELL "$ac_srcdir/configure" --help=recursive
1377
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1379
cd "$ac_pwd" || { ac_status=$?; break; }
1383
test -n "$ac_init_help" && exit $ac_status
1384
if $ac_init_version; then
1386
libguess configure 1.0
1387
generated by GNU Autoconf 2.64
1389
Copyright (C) 2009 Free Software Foundation, Inc.
1390
This configure script is free software; the Free Software Foundation
1391
gives unlimited permission to copy, distribute and modify it.
1396
## ------------------------ ##
1397
## Autoconf initialization. ##
1398
## ------------------------ ##
1400
# ac_fn_c_try_compile LINENO
1401
# --------------------------
1402
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1403
ac_fn_c_try_compile ()
1405
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1406
rm -f conftest.$ac_objext
1407
if { { ac_try="$ac_compile"
1409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1410
*) ac_try_echo=$ac_try;;
1412
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1413
$as_echo "$ac_try_echo"; } >&5
1414
(eval "$ac_compile") 2>conftest.err
1416
if test -s conftest.err; then
1417
grep -v '^ *+' conftest.err >conftest.er1
1418
cat conftest.er1 >&5
1419
mv -f conftest.er1 conftest.err
1421
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1422
test $ac_status = 0; } && {
1423
test -z "$ac_c_werror_flag" ||
1424
test ! -s conftest.err
1425
} && test -s conftest.$ac_objext; then :
1428
$as_echo "$as_me: failed program was:" >&5
1429
sed 's/^/| /' conftest.$ac_ext >&5
1433
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1436
} # ac_fn_c_try_compile
1438
# ac_fn_c_try_link LINENO
1439
# -----------------------
1440
# Try to link conftest.$ac_ext, and return whether this succeeded.
1443
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444
rm -f conftest.$ac_objext conftest$ac_exeext
1445
if { { ac_try="$ac_link"
1447
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1448
*) ac_try_echo=$ac_try;;
1450
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451
$as_echo "$ac_try_echo"; } >&5
1452
(eval "$ac_link") 2>conftest.err
1454
if test -s conftest.err; then
1455
grep -v '^ *+' conftest.err >conftest.er1
1456
cat conftest.er1 >&5
1457
mv -f conftest.er1 conftest.err
1459
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1460
test $ac_status = 0; } && {
1461
test -z "$ac_c_werror_flag" ||
1462
test ! -s conftest.err
1463
} && test -s conftest$ac_exeext && {
1464
test "$cross_compiling" = yes ||
1465
$as_test_x conftest$ac_exeext
1469
$as_echo "$as_me: failed program was:" >&5
1470
sed 's/^/| /' conftest.$ac_ext >&5
1474
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1475
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1476
# interfere with the next link command; also delete a directory that is
1477
# left behind by Apple's compiler. We do this before executing the actions.
1478
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1479
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1482
} # ac_fn_c_try_link
1484
# ac_fn_c_try_cpp LINENO
1485
# ----------------------
1486
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1489
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490
if { { ac_try="$ac_cpp conftest.$ac_ext"
1492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493
*) ac_try_echo=$ac_try;;
1495
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496
$as_echo "$ac_try_echo"; } >&5
1497
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1499
if test -s conftest.err; then
1500
grep -v '^ *+' conftest.err >conftest.er1
1501
cat conftest.er1 >&5
1502
mv -f conftest.er1 conftest.err
1504
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505
test $ac_status = 0; } >/dev/null && {
1506
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1507
test ! -s conftest.err
1511
$as_echo "$as_me: failed program was:" >&5
1512
sed 's/^/| /' conftest.$ac_ext >&5
1516
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521
# ac_fn_c_try_run LINENO
1522
# ----------------------
1523
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1524
# that executables *can* be run.
1527
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528
if { { ac_try="$ac_link"
1530
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531
*) ac_try_echo=$ac_try;;
1533
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534
$as_echo "$ac_try_echo"; } >&5
1535
(eval "$ac_link") 2>&5
1537
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1539
{ { case "(($ac_try" in
1540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541
*) ac_try_echo=$ac_try;;
1543
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544
$as_echo "$ac_try_echo"; } >&5
1545
(eval "$ac_try") 2>&5
1547
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548
test $ac_status = 0; }; }; then :
1551
$as_echo "$as_me: program exited with status $ac_status" >&5
1552
$as_echo "$as_me: failed program was:" >&5
1553
sed 's/^/| /' conftest.$ac_ext >&5
1555
ac_retval=$ac_status
1557
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1564
# -------------------------------------------------------
1565
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1566
# the include files in INCLUDES and setting the cache variable VAR
1568
ac_fn_c_check_header_mongrel ()
1570
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573
$as_echo_n "checking for $2... " >&6; }
1574
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1575
$as_echo_n "(cached) " >&6
1578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579
$as_echo "$ac_res" >&6; }
1581
# Is the header compilable?
1582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1583
$as_echo_n "checking $2 usability... " >&6; }
1584
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585
/* end confdefs.h. */
1589
if ac_fn_c_try_compile "$LINENO"; then :
1590
ac_header_compiler=yes
1592
ac_header_compiler=no
1594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1596
$as_echo "$ac_header_compiler" >&6; }
1598
# Is the header present?
1599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1600
$as_echo_n "checking $2 presence... " >&6; }
1601
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602
/* end confdefs.h. */
1605
if ac_fn_c_try_cpp "$LINENO"; then :
1606
ac_header_preproc=yes
1608
ac_header_preproc=no
1610
rm -f conftest.err conftest.$ac_ext
1611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1612
$as_echo "$ac_header_preproc" >&6; }
1614
# So? What about this header?
1615
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1617
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1618
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1619
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1620
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1623
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1624
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1625
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1626
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1627
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1628
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1629
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1630
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1631
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634
## --------------------------------------- ##
1635
## Report this to bugs+libguess@atheme.org ##
1636
## --------------------------------------- ##
1638
) | sed "s/^/$as_me: WARNING: /" >&2
1641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642
$as_echo_n "checking for $2... " >&6; }
1643
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1644
$as_echo_n "(cached) " >&6
1646
eval "$3=\$ac_header_compiler"
1649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650
$as_echo "$ac_res" >&6; }
1652
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654
} # ac_fn_c_check_header_mongrel
1656
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1657
# -------------------------------------------------------
1658
# Tests whether HEADER exists and can be compiled using the include files in
1659
# INCLUDES, setting the cache variable VAR accordingly.
1660
ac_fn_c_check_header_compile ()
1662
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664
$as_echo_n "checking for $2... " >&6; }
1665
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1666
$as_echo_n "(cached) " >&6
1668
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669
/* end confdefs.h. */
1673
if ac_fn_c_try_compile "$LINENO"; then :
1678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682
$as_echo "$ac_res" >&6; }
1683
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1685
} # ac_fn_c_check_header_compile
1687
# ac_fn_c_check_func LINENO FUNC VAR
1688
# ----------------------------------
1689
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1690
ac_fn_c_check_func ()
1692
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694
$as_echo_n "checking for $2... " >&6; }
1695
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1696
$as_echo_n "(cached) " >&6
1698
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699
/* end confdefs.h. */
1700
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1701
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1702
#define $2 innocuous_$2
1704
/* System header to define __stub macros and hopefully few prototypes,
1705
which can conflict with char $2 (); below.
1706
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1707
<limits.h> exists even on freestanding compilers. */
1710
# include <limits.h>
1712
# include <assert.h>
1717
/* Override any GCC internal prototype to avoid an error.
1718
Use char because int might match the return type of a GCC
1719
builtin and then its argument prototype would still apply. */
1724
/* The GNU C library defines this for functions which it implements
1725
to always fail with ENOSYS. Some functions are actually named
1726
something starting with __ and the normal name is an alias. */
1727
#if defined __stub_$2 || defined __stub___$2
1739
if ac_fn_c_try_link "$LINENO"; then :
1744
rm -f core conftest.err conftest.$ac_objext \
1745
conftest$ac_exeext conftest.$ac_ext
1748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749
$as_echo "$ac_res" >&6; }
1750
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752
} # ac_fn_c_check_func
1753
cat >config.log <<_ACEOF
1754
This file contains any messages produced by compilers while
1755
running configure, to aid debugging if configure makes a mistake.
1757
It was created by libguess $as_me 1.0, which was
1758
generated by GNU Autoconf 2.64. Invocation command line was
1770
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1771
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1772
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1773
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1774
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1776
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1777
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1779
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1780
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1781
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1782
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1783
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1784
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1785
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793
test -z "$as_dir" && as_dir=.
1794
$as_echo "PATH: $as_dir"
1810
# Keep a trace of the command line.
1811
# Strip out --no-create and --no-recursion so they do not pile up.
1812
# Strip out --silent because we don't want to record it for future runs.
1813
# Also quote any args containing shell meta-characters.
1814
# Make two passes to allow for proper duplicate-argument suppression.
1818
ac_must_keep_next=false
1824
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1825
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1826
| -silent | --silent | --silen | --sile | --sil)
1829
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1832
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1834
as_fn_append ac_configure_args1 " '$ac_arg'"
1835
if test $ac_must_keep_next = true; then
1836
ac_must_keep_next=false # Got value, back to normal.
1839
*=* | --config-cache | -C | -disable-* | --disable-* \
1840
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1841
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1842
| -with-* | --with-* | -without-* | --without-* | --x)
1843
case "$ac_configure_args0 " in
1844
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1847
-* ) ac_must_keep_next=true ;;
1850
as_fn_append ac_configure_args " '$ac_arg'"
1855
{ ac_configure_args0=; unset ac_configure_args0;}
1856
{ ac_configure_args1=; unset ac_configure_args1;}
1858
# When interrupted or exit'd, cleanup temporary files, and complete
1859
# config.log. We remove comments because anyway the quotes in there
1860
# would cause problems or look ugly.
1861
# WARNING: Use '\'' to represent an apostrophe within the trap.
1862
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1863
trap 'exit_status=$?
1864
# Save into config.log some information that might help in debugging.
1869
## ---------------- ##
1870
## Cache variables. ##
1871
## ---------------- ##
1874
# The following way of writing the cache mishandles newlines in values,
1876
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1877
eval ac_val=\$$ac_var
1881
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1882
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1885
_ | IFS | as_nl) ;; #(
1886
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1887
*) { eval $ac_var=; unset $ac_var;} ;;
1892
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1893
*${as_nl}ac_space=\ *)
1895
"s/'\''/'\''\\\\'\'''\''/g;
1896
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1899
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1907
## ----------------- ##
1908
## Output variables. ##
1909
## ----------------- ##
1912
for ac_var in $ac_subst_vars
1914
eval ac_val=\$$ac_var
1916
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918
$as_echo "$ac_var='\''$ac_val'\''"
1922
if test -n "$ac_subst_files"; then
1924
## ------------------- ##
1925
## File substitutions. ##
1926
## ------------------- ##
1929
for ac_var in $ac_subst_files
1931
eval ac_val=\$$ac_var
1933
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1935
$as_echo "$ac_var='\''$ac_val'\''"
1940
if test -s confdefs.h; then
1950
test "$ac_signal" != 0 &&
1951
$as_echo "$as_me: caught signal $ac_signal"
1952
$as_echo "$as_me: exit $exit_status"
1954
rm -f core *.core core.conftest.* &&
1955
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1958
for ac_signal in 1 2 13 15; do
1959
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1963
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1964
rm -f -r conftest* confdefs.h
1966
$as_echo "/* confdefs.h */" > confdefs.h
1968
# Predefined preprocessor variables.
1970
cat >>confdefs.h <<_ACEOF
1971
#define PACKAGE_NAME "$PACKAGE_NAME"
1974
cat >>confdefs.h <<_ACEOF
1975
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1978
cat >>confdefs.h <<_ACEOF
1979
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1982
cat >>confdefs.h <<_ACEOF
1983
#define PACKAGE_STRING "$PACKAGE_STRING"
1986
cat >>confdefs.h <<_ACEOF
1987
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1990
cat >>confdefs.h <<_ACEOF
1991
#define PACKAGE_URL "$PACKAGE_URL"
1995
# Let the site file select an alternate cache file if it wants to.
1996
# Prefer an explicitly selected file to automatically selected ones.
1999
if test -n "$CONFIG_SITE"; then
2000
ac_site_file1=$CONFIG_SITE
2001
elif test "x$prefix" != xNONE; then
2002
ac_site_file1=$prefix/share/config.site
2003
ac_site_file2=$prefix/etc/config.site
2005
ac_site_file1=$ac_default_prefix/share/config.site
2006
ac_site_file2=$ac_default_prefix/etc/config.site
2008
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2010
test "x$ac_site_file" = xNONE && continue
2011
if test -r "$ac_site_file"; then
2012
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2013
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2014
sed 's/^/| /' "$ac_site_file" >&5
2019
if test -r "$cache_file"; then
2020
# Some versions of bash will fail to source /dev/null (special
2021
# files actually), so we avoid doing that.
2022
if test -f "$cache_file"; then
2023
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2024
$as_echo "$as_me: loading cache $cache_file" >&6;}
2026
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2027
*) . "./$cache_file";;
2031
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2032
$as_echo "$as_me: creating cache $cache_file" >&6;}
2036
# Check that the precious variables saved in the cache have kept the same
2038
ac_cache_corrupted=false
2039
for ac_var in $ac_precious_vars; do
2040
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2041
eval ac_new_set=\$ac_env_${ac_var}_set
2042
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2043
eval ac_new_val=\$ac_env_${ac_var}_value
2044
case $ac_old_set,$ac_new_set in
2046
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2047
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2048
ac_cache_corrupted=: ;;
2050
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2051
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2052
ac_cache_corrupted=: ;;
2055
if test "x$ac_old_val" != "x$ac_new_val"; then
2056
# differences in whitespace do not lead to failure.
2057
ac_old_val_w=`echo x $ac_old_val`
2058
ac_new_val_w=`echo x $ac_new_val`
2059
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2060
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2061
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2062
ac_cache_corrupted=:
2064
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2065
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2066
eval $ac_var=\$ac_old_val
2068
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2069
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2070
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2071
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2074
# Pass precious variables to config.status.
2075
if test "$ac_new_set" = set; then
2077
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2078
*) ac_arg=$ac_var=$ac_new_val ;;
2080
case " $ac_configure_args " in
2081
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2082
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2086
if $ac_cache_corrupted; then
2087
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2088
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2090
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2091
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2093
## -------------------- ##
2094
## Main body of script. ##
2095
## -------------------- ##
2098
ac_cpp='$CPP $CPPFLAGS'
2099
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105
ac_config_headers="$ac_config_headers src/libguess/autoconf.h"
2109
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2110
for ac_t in install-sh install.sh shtool; do
2111
if test -f "$ac_dir/$ac_t"; then
2113
ac_install_sh="$ac_aux_dir/$ac_t -c"
2118
if test -z "$ac_aux_dir"; then
2119
as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2122
# These three variables are undocumented and unsupported,
2123
# and are intended to be withdrawn in a future Autoconf release.
2124
# They can cause serious problems if a builder's source tree is in a directory
2125
# whose full name contains unusual characters.
2126
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2127
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2128
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2131
# Make sure we can run config.sub.
2132
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2133
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2136
$as_echo_n "checking build system type... " >&6; }
2137
if test "${ac_cv_build+set}" = set; then :
2138
$as_echo_n "(cached) " >&6
2140
ac_build_alias=$build_alias
2141
test "x$ac_build_alias" = x &&
2142
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143
test "x$ac_build_alias" = x &&
2144
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2145
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2146
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2150
$as_echo "$ac_cv_build" >&6; }
2151
case $ac_cv_build in
2153
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2156
ac_save_IFS=$IFS; IFS='-'
2162
# Remember, the first character of IFS is used to create $*,
2163
# except with old shells:
2166
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2170
$as_echo_n "checking host system type... " >&6; }
2171
if test "${ac_cv_host+set}" = set; then :
2172
$as_echo_n "(cached) " >&6
2174
if test "x$host_alias" = x; then
2175
ac_cv_host=$ac_cv_build
2177
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2178
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2183
$as_echo "$ac_cv_host" >&6; }
2186
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2189
ac_save_IFS=$IFS; IFS='-'
2195
# Remember, the first character of IFS is used to create $*,
2196
# except with old shells:
2199
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2203
$as_echo_n "checking target system type... " >&6; }
2204
if test "${ac_cv_target+set}" = set; then :
2205
$as_echo_n "(cached) " >&6
2207
if test "x$target_alias" = x; then
2208
ac_cv_target=$ac_cv_host
2210
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2211
as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2216
$as_echo "$ac_cv_target" >&6; }
2217
case $ac_cv_target in
2219
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2221
target=$ac_cv_target
2222
ac_save_IFS=$IFS; IFS='-'
2228
# Remember, the first character of IFS is used to create $*,
2229
# except with old shells:
2232
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2235
# The aliases save the names the user supplied, while $host etc.
2236
# will get canonicalized.
2237
test -n "$target_alias" &&
2238
test "$program_prefix$program_suffix$program_transform_name" = \
2240
program_prefix=${target_alias}-
2242
# Checks for programs.
2244
ac_cpp='$CPP $CPPFLAGS'
2245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2248
if test -n "$ac_tool_prefix"; then
2249
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2250
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2252
$as_echo_n "checking for $ac_word... " >&6; }
2253
if test "${ac_cv_prog_CC+set}" = set; then :
2254
$as_echo_n "(cached) " >&6
2256
if test -n "$CC"; then
2257
ac_cv_prog_CC="$CC" # Let the user override the test.
2259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263
test -z "$as_dir" && as_dir=.
2264
for ac_exec_ext in '' $ac_executable_extensions; do
2265
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2267
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2277
if test -n "$CC"; then
2278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2279
$as_echo "$CC" >&6; }
2281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2282
$as_echo "no" >&6; }
2287
if test -z "$ac_cv_prog_CC"; then
2289
# Extract the first word of "gcc", so it can be a program name with args.
2290
set dummy gcc; ac_word=$2
2291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2292
$as_echo_n "checking for $ac_word... " >&6; }
2293
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2294
$as_echo_n "(cached) " >&6
2296
if test -n "$ac_ct_CC"; then
2297
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303
test -z "$as_dir" && as_dir=.
2304
for ac_exec_ext in '' $ac_executable_extensions; do
2305
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2306
ac_cv_prog_ac_ct_CC="gcc"
2307
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2316
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2317
if test -n "$ac_ct_CC"; then
2318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2319
$as_echo "$ac_ct_CC" >&6; }
2321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2322
$as_echo "no" >&6; }
2325
if test "x$ac_ct_CC" = x; then
2328
case $cross_compiling:$ac_tool_warned in
2330
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2331
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2332
ac_tool_warned=yes ;;
2340
if test -z "$CC"; then
2341
if test -n "$ac_tool_prefix"; then
2342
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2343
set dummy ${ac_tool_prefix}cc; ac_word=$2
2344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2345
$as_echo_n "checking for $ac_word... " >&6; }
2346
if test "${ac_cv_prog_CC+set}" = set; then :
2347
$as_echo_n "(cached) " >&6
2349
if test -n "$CC"; then
2350
ac_cv_prog_CC="$CC" # Let the user override the test.
2352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356
test -z "$as_dir" && as_dir=.
2357
for ac_exec_ext in '' $ac_executable_extensions; do
2358
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359
ac_cv_prog_CC="${ac_tool_prefix}cc"
2360
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2370
if test -n "$CC"; then
2371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2372
$as_echo "$CC" >&6; }
2374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2375
$as_echo "no" >&6; }
2381
if test -z "$CC"; then
2382
# Extract the first word of "cc", so it can be a program name with args.
2383
set dummy cc; ac_word=$2
2384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385
$as_echo_n "checking for $ac_word... " >&6; }
2386
if test "${ac_cv_prog_CC+set}" = set; then :
2387
$as_echo_n "(cached) " >&6
2389
if test -n "$CC"; then
2390
ac_cv_prog_CC="$CC" # Let the user override the test.
2393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397
test -z "$as_dir" && as_dir=.
2398
for ac_exec_ext in '' $ac_executable_extensions; do
2399
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2401
ac_prog_rejected=yes
2405
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2412
if test $ac_prog_rejected = yes; then
2413
# We found a bogon in the path, so make sure we never use it.
2414
set dummy $ac_cv_prog_CC
2416
if test $# != 0; then
2417
# We chose a different compiler from the bogus one.
2418
# However, it has the same basename, so the bogon will be chosen
2419
# first if we set CC to just the basename; use the full file name.
2421
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2427
if test -n "$CC"; then
2428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2429
$as_echo "$CC" >&6; }
2431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432
$as_echo "no" >&6; }
2437
if test -z "$CC"; then
2438
if test -n "$ac_tool_prefix"; then
2439
for ac_prog in cl.exe
2441
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2442
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444
$as_echo_n "checking for $ac_word... " >&6; }
2445
if test "${ac_cv_prog_CC+set}" = set; then :
2446
$as_echo_n "(cached) " >&6
2448
if test -n "$CC"; then
2449
ac_cv_prog_CC="$CC" # Let the user override the test.
2451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455
test -z "$as_dir" && as_dir=.
2456
for ac_exec_ext in '' $ac_executable_extensions; do
2457
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2459
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469
if test -n "$CC"; then
2470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2471
$as_echo "$CC" >&6; }
2473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474
$as_echo "no" >&6; }
2478
test -n "$CC" && break
2481
if test -z "$CC"; then
2483
for ac_prog in cl.exe
2485
# Extract the first word of "$ac_prog", so it can be a program name with args.
2486
set dummy $ac_prog; ac_word=$2
2487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488
$as_echo_n "checking for $ac_word... " >&6; }
2489
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2490
$as_echo_n "(cached) " >&6
2492
if test -n "$ac_ct_CC"; then
2493
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499
test -z "$as_dir" && as_dir=.
2500
for ac_exec_ext in '' $ac_executable_extensions; do
2501
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502
ac_cv_prog_ac_ct_CC="$ac_prog"
2503
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2513
if test -n "$ac_ct_CC"; then
2514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2515
$as_echo "$ac_ct_CC" >&6; }
2517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518
$as_echo "no" >&6; }
2522
test -n "$ac_ct_CC" && break
2525
if test "x$ac_ct_CC" = x; then
2528
case $cross_compiling:$ac_tool_warned in
2530
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2531
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2532
ac_tool_warned=yes ;;
2541
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543
as_fn_error "no acceptable C compiler found in \$PATH
2544
See \`config.log' for more details." "$LINENO" 5; }
2546
# Provide some information about the compiler.
2547
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2550
for ac_option in --version -v -V -qversion; do
2551
{ { ac_try="$ac_compiler $ac_option >&5"
2553
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554
*) ac_try_echo=$ac_try;;
2556
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557
$as_echo "$ac_try_echo"; } >&5
2558
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2560
if test -s conftest.err; then
2562
... rest of stderr output deleted ...
2563
10q' conftest.err >conftest.er1
2564
cat conftest.er1 >&5
2565
rm -f conftest.er1 conftest.err
2567
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2568
test $ac_status = 0; }
2571
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572
/* end confdefs.h. */
2577
FILE *f = fopen ("conftest.out", "w");
2578
return ferror (f) || fclose (f) != 0;
2584
ac_clean_files_save=$ac_clean_files
2585
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2586
# Try to create an executable without -o first, disregard a.out.
2587
# It will help us diagnose broken compilers, and finding out an intuition
2589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2590
$as_echo_n "checking for C compiler default output file name... " >&6; }
2591
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2593
# The possible output files:
2594
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2597
for ac_file in $ac_files
2600
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2601
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2606
if { { ac_try="$ac_link_default"
2608
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609
*) ac_try_echo=$ac_try;;
2611
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2612
$as_echo "$ac_try_echo"; } >&5
2613
(eval "$ac_link_default") 2>&5
2615
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2616
test $ac_status = 0; }; then :
2617
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2618
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2619
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2620
# so that the user can short-circuit this test for compilers unknown to
2622
for ac_file in $ac_files ''
2624
test -f "$ac_file" || continue
2626
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2629
# We found the default executable, but exeext='' is most
2633
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2635
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2637
# We set ac_cv_exeext here because the later test for it is not
2638
# safe: cross compilers may not add the suffix if given an `-o'
2639
# argument, so we may need to know it at that point already.
2640
# Even if this section looks crufty: it has the advantage of
2647
test "$ac_cv_exeext" = no && ac_cv_exeext=
2652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2653
$as_echo "$ac_file" >&6; }
2654
if test -z "$ac_file"; then :
2655
$as_echo "$as_me: failed program was:" >&5
2656
sed 's/^/| /' conftest.$ac_ext >&5
2658
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660
{ as_fn_set_status 77
2661
as_fn_error "C compiler cannot create executables
2662
See \`config.log' for more details." "$LINENO" 5; }; }
2664
ac_exeext=$ac_cv_exeext
2666
# Check that the compiler produces executables we can run. If not, either
2667
# the compiler is broken, or we cross compile.
2668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2669
$as_echo_n "checking whether the C compiler works... " >&6; }
2670
# If not cross compiling, check that we can run a simple program.
2671
if test "$cross_compiling" != yes; then
2672
if { ac_try='./$ac_file'
2673
{ { case "(($ac_try" in
2674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675
*) ac_try_echo=$ac_try;;
2677
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2678
$as_echo "$ac_try_echo"; } >&5
2679
(eval "$ac_try") 2>&5
2681
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682
test $ac_status = 0; }; }; then
2685
if test "$cross_compiling" = maybe; then
2688
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690
as_fn_error "cannot run C compiled programs.
2691
If you meant to cross compile, use \`--host'.
2692
See \`config.log' for more details." "$LINENO" 5; }
2696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2697
$as_echo "yes" >&6; }
2699
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2700
ac_clean_files=$ac_clean_files_save
2701
# Check that the compiler produces executables we can run. If not, either
2702
# the compiler is broken, or we cross compile.
2703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2704
$as_echo_n "checking whether we are cross compiling... " >&6; }
2705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2706
$as_echo "$cross_compiling" >&6; }
2708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2709
$as_echo_n "checking for suffix of executables... " >&6; }
2710
if { { ac_try="$ac_link"
2712
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713
*) ac_try_echo=$ac_try;;
2715
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2716
$as_echo "$ac_try_echo"; } >&5
2717
(eval "$ac_link") 2>&5
2719
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2720
test $ac_status = 0; }; then :
2721
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2722
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2723
# work properly (i.e., refer to `conftest.exe'), while it won't with
2725
for ac_file in conftest.exe conftest conftest.*; do
2726
test -f "$ac_file" || continue
2728
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2729
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2735
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737
as_fn_error "cannot compute suffix of executables: cannot compile and link
2738
See \`config.log' for more details." "$LINENO" 5; }
2740
rm -f conftest$ac_cv_exeext
2741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2742
$as_echo "$ac_cv_exeext" >&6; }
2744
rm -f conftest.$ac_ext
2745
EXEEXT=$ac_cv_exeext
2747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2748
$as_echo_n "checking for suffix of object files... " >&6; }
2749
if test "${ac_cv_objext+set}" = set; then :
2750
$as_echo_n "(cached) " >&6
2752
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753
/* end confdefs.h. */
2763
rm -f conftest.o conftest.obj
2764
if { { ac_try="$ac_compile"
2766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767
*) ac_try_echo=$ac_try;;
2769
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2770
$as_echo "$ac_try_echo"; } >&5
2771
(eval "$ac_compile") 2>&5
2773
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2774
test $ac_status = 0; }; then :
2775
for ac_file in conftest.o conftest.obj conftest.*; do
2776
test -f "$ac_file" || continue;
2778
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2779
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2784
$as_echo "$as_me: failed program was:" >&5
2785
sed 's/^/| /' conftest.$ac_ext >&5
2787
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2788
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789
as_fn_error "cannot compute suffix of object files: cannot compile
2790
See \`config.log' for more details." "$LINENO" 5; }
2792
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2795
$as_echo "$ac_cv_objext" >&6; }
2796
OBJEXT=$ac_cv_objext
2798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2799
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2800
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2801
$as_echo_n "(cached) " >&6
2803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804
/* end confdefs.h. */
2817
if ac_fn_c_try_compile "$LINENO"; then :
2822
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2823
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2827
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2828
if test $ac_compiler_gnu = yes; then
2833
ac_test_CFLAGS=${CFLAGS+set}
2834
ac_save_CFLAGS=$CFLAGS
2835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2836
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2837
if test "${ac_cv_prog_cc_g+set}" = set; then :
2838
$as_echo_n "(cached) " >&6
2840
ac_save_c_werror_flag=$ac_c_werror_flag
2841
ac_c_werror_flag=yes
2844
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845
/* end confdefs.h. */
2855
if ac_fn_c_try_compile "$LINENO"; then :
2859
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860
/* end confdefs.h. */
2870
if ac_fn_c_try_compile "$LINENO"; then :
2873
ac_c_werror_flag=$ac_save_c_werror_flag
2875
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876
/* end confdefs.h. */
2886
if ac_fn_c_try_compile "$LINENO"; then :
2889
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894
ac_c_werror_flag=$ac_save_c_werror_flag
2896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2897
$as_echo "$ac_cv_prog_cc_g" >&6; }
2898
if test "$ac_test_CFLAGS" = set; then
2899
CFLAGS=$ac_save_CFLAGS
2900
elif test $ac_cv_prog_cc_g = yes; then
2901
if test "$GCC" = yes; then
2907
if test "$GCC" = yes; then
2913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2914
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2915
if test "${ac_cv_prog_cc_c89+set}" = set; then :
2916
$as_echo_n "(cached) " >&6
2918
ac_cv_prog_cc_c89=no
2920
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921
/* end confdefs.h. */
2924
#include <sys/types.h>
2925
#include <sys/stat.h>
2926
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2927
struct buf { int x; };
2928
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2929
static char *e (p, i)
2935
static char *f (char * (*g) (char **, int), char **p, ...)
2940
s = g (p, va_arg (v,int));
2945
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2946
function prototypes and stuff, but not '\xHH' hex character constants.
2947
These don't provoke an error unfortunately, instead are silently treated
2948
as 'x'. The following induces an error, until -std is added to get
2949
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2950
array size at least. It's necessary to write '\x00'==0 to get something
2951
that's true only with -std. */
2952
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2954
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2955
inside strings and character constants. */
2957
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2959
int test (int i, double x);
2960
struct s1 {int (*f) (int a);};
2961
struct s2 {int (*f) (double a);};
2962
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2968
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2973
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2974
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2976
CC="$ac_save_CC $ac_arg"
2977
if ac_fn_c_try_compile "$LINENO"; then :
2978
ac_cv_prog_cc_c89=$ac_arg
2980
rm -f core conftest.err conftest.$ac_objext
2981
test "x$ac_cv_prog_cc_c89" != "xno" && break
2983
rm -f conftest.$ac_ext
2988
case "x$ac_cv_prog_cc_c89" in
2990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2991
$as_echo "none needed" >&6; } ;;
2993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2994
$as_echo "unsupported" >&6; } ;;
2996
CC="$CC $ac_cv_prog_cc_c89"
2997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2998
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3000
if test "x$ac_cv_prog_cc_c89" != xno; then :
3005
ac_cpp='$CPP $CPPFLAGS'
3006
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3011
$as_echo_n "checking whether ln -s works... " >&6; }
3013
if test "$LN_S" = "ln -s"; then
3014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3015
$as_echo "yes" >&6; }
3017
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3018
$as_echo "no, using $LN_S" >&6; }
3021
# Find a good install program. We prefer a C program (faster),
3022
# so one script is as good as another. But avoid the broken or
3023
# incompatible versions:
3024
# SysV /etc/install, /usr/sbin/install
3025
# SunOS /usr/etc/install
3026
# IRIX /sbin/install
3028
# AmigaOS /C/install, which installs bootblocks on floppy discs
3029
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3030
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3031
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3032
# OS/2's system install, which has a completely different semantic
3033
# ./install, which can be erroneously created by make from ./install.sh.
3034
# Reject install programs that cannot install multiple files.
3035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3036
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3037
if test -z "$INSTALL"; then
3038
if test "${ac_cv_path_install+set}" = set; then :
3039
$as_echo_n "(cached) " >&6
3041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045
test -z "$as_dir" && as_dir=.
3046
# Account for people who put trailing slashes in PATH elements.
3047
case $as_dir/ in #((
3048
./ | .// | /[cC]/* | \
3049
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3050
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3053
# OSF1 and SCO ODT 3.0 have their own names for install.
3054
# Don't use installbsd from OSF since it installs stuff as root
3056
for ac_prog in ginstall scoinst install; do
3057
for ac_exec_ext in '' $ac_executable_extensions; do
3058
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3059
if test $ac_prog = install &&
3060
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3061
# AIX install. It has an incompatible calling convention.
3063
elif test $ac_prog = install &&
3064
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3065
# program-specific install script used by HP pwplus--don't use.
3068
rm -rf conftest.one conftest.two conftest.dir
3069
echo one > conftest.one
3070
echo two > conftest.two
3072
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3073
test -s conftest.one && test -s conftest.two &&
3074
test -s conftest.dir/conftest.one &&
3075
test -s conftest.dir/conftest.two
3077
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3090
rm -rf conftest.one conftest.two conftest.dir
3093
if test "${ac_cv_path_install+set}" = set; then
3094
INSTALL=$ac_cv_path_install
3096
# As a last resort, use the slow shell script. Don't cache a
3097
# value for INSTALL within a source directory, because that will
3098
# break other packages using the cache if that directory is
3099
# removed, or if the value is a relative name.
3100
INSTALL=$ac_install_sh
3103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3104
$as_echo "$INSTALL" >&6; }
3106
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3107
# It thinks the first close brace ends the variable substitution.
3108
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3110
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3112
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3115
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3118
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3119
$as_echo_n "(cached) " >&6
3121
cat >conftest.make <<\_ACEOF
3124
@echo '@@@%%%=$(MAKE)=@@@%%%'
3126
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3127
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3129
eval ac_cv_prog_make_${ac_make}_set=yes;;
3131
eval ac_cv_prog_make_${ac_make}_set=no;;
3135
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3137
$as_echo "yes" >&6; }
3140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141
$as_echo "no" >&6; }
3142
SET_MAKE="MAKE=${MAKE-make}"
3146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3147
$as_echo_n "checking for library containing strerror... " >&6; }
3148
if test "${ac_cv_search_strerror+set}" = set; then :
3149
$as_echo_n "(cached) " >&6
3151
ac_func_search_save_LIBS=$LIBS
3152
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153
/* end confdefs.h. */
3155
/* Override any GCC internal prototype to avoid an error.
3156
Use char because int might match the return type of a GCC
3157
builtin and then its argument prototype would still apply. */
3170
for ac_lib in '' cposix; do
3171
if test -z "$ac_lib"; then
3172
ac_res="none required"
3175
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3177
if ac_fn_c_try_link "$LINENO"; then :
3178
ac_cv_search_strerror=$ac_res
3180
rm -f core conftest.err conftest.$ac_objext \
3182
if test "${ac_cv_search_strerror+set}" = set; then :
3186
if test "${ac_cv_search_strerror+set}" = set; then :
3189
ac_cv_search_strerror=no
3192
LIBS=$ac_func_search_save_LIBS
3194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3195
$as_echo "$ac_cv_search_strerror" >&6; }
3196
ac_res=$ac_cv_search_strerror
3197
if test "$ac_res" != no; then :
3198
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3203
test x"$GCC" = x"yes" && CFLAGS="$CFLAGS -pipe -Wall"
3209
# Checks for libraries.
3212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library system" >&5
3213
$as_echo_n "checking for shared library system... " >&6; }
3216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
3217
$as_echo "Darwin" >&6; }
3218
LIB_CPPFLAGS='-DPIC'
3220
LIB_LDFLAGS='-dynamiclib -flat_namespace'
3223
LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3224
PLUGIN_CPPFLAGS='-DPIC'
3225
PLUGIN_CFLAGS='-fPIC'
3226
PLUGIN_LDFLAGS='-bundle -flat_namespace -undefined suppress'
3227
PLUGIN_SUFFIX='.impl'
3228
INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i'
3229
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
3233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
3234
$as_echo "Solaris" >&6; }
3235
LIB_CPPFLAGS='-DPIC'
3237
LIB_LDFLAGS='-shared -fPIC -Wl,-soname=${LIB}.${LIB_MAJOR}.${LIB_MINOR}'
3240
LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3241
PLUGIN_CPPFLAGS='-DPIC'
3242
PLUGIN_CFLAGS='-fPIC'
3243
PLUGIN_LDFLAGS='-shared -fPIC'
3245
INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${libdir}/$$i'
3246
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
3251
$as_echo "OpenBSD" >&6; }
3252
LIB_CPPFLAGS='-DPIC'
3254
LIB_LDFLAGS='-shared -fPIC'
3256
LIB_SUFFIX='.so.${LIB_MAJOR}.${LIB_MINOR}'
3257
LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3258
PLUGIN_CPPFLAGS='-DPIC'
3259
PLUGIN_CFLAGS='-fPIC'
3260
PLUGIN_LDFLAGS='-shared -fPIC'
3262
INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i'
3263
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i'
3267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
3268
$as_echo "Win32" >&6; }
3269
LIB_CPPFLAGS='-DPIC'
3271
LIB_LDFLAGS='-shared -Wl,--out-implib,${LIB}.a'
3274
LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3277
PLUGIN_LDFLAGS='-shared'
3278
PLUGIN_SUFFIX='.dll'
3279
INSTALL_LIB='${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${libdir}/$$i.a'
3280
UNINSTALL_LIB='rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/$$i.a'
3281
CLEAN_LIB='${LIB}.a'
3284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
3285
$as_echo "GNU" >&6; }
3286
LIB_CPPFLAGS='-DPIC'
3288
LIB_LDFLAGS='-shared -fPIC -Wl,-soname=${LIB}.${LIB_MAJOR}'
3291
LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3292
PLUGIN_CPPFLAGS='-DPIC'
3293
PLUGIN_CFLAGS='-fPIC'
3294
PLUGIN_LDFLAGS='-shared -fPIC'
3296
INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i'
3297
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0'
3316
LIBS="$LIBS $DYNAMIC_LD_LIBS"
3318
# Checks for header files.
3320
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3321
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3323
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3324
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
3325
$as_echo_n "(cached) " >&6
3327
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328
/* end confdefs.h. */
3329
#include <sys/types.h>
3341
if ac_fn_c_try_compile "$LINENO"; then :
3342
eval "$as_ac_Header=yes"
3344
eval "$as_ac_Header=no"
3346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348
eval ac_res=\$$as_ac_Header
3349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3350
$as_echo "$ac_res" >&6; }
3351
eval as_val=\$$as_ac_Header
3352
if test "x$as_val" = x""yes; then :
3353
cat >>confdefs.h <<_ACEOF
3354
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3357
ac_header_dirent=$ac_hdr; break
3361
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3362
if test $ac_header_dirent = dirent.h; then
3363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3364
$as_echo_n "checking for library containing opendir... " >&6; }
3365
if test "${ac_cv_search_opendir+set}" = set; then :
3366
$as_echo_n "(cached) " >&6
3368
ac_func_search_save_LIBS=$LIBS
3369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370
/* end confdefs.h. */
3372
/* Override any GCC internal prototype to avoid an error.
3373
Use char because int might match the return type of a GCC
3374
builtin and then its argument prototype would still apply. */
3387
for ac_lib in '' dir; do
3388
if test -z "$ac_lib"; then
3389
ac_res="none required"
3392
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3394
if ac_fn_c_try_link "$LINENO"; then :
3395
ac_cv_search_opendir=$ac_res
3397
rm -f core conftest.err conftest.$ac_objext \
3399
if test "${ac_cv_search_opendir+set}" = set; then :
3403
if test "${ac_cv_search_opendir+set}" = set; then :
3406
ac_cv_search_opendir=no
3409
LIBS=$ac_func_search_save_LIBS
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3412
$as_echo "$ac_cv_search_opendir" >&6; }
3413
ac_res=$ac_cv_search_opendir
3414
if test "$ac_res" != no; then :
3415
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3421
$as_echo_n "checking for library containing opendir... " >&6; }
3422
if test "${ac_cv_search_opendir+set}" = set; then :
3423
$as_echo_n "(cached) " >&6
3425
ac_func_search_save_LIBS=$LIBS
3426
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427
/* end confdefs.h. */
3429
/* Override any GCC internal prototype to avoid an error.
3430
Use char because int might match the return type of a GCC
3431
builtin and then its argument prototype would still apply. */
3444
for ac_lib in '' x; do
3445
if test -z "$ac_lib"; then
3446
ac_res="none required"
3449
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3451
if ac_fn_c_try_link "$LINENO"; then :
3452
ac_cv_search_opendir=$ac_res
3454
rm -f core conftest.err conftest.$ac_objext \
3456
if test "${ac_cv_search_opendir+set}" = set; then :
3460
if test "${ac_cv_search_opendir+set}" = set; then :
3463
ac_cv_search_opendir=no
3466
LIBS=$ac_func_search_save_LIBS
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3469
$as_echo "$ac_cv_search_opendir" >&6; }
3470
ac_res=$ac_cv_search_opendir
3471
if test "$ac_res" != no; then :
3472
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3479
ac_cpp='$CPP $CPPFLAGS'
3480
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3484
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3485
# On Suns, sometimes $CPP names a directory.
3486
if test -n "$CPP" && test -d "$CPP"; then
3489
if test -z "$CPP"; then
3490
if test "${ac_cv_prog_CPP+set}" = set; then :
3491
$as_echo_n "(cached) " >&6
3493
# Double quotes because CPP needs to be expanded
3494
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3497
for ac_c_preproc_warn_flag in '' yes
3499
# Use a header file that comes with gcc, so configuring glibc
3500
# with a fresh cross-compiler works.
3501
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502
# <limits.h> exists even on freestanding compilers.
3503
# On the NeXT, cc -E runs the code through the compiler's parser,
3504
# not just through cpp. "Syntax error" is here to catch this case.
3505
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506
/* end confdefs.h. */
3508
# include <limits.h>
3510
# include <assert.h>
3514
if ac_fn_c_try_cpp "$LINENO"; then :
3517
# Broken: fails on valid input.
3520
rm -f conftest.err conftest.$ac_ext
3522
# OK, works on sane cases. Now check whether nonexistent headers
3523
# can be detected and how.
3524
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525
/* end confdefs.h. */
3526
#include <ac_nonexistent.h>
3528
if ac_fn_c_try_cpp "$LINENO"; then :
3529
# Broken: success on invalid input.
3532
# Passes both tests.
3536
rm -f conftest.err conftest.$ac_ext
3539
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540
rm -f conftest.err conftest.$ac_ext
3541
if $ac_preproc_ok; then :
3553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3554
$as_echo "$CPP" >&6; }
3556
for ac_c_preproc_warn_flag in '' yes
3558
# Use a header file that comes with gcc, so configuring glibc
3559
# with a fresh cross-compiler works.
3560
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561
# <limits.h> exists even on freestanding compilers.
3562
# On the NeXT, cc -E runs the code through the compiler's parser,
3563
# not just through cpp. "Syntax error" is here to catch this case.
3564
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565
/* end confdefs.h. */
3567
# include <limits.h>
3569
# include <assert.h>
3573
if ac_fn_c_try_cpp "$LINENO"; then :
3576
# Broken: fails on valid input.
3579
rm -f conftest.err conftest.$ac_ext
3581
# OK, works on sane cases. Now check whether nonexistent headers
3582
# can be detected and how.
3583
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584
/* end confdefs.h. */
3585
#include <ac_nonexistent.h>
3587
if ac_fn_c_try_cpp "$LINENO"; then :
3588
# Broken: success on invalid input.
3591
# Passes both tests.
3595
rm -f conftest.err conftest.$ac_ext
3598
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599
rm -f conftest.err conftest.$ac_ext
3600
if $ac_preproc_ok; then :
3603
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3606
See \`config.log' for more details." "$LINENO" 5; }
3610
ac_cpp='$CPP $CPPFLAGS'
3611
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3617
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3618
if test "${ac_cv_path_GREP+set}" = set; then :
3619
$as_echo_n "(cached) " >&6
3621
if test -z "$GREP"; then
3622
ac_path_GREP_found=false
3623
# Loop through the user's path and test for each of PROGNAME-LIST
3624
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3628
test -z "$as_dir" && as_dir=.
3629
for ac_prog in grep ggrep; do
3630
for ac_exec_ext in '' $ac_executable_extensions; do
3631
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3633
# Check for GNU ac_path_GREP and select it if it is found.
3634
# Check for GNU $ac_path_GREP
3635
case `"$ac_path_GREP" --version 2>&1` in
3637
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3640
$as_echo_n 0123456789 >"conftest.in"
3643
cat "conftest.in" "conftest.in" >"conftest.tmp"
3644
mv "conftest.tmp" "conftest.in"
3645
cp "conftest.in" "conftest.nl"
3646
$as_echo 'GREP' >> "conftest.nl"
3647
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649
as_fn_arith $ac_count + 1 && ac_count=$as_val
3650
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651
# Best one so far, save it but keep looking for a better one
3652
ac_cv_path_GREP="$ac_path_GREP"
3653
ac_path_GREP_max=$ac_count
3655
# 10*(2^10) chars as input seems more than enough
3656
test $ac_count -gt 10 && break
3658
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3661
$ac_path_GREP_found && break 3
3666
if test -z "$ac_cv_path_GREP"; then
3667
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3670
ac_cv_path_GREP=$GREP
3674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3675
$as_echo "$ac_cv_path_GREP" >&6; }
3676
GREP="$ac_cv_path_GREP"
3679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3680
$as_echo_n "checking for egrep... " >&6; }
3681
if test "${ac_cv_path_EGREP+set}" = set; then :
3682
$as_echo_n "(cached) " >&6
3684
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3685
then ac_cv_path_EGREP="$GREP -E"
3687
if test -z "$EGREP"; then
3688
ac_path_EGREP_found=false
3689
# Loop through the user's path and test for each of PROGNAME-LIST
3690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3694
test -z "$as_dir" && as_dir=.
3695
for ac_prog in egrep; do
3696
for ac_exec_ext in '' $ac_executable_extensions; do
3697
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3698
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3699
# Check for GNU ac_path_EGREP and select it if it is found.
3700
# Check for GNU $ac_path_EGREP
3701
case `"$ac_path_EGREP" --version 2>&1` in
3703
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3706
$as_echo_n 0123456789 >"conftest.in"
3709
cat "conftest.in" "conftest.in" >"conftest.tmp"
3710
mv "conftest.tmp" "conftest.in"
3711
cp "conftest.in" "conftest.nl"
3712
$as_echo 'EGREP' >> "conftest.nl"
3713
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3714
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3715
as_fn_arith $ac_count + 1 && ac_count=$as_val
3716
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3717
# Best one so far, save it but keep looking for a better one
3718
ac_cv_path_EGREP="$ac_path_EGREP"
3719
ac_path_EGREP_max=$ac_count
3721
# 10*(2^10) chars as input seems more than enough
3722
test $ac_count -gt 10 && break
3724
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3727
$ac_path_EGREP_found && break 3
3732
if test -z "$ac_cv_path_EGREP"; then
3733
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3736
ac_cv_path_EGREP=$EGREP
3741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3742
$as_echo "$ac_cv_path_EGREP" >&6; }
3743
EGREP="$ac_cv_path_EGREP"
3746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3747
$as_echo_n "checking for ANSI C header files... " >&6; }
3748
if test "${ac_cv_header_stdc+set}" = set; then :
3749
$as_echo_n "(cached) " >&6
3751
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752
/* end confdefs.h. */
3766
if ac_fn_c_try_compile "$LINENO"; then :
3767
ac_cv_header_stdc=yes
3769
ac_cv_header_stdc=no
3771
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773
if test $ac_cv_header_stdc = yes; then
3774
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776
/* end confdefs.h. */
3780
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781
$EGREP "memchr" >/dev/null 2>&1; then :
3784
ac_cv_header_stdc=no
3790
if test $ac_cv_header_stdc = yes; then
3791
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3792
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793
/* end confdefs.h. */
3797
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798
$EGREP "free" >/dev/null 2>&1; then :
3801
ac_cv_header_stdc=no
3807
if test $ac_cv_header_stdc = yes; then
3808
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3809
if test "$cross_compiling" = yes; then :
3812
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813
/* end confdefs.h. */
3816
#if ((' ' & 0x0FF) == 0x020)
3817
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3820
# define ISLOWER(c) \
3821
(('a' <= (c) && (c) <= 'i') \
3822
|| ('j' <= (c) && (c) <= 'r') \
3823
|| ('s' <= (c) && (c) <= 'z'))
3824
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3827
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3832
for (i = 0; i < 256; i++)
3833
if (XOR (islower (i), ISLOWER (i))
3834
|| toupper (i) != TOUPPER (i))
3839
if ac_fn_c_try_run "$LINENO"; then :
3842
ac_cv_header_stdc=no
3844
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3845
conftest.$ac_objext conftest.beam conftest.$ac_ext
3850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3851
$as_echo "$ac_cv_header_stdc" >&6; }
3852
if test $ac_cv_header_stdc = yes; then
3854
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3858
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3859
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3860
inttypes.h stdint.h unistd.h
3862
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3865
eval as_val=\$$as_ac_Header
3866
if test "x$as_val" = x""yes; then :
3867
cat >>confdefs.h <<_ACEOF
3868
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3876
for ac_header in limits.h stdlib.h string.h unistd.h locale.h stdarg.h sys/types.h sys/stat.h errno.h
3878
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3879
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3880
eval as_val=\$$as_ac_Header
3881
if test "x$as_val" = x""yes; then :
3882
cat >>confdefs.h <<_ACEOF
3883
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3891
# Checks for typedefs, structures, and compiler characteristics.
3892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3893
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3894
if test "${ac_cv_c_const+set}" = set; then :
3895
$as_echo_n "(cached) " >&6
3897
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898
/* end confdefs.h. */
3903
/* FIXME: Include the comments suggested by Paul. */
3905
/* Ultrix mips cc rejects this. */
3906
typedef int charset[2];
3908
/* SunOS 4.1.1 cc rejects this. */
3909
char const *const *pcpcc;
3911
/* NEC SVR4.0.2 mips cc rejects this. */
3912
struct point {int x, y;};
3913
static struct point const zero = {0,0};
3914
/* AIX XL C 1.02.0.0 rejects this.
3915
It does not let you subtract one const X* pointer from another in
3916
an arm of an if-expression whose if-part is not a constant
3918
const char *g = "string";
3919
pcpcc = &g + (g ? g-g : 0);
3920
/* HPUX 7.0 cc rejects these. */
3922
ppc = (char**) pcpcc;
3923
pcpcc = (char const *const *) ppc;
3924
{ /* SCO 3.2v4 cc rejects this. */
3926
char const *s = 0 ? (char *) 0 : (char const *) 0;
3931
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3933
const int *foo = &x[0];
3936
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3937
typedef const int *iptr;
3941
{ /* AIX XL C 1.02.0.0 rejects this saying
3942
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3943
struct s { int j; const int *ap[3]; };
3944
struct s *b; b->j = 5;
3946
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3950
return !cs[0] && !zero.x;
3957
if ac_fn_c_try_compile "$LINENO"; then :
3962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3965
$as_echo "$ac_cv_c_const" >&6; }
3966
if test $ac_cv_c_const = no; then
3968
$as_echo "#define const /**/" >>confdefs.h
3973
# Checks for library functions.
3974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
3975
$as_echo_n "checking whether closedir returns void... " >&6; }
3976
if test "${ac_cv_func_closedir_void+set}" = set; then :
3977
$as_echo_n "(cached) " >&6
3979
if test "$cross_compiling" = yes; then :
3980
ac_cv_func_closedir_void=yes
3982
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983
/* end confdefs.h. */
3984
$ac_includes_default
3985
#include <$ac_header_dirent>
3993
return closedir (opendir (".")) != 0;
3998
if ac_fn_c_try_run "$LINENO"; then :
3999
ac_cv_func_closedir_void=no
4001
ac_cv_func_closedir_void=yes
4003
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4004
conftest.$ac_objext conftest.beam conftest.$ac_ext
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
4009
$as_echo "$ac_cv_func_closedir_void" >&6; }
4010
if test $ac_cv_func_closedir_void = yes; then
4012
$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
4016
for ac_func in memset setlocale strcasecmp strchr strdup strerror strtol strtod
4018
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4019
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4020
eval as_val=\$$as_ac_var
4021
if test "x$as_val" = x""yes; then :
4022
cat >>confdefs.h <<_ACEOF
4023
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4029
for ac_func in printf sprintf snprintf vsnprintf gettimeofday strndup strlcpy strlcat
4031
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4032
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4033
eval as_val=\$$as_ac_var
4034
if test "x$as_val" = x""yes; then :
4035
cat >>confdefs.h <<_ACEOF
4036
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4042
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
4043
$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
4044
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
4045
$as_echo_n "(cached) " >&6
4047
rm -f conftest.sym conftest.file
4049
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
4050
if test "$cross_compiling" = yes; then :
4051
ac_cv_func_lstat_dereferences_slashed_symlink=no
4053
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054
/* end confdefs.h. */
4055
$ac_includes_default
4060
/* Linux will dereference the symlink and fail.
4061
That is better in the sense that it means we will not
4062
have to compile and use the lstat wrapper. */
4063
return lstat ("conftest.sym/", &sbuf) == 0;
4068
if ac_fn_c_try_run "$LINENO"; then :
4069
ac_cv_func_lstat_dereferences_slashed_symlink=yes
4071
ac_cv_func_lstat_dereferences_slashed_symlink=no
4073
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4074
conftest.$ac_objext conftest.beam conftest.$ac_ext
4078
# If the `ln -s' command failed, then we probably don't even
4079
# have an lstat function.
4080
ac_cv_func_lstat_dereferences_slashed_symlink=no
4082
rm -f conftest.sym conftest.file
4085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
4086
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
4088
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
4090
cat >>confdefs.h <<_ACEOF
4091
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
4095
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
4096
case " $LIBOBJS " in
4097
*" lstat.$ac_objext "* ) ;;
4098
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
4104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
4105
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
4106
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
4107
$as_echo_n "(cached) " >&6
4109
if test "$cross_compiling" = yes; then :
4110
ac_cv_func_stat_empty_string_bug=yes
4112
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113
/* end confdefs.h. */
4114
$ac_includes_default
4119
return stat ("", &sbuf) == 0;
4124
if ac_fn_c_try_run "$LINENO"; then :
4125
ac_cv_func_stat_empty_string_bug=no
4127
ac_cv_func_stat_empty_string_bug=yes
4129
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4130
conftest.$ac_objext conftest.beam conftest.$ac_ext
4134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
4135
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
4136
if test $ac_cv_func_stat_empty_string_bug = yes; then
4137
case " $LIBOBJS " in
4138
*" stat.$ac_objext "* ) ;;
4139
*) LIBOBJS="$LIBOBJS stat.$ac_objext"
4144
cat >>confdefs.h <<_ACEOF
4145
#define HAVE_STAT_EMPTY_STRING_BUG 1
4154
if test -z "$PKG_CONFIG"; then
4155
# Extract the first word of "pkg-config", so it can be a program name with args.
4156
set dummy pkg-config; ac_word=$2
4157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158
$as_echo_n "checking for $ac_word... " >&6; }
4159
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4160
$as_echo_n "(cached) " >&6
4164
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171
test -z "$as_dir" && as_dir=.
4172
for ac_exec_ext in '' $ac_executable_extensions; do
4173
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4175
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4186
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4187
if test -n "$PKG_CONFIG"; then
4188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4189
$as_echo "$PKG_CONFIG" >&6; }
4191
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192
$as_echo "no" >&6; }
4198
if test "$PKG_CONFIG" = "no" ; then
4199
echo "*** The pkg-config script could not be found. Make sure it is"
4200
echo "*** in your path, or set the PKG_CONFIG environment variable"
4201
echo "*** to the full path to pkg-config."
4202
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4204
PKG_CONFIG_MIN_VERSION=0.9.0
4205
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmowgli >= 0.7.0" >&5
4207
$as_echo_n "checking for libmowgli >= 0.7.0... " >&6; }
4209
if $PKG_CONFIG --exists "libmowgli >= 0.7.0" ; then
4210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4211
$as_echo "yes" >&6; }
4214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MOWGLI_CFLAGS" >&5
4215
$as_echo_n "checking MOWGLI_CFLAGS... " >&6; }
4216
MOWGLI_CFLAGS=`$PKG_CONFIG --cflags "libmowgli >= 0.7.0"`
4217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOWGLI_CFLAGS" >&5
4218
$as_echo "$MOWGLI_CFLAGS" >&6; }
4220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MOWGLI_LIBS" >&5
4221
$as_echo_n "checking MOWGLI_LIBS... " >&6; }
4222
MOWGLI_LIBS=`$PKG_CONFIG --libs "libmowgli >= 0.7.0"`
4223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOWGLI_LIBS" >&5
4224
$as_echo "$MOWGLI_LIBS" >&6; }
4226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227
$as_echo "no" >&6; }
4230
## If we have a custom action on failure, don't print errors, but
4231
## do set a variable so people can do so.
4232
MOWGLI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmowgli >= 0.7.0"`
4239
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4240
echo "*** See http://www.freedesktop.org/software/pkgconfig"
4244
if test $succeeded = yes; then
4247
as_fn_error "Install Mowgli from http://atheme.org/projects/mowgli." "$LINENO" 5
4251
# Check for optional features.
4253
# Check whether --enable-examples was given.
4254
if test "${enable_examples+set}" = set; then :
4255
enableval=$enable_examples; enable_examples=$enableval
4257
enable_examples="no"
4262
if test "x$enable_examples" = "xyes"; then
4263
EXAMPLES_BUILD="examples"
4269
${as_echo:="echo"} "${as_me:="configure"}: touching .deps files"
4270
for i in $(find . -name Makefile); do
4271
DEPSFILE="$(dirname $i)/.deps"
4272
test -f "$DEPSFILE" && rm "$DEPSFILE"
4273
touch -t 0001010000 "$DEPSFILE"
4277
ac_config_files="$ac_config_files buildsys.mk extra.mk libguess.pc"
4279
cat >confcache <<\_ACEOF
4280
# This file is a shell script that caches the results of configure
4281
# tests run on this system so they can be shared between configure
4282
# scripts and configure runs, see configure's option --config-cache.
4283
# It is not useful on other systems. If it contains results you don't
4284
# want to keep, you may remove or edit it.
4286
# config.status only pays attention to the cache file if you give it
4287
# the --recheck option to rerun configure.
4289
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4290
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4295
# The following way of writing the cache mishandles newlines in values,
4296
# but we know of no workaround that is simple, portable, and efficient.
4297
# So, we kill variables containing newlines.
4298
# Ultrix sh set writes to stderr and can't be redirected directly,
4299
# and sets the high bit in the cache file unless we assign to the vars.
4301
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4302
eval ac_val=\$$ac_var
4306
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4307
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4310
_ | IFS | as_nl) ;; #(
4311
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4312
*) { eval $ac_var=; unset $ac_var;} ;;
4318
case $as_nl`(ac_space=' '; set) 2>&1` in #(
4319
*${as_nl}ac_space=\ *)
4320
# `set' does not quote correctly, so add quotes: double-quote
4321
# substitution turns \\\\ into \\, and sed turns \\ into \.
4324
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4327
# `set' quotes correctly as required by POSIX, so do not add quotes.
4328
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4337
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4339
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4341
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4342
if test -w "$cache_file"; then
4343
test "x$cache_file" != "x/dev/null" &&
4344
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4345
$as_echo "$as_me: updating cache $cache_file" >&6;}
4346
cat confcache >$cache_file
4348
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4349
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4354
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4355
# Let make expand exec_prefix.
4356
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4358
DEFS=-DHAVE_CONFIG_H
4362
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4363
# 1. Remove the extension, and $U if already installed.
4364
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4365
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4366
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4367
# will be set to the directory where LIBOBJS objects are built.
4368
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4369
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4373
LTLIBOBJS=$ac_ltlibobjs
4377
: ${CONFIG_STATUS=./config.status}
4379
ac_clean_files_save=$ac_clean_files
4380
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4381
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4382
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4384
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4386
# Generated by $as_me.
4387
# Run this file to recreate the current configuration.
4388
# Compiler output produced by configure, useful for debugging
4389
# configure, is in config.log if it exists.
4395
SHELL=\${CONFIG_SHELL-$SHELL}
4398
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4399
## -------------------- ##
4400
## M4sh Initialization. ##
4401
## -------------------- ##
4403
# Be more Bourne compatible
4404
DUALCASE=1; export DUALCASE # for MKS sh
4405
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4408
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4409
# is contrary to our usage. Disable this feature.
4410
alias -g '${1+"$@"}'='"$@"'
4411
setopt NO_GLOB_SUBST
4413
case `(set -o) 2>/dev/null` in #(
4425
# Printing a long string crashes Solaris 7 /usr/bin/printf.
4426
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4427
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4428
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4429
# Prefer a ksh shell builtin over an external printf program on Solaris,
4430
# but without wasting forks for bash or zsh.
4431
if test -z "$BASH_VERSION$ZSH_VERSION" \
4432
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4433
as_echo='print -r --'
4434
as_echo_n='print -rn --'
4435
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4436
as_echo='printf %s\n'
4437
as_echo_n='printf %s'
4439
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4440
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4441
as_echo_n='/usr/ucb/echo -n'
4443
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4444
as_echo_n_body='eval
4448
expr "X$arg" : "X\\(.*\\)$as_nl";
4449
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4451
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4453
export as_echo_n_body
4454
as_echo_n='sh -c $as_echo_n_body as_echo'
4457
as_echo='sh -c $as_echo_body as_echo'
4460
# The user is always right.
4461
if test "${PATH_SEPARATOR+set}" != set; then
4463
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4464
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4471
# We need space, tab and new line, in precisely that order. Quoting is
4472
# there to prevent editors from complaining about space-tab.
4473
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4474
# splitting by setting IFS to empty value.)
4477
# Find who we are. Look in the path if we contain no directory separator.
4479
*[\\/]* ) as_myself=$0 ;;
4480
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484
test -z "$as_dir" && as_dir=.
4485
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4491
# We did not find ourselves, most probably we were run as `sh COMMAND'
4492
# in which case we are not to be found in the path.
4493
if test "x$as_myself" = x; then
4496
if test ! -f "$as_myself"; then
4497
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4501
# Unset variables that we do not need and which cause bugs (e.g. in
4502
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4503
# suppresses any "Segmentation fault" message there. '((' could
4504
# trigger a bug in pdksh 5.2.14.
4505
for as_var in BASH_ENV ENV MAIL MAILPATH
4506
do eval test x\${$as_var+set} = xset \
4507
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4520
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4523
# as_fn_error ERROR [LINENO LOG_FD]
4524
# ---------------------------------
4525
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4526
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4527
# script with status $?, using 1 if that was 0.
4530
as_status=$?; test $as_status -eq 0 && as_status=1
4532
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4533
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4535
$as_echo "$as_me: error: $1" >&2
4536
as_fn_exit $as_status
4540
# as_fn_set_status STATUS
4541
# -----------------------
4542
# Set $? to STATUS, without forking.
4546
} # as_fn_set_status
4550
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4560
# Portably unset VAR.
4563
{ eval $1=; unset $1;}
4565
as_unset=as_fn_unset
4566
# as_fn_append VAR VALUE
4567
# ----------------------
4568
# Append the text in VALUE to the end of the definition contained in VAR. Take
4569
# advantage of any shell optimizations that allow amortized linear growth over
4570
# repeated appends, instead of the typical quadratic growth present in naive
4572
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4573
eval 'as_fn_append ()
4584
# as_fn_arith ARG...
4585
# ------------------
4586
# Perform arithmetic evaluation on the ARGs, and store the result in the
4587
# global $as_val. Take advantage of shells that can avoid forks. The arguments
4588
# must be portable across $(()) and expr.
4589
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4590
eval 'as_fn_arith ()
4597
as_val=`expr "$@" || test $? -eq 1`
4602
if expr a : '\(a\)' >/dev/null 2>&1 &&
4603
test "X`expr 00001 : '.*\(...\)'`" = X001; then
4609
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4610
as_basename=basename
4615
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4621
as_me=`$as_basename -- "$0" ||
4622
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4623
X"$0" : 'X\(//\)$' \| \
4624
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4626
sed '/^.*\/\([^/][^/]*\)\/*$/{
4640
# Avoid depending upon Character Ranges.
4641
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4642
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4643
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4644
as_cr_digits='0123456789'
4645
as_cr_alnum=$as_cr_Letters$as_cr_digits
4647
ECHO_C= ECHO_N= ECHO_T=
4648
case `echo -n x` in #(((((
4650
case `echo 'xy\c'` in
4651
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
4653
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4660
rm -f conf$$ conf$$.exe conf$$.file
4661
if test -d conf$$.dir; then
4662
rm -f conf$$.dir/conf$$.file
4665
mkdir conf$$.dir 2>/dev/null
4667
if (echo >conf$$.file) 2>/dev/null; then
4668
if ln -s conf$$.file conf$$ 2>/dev/null; then
4670
# ... but there are two gotchas:
4671
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4672
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4673
# In both cases, we have to default to `cp -p'.
4674
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4676
elif ln conf$$.file conf$$ 2>/dev/null; then
4684
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4685
rmdir conf$$.dir 2>/dev/null
4690
# Create "$as_dir" as a directory, including parents if necessary.
4695
-*) as_dir=./$as_dir;;
4697
test -d "$as_dir" || eval $as_mkdir_p || {
4701
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4702
*) as_qdir=$as_dir;;
4704
as_dirs="'$as_qdir' $as_dirs"
4705
as_dir=`$as_dirname -- "$as_dir" ||
4706
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4707
X"$as_dir" : 'X\(//\)[^/]' \| \
4708
X"$as_dir" : 'X\(//\)$' \| \
4709
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4710
$as_echo X"$as_dir" |
4711
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4728
test -d "$as_dir" && break
4730
test -z "$as_dirs" || eval "mkdir $as_dirs"
4731
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4735
if mkdir -p . 2>/dev/null; then
4736
as_mkdir_p='mkdir -p "$as_dir"'
4738
test -d ./-p && rmdir ./-p
4742
if test -x / >/dev/null 2>&1; then
4745
if ls -dL / >/dev/null 2>&1; then
4752
if test -d "$1"; then
4758
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4759
???[sx]*):;;*)false;;esac;fi
4763
as_executable_p=$as_test_x
4765
# Sed expression to map a string onto a valid CPP name.
4766
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4768
# Sed expression to map a string onto a valid variable name.
4769
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4773
## ----------------------------------- ##
4774
## Main body of $CONFIG_STATUS script. ##
4775
## ----------------------------------- ##
4777
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4779
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4780
# Save the log message, to keep $0 and so on meaningful, and to
4781
# report actual input values of CONFIG_FILES etc. instead of their
4782
# values after options handling.
4784
This file was extended by libguess $as_me 1.0, which was
4785
generated by GNU Autoconf 2.64. Invocation command line was
4787
CONFIG_FILES = $CONFIG_FILES
4788
CONFIG_HEADERS = $CONFIG_HEADERS
4789
CONFIG_LINKS = $CONFIG_LINKS
4790
CONFIG_COMMANDS = $CONFIG_COMMANDS
4793
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4798
case $ac_config_files in *"
4799
"*) set x $ac_config_files; shift; ac_config_files=$*;;
4802
case $ac_config_headers in *"
4803
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4807
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4808
# Files that config.status was made for.
4809
config_files="$ac_config_files"
4810
config_headers="$ac_config_headers"
4814
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4816
\`$as_me' instantiates files and other configuration actions
4817
from templates according to the current configuration. Unless the files
4818
and actions are specified as TAGs, all are instantiated by default.
4820
Usage: $0 [OPTION]... [TAG]...
4822
-h, --help print this help, then exit
4823
-V, --version print version number and configuration settings, then exit
4824
-q, --quiet, --silent
4825
do not print progress messages
4826
-d, --debug don't remove temporary files
4827
--recheck update $as_me by reconfiguring in the same conditions
4828
--file=FILE[:TEMPLATE]
4829
instantiate the configuration file FILE
4830
--header=FILE[:TEMPLATE]
4831
instantiate the configuration header FILE
4833
Configuration files:
4836
Configuration headers:
4839
Report bugs to <bugs+libguess@atheme.org>."
4842
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4844
libguess config.status 1.0
4845
configured by $0, generated by GNU Autoconf 2.64,
4846
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4848
Copyright (C) 2009 Free Software Foundation, Inc.
4849
This config.status script is free software; the Free Software Foundation
4850
gives unlimited permission to copy, distribute and modify it."
4855
test -n "\$AWK" || AWK=awk
4858
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4859
# The default lists apply if the user does not specify any file.
4865
ac_option=`expr "X$1" : 'X\([^=]*\)='`
4866
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4877
# Handling of the options.
4878
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4880
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4881
$as_echo "$ac_cs_version"; exit ;;
4882
--debug | --debu | --deb | --de | --d | -d )
4884
--file | --fil | --fi | --f )
4887
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4889
as_fn_append CONFIG_FILES " '$ac_optarg'"
4890
ac_need_defaults=false;;
4891
--header | --heade | --head | --hea )
4894
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4896
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4897
ac_need_defaults=false;;
4899
# Conflict between --help and --header
4900
as_fn_error "ambiguous option: \`$1'
4901
Try \`$0 --help' for more information.";;
4902
--help | --hel | -h )
4903
$as_echo "$ac_cs_usage"; exit ;;
4904
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
4905
| -silent | --silent | --silen | --sile | --sil | --si | --s)
4909
-*) as_fn_error "unrecognized option: \`$1'
4910
Try \`$0 --help' for more information." ;;
4912
*) as_fn_append ac_config_targets " $1"
4913
ac_need_defaults=false ;;
4919
ac_configure_extra_args=
4921
if $ac_cs_silent; then
4923
ac_configure_extra_args="$ac_configure_extra_args --silent"
4927
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4928
if \$ac_cs_recheck; then
4929
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4931
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4932
CONFIG_SHELL='$SHELL'
4938
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4942
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4943
## Running $as_me. ##
4949
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4952
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4954
# Handling of arguments.
4955
for ac_config_target in $ac_config_targets
4957
case $ac_config_target in
4958
"src/libguess/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/libguess/autoconf.h" ;;
4959
"buildsys.mk") CONFIG_FILES="$CONFIG_FILES buildsys.mk" ;;
4960
"extra.mk") CONFIG_FILES="$CONFIG_FILES extra.mk" ;;
4961
"libguess.pc") CONFIG_FILES="$CONFIG_FILES libguess.pc" ;;
4963
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4968
# If the user did not use the arguments to specify the items to instantiate,
4969
# then the envvar interface is used. Set only those that are not.
4970
# We use the long form for the default assignment because of an extremely
4971
# bizarre bug on SunOS 4.1.3.
4972
if $ac_need_defaults; then
4973
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4974
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4977
# Have a temporary directory for convenience. Make it in the build tree
4978
# simply because there is no reason against having it here, and in addition,
4979
# creating and moving files from /tmp can sometimes cause problems.
4980
# Hook for its removal unless debugging.
4981
# Note that there is a small window in which the directory will not be cleaned:
4982
# after its creation but before its name has been assigned to `$tmp'.
4986
trap 'exit_status=$?
4987
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4989
trap 'as_fn_exit 1' 1 2 13 15
4991
# Create a (secure) tmp directory for tmp files.
4994
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4995
test -n "$tmp" && test -d "$tmp"
4998
tmp=./conf$$-$RANDOM
4999
(umask 077 && mkdir "$tmp")
5000
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5002
# Set up the scripts for CONFIG_FILES section.
5003
# No need to generate them if there are no CONFIG_FILES.
5004
# This happens for instance with `./config.status config.h'.
5005
if test -n "$CONFIG_FILES"; then
5008
ac_cr=`echo X | tr X '\015'`
5009
# On cygwin, bash can eat \r inside `` if the user requested igncr.
5010
# But we know of no other shell where ac_cr would be empty at this
5011
# point, so we can use a bashism as a fallback.
5012
if test "x$ac_cr" = x; then
5013
eval ac_cr=\$\'\\r\'
5015
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5016
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5022
echo 'BEGIN {' >"$tmp/subs1.awk" &&
5027
echo "cat >conf$$subs.awk <<_ACEOF" &&
5028
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5031
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5032
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5034
for ac_last_try in false false false false false :; do
5035
. ./conf$$subs.sh ||
5036
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5038
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5039
if test $ac_delim_n = $ac_delim_num; then
5041
elif $ac_last_try; then
5042
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5044
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5049
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5050
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5054
s/^/S["/; s/!.*/"]=/
5064
s/\(.\{148\}\).*/\1/
5066
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5071
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5078
s/\(.\{148\}\).*/\1/
5080
s/["\\]/\\&/g; s/^/"/; s/$/"/
5084
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5089
' <conf$$subs.awk | sed '
5094
' >>$CONFIG_STATUS || ac_write_fail=1
5095
rm -f conf$$subs.awk
5096
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5098
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5099
for (key in S) S_is_set[key] = 1
5105
nfields = split(line, field, "@")
5107
len = length(field[1])
5108
for (i = 2; i < nfields; i++) {
5110
keylen = length(key)
5111
if (S_is_set[key]) {
5113
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5114
len += length(value) + length(field[++i])
5125
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5126
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5127
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5130
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5131
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
5134
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5135
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5136
# trailing colons and then remove the whole line if VPATH becomes empty
5137
# (actually we leave an empty line to preserve line numbers).
5138
if test "x$srcdir" = x.; then
5139
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5143
s/^\([^=]*=[ ]*\):*/\1/
5149
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5150
fi # test -n "$CONFIG_FILES"
5152
# Set up the scripts for CONFIG_HEADERS section.
5153
# No need to generate them if there are no CONFIG_HEADERS.
5154
# This happens for instance with `./config.status Makefile'.
5155
if test -n "$CONFIG_HEADERS"; then
5156
cat >"$tmp/defines.awk" <<\_ACAWK ||
5160
# Transform confdefs.h into an awk script `defines.awk', embedded as
5161
# here-document in config.status, that substitutes the proper values into
5162
# config.h.in to produce config.h.
5164
# Create a delimiter string that does not exist in confdefs.h, to ease
5165
# handling of long lines.
5167
for ac_last_try in false false :; do
5168
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5169
if test -z "$ac_t"; then
5171
elif $ac_last_try; then
5172
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5174
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5178
# For the awk script, D is an array of macro values keyed by name,
5179
# likewise P contains macro parameters if any. Preserve backslash
5180
# newline sequences.
5182
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5184
s/.\{148\}/&'"$ac_delim"'/g
5187
s/^[ ]*#[ ]*define[ ][ ]*/ /
5194
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5196
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5200
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5201
D["\1"]=" \3\\\\\\n"\\/p
5203
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5208
s/.\{148\}/&'"$ac_delim"'/g
5213
s/["\\]/\\&/g; s/^/"/; s/$/"/p
5216
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5218
' <confdefs.h | sed '
5219
s/'"$ac_delim"'/"\\\
5220
"/g' >>$CONFIG_STATUS || ac_write_fail=1
5222
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5223
for (key in D) D_is_set[key] = 1
5226
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5228
split(line, arg, " ")
5229
if (arg[1] == "#") {
5233
defundef = substr(arg[1], 2)
5236
split(mac1, mac2, "(") #)
5238
prefix = substr(line, 1, index(line, defundef) - 1)
5239
if (D_is_set[macro]) {
5240
# Preserve the white space surrounding the "#".
5241
print prefix "define", macro P[macro] D[macro]
5244
# Replace #undef with comments. This is necessary, for example,
5245
# in the case of _POSIX_SOURCE, which is predefined and required
5246
# on some systems where configure will not decide to define it.
5247
if (defundef == "undef") {
5248
print "/*", prefix defundef, macro, "*/"
5256
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5257
as_fn_error "could not setup config headers machinery" "$LINENO" 5
5258
fi # test -n "$CONFIG_HEADERS"
5261
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5266
:[FHLC]) ac_mode=$ac_tag; continue;;
5268
case $ac_mode$ac_tag in
5270
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5271
:[FH]-) ac_tag=-:-;;
5272
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5289
-) ac_f="$tmp/stdin";;
5290
*) # Look for the file first in the build tree, then in the source tree
5291
# (if the path is not absolute). The absolute path cannot be DOS-style,
5292
# because $ac_f cannot contain `:'.
5296
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5298
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5300
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5301
as_fn_append ac_file_inputs " '$ac_f'"
5304
# Let's still pretend it is `configure' which instantiates (i.e., don't
5305
# use $as_me), people would be surprised to read:
5306
# /* config.h. Generated by config.status. */
5307
configure_input='Generated from '`
5308
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5310
if test x"$ac_file" != x-; then
5311
configure_input="$ac_file. $configure_input"
5312
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5313
$as_echo "$as_me: creating $ac_file" >&6;}
5315
# Neutralize special characters interpreted by sed in replacement strings.
5316
case $configure_input in #(
5317
*\&* | *\|* | *\\* )
5318
ac_sed_conf_input=`$as_echo "$configure_input" |
5319
sed 's/[\\\\&|]/\\\\&/g'`;; #(
5320
*) ac_sed_conf_input=$configure_input;;
5324
*:-:* | *:-) cat >"$tmp/stdin" \
5325
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5330
ac_dir=`$as_dirname -- "$ac_file" ||
5331
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5332
X"$ac_file" : 'X\(//\)[^/]' \| \
5333
X"$ac_file" : 'X\(//\)$' \| \
5334
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5335
$as_echo X"$ac_file" |
5336
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5353
as_dir="$ac_dir"; as_fn_mkdir_p
5357
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5359
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5360
# A ".." for each directory in $ac_dir_suffix.
5361
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5362
case $ac_top_builddir_sub in
5363
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5364
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5367
ac_abs_top_builddir=$ac_pwd
5368
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5369
# for backward compatibility:
5370
ac_top_builddir=$ac_top_build_prefix
5373
.) # We are building in place.
5375
ac_top_srcdir=$ac_top_builddir_sub
5376
ac_abs_top_srcdir=$ac_pwd ;;
5377
[\\/]* | ?:[\\/]* ) # Absolute name.
5378
ac_srcdir=$srcdir$ac_dir_suffix;
5379
ac_top_srcdir=$srcdir
5380
ac_abs_top_srcdir=$srcdir ;;
5382
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5383
ac_top_srcdir=$ac_top_build_prefix$srcdir
5384
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5386
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5396
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5397
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5401
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5402
# If the template does not know about datarootdir, expand it.
5403
# FIXME: This hack should be removed a few years after 2.60.
5404
ac_datarootdir_hack=; ac_datarootdir_seen=
5415
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5416
*datarootdir*) ac_datarootdir_seen=yes;;
5417
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5418
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5419
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5421
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5422
ac_datarootdir_hack='
5423
s&@datadir@&$datadir&g
5424
s&@docdir@&$docdir&g
5425
s&@infodir@&$infodir&g
5426
s&@localedir@&$localedir&g
5427
s&@mandir@&$mandir&g
5428
s&\\\${datarootdir}&$datarootdir&g' ;;
5432
# Neutralize VPATH when `$srcdir' = `.'.
5433
# Shell code in configure.ac might set extrasub.
5434
# FIXME: do we really want to maintain this feature?
5435
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5436
ac_sed_extra="$ac_vpsub
5439
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5441
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5442
s|@configure_input@|$ac_sed_conf_input|;t t
5443
s&@top_builddir@&$ac_top_builddir_sub&;t t
5444
s&@top_build_prefix@&$ac_top_build_prefix&;t t
5445
s&@srcdir@&$ac_srcdir&;t t
5446
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5447
s&@top_srcdir@&$ac_top_srcdir&;t t
5448
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5449
s&@builddir@&$ac_builddir&;t t
5450
s&@abs_builddir@&$ac_abs_builddir&;t t
5451
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5452
s&@INSTALL@&$ac_INSTALL&;t t
5453
$ac_datarootdir_hack
5455
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5456
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5458
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5459
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5460
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5461
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5462
which seems to be undefined. Please make sure it is defined." >&5
5463
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5464
which seems to be undefined. Please make sure it is defined." >&2;}
5468
-) cat "$tmp/out" && rm -f "$tmp/out";;
5469
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5471
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5477
if test x"$ac_file" != x-; then
5479
$as_echo "/* $configure_input */" \
5480
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5481
} >"$tmp/config.h" \
5482
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5483
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5484
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5485
$as_echo "$as_me: $ac_file is unchanged" >&6;}
5488
mv "$tmp/config.h" "$ac_file" \
5489
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5492
$as_echo "/* $configure_input */" \
5493
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5494
|| as_fn_error "could not create -" "$LINENO" 5
5506
ac_clean_files=$ac_clean_files_save
5508
test $ac_write_fail = 0 ||
5509
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5512
# configure is writing to config.log, and then calls config.status.
5513
# config.status does its own redirection, appending to config.log.
5514
# Unfortunately, on DOS this fails, as config.log is still kept open
5515
# by configure, so config.status won't be able to write to it; its
5516
# output is simply discarded. So we exec the FD to /dev/null,
5517
# effectively closing config.log, so it can be properly (re)opened and
5518
# appended to by config.status. When coming back to configure, we
5519
# need to make the FD available again.
5520
if test "$no_create" != yes; then
5522
ac_config_status_args=
5523
test "$silent" = yes &&
5524
ac_config_status_args="$ac_config_status_args --quiet"
5526
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5528
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
5529
# would make configure fail if this is the last instruction.
5530
$ac_cs_success || as_fn_exit $?
5532
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5533
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5534
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5541
No special features yet.
5543
Now type "make" to build, and "make install" to install.
5544
Thank you for using libguess.