2
3
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59d.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
7
# This configure script is free software; the Free Software Foundation
8
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
# is contrary to our usage. Disable this feature.
19
alias -g '${1+"$@"}'='"$@"'
22
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24
BIN_SH=xpg4; export BIN_SH # for Tru64
25
DUALCASE=1; export DUALCASE # for MKS sh
29
# Avoid depending upon Character Ranges.
30
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33
as_cr_digits='0123456789'
34
as_cr_alnum=$as_cr_Letters$as_cr_digits
36
# The user is always right.
37
if test "${PATH_SEPARATOR+set}" != set; then
38
echo "#! /bin/sh" >conf$$.sh
39
echo "exit 0" >>conf$$.sh
41
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49
# Support unset when possible.
50
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58
# We need space, tab and new line, in precisely that order. Quoting is
59
# there to prevent editors from complaining about space-tab.
60
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61
# splitting by setting IFS to empty value.)
66
# Find who we are. Look in the path if we contain no directory separator.
68
*[\\/]* ) as_myself=$0 ;;
69
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73
test -z "$as_dir" && as_dir=.
74
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80
# We did not find ourselves, most probably we were run as `sh COMMAND'
81
# in which case we are not to be found in the path.
82
if test "x$as_myself" = x; then
85
if test ! -f "$as_myself"; then
86
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90
# Work around bugs in pre-3.0 UWIN ksh.
91
for as_var in ENV MAIL MAILPATH
92
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105
eval $as_var=C; export $as_var
107
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111
# Required to use basename.
112
if expr a : '\(a\)' >/dev/null 2>&1 &&
113
test "X`expr 00001 : '.*\(...\)'`" = X001; then
119
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126
# Name of the executable.
127
as_me=`$as_basename -- "$0" ||
128
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129
X"$0" : 'X\(//\)$' \| \
130
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132
sed '/^.*\/\([^/][^/]*\)\/*$/{
150
if test "x$CONFIG_SHELL" = x; then
151
if (eval ":") 2>/dev/null; then
157
if test $as_have_required = yes && (eval ":
167
as_func_ret_success () {
170
as_func_ret_failure () {
175
if as_func_success; then
179
echo as_func_success failed.
182
if as_func_failure; then
184
echo as_func_failure succeeded.
187
if as_func_ret_success; then
191
echo as_func_ret_success failed.
194
if as_func_ret_failure; then
196
echo as_func_ret_failure succeeded.
199
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203
echo positional parameters were not saved.
206
test \$exitcode = 0) || { (exit 1); exit 1; }
211
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213
") 2> /dev/null; then
217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
test -z "$as_dir" && as_dir=.
224
for as_base in sh bash ksh sh5; do
225
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
for as_shell in $as_candidate_shells $SHELL; do
233
# Try only shells which exist, to save several forks.
234
if test -f $as_shell &&
235
{ ($as_shell) 2> /dev/null <<\_ASEOF
236
# Be Bourne compatible
237
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241
# is contrary to our usage. Disable this feature.
242
alias -g '${1+"$@"}'='"$@"'
245
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247
BIN_SH=xpg4; export BIN_SH # for Tru64
248
DUALCASE=1; export DUALCASE # for MKS sh
253
CONFIG_SHELL=$as_shell
255
if { $as_shell 2> /dev/null <<\_ASEOF
256
# Be Bourne compatible
257
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261
# is contrary to our usage. Disable this feature.
262
alias -g '${1+"$@"}'='"$@"'
265
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267
BIN_SH=xpg4; export BIN_SH # for Tru64
268
DUALCASE=1; export DUALCASE # for MKS sh
280
as_func_ret_success () {
283
as_func_ret_failure () {
288
if as_func_success; then
292
echo as_func_success failed.
295
if as_func_failure; then
297
echo as_func_failure succeeded.
300
if as_func_ret_success; then
304
echo as_func_ret_success failed.
307
if as_func_ret_failure; then
309
echo as_func_ret_failure succeeded.
312
if ( set x; as_func_ret_success y && test x = "$1" ); then
316
echo positional parameters were not saved.
319
test $exitcode = 0) || { (exit 1); exit 1; }
324
test "x$as_lineno_1" != "x$as_lineno_2" &&
325
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
if test "x$CONFIG_SHELL" != x; then
337
for as_var in BASH_ENV ENV
338
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345
if test $as_have_required = no; then
346
echo This script requires a shell more modern than all the
347
echo shells that I found on your system. Please install a
348
echo modern shell, or manually run the script under such a
349
echo shell if you do have one.
350
{ (exit 1); exit 1; }
360
(eval "as_func_return () {
369
as_func_ret_success () {
372
as_func_ret_failure () {
377
if as_func_success; then
381
echo as_func_success failed.
384
if as_func_failure; then
386
echo as_func_failure succeeded.
389
if as_func_ret_success; then
393
echo as_func_ret_success failed.
396
if as_func_ret_failure; then
398
echo as_func_ret_failure succeeded.
401
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405
echo positional parameters were not saved.
408
test \$exitcode = 0") || {
409
echo No shell found that supports shell functions.
410
echo Please tell autoconf@gnu.org about your system,
411
echo including any error possibly output before this
419
test "x$as_lineno_1" != "x$as_lineno_2" &&
420
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423
# uniformly replaced by the line number. The first 'sed' inserts a
424
# line-number line after each line using $LINENO; the second 'sed'
425
# does the real work. The second script uses 'N' to pair each
426
# line-number line with the line containing $LINENO, and appends
427
# trailing '-' during substitution so that $LINENO is not a special
429
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430
# scripts with optimization help from Paolo Bonzini. Blame Lee
431
# E. McMahon (1931-1989) for sed's syntax. :-)
443
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447
chmod +x "$as_me.lineno" ||
448
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449
{ (exit 1); exit 1; }; }
451
# Don't try to exec as it changes $[0], causing all sort of problems
452
# (the dirname of $[0] is not the place where we might find the
453
# original and so on. Autoconf is especially sensitive to this).
455
# Exit status is that of the last command.
460
if (dirname -- /) >/dev/null 2>&1; then
466
ECHO_C= ECHO_N= ECHO_T=
470
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
477
if expr a : '\(a\)' >/dev/null 2>&1 &&
478
test "X`expr 00001 : '.*\(...\)'`" = X001; then
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
rm -f conf$$.dir/conf$$.file
492
if ln -s conf$$.file conf$$ 2>/dev/null; then
494
# ... but there are two gotchas:
495
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
# In both cases, we have to default to `cp -p'.
498
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500
elif ln conf$$.file conf$$ 2>/dev/null; then
505
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506
rmdir conf$$.dir 2>/dev/null
508
if mkdir -p . 2>/dev/null; then
511
test -d ./-p && rmdir ./-p
515
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
516
# systems may use methods other than mode bits to determine executability.
517
cat >conf$$.file <<_ASEOF
522
if test -x conf$$.file >/dev/null 2>&1; then
523
as_executable_p="test -x"
529
# Sed expression to map a string onto a valid CPP name.
530
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
# Sed expression to map a string onto a valid variable name.
533
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
exec 7<&0 </dev/null 6>&1
540
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541
# so uname gets run too.
542
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
ac_default_prefix=/usr/local
549
ac_config_libobj_dir=.
555
SHELL=${CONFIG_SHELL-/bin/sh}
557
# Identity of this package.
564
ac_unique_file="body.h"
565
ac_default_prefix=/usr/local
566
# Factoring default headers for most tests.
567
ac_includes_default="\
570
# include <sys/types.h>
573
# include <sys/stat.h>
584
# if !STDC_HEADERS && HAVE_MEMORY_H
590
# include <strings.h>
593
# include <inttypes.h>
611
program_transform_name
678
ac_precious_vars='build_alias
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14
ac_default_prefix=/usr/local
16
--with-x use the X Window System"
18
--with-xpm-include=DIR XPM include files are in DIR"
20
--with-xpm-lib=DIR XPM library file is in DIR"
22
--with-motif-include=DIR Motif include files are in DIR"
24
--with-motif-lib=DIR Motif library files are in DIR"
26
--with-motif Use Motif Tool kit"
28
--with-x11-resource=DIR The root of X11 resource files
29
(Default \${x_libraries}/X11)"
31
--enable-dupscore Allow one user to register multiple high score"
692
33
# Initialize some variables set by options.
694
ac_init_version=false
695
34
# The variables have the same names as the options, with
696
35
# dashes changed to underlines.
37
cache_file=./config.cache
702
44
program_prefix=NONE
1032
385
ac_prev=x_includes ;;
1033
386
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1034
387
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1035
x_includes=$ac_optarg ;;
388
x_includes="$ac_optarg" ;;
1037
390
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1038
391
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1039
392
ac_prev=x_libraries ;;
1040
393
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1041
394
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1042
x_libraries=$ac_optarg ;;
395
x_libraries="$ac_optarg" ;;
1044
-*) { echo "$as_me: error: unrecognized option: $ac_option
1045
Try \`$0 --help' for more information." >&2
1046
{ (exit 1); exit 1; }; }
397
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1050
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1051
# Reject names that are not valid shell variable names.
1052
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1053
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1054
{ (exit 1); exit 1; }; }
1055
eval $ac_envvar=\$ac_optarg
1056
export $ac_envvar ;;
1059
# FIXME: should be removed in autoconf 3.0.
1060
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1061
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1063
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
401
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402
echo "configure: warning: $ac_option: invalid host type" 1>&2
404
if test "x$nonopt" != xNONE; then
405
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1069
413
if test -n "$ac_prev"; then
1070
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1071
{ echo "$as_me: error: missing argument to $ac_option" >&2
1072
{ (exit 1); exit 1; }; }
1075
# Be sure to have absolute directory names.
1076
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1077
datadir sysconfdir sharedstatedir localstatedir includedir \
1078
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1079
libdir localedir mandir
414
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419
# File descriptor usage:
422
# 2 errors and warnings
423
# 3 some systems may open it to /dev/tty
424
# 4 used on the Kubota Titan
425
# 6 checking for... messages and results
426
# 5 compiler messages saved in config.log
427
if test "$silent" = yes; then
435
This file contains any messages produced by compilers while
436
running configure, to aid debugging if configure makes a mistake.
439
# Strip out --no-create and --no-recursion so they do not pile up.
440
# Also quote any args containing shell metacharacters.
1081
eval ac_val=\$$ac_var
1083
[\\/$]* | ?:[\\/]* ) continue;;
1084
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
445
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
446
| --no-cr | --no-c) ;;
447
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
448
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
1086
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1087
{ (exit 1); exit 1; }; }
1090
# There might be people who depend on the old broken behavior: `$host'
1091
# used to hold the argument of --host etc.
1092
# FIXME: To remove some day.
1095
target=$target_alias
1097
# FIXME: To remove some day.
1098
if test "x$host_alias" != x; then
1099
if test "x$build_alias" = x; then
1100
cross_compiling=maybe
1101
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1102
If a cross compiler is detected then cross compile mode will be used." >&2
1103
elif test "x$build_alias" != "x$host_alias"; then
1109
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1111
test "$silent" = yes && exec 6>/dev/null
1114
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1115
ac_ls_di=`ls -di .` &&
1116
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1117
{ echo "$as_me: error: Working directory cannot be determined" >&2
1118
{ (exit 1); exit 1; }; }
1119
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1120
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1121
{ (exit 1); exit 1; }; }
456
# Only set these to C if already set. These must not be set unconditionally
457
# because not all systems understand e.g. LANG=C (notably SCO).
458
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459
# Non-C LC_CTYPE values break the ctype check.
460
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465
# confdefs.h avoids OS command line length limits that DEFS can exceed.
466
rm -rf conftest* confdefs.h
467
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
470
# A filename unique to this package, relative to the directory that
471
# configure is in, which we can look for to find out if srcdir is correct.
472
ac_unique_file=body.h
1124
474
# Find the source files, if location was not specified.
1125
475
if test -z "$srcdir"; then
1126
476
ac_srcdir_defaulted=yes
1127
# Try the directory containing this script, then the parent directory.
1128
ac_confdir=`$as_dirname -- "$0" ||
1129
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1130
X"$0" : 'X\(//\)[^/]' \| \
1131
X"$0" : 'X\(//\)$' \| \
1132
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1134
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
477
# Try the directory containing this script, then its parent.
479
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
1151
481
srcdir=$ac_confdir
1152
if test ! -r "$srcdir/$ac_unique_file"; then
482
if test ! -r $srcdir/$ac_unique_file; then
1156
486
ac_srcdir_defaulted=no
1158
if test ! -r "$srcdir/$ac_unique_file"; then
1159
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1160
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1161
{ (exit 1); exit 1; }; }
1163
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1165
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1166
{ (exit 1); exit 1; }; }
1168
# When building in place, set srcdir=.
1169
if test "$ac_abs_confdir" = "$ac_pwd"; then
1172
# Remove unnecessary trailing slashes from srcdir.
1173
# Double slashes in file names in object file debugging info
1174
# mess up M-x gdb in Emacs.
1176
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1178
for ac_var in $ac_precious_vars; do
1179
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1180
eval ac_env_${ac_var}_value=\$${ac_var}
1181
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1182
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1186
# Report the --help message.
1188
if test "$ac_init_help" = "long"; then
1189
# Omit some internal or obsolete options to make the list less imposing.
1190
# This message is too long to be a string in the A/UX 3.1 sh.
1192
\`configure' configures this package to adapt to many kinds of systems.
1194
Usage: $0 [OPTION]... [VAR=VALUE]...
1196
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1197
VAR=VALUE. See below for descriptions of some of the useful variables.
1199
Defaults for the options are specified in brackets.
1202
-h, --help display this help and exit
1203
--help=short display options specific to this package
1204
--help=recursive display the short help of all the included packages
1205
-V, --version display version information and exit
1206
-q, --quiet, --silent do not print \`checking...' messages
1207
--cache-file=FILE cache test results in FILE [disabled]
1208
-C, --config-cache alias for \`--cache-file=config.cache'
1209
-n, --no-create do not create output files
1210
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1212
Installation directories:
1213
--prefix=PREFIX install architecture-independent files in PREFIX
1214
[$ac_default_prefix]
1215
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1218
By default, \`make install' will install all the files in
1219
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1220
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1221
for instance \`--prefix=\$HOME'.
1223
For better control, use the options below.
1225
Fine tuning of the installation directories:
1226
--bindir=DIR user executables [EPREFIX/bin]
1227
--sbindir=DIR system admin executables [EPREFIX/sbin]
1228
--libexecdir=DIR program executables [EPREFIX/libexec]
1229
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1230
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1231
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1232
--libdir=DIR object code libraries [EPREFIX/lib]
1233
--includedir=DIR C header files [PREFIX/include]
1234
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1235
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1236
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1237
--infodir=DIR info documentation [DATAROOTDIR/info]
1238
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1239
--mandir=DIR man documentation [DATAROOTDIR/man]
1240
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1241
--htmldir=DIR html documentation [DOCDIR]
1242
--dvidir=DIR dvi documentation [DOCDIR]
1243
--pdfdir=DIR pdf documentation [DOCDIR]
1244
--psdir=DIR ps documentation [DOCDIR]
1250
--x-includes=DIR X include files are in DIR
1251
--x-libraries=DIR X library files are in DIR
1254
--build=BUILD configure for building on BUILD [guessed]
1255
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1256
--target=TARGET configure for building compilers for TARGET [HOST]
1260
if test -n "$ac_init_help"; then
1265
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1266
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1267
--enable-dupscore Allow one user to register multiple high score
1270
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1271
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1272
--with-x use the X Window System
1273
--with-xpm-include=DIR XPM include files are in DIR
1274
--with-xpm-lib=DIR XPM library file is in DIR
1275
--with-motif-include=DIR Motif include files are in DIR
1276
--with-motif-lib=DIR Motif library files are in DIR
1277
--with-motif Use Motif Tool kit
1278
--with-x11-resource=DIR The root of X11 resource files
1279
(Default \${x_libraries}/X11)
1281
Some influential environment variables:
1282
CC C compiler command
1283
CFLAGS C compiler flags
1284
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1285
nonstandard directory <lib dir>
1286
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1287
you have headers in a nonstandard directory <include dir>
1288
CXX C++ compiler command
1289
CXXFLAGS C++ compiler flags
1291
XMKMF Path to xmkmf, Makefile generator for X Window System
1293
Use these variables to override the choices made by `configure' or to help
1294
it to find libraries and programs with nonstandard names/locations.
1300
if test "$ac_init_help" = "recursive"; then
1301
# If there are subdirs, report their specific --help.
1302
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1303
test -d $ac_dir || continue
1307
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1309
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1310
# A ".." for each directory in $ac_dir_suffix.
1311
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1312
case $ac_top_builddir_sub in
1313
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1314
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1317
ac_abs_top_builddir=$ac_pwd
1318
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1319
# for backward compatibility:
1320
ac_top_builddir=$ac_top_build_prefix
1323
.) # We are building in place.
1325
ac_top_srcdir=$ac_top_builddir_sub
1326
ac_abs_top_srcdir=$ac_pwd ;;
1327
[\\/]* | ?:[\\/]* ) # Absolute name.
1328
ac_srcdir=$srcdir$ac_dir_suffix;
1329
ac_top_srcdir=$srcdir
1330
ac_abs_top_srcdir=$srcdir ;;
1332
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1333
ac_top_srcdir=$ac_top_build_prefix$srcdir
1334
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1336
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1338
cd "$ac_dir" || { ac_status=$?; continue; }
1339
# Check for guested configure.
1340
if test -f $ac_srcdir/configure.gnu; then
1342
$SHELL $ac_srcdir/configure.gnu --help=recursive
1343
elif test -f $ac_srcdir/configure; then
1345
$SHELL $ac_srcdir/configure --help=recursive
1347
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1349
cd "$ac_pwd" || { ac_status=$?; break; }
1353
test -n "$ac_init_help" && exit $ac_status
1354
if $ac_init_version; then
1357
generated by GNU Autoconf 2.59d
1359
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1360
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1361
This configure script is free software; the Free Software Foundation
1362
gives unlimited permission to copy, distribute and modify it.
1366
cat >config.log <<_ACEOF
1367
This file contains any messages produced by compilers while
1368
running configure, to aid debugging if configure makes a mistake.
1370
It was created by $as_me, which was
1371
generated by GNU Autoconf 2.59d. Invocation command line was
1383
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1384
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1385
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1386
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1387
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1389
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1390
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1392
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1393
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1394
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1395
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1396
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1397
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1398
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406
test -z "$as_dir" && as_dir=.
1407
echo "PATH: $as_dir"
1423
# Keep a trace of the command line.
1424
# Strip out --no-create and --no-recursion so they do not pile up.
1425
# Strip out --silent because we don't want to record it for future runs.
1426
# Also quote any args containing shell meta-characters.
1427
# Make two passes to allow for proper duplicate-argument suppression.
1432
ac_must_keep_next=false
1438
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1439
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1440
| -silent | --silent | --silen | --sile | --sil)
1443
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1446
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1448
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1449
if test $ac_must_keep_next = true; then
1450
ac_must_keep_next=false # Got value, back to normal.
1453
*=* | --config-cache | -C | -disable-* | --disable-* \
1454
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1455
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1456
| -with-* | --with-* | -without-* | --without-* | --x)
1457
case "$ac_configure_args0 " in
1458
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1461
-* ) ac_must_keep_next=true ;;
1464
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1465
# Get rid of the leading space.
1471
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1472
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474
# When interrupted or exit'd, cleanup temporary files, and complete
1475
# config.log. We remove comments because anyway the quotes in there
1476
# would cause problems or look ugly.
1477
# WARNING: Use '\'' to represent an apostrophe within the trap.
1478
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1479
trap 'exit_status=$?
1480
# Save into config.log some information that might help in debugging.
1485
## ---------------- ##
1486
## Cache variables. ##
1487
## ---------------- ##
1490
# The following way of writing the cache mishandles newlines in values,
1492
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1493
eval ac_val=\$$ac_var
1497
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1498
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1501
_ | IFS | as_nl) ;; #(
1502
*) $as_unset $ac_var ;;
1507
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1508
*${as_nl}ac_space=\ *)
1510
"s/'\''/'\''\\\\'\'''\''/g;
1511
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1514
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1522
## ----------------- ##
1523
## Output variables. ##
1524
## ----------------- ##
1527
for ac_var in $ac_subst_vars
1529
eval ac_val=\$$ac_var
1530
echo "$ac_var='\''$ac_val'\''"
1534
if test -n "$ac_subst_files"; then
1536
## ------------------- ##
1537
## File substitutions. ##
1538
## ------------------- ##
1541
for ac_var in $ac_subst_files
1543
eval ac_val=\$$ac_var
1544
echo "$ac_var='\''$ac_val'\''"
1549
if test -s confdefs.h; then
1559
test "$ac_signal" != 0 &&
1560
echo "$as_me: caught signal $ac_signal"
1561
echo "$as_me: exit $exit_status"
1563
rm -f core *.core core.conftest.* &&
1564
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1567
for ac_signal in 1 2 13 15; do
1568
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1572
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1573
rm -f -r conftest* confdefs.h
1575
# Predefined preprocessor variables.
1577
cat >>confdefs.h <<_ACEOF
1578
#define PACKAGE_NAME "$PACKAGE_NAME"
1582
cat >>confdefs.h <<_ACEOF
1583
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1587
cat >>confdefs.h <<_ACEOF
1588
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1592
cat >>confdefs.h <<_ACEOF
1593
#define PACKAGE_STRING "$PACKAGE_STRING"
1597
cat >>confdefs.h <<_ACEOF
1598
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1602
# Let the site file select an alternate cache file if it wants to.
488
if test ! -r $srcdir/$ac_unique_file; then
489
if test "$ac_srcdir_defaulted" = yes; then
490
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1603
497
# Prefer explicitly selected file to automatically selected ones.
1604
if test -n "$CONFIG_SITE"; then
1605
set x "$CONFIG_SITE"
1606
elif test "x$prefix" != xNONE; then
1607
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1609
set x "$ac_default_prefix/share/config.site" \
1610
"$ac_default_prefix/etc/config.site"
498
if test -z "$CONFIG_SITE"; then
499
if test "x$prefix" != xNONE; then
500
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505
for ac_site_file in $CONFIG_SITE; do
1615
506
if test -r "$ac_site_file"; then
1616
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1617
echo "$as_me: loading site script $ac_site_file" >&6;}
1618
sed 's/^/| /' "$ac_site_file" >&5
507
echo "loading site script $ac_site_file"
1619
508
. "$ac_site_file"
1623
512
if test -r "$cache_file"; then
1624
# Some versions of bash will fail to source /dev/null (special
1625
# files actually), so we avoid doing that.
1626
if test -f "$cache_file"; then
1627
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1628
echo "$as_me: loading cache $cache_file" >&6;}
1630
[\\/]* | ?:[\\/]* ) . $cache_file;;
1631
*) . ./$cache_file;;
1635
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1636
echo "$as_me: creating cache $cache_file" >&6;}
1640
# Check that the precious variables saved in the cache have kept the same
1642
ac_cache_corrupted=false
1643
for ac_var in $ac_precious_vars; do
1644
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1645
eval ac_new_set=\$ac_env_${ac_var}_set
1646
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1647
eval ac_new_val=\$ac_env_${ac_var}_value
1648
case $ac_old_set,$ac_new_set in
1650
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1651
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1652
ac_cache_corrupted=: ;;
1654
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1655
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1656
ac_cache_corrupted=: ;;
1659
if test "x$ac_old_val" != "x$ac_new_val"; then
1660
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1661
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1662
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1663
echo "$as_me: former value: $ac_old_val" >&2;}
1664
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1665
echo "$as_me: current value: $ac_new_val" >&2;}
1666
ac_cache_corrupted=:
1669
# Pass precious variables to config.status.
1670
if test "$ac_new_set" = set; then
1672
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1673
*) ac_arg=$ac_var=$ac_new_val ;;
1675
case " $ac_configure_args " in
1676
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1677
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1681
if $ac_cache_corrupted; then
1682
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1683
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1684
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1685
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1686
{ (exit 1); exit 1; }; }
1706
ac_cpp='$CPP $CPPFLAGS'
1707
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1708
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1709
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1713
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1714
if test -f $ac_dir/install-sh; then
1716
ac_install_sh="$ac_aux_dir/install-sh -c"
1718
elif test -f $ac_dir/install.sh; then
1720
ac_install_sh="$ac_aux_dir/install.sh -c"
1722
elif test -f $ac_dir/shtool; then
1724
ac_install_sh="$ac_aux_dir/shtool install -c"
1728
if test -z "$ac_aux_dir"; then
1729
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1730
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1731
{ (exit 1); exit 1; }; }
1733
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1734
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1735
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1737
# Make sure we can run config.sub.
1738
$ac_config_sub sun4 >/dev/null 2>&1 ||
1739
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1740
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1741
{ (exit 1); exit 1; }; }
1743
{ echo "$as_me:$LINENO: checking build system type" >&5
1744
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1745
if test "${ac_cv_build+set}" = set; then
1746
echo $ECHO_N "(cached) $ECHO_C" >&6
1748
ac_build_alias=$build_alias
1749
test "x$ac_build_alias" = x &&
1750
ac_build_alias=`$ac_config_guess`
1751
test "x$ac_build_alias" = x &&
1752
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1753
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1754
{ (exit 1); exit 1; }; }
1755
ac_cv_build=`$ac_config_sub $ac_build_alias` ||
1756
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
1757
echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
1758
{ (exit 1); exit 1; }; }
1761
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1762
echo "${ECHO_T}$ac_cv_build" >&6; }
1763
case $ac_cv_build in
1765
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1766
echo "$as_me: error: invalid value of canonical build" >&2;}
1767
{ (exit 1); exit 1; }; };;
1770
ac_save_IFS=$IFS; IFS='-'
1776
# Remember, the first character of IFS is used to create $*,
1777
# except with old shells:
1780
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1783
{ echo "$as_me:$LINENO: checking host system type" >&5
1784
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1785
if test "${ac_cv_host+set}" = set; then
1786
echo $ECHO_N "(cached) $ECHO_C" >&6
1788
if test "x$host_alias" = x; then
1789
ac_cv_host=$ac_cv_build
1791
ac_cv_host=`$ac_config_sub $host_alias` ||
1792
{ { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
1793
echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
1794
{ (exit 1); exit 1; }; }
1798
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1799
echo "${ECHO_T}$ac_cv_host" >&6; }
1802
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1803
echo "$as_me: error: invalid value of canonical host" >&2;}
1804
{ (exit 1); exit 1; }; };;
1807
ac_save_IFS=$IFS; IFS='-'
1813
# Remember, the first character of IFS is used to create $*,
1814
# except with old shells:
1817
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1820
{ echo "$as_me:$LINENO: checking target system type" >&5
1821
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1822
if test "${ac_cv_target+set}" = set; then
1823
echo $ECHO_N "(cached) $ECHO_C" >&6
1825
if test "x$target_alias" = x; then
1826
ac_cv_target=$ac_cv_host
1828
ac_cv_target=`$ac_config_sub $target_alias` ||
1829
{ { echo "$as_me:$LINENO: error: $ac_config_sub $target_alias failed" >&5
1830
echo "$as_me: error: $ac_config_sub $target_alias failed" >&2;}
1831
{ (exit 1); exit 1; }; }
1835
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1836
echo "${ECHO_T}$ac_cv_target" >&6; }
1837
case $ac_cv_target in
1839
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1840
echo "$as_me: error: invalid value of canonical target" >&2;}
1841
{ (exit 1); exit 1; }; };;
1843
target=$ac_cv_target
1844
ac_save_IFS=$IFS; IFS='-'
1850
# Remember, the first character of IFS is used to create $*,
1851
# except with old shells:
1854
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1857
# The aliases save the names the user supplied, while $host etc.
1858
# will get canonicalized.
1859
test -n "$target_alias" &&
1860
test "$program_prefix$program_suffix$program_transform_name" = \
1862
program_prefix=${target_alias}-
1865
ac_cpp='$CPP $CPPFLAGS'
1866
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869
if test -n "$ac_tool_prefix"; then
1870
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1871
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1872
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1873
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1874
if test "${ac_cv_prog_CC+set}" = set; then
1875
echo $ECHO_N "(cached) $ECHO_C" >&6
1877
if test -n "$CC"; then
1878
ac_cv_prog_CC="$CC" # Let the user override the test.
1880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884
test -z "$as_dir" && as_dir=.
1885
for ac_exec_ext in '' $ac_executable_extensions; do
1886
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1887
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1888
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898
if test -n "$CC"; then
1899
{ echo "$as_me:$LINENO: result: $CC" >&5
1900
echo "${ECHO_T}$CC" >&6; }
1902
{ echo "$as_me:$LINENO: result: no" >&5
1903
echo "${ECHO_T}no" >&6; }
1908
if test -z "$ac_cv_prog_CC"; then
1910
# Extract the first word of "gcc", so it can be a program name with args.
513
echo "loading cache $cache_file"
516
echo "creating cache $cache_file"
521
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522
ac_cpp='$CPP $CPPFLAGS'
523
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525
cross_compiling=$ac_cv_prog_cc_cross
529
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538
ac_n= ac_c='\c' ac_t=
543
# Extract the first word of "gcc", so it can be a program name with args.
1911
544
set dummy gcc; ac_word=$2
1912
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1913
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1914
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915
echo $ECHO_N "(cached) $ECHO_C" >&6
1917
if test -n "$ac_ct_CC"; then
1918
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924
test -z "$as_dir" && as_dir=.
1925
for ac_exec_ext in '' $ac_executable_extensions; do
1926
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1927
ac_cv_prog_ac_ct_CC="gcc"
1928
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1938
if test -n "$ac_ct_CC"; then
1939
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1940
echo "${ECHO_T}$ac_ct_CC" >&6; }
1942
{ echo "$as_me:$LINENO: result: no" >&5
1943
echo "${ECHO_T}no" >&6; }
1946
if test "x$ac_ct_CC" = x; then
1949
case $cross_compiling:$ac_tool_warned in
1951
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1952
whose name does not start with the host triplet. If you think this
1953
configuration is useful to you, please write to autoconf@gnu.org." >&5
1954
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1955
whose name does not start with the host triplet. If you think this
1956
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1957
ac_tool_warned=yes ;;
1965
if test -z "$CC"; then
1966
if test -n "$ac_tool_prefix"; then
1967
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1968
set dummy ${ac_tool_prefix}cc; ac_word=$2
1969
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1970
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971
if test "${ac_cv_prog_CC+set}" = set; then
1972
echo $ECHO_N "(cached) $ECHO_C" >&6
545
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
546
echo "configure:547: checking for $ac_word" >&5
547
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
548
echo $ac_n "(cached) $ac_c" 1>&6
1974
550
if test -n "$CC"; then
1975
551
ac_cv_prog_CC="$CC" # Let the user override the test.
1977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981
test -z "$as_dir" && as_dir=.
1982
for ac_exec_ext in '' $ac_executable_extensions; do
1983
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1984
ac_cv_prog_CC="${ac_tool_prefix}cc"
1985
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
553
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
555
for ac_dir in $ac_dummy; do
556
test -z "$ac_dir" && ac_dir=.
557
if test -f $ac_dir/$ac_word; then
1995
566
if test -n "$CC"; then
1996
{ echo "$as_me:$LINENO: result: $CC" >&5
1997
echo "${ECHO_T}$CC" >&6; }
567
echo "$ac_t""$CC" 1>&6
1999
{ echo "$as_me:$LINENO: result: no" >&5
2000
echo "${ECHO_T}no" >&6; }
569
echo "$ac_t""no" 1>&6
2006
572
if test -z "$CC"; then
2007
573
# Extract the first word of "cc", so it can be a program name with args.
2008
574
set dummy cc; ac_word=$2
2009
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2010
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2011
if test "${ac_cv_prog_CC+set}" = set; then
2012
echo $ECHO_N "(cached) $ECHO_C" >&6
575
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
576
echo "configure:577: checking for $ac_word" >&5
577
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
578
echo $ac_n "(cached) $ac_c" 1>&6
2014
580
if test -n "$CC"; then
2015
581
ac_cv_prog_CC="$CC" # Let the user override the test.
583
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2017
584
ac_prog_rejected=no
2018
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022
test -z "$as_dir" && as_dir=.
2023
for ac_exec_ext in '' $ac_executable_extensions; do
2024
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2025
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026
ac_prog_rejected=yes
2030
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
586
for ac_dir in $ac_dummy; do
587
test -z "$ac_dir" && ac_dir=.
588
if test -f $ac_dir/$ac_word; then
589
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2037
598
if test $ac_prog_rejected = yes; then
2038
599
# We found a bogon in the path, so make sure we never use it.
2039
600
set dummy $ac_cv_prog_CC
2041
if test $# != 0; then
602
if test $# -gt 0; then
2042
603
# We chose a different compiler from the bogus one.
2043
604
# However, it has the same basename, so the bogon will be chosen
2044
605
# first if we set CC to just the basename; use the full file name.
2046
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
607
set dummy "$ac_dir/$ac_word" "$@"
2052
615
if test -n "$CC"; then
2053
{ echo "$as_me:$LINENO: result: $CC" >&5
2054
echo "${ECHO_T}$CC" >&6; }
616
echo "$ac_t""$CC" 1>&6
2056
{ echo "$as_me:$LINENO: result: no" >&5
2057
echo "${ECHO_T}no" >&6; }
2062
if test -z "$CC"; then
2063
if test -n "$ac_tool_prefix"; then
2064
for ac_prog in cl.exe
2066
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2069
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2070
if test "${ac_cv_prog_CC+set}" = set; then
2071
echo $ECHO_N "(cached) $ECHO_C" >&6
618
echo "$ac_t""no" 1>&6
621
if test -z "$CC"; then
624
# Extract the first word of "cl", so it can be a program name with args.
625
set dummy cl; ac_word=$2
626
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
627
echo "configure:628: checking for $ac_word" >&5
628
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
629
echo $ac_n "(cached) $ac_c" 1>&6
2073
631
if test -n "$CC"; then
2074
632
ac_cv_prog_CC="$CC" # Let the user override the test.
2076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080
test -z "$as_dir" && as_dir=.
2081
for ac_exec_ext in '' $ac_executable_extensions; do
2082
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2083
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2084
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094
if test -n "$CC"; then
2095
{ echo "$as_me:$LINENO: result: $CC" >&5
2096
echo "${ECHO_T}$CC" >&6; }
2098
{ echo "$as_me:$LINENO: result: no" >&5
2099
echo "${ECHO_T}no" >&6; }
2103
test -n "$CC" && break
634
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
636
for ac_dir in $ac_dummy; do
637
test -z "$ac_dir" && ac_dir=.
638
if test -f $ac_dir/$ac_word; then
2106
if test -z "$CC"; then
2108
for ac_prog in cl.exe
2110
# Extract the first word of "$ac_prog", so it can be a program name with args.
2111
set dummy $ac_prog; ac_word=$2
2112
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2113
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2115
echo $ECHO_N "(cached) $ECHO_C" >&6
2117
if test -n "$ac_ct_CC"; then
2118
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124
test -z "$as_dir" && as_dir=.
2125
for ac_exec_ext in '' $ac_executable_extensions; do
2126
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2127
ac_cv_prog_ac_ct_CC="$ac_prog"
2128
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138
if test -n "$ac_ct_CC"; then
2139
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140
echo "${ECHO_T}$ac_ct_CC" >&6; }
2142
{ echo "$as_me:$LINENO: result: no" >&5
2143
echo "${ECHO_T}no" >&6; }
2147
test -n "$ac_ct_CC" && break
2150
if test "x$ac_ct_CC" = x; then
2153
case $cross_compiling:$ac_tool_warned in
2155
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2156
whose name does not start with the host triplet. If you think this
2157
configuration is useful to you, please write to autoconf@gnu.org." >&5
2158
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2159
whose name does not start with the host triplet. If you think this
2160
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2161
ac_tool_warned=yes ;;
2170
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2171
See \`config.log' for more details." >&5
2172
echo "$as_me: error: no acceptable C compiler found in \$PATH
2173
See \`config.log' for more details." >&2;}
2174
{ (exit 1); exit 1; }; }
2176
# Provide some information about the compiler.
2177
echo "$as_me:$LINENO: checking for C compiler version" >&5
2178
ac_compiler=`set X $ac_compile; echo $2`
2179
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2180
(eval $ac_compiler --version >&5) 2>&5
2182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183
(exit $ac_status); }
2184
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2185
(eval $ac_compiler -v >&5) 2>&5
2187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188
(exit $ac_status); }
2189
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2190
(eval $ac_compiler -V >&5) 2>&5
2192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193
(exit $ac_status); }
2196
# List of possible output files. We want to start from the most likely,
2197
# but we have to check foo.exe before foo, because Cygwin `test -f' looks
2198
# also for foo.exe. b.out is created by i960 compilers.
2199
# As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2200
# But we are not allowed to rm a.*, and we do not want always remove
2201
# conftest.*, so we will list them literally, when appropriate.
2202
ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2204
# The IRIX 6 linker writes into existing files which may not be
2205
# executable, retaining their permissions. Remove them first so a
2206
# subsequent execution test works.
2207
rm -f $ac_outfiles conftest.*
2209
cat >conftest.$ac_ext <<_ACEOF
2212
cat confdefs.h >>conftest.$ac_ext
2213
cat >>conftest.$ac_ext <<_ACEOF
2214
/* end confdefs.h. */
2225
ac_clean_files_save=$ac_clean_files
2226
ac_clean_files="$ac_clean_files $ac_outfiles"
2228
# The following tests should remove their output except files matching conftest.*.
2229
# Try to create an executable without -o first, disregard a.out.
2230
# It will help us diagnose broken compilers, and finding out an intuition
2232
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2233
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2234
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2236
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2237
(eval $ac_link_default) 2>&5
2239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240
(exit $ac_status); }; then
2241
for ac_file in $ac_outfiles a.* conftest.* NO
2243
test -f "$ac_file" || continue
2245
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2249
if test "$ac_file" = NO; then
2250
{ { echo "$as_me:$LINENO: error: no output file found
2251
See \`config.log' for more details." >&5
2252
echo "$as_me: error: no output file found
2253
See \`config.log' for more details." >&2;}
2254
{ (exit 1); exit 1; }; }
2259
echo "$as_me: failed program was:" >&5
2260
sed 's/^/| /' conftest.$ac_ext >&5
2262
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2263
See \`config.log' for more details." >&5
2264
echo "$as_me: error: C compiler cannot create executables
2265
See \`config.log' for more details." >&2;}
2266
{ (exit 77); exit 77; }; }
2269
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2270
echo "${ECHO_T}$ac_file" >&6; }
2271
# Check that the compiler produces executables we can run. If not, either
2272
# the compiler is broken, or we cross compile.
2273
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2274
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2275
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2276
# If not cross compiling, check that we can run a simple program.
2277
if test "$cross_compiling" != yes; then
2278
if { ac_try='./$ac_file'
2279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283
(exit $ac_status); }; }; then
2286
if test "$cross_compiling" = maybe; then
2289
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2290
If you meant to cross compile, use \`--host'.
2291
See \`config.log' for more details." >&5
2292
echo "$as_me: error: cannot run C compiled programs.
2293
If you meant to cross compile, use \`--host'.
2294
See \`config.log' for more details." >&2;}
2295
{ (exit 1); exit 1; }; }
2299
{ echo "$as_me:$LINENO: result: yes" >&5
2300
echo "${ECHO_T}yes" >&6; }
2302
# Clean up; list also $ac_file, in case it matched a wildcard entry.
2303
rm -f $ac_outfiles $ac_file
2305
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2306
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2307
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2308
echo "${ECHO_T}$cross_compiling" >&6; }
2310
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2311
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2312
if test "${ac_cv_exeext+set}" = set; then
2313
echo $ECHO_N "(cached) $ECHO_C" >&6
2315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2316
(eval $ac_link) 2>&5
2318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319
(exit $ac_status); }; then
2320
# If both `conftest.exe' and `conftest' are `present' (well, observable),
2321
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2322
# work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2323
for ac_file in conftest.exe conftest conftest.* NO; do
2324
test -f "$ac_file" || continue
2326
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2327
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332
if test "$ac_file" = NO; then
2333
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
2334
See \`config.log' for more details." >&5
2335
echo "$as_me: error: cannot compute suffix of executables: no output file found
2336
See \`config.log' for more details." >&2;}
2337
{ (exit 1); exit 1; }; }
2340
# Clean up; list also $ac_file, in case it matched conftest.*.
2341
rm -f $ac_outfiles $ac_file
2344
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2345
See \`config.log' for more details." >&5
2346
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2347
See \`config.log' for more details." >&2;}
2348
{ (exit 1); exit 1; }; }
2354
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2355
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2356
EXEEXT=$ac_cv_exeext
2360
ac_clean_files=$ac_clean_files_save
2362
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2363
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2364
if test "${ac_cv_objext+set}" = set; then
2365
echo $ECHO_N "(cached) $ECHO_C" >&6
2367
rm -f conftest.o conftest.obj
2368
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369
(eval $ac_compile) 2>&5
2371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372
(exit $ac_status); }; then
2373
for ac_file in conftest.o conftest.obj conftest.*; do
2374
test -f "$ac_file" || continue;
2376
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2377
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382
echo "$as_me: failed program was:" >&5
2383
sed 's/^/| /' conftest.$ac_ext >&5
2385
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2386
See \`config.log' for more details." >&5
2387
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2388
See \`config.log' for more details." >&2;}
2389
{ (exit 1); exit 1; }; }
2393
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2394
echo "${ECHO_T}$ac_cv_objext" >&6; }
2395
OBJEXT=$ac_cv_objext
2400
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2401
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2402
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403
echo $ECHO_N "(cached) $ECHO_C" >&6
2405
cat >conftest.$ac_ext <<_ACEOF
2408
cat confdefs.h >>conftest.$ac_ext
2409
cat >>conftest.$ac_ext <<_ACEOF
2410
/* end confdefs.h. */
647
if test -n "$CC"; then
648
echo "$ac_t""$CC" 1>&6
650
echo "$ac_t""no" 1>&6
655
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
658
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
659
echo "configure:660: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
662
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
663
ac_cpp='$CPP $CPPFLAGS'
664
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
665
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
666
cross_compiling=$ac_cv_prog_cc_cross
668
cat > conftest.$ac_ext << EOF
670
#line 671 "configure"
671
#include "confdefs.h"
675
if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
676
ac_cv_prog_cc_works=yes
677
# If we can't run a trivial program, we are probably using a cross compiler.
678
if (./conftest; exit) 2>/dev/null; then
679
ac_cv_prog_cc_cross=no
681
ac_cv_prog_cc_cross=yes
684
echo "configure: failed program was:" >&5
685
cat conftest.$ac_ext >&5
686
ac_cv_prog_cc_works=no
690
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
691
ac_cpp='$CPP $CPPFLAGS'
692
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
693
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
694
cross_compiling=$ac_cv_prog_cc_cross
696
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
697
if test $ac_cv_prog_cc_works = no; then
698
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
700
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
701
echo "configure:702: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
702
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
703
cross_compiling=$ac_cv_prog_cc_cross
705
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
706
echo "configure:707: checking whether we are using GNU C" >&5
707
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
708
echo $ac_n "(cached) $ac_c" 1>&6
710
cat > conftest.c <<EOF
2423
rm -f conftest.$ac_objext
2424
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425
(eval $ac_compile) 2>conftest.er1
2427
grep -v '^ *+' conftest.er1 >conftest.err
2429
cat conftest.err >&5
2430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431
(exit $ac_status); } &&
2432
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2433
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437
(exit $ac_status); }; } &&
2438
{ ac_try='test -s conftest.$ac_objext'
2439
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443
(exit $ac_status); }; }; then
2446
echo "$as_me: failed program was:" >&5
2447
sed 's/^/| /' conftest.$ac_ext >&5
2452
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2456
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2458
GCC=`test $ac_compiler_gnu = yes && echo yes`
2459
ac_test_CFLAGS=${CFLAGS+set}
2460
ac_save_CFLAGS=$CFLAGS
2461
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2462
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2463
if test "${ac_cv_prog_cc_g+set}" = set; then
2464
echo $ECHO_N "(cached) $ECHO_C" >&6
2466
ac_save_c_werror_flag=$ac_c_werror_flag
2467
ac_c_werror_flag=yes
2470
cat >conftest.$ac_ext <<_ACEOF
2473
cat confdefs.h >>conftest.$ac_ext
2474
cat >>conftest.$ac_ext <<_ACEOF
2475
/* end confdefs.h. */
2485
rm -f conftest.$ac_objext
2486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487
(eval $ac_compile) 2>conftest.er1
2489
grep -v '^ *+' conftest.er1 >conftest.err
2491
cat conftest.err >&5
2492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493
(exit $ac_status); } &&
2494
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499
(exit $ac_status); }; } &&
2500
{ ac_try='test -s conftest.$ac_objext'
2501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505
(exit $ac_status); }; }; then
2508
echo "$as_me: failed program was:" >&5
2509
sed 's/^/| /' conftest.$ac_ext >&5
2512
cat >conftest.$ac_ext <<_ACEOF
2515
cat confdefs.h >>conftest.$ac_ext
2516
cat >>conftest.$ac_ext <<_ACEOF
2517
/* end confdefs.h. */
2527
rm -f conftest.$ac_objext
2528
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529
(eval $ac_compile) 2>conftest.er1
2531
grep -v '^ *+' conftest.er1 >conftest.err
2533
cat conftest.err >&5
2534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535
(exit $ac_status); } &&
2536
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2537
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541
(exit $ac_status); }; } &&
2542
{ ac_try='test -s conftest.$ac_objext'
2543
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547
(exit $ac_status); }; }; then
2550
echo "$as_me: failed program was:" >&5
2551
sed 's/^/| /' conftest.$ac_ext >&5
2553
ac_c_werror_flag=$ac_save_c_werror_flag
2555
cat >conftest.$ac_ext <<_ACEOF
2558
cat confdefs.h >>conftest.$ac_ext
2559
cat >>conftest.$ac_ext <<_ACEOF
2560
/* end confdefs.h. */
2570
rm -f conftest.$ac_objext
2571
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572
(eval $ac_compile) 2>conftest.er1
2574
grep -v '^ *+' conftest.er1 >conftest.err
2576
cat conftest.err >&5
2577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578
(exit $ac_status); } &&
2579
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2580
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584
(exit $ac_status); }; } &&
2585
{ ac_try='test -s conftest.$ac_objext'
2586
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590
(exit $ac_status); }; }; then
2593
echo "$as_me: failed program was:" >&5
2594
sed 's/^/| /' conftest.$ac_ext >&5
2599
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2605
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2606
ac_c_werror_flag=$ac_save_c_werror_flag
2608
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
715
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
722
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
724
if test $ac_cv_prog_gcc = yes; then
730
ac_test_CFLAGS="${CFLAGS+set}"
731
ac_save_CFLAGS="$CFLAGS"
733
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
734
echo "configure:735: checking whether ${CC-cc} accepts -g" >&5
735
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
736
echo $ac_n "(cached) $ac_c" 1>&6
738
echo 'void f(){}' > conftest.c
739
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
748
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2610
749
if test "$ac_test_CFLAGS" = set; then
2611
CFLAGS=$ac_save_CFLAGS
750
CFLAGS="$ac_save_CFLAGS"
2612
751
elif test $ac_cv_prog_cc_g = yes; then
2613
752
if test "$GCC" = yes; then
2625
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627
if test "${ac_cv_prog_cc_c89+set}" = set; then
2628
echo $ECHO_N "(cached) $ECHO_C" >&6
2630
ac_cv_prog_cc_c89=no
2632
cat >conftest.$ac_ext <<_ACEOF
2635
cat confdefs.h >>conftest.$ac_ext
2636
cat >>conftest.$ac_ext <<_ACEOF
2637
/* end confdefs.h. */
2640
#include <sys/types.h>
2641
#include <sys/stat.h>
2642
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643
struct buf { int x; };
2644
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645
static char *e (p, i)
2651
static char *f (char * (*g) (char **, int), char **p, ...)
2656
s = g (p, va_arg (v,int));
2661
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662
function prototypes and stuff, but not '\xHH' hex character constants.
2663
These don't provoke an error unfortunately, instead are silently treated
2664
as 'x'. The following induces an error, until -std is added to get
2665
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2666
array size at least. It's necessary to write '\x00'==0 to get something
2667
that's true only with -std. */
2668
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
int test (int i, double x);
2671
struct s1 {int (*f) (int a);};
2672
struct s2 {int (*f) (double a);};
2673
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2684
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
765
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2687
CC="$ac_save_CC $ac_arg"
2688
rm -f conftest.$ac_objext
2689
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690
(eval $ac_compile) 2>conftest.er1
2692
grep -v '^ *+' conftest.er1 >conftest.err
2694
cat conftest.err >&5
2695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696
(exit $ac_status); } &&
2697
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2698
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702
(exit $ac_status); }; } &&
2703
{ ac_try='test -s conftest.$ac_objext'
2704
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708
(exit $ac_status); }; }; then
2709
ac_cv_prog_cc_c89=$ac_arg
2711
echo "$as_me: failed program was:" >&5
2712
sed 's/^/| /' conftest.$ac_ext >&5
2717
rm -f conftest.err conftest.$ac_objext
2718
test "x$ac_cv_prog_cc_c89" != "xno" && break
2720
rm -f conftest.$ac_ext
2725
case "x$ac_cv_prog_cc_c89" in
2727
{ echo "$as_me:$LINENO: result: none needed" >&5
2728
echo "${ECHO_T}none needed" >&6; } ;;
2730
{ echo "$as_me:$LINENO: result: unsupported" >&5
2731
echo "${ECHO_T}unsupported" >&6; } ;;
2733
CC="$CC $ac_cv_prog_cc_c89"
2734
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2735
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2740
ac_cpp='$CPP $CPPFLAGS'
2741
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746
ac_cpp='$CXXCPP $CPPFLAGS'
2747
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2750
if test -z "$CXX"; then
2751
if test -n "$CCC"; then
2754
if test -n "$ac_tool_prefix"; then
2755
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2757
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2758
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2759
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2760
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2761
if test "${ac_cv_prog_CXX+set}" = set; then
2762
echo $ECHO_N "(cached) $ECHO_C" >&6
767
# Extract the first word of "$ac_prog", so it can be a program name with args.
768
set dummy $ac_prog; ac_word=$2
769
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
770
echo "configure:771: checking for $ac_word" >&5
771
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
772
echo $ac_n "(cached) $ac_c" 1>&6
2764
774
if test -n "$CXX"; then
2765
775
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771
test -z "$as_dir" && as_dir=.
2772
for ac_exec_ext in '' $ac_executable_extensions; do
2773
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2774
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2775
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
777
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
779
for ac_dir in $ac_dummy; do
780
test -z "$ac_dir" && ac_dir=.
781
if test -f $ac_dir/$ac_word; then
782
ac_cv_prog_CXX="$ac_prog"
789
CXX="$ac_cv_prog_CXX"
2785
790
if test -n "$CXX"; then
2786
{ echo "$as_me:$LINENO: result: $CXX" >&5
2787
echo "${ECHO_T}$CXX" >&6; }
2789
{ echo "$as_me:$LINENO: result: no" >&5
2790
echo "${ECHO_T}no" >&6; }
2794
test -n "$CXX" && break
2797
if test -z "$CXX"; then
2799
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2801
# Extract the first word of "$ac_prog", so it can be a program name with args.
2802
set dummy $ac_prog; ac_word=$2
2803
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2805
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2806
echo $ECHO_N "(cached) $ECHO_C" >&6
2808
if test -n "$ac_ct_CXX"; then
2809
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815
test -z "$as_dir" && as_dir=.
2816
for ac_exec_ext in '' $ac_executable_extensions; do
2817
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2818
ac_cv_prog_ac_ct_CXX="$ac_prog"
2819
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2829
if test -n "$ac_ct_CXX"; then
2830
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2831
echo "${ECHO_T}$ac_ct_CXX" >&6; }
2833
{ echo "$as_me:$LINENO: result: no" >&5
2834
echo "${ECHO_T}no" >&6; }
2838
test -n "$ac_ct_CXX" && break
2841
if test "x$ac_ct_CXX" = x; then
791
echo "$ac_t""$CXX" 1>&6
793
echo "$ac_t""no" 1>&6
796
test -n "$CXX" && break
798
test -n "$CXX" || CXX="gcc"
801
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
802
echo "configure:803: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
805
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806
ac_cpp='$CXXCPP $CPPFLAGS'
807
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809
cross_compiling=$ac_cv_prog_cxx_cross
811
cat > conftest.$ac_ext << EOF
813
#line 814 "configure"
814
#include "confdefs.h"
816
int main(){return(0);}
818
if { (eval echo configure:819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
819
ac_cv_prog_cxx_works=yes
820
# If we can't run a trivial program, we are probably using a cross compiler.
821
if (./conftest; exit) 2>/dev/null; then
822
ac_cv_prog_cxx_cross=no
2844
case $cross_compiling:$ac_tool_warned in
2846
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2847
whose name does not start with the host triplet. If you think this
2848
configuration is useful to you, please write to autoconf@gnu.org." >&5
2849
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2850
whose name does not start with the host triplet. If you think this
2851
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2852
ac_tool_warned=yes ;;
2860
# Provide some information about the compiler.
2861
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2862
ac_compiler=`set X $ac_compile; echo $2`
2863
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2864
(eval $ac_compiler --version >&5) 2>&5
2866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867
(exit $ac_status); }
2868
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2869
(eval $ac_compiler -v >&5) 2>&5
2871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872
(exit $ac_status); }
2873
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2874
(eval $ac_compiler -V >&5) 2>&5
2876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877
(exit $ac_status); }
2879
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2880
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2881
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2882
echo $ECHO_N "(cached) $ECHO_C" >&6
2884
cat >conftest.$ac_ext <<_ACEOF
2887
cat confdefs.h >>conftest.$ac_ext
2888
cat >>conftest.$ac_ext <<_ACEOF
2889
/* end confdefs.h. */
824
ac_cv_prog_cxx_cross=yes
827
echo "configure: failed program was:" >&5
828
cat conftest.$ac_ext >&5
829
ac_cv_prog_cxx_works=no
833
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
834
ac_cpp='$CPP $CPPFLAGS'
835
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
836
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
837
cross_compiling=$ac_cv_prog_cc_cross
839
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
840
if test $ac_cv_prog_cxx_works = no; then
841
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
843
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
844
echo "configure:845: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
845
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
846
cross_compiling=$ac_cv_prog_cxx_cross
848
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
849
echo "configure:850: checking whether we are using GNU C++" >&5
850
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
851
echo $ac_n "(cached) $ac_c" 1>&6
853
cat > conftest.C <<EOF
2902
rm -f conftest.$ac_objext
2903
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2904
(eval $ac_compile) 2>conftest.er1
2906
grep -v '^ *+' conftest.er1 >conftest.err
2908
cat conftest.err >&5
2909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910
(exit $ac_status); } &&
2911
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2912
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916
(exit $ac_status); }; } &&
2917
{ ac_try='test -s conftest.$ac_objext'
2918
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922
(exit $ac_status); }; }; then
2925
echo "$as_me: failed program was:" >&5
2926
sed 's/^/| /' conftest.$ac_ext >&5
2931
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2932
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2935
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2936
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2937
GXX=`test $ac_compiler_gnu = yes && echo yes`
2938
ac_test_CXXFLAGS=${CXXFLAGS+set}
2939
ac_save_CXXFLAGS=$CXXFLAGS
2940
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2941
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2942
if test "${ac_cv_prog_cxx_g+set}" = set; then
2943
echo $ECHO_N "(cached) $ECHO_C" >&6
2945
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2946
ac_cxx_werror_flag=yes
2949
cat >conftest.$ac_ext <<_ACEOF
2952
cat confdefs.h >>conftest.$ac_ext
2953
cat >>conftest.$ac_ext <<_ACEOF
2954
/* end confdefs.h. */
2964
rm -f conftest.$ac_objext
2965
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966
(eval $ac_compile) 2>conftest.er1
2968
grep -v '^ *+' conftest.er1 >conftest.err
2970
cat conftest.err >&5
2971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972
(exit $ac_status); } &&
2973
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2974
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978
(exit $ac_status); }; } &&
2979
{ ac_try='test -s conftest.$ac_objext'
2980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984
(exit $ac_status); }; }; then
2985
ac_cv_prog_cxx_g=yes
2987
echo "$as_me: failed program was:" >&5
2988
sed 's/^/| /' conftest.$ac_ext >&5
2991
cat >conftest.$ac_ext <<_ACEOF
2994
cat confdefs.h >>conftest.$ac_ext
2995
cat >>conftest.$ac_ext <<_ACEOF
2996
/* end confdefs.h. */
3006
rm -f conftest.$ac_objext
3007
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008
(eval $ac_compile) 2>conftest.er1
3010
grep -v '^ *+' conftest.er1 >conftest.err
3012
cat conftest.err >&5
3013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014
(exit $ac_status); } &&
3015
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
(exit $ac_status); }; } &&
3021
{ ac_try='test -s conftest.$ac_objext'
3022
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026
(exit $ac_status); }; }; then
3029
echo "$as_me: failed program was:" >&5
3030
sed 's/^/| /' conftest.$ac_ext >&5
3032
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3034
cat >conftest.$ac_ext <<_ACEOF
3037
cat confdefs.h >>conftest.$ac_ext
3038
cat >>conftest.$ac_ext <<_ACEOF
3039
/* end confdefs.h. */
3049
rm -f conftest.$ac_objext
3050
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051
(eval $ac_compile) 2>conftest.er1
3053
grep -v '^ *+' conftest.er1 >conftest.err
3055
cat conftest.err >&5
3056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057
(exit $ac_status); } &&
3058
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063
(exit $ac_status); }; } &&
3064
{ ac_try='test -s conftest.$ac_objext'
3065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069
(exit $ac_status); }; }; then
3070
ac_cv_prog_cxx_g=yes
3072
echo "$as_me: failed program was:" >&5
3073
sed 's/^/| /' conftest.$ac_ext >&5
3078
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3081
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3087
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3088
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
858
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
865
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
867
if test $ac_cv_prog_gxx = yes; then
873
ac_test_CXXFLAGS="${CXXFLAGS+set}"
874
ac_save_CXXFLAGS="$CXXFLAGS"
876
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
877
echo "configure:878: checking whether ${CXX-g++} accepts -g" >&5
878
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
879
echo $ac_n "(cached) $ac_c" 1>&6
881
echo 'void f(){}' > conftest.cc
882
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
891
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
3089
892
if test "$ac_test_CXXFLAGS" = set; then
3090
CXXFLAGS=$ac_save_CXXFLAGS
893
CXXFLAGS="$ac_save_CXXFLAGS"
3091
894
elif test $ac_cv_prog_cxx_g = yes; then
3092
895
if test "$GXX" = yes; then
3093
896
CXXFLAGS="-g -O2"
3114
931
# SunOS /usr/etc/install
3115
932
# IRIX /sbin/install
3116
933
# AIX /bin/install
3117
# AmigaOS /C/install, which installs bootblocks on floppy discs
3118
934
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3119
935
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3120
936
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3121
# OS/2's system install, which has a completely different semantic
3122
937
# ./install, which can be erroneously created by make from ./install.sh.
3123
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3124
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
938
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
939
echo "configure:940: checking for a BSD compatible install" >&5
3125
940
if test -z "$INSTALL"; then
3126
if test "${ac_cv_path_install+set}" = set; then
3127
echo $ECHO_N "(cached) $ECHO_C" >&6
941
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
942
echo $ac_n "(cached) $ac_c" 1>&6
3129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133
test -z "$as_dir" && as_dir=.
3134
# Account for people who put trailing slashes in PATH elements.
3136
./ | .// | /cC/* | \
3137
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3138
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3141
# OSF1 and SCO ODT 3.0 have their own names for install.
3142
# Don't use installbsd from OSF since it installs stuff as root
3144
for ac_prog in ginstall scoinst install; do
3145
for ac_exec_ext in '' $ac_executable_extensions; do
3146
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
944
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
945
for ac_dir in $PATH; do
946
# Account for people who put trailing slashes in PATH elements.
948
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
950
# OSF1 and SCO ODT 3.0 have their own names for install.
951
# Don't use installbsd from OSF since it installs stuff as root
953
for ac_prog in ginstall scoinst install; do
954
if test -f $ac_dir/$ac_prog; then
3147
955
if test $ac_prog = install &&
3148
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
956
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3149
957
# AIX install. It has an incompatible calling convention.
3151
elif test $ac_prog = install &&
3152
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3153
# program-specific install script used by HP pwplus--don't use.
3156
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
960
ac_cv_path_install="$ac_dir/$ac_prog -c"
3169
971
if test "${ac_cv_path_install+set}" = set; then
3170
INSTALL=$ac_cv_path_install
972
INSTALL="$ac_cv_path_install"
3172
# As a last resort, use the slow shell script. Don't cache a
3173
# value for INSTALL within a source directory, because that will
974
# As a last resort, use the slow shell script. We don't cache a
975
# path for INSTALL within a source directory, because that will
3174
976
# break other packages using the cache if that directory is
3175
# removed, or if the value is a relative name.
3176
INSTALL=$ac_install_sh
977
# removed, or if the path is relative.
978
INSTALL="$ac_install_sh"
3179
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3180
echo "${ECHO_T}$INSTALL" >&6; }
981
echo "$ac_t""$INSTALL" 1>&6
3182
983
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3183
984
# It thinks the first close brace ends the variable substitution.
3184
985
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3186
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
987
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3188
989
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3193
ac_cpp='$CPP $CPPFLAGS'
3194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3198
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
992
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
993
echo "configure:994: checking how to run the C preprocessor" >&5
3199
994
# On Suns, sometimes $CPP names a directory.
3200
995
if test -n "$CPP" && test -d "$CPP"; then
3203
998
if test -z "$CPP"; then
3204
if test "${ac_cv_prog_CPP+set}" = set; then
3205
echo $ECHO_N "(cached) $ECHO_C" >&6
3207
# Double quotes because CPP needs to be expanded
3208
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3211
for ac_c_preproc_warn_flag in '' yes
3213
# Use a header file that comes with gcc, so configuring glibc
3214
# with a fresh cross-compiler works.
3215
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3216
# <limits.h> exists even on freestanding compilers.
3217
# On the NeXT, cc -E runs the code through the compiler's parser,
3218
# not just through cpp. "Syntax error" is here to catch this case.
3219
cat >conftest.$ac_ext <<_ACEOF
3222
cat confdefs.h >>conftest.$ac_ext
3223
cat >>conftest.$ac_ext <<_ACEOF
3224
/* end confdefs.h. */
3226
# include <limits.h>
3228
# include <assert.h>
3232
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3233
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3235
grep -v '^ *+' conftest.er1 >conftest.err
3237
cat conftest.err >&5
3238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239
(exit $ac_status); } >/dev/null; then
3240
if test -s conftest.err; then
3241
ac_cpp_err=$ac_c_preproc_warn_flag
3242
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3249
if test -z "$ac_cpp_err"; then
3252
echo "$as_me: failed program was:" >&5
3253
sed 's/^/| /' conftest.$ac_ext >&5
3255
# Broken: fails on valid input.
3259
rm -f conftest.err conftest.$ac_ext
3261
# OK, works on sane cases. Now check whether nonexistent headers
3262
# can be detected and how.
3263
cat >conftest.$ac_ext <<_ACEOF
3266
cat confdefs.h >>conftest.$ac_ext
3267
cat >>conftest.$ac_ext <<_ACEOF
3268
/* end confdefs.h. */
3269
#include <ac_nonexistent.h>
3271
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3272
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3274
grep -v '^ *+' conftest.er1 >conftest.err
3276
cat conftest.err >&5
3277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278
(exit $ac_status); } >/dev/null; then
3279
if test -s conftest.err; then
3280
ac_cpp_err=$ac_c_preproc_warn_flag
3281
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3288
if test -z "$ac_cpp_err"; then
3289
# Broken: success on invalid input.
3292
echo "$as_me: failed program was:" >&5
3293
sed 's/^/| /' conftest.$ac_ext >&5
3295
# Passes both tests.
3300
rm -f conftest.err conftest.$ac_ext
3303
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3304
rm -f conftest.err conftest.$ac_ext
3305
if $ac_preproc_ok; then
3317
{ echo "$as_me:$LINENO: result: $CPP" >&5
3318
echo "${ECHO_T}$CPP" >&6; }
3320
for ac_c_preproc_warn_flag in '' yes
3322
# Use a header file that comes with gcc, so configuring glibc
3323
# with a fresh cross-compiler works.
3324
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3325
# <limits.h> exists even on freestanding compilers.
3326
# On the NeXT, cc -E runs the code through the compiler's parser,
3327
# not just through cpp. "Syntax error" is here to catch this case.
3328
cat >conftest.$ac_ext <<_ACEOF
3331
cat confdefs.h >>conftest.$ac_ext
3332
cat >>conftest.$ac_ext <<_ACEOF
3333
/* end confdefs.h. */
3335
# include <limits.h>
3337
# include <assert.h>
3341
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3342
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3344
grep -v '^ *+' conftest.er1 >conftest.err
3346
cat conftest.err >&5
3347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348
(exit $ac_status); } >/dev/null; then
3349
if test -s conftest.err; then
3350
ac_cpp_err=$ac_c_preproc_warn_flag
3351
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3358
if test -z "$ac_cpp_err"; then
3361
echo "$as_me: failed program was:" >&5
3362
sed 's/^/| /' conftest.$ac_ext >&5
3364
# Broken: fails on valid input.
3368
rm -f conftest.err conftest.$ac_ext
3370
# OK, works on sane cases. Now check whether nonexistent headers
3371
# can be detected and how.
3372
cat >conftest.$ac_ext <<_ACEOF
3375
cat confdefs.h >>conftest.$ac_ext
3376
cat >>conftest.$ac_ext <<_ACEOF
3377
/* end confdefs.h. */
3378
#include <ac_nonexistent.h>
3380
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3381
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3383
grep -v '^ *+' conftest.er1 >conftest.err
3385
cat conftest.err >&5
3386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387
(exit $ac_status); } >/dev/null; then
3388
if test -s conftest.err; then
3389
ac_cpp_err=$ac_c_preproc_warn_flag
3390
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3397
if test -z "$ac_cpp_err"; then
3398
# Broken: success on invalid input.
3401
echo "$as_me: failed program was:" >&5
3402
sed 's/^/| /' conftest.$ac_ext >&5
3404
# Passes both tests.
3409
rm -f conftest.err conftest.$ac_ext
3412
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413
rm -f conftest.err conftest.$ac_ext
3414
if $ac_preproc_ok; then
3417
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3418
See \`config.log' for more details." >&5
3419
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3420
See \`config.log' for more details." >&2;}
3421
{ (exit 1); exit 1; }; }
3425
ac_cpp='$CPP $CPPFLAGS'
3426
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3432
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3433
if test "${ac_cv_path_GREP+set}" = set; then
3434
echo $ECHO_N "(cached) $ECHO_C" >&6
3436
# Extract the first word of "grep ggrep" to use in msg output
3437
if test -z "$GREP"; then
3438
set dummy grep ggrep; ac_prog_name=$2
3439
if test "${ac_cv_path_GREP+set}" = set; then
3440
echo $ECHO_N "(cached) $ECHO_C" >&6
3442
ac_path_GREP_found=false
3443
# Loop through the user's path and test for each of PROGNAME-LIST
3444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3448
test -z "$as_dir" && as_dir=.
3449
for ac_prog in grep ggrep; do
3450
for ac_exec_ext in '' $ac_executable_extensions; do
3451
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3452
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3453
# Check for GNU ac_path_GREP and select it if it is found.
3454
# Check for GNU $ac_path_GREP
3455
case `"$ac_path_GREP" --version 2>&1` in
3457
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3460
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3463
cat "conftest.in" "conftest.in" >"conftest.tmp"
3464
mv "conftest.tmp" "conftest.in"
3465
cp "conftest.in" "conftest.nl"
3466
echo 'GREP' >> "conftest.nl"
3467
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3468
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3469
ac_count=`expr $ac_count + 1`
3470
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3471
# Best one so far, save it but keep looking for a better one
3472
ac_cv_path_GREP="$ac_path_GREP"
3473
ac_path_GREP_max=$ac_count
3475
# 10*(2^10) chars as input seems more than enough
3476
test $ac_count -gt 10 && break
3482
$ac_path_GREP_found && break 3
3492
GREP="$ac_cv_path_GREP"
3493
if test -z "$GREP"; then
3494
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3495
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3496
{ (exit 1); exit 1; }; }
3500
ac_cv_path_GREP=$GREP
3505
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3506
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3507
GREP="$ac_cv_path_GREP"
3510
{ echo "$as_me:$LINENO: checking for egrep" >&5
3511
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3512
if test "${ac_cv_path_EGREP+set}" = set; then
3513
echo $ECHO_N "(cached) $ECHO_C" >&6
3515
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3516
then ac_cv_path_EGREP="$GREP -E"
3518
# Extract the first word of "egrep" to use in msg output
3519
if test -z "$EGREP"; then
3520
set dummy egrep; ac_prog_name=$2
3521
if test "${ac_cv_path_EGREP+set}" = set; then
3522
echo $ECHO_N "(cached) $ECHO_C" >&6
3524
ac_path_EGREP_found=false
3525
# Loop through the user's path and test for each of PROGNAME-LIST
3526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3530
test -z "$as_dir" && as_dir=.
3531
for ac_prog in egrep; do
3532
for ac_exec_ext in '' $ac_executable_extensions; do
3533
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3534
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3535
# Check for GNU ac_path_EGREP and select it if it is found.
3536
# Check for GNU $ac_path_EGREP
3537
case `"$ac_path_EGREP" --version 2>&1` in
3539
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3542
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3545
cat "conftest.in" "conftest.in" >"conftest.tmp"
3546
mv "conftest.tmp" "conftest.in"
3547
cp "conftest.in" "conftest.nl"
3548
echo 'EGREP' >> "conftest.nl"
3549
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3550
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3551
ac_count=`expr $ac_count + 1`
3552
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3553
# Best one so far, save it but keep looking for a better one
3554
ac_cv_path_EGREP="$ac_path_EGREP"
3555
ac_path_EGREP_max=$ac_count
3557
# 10*(2^10) chars as input seems more than enough
3558
test $ac_count -gt 10 && break
3564
$ac_path_EGREP_found && break 3
3574
EGREP="$ac_cv_path_EGREP"
3575
if test -z "$EGREP"; then
3576
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3577
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3578
{ (exit 1); exit 1; }; }
3582
ac_cv_path_EGREP=$EGREP
3588
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3589
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3590
EGREP="$ac_cv_path_EGREP"
3593
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3594
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3595
if test "${ac_cv_header_stdc+set}" = set; then
3596
echo $ECHO_N "(cached) $ECHO_C" >&6
3598
cat >conftest.$ac_ext <<_ACEOF
3601
cat confdefs.h >>conftest.$ac_ext
3602
cat >>conftest.$ac_ext <<_ACEOF
3603
/* end confdefs.h. */
999
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1000
echo $ac_n "(cached) $ac_c" 1>&6
1002
# This must be in double quotes, not single quotes, because CPP may get
1003
# substituted into the Makefile and "${CC-cc}" will confuse make.
1005
# On the NeXT, cc -E runs the code through the compiler's parser,
1006
# not just through cpp.
1007
cat > conftest.$ac_ext <<EOF
1008
#line 1009 "configure"
1009
#include "confdefs.h"
1013
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1014
{ (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1015
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1016
if test -z "$ac_err"; then
1020
echo "configure: failed program was:" >&5
1021
cat conftest.$ac_ext >&5
1023
CPP="${CC-cc} -E -traditional-cpp"
1024
cat > conftest.$ac_ext <<EOF
1025
#line 1026 "configure"
1026
#include "confdefs.h"
1030
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031
{ (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1033
if test -z "$ac_err"; then
1037
echo "configure: failed program was:" >&5
1038
cat conftest.$ac_ext >&5
1040
CPP="${CC-cc} -nologo -E"
1041
cat > conftest.$ac_ext <<EOF
1042
#line 1043 "configure"
1043
#include "confdefs.h"
1047
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048
{ (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050
if test -z "$ac_err"; then
1054
echo "configure: failed program was:" >&5
1055
cat conftest.$ac_ext >&5
1064
ac_cv_prog_CPP="$CPP"
1066
CPP="$ac_cv_prog_CPP"
1068
ac_cv_prog_CPP="$CPP"
1070
echo "$ac_t""$CPP" 1>&6
1072
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1073
echo "configure:1074: checking for ANSI C header files" >&5
1074
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1075
echo $ac_n "(cached) $ac_c" 1>&6
1077
cat > conftest.$ac_ext <<EOF
1078
#line 1079 "configure"
1079
#include "confdefs.h"
3604
1080
#include <stdlib.h>
3605
1081
#include <stdarg.h>
3606
1082
#include <string.h>
3607
1083
#include <float.h>
3617
rm -f conftest.$ac_objext
3618
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619
(eval $ac_compile) 2>conftest.er1
3621
grep -v '^ *+' conftest.er1 >conftest.err
3623
cat conftest.err >&5
3624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625
(exit $ac_status); } &&
3626
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3627
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631
(exit $ac_status); }; } &&
3632
{ ac_try='test -s conftest.$ac_objext'
3633
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637
(exit $ac_status); }; }; then
1085
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1086
{ (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1087
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1088
if test -z "$ac_err"; then
3638
1090
ac_cv_header_stdc=yes
3640
echo "$as_me: failed program was:" >&5
3641
sed 's/^/| /' conftest.$ac_ext >&5
3643
ac_cv_header_stdc=no
1093
echo "configure: failed program was:" >&5
1094
cat conftest.$ac_ext >&5
1096
ac_cv_header_stdc=no
3646
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3648
1100
if test $ac_cv_header_stdc = yes; then
3649
1101
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3650
cat >conftest.$ac_ext <<_ACEOF
3653
cat confdefs.h >>conftest.$ac_ext
3654
cat >>conftest.$ac_ext <<_ACEOF
3655
/* end confdefs.h. */
1102
cat > conftest.$ac_ext <<EOF
1103
#line 1104 "configure"
1104
#include "confdefs.h"
3656
1105
#include <string.h>
3659
1107
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660
$EGREP "memchr" >/dev/null 2>&1; then
1108
egrep "memchr" >/dev/null 2>&1; then
3663
1112
ac_cv_header_stdc=no
3665
1114
rm -f conftest*
3690
1136
if test $ac_cv_header_stdc = yes; then
3691
1137
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3692
if test "$cross_compiling" = yes; then
1138
if test "$cross_compiling" = yes; then
3695
cat >conftest.$ac_ext <<_ACEOF
3698
cat confdefs.h >>conftest.$ac_ext
3699
cat >>conftest.$ac_ext <<_ACEOF
3700
/* end confdefs.h. */
1141
cat > conftest.$ac_ext <<EOF
1142
#line 1143 "configure"
1143
#include "confdefs.h"
3701
1144
#include <ctype.h>
3703
#if ((' ' & 0x0FF) == 0x020)
3704
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3705
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3707
# define ISLOWER(c) \
3708
(('a' <= (c) && (c) <= 'i') \
3709
|| ('j' <= (c) && (c) <= 'r') \
3710
|| ('s' <= (c) && (c) <= 'z'))
3711
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1145
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1146
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3714
1147
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3719
for (i = 0; i < 256; i++)
3720
if (XOR (islower (i), ISLOWER (i))
3721
|| toupper (i) != TOUPPER (i))
3726
rm -f conftest$ac_exeext
3727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728
(eval $ac_link) 2>&5
3730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736
(exit $ac_status); }; }; then
1148
int main () { int i; for (i = 0; i < 256; i++)
1149
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1153
if { (eval echo configure:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3739
echo "$as_me: program exited with status $ac_status" >&5
3740
echo "$as_me: failed program was:" >&5
3741
sed 's/^/| /' conftest.$ac_ext >&5
3744
ac_cv_header_stdc=no
3746
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3752
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3753
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1157
echo "configure: failed program was:" >&5
1158
cat conftest.$ac_ext >&5
1160
ac_cv_header_stdc=no
1168
echo "$ac_t""$ac_cv_header_stdc" 1>&6
3754
1169
if test $ac_cv_header_stdc = yes; then
3756
cat >>confdefs.h <<\_ACEOF
1170
cat >> confdefs.h <<\EOF
3757
1171
#define STDC_HEADERS 1
3763
ac_config_headers="$ac_config_headers config.h"
3765
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3775
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3776
inttypes.h stdint.h unistd.h
3778
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3779
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3780
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3781
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3782
echo $ECHO_N "(cached) $ECHO_C" >&6
3784
cat >conftest.$ac_ext <<_ACEOF
3787
cat confdefs.h >>conftest.$ac_ext
3788
cat >>conftest.$ac_ext <<_ACEOF
3789
/* end confdefs.h. */
3790
$ac_includes_default
3792
#include <$ac_header>
3794
rm -f conftest.$ac_objext
3795
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796
(eval $ac_compile) 2>conftest.er1
3798
grep -v '^ *+' conftest.er1 >conftest.err
3800
cat conftest.err >&5
3801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802
(exit $ac_status); } &&
3803
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808
(exit $ac_status); }; } &&
3809
{ ac_try='test -s conftest.$ac_objext'
3810
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814
(exit $ac_status); }; }; then
3815
eval "$as_ac_Header=yes"
3817
echo "$as_me: failed program was:" >&5
3818
sed 's/^/| /' conftest.$ac_ext >&5
3820
eval "$as_ac_Header=no"
3823
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3825
ac_res=`eval echo '${'$as_ac_Header'}'`
3826
{ echo "$as_me:$LINENO: result: $ac_res" >&5
3827
echo "${ECHO_T}$ac_res" >&6; }
3828
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3829
cat >>confdefs.h <<_ACEOF
3830
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3841
for ac_header in sys/time.h unistd.h limits.h
3843
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3844
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3845
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3846
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3847
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3848
echo $ECHO_N "(cached) $ECHO_C" >&6
3850
ac_res=`eval echo '${'$as_ac_Header'}'`
3851
{ echo "$as_me:$LINENO: result: $ac_res" >&5
3852
echo "${ECHO_T}$ac_res" >&6; }
3854
# Is the header compilable?
3855
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
3856
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3857
cat >conftest.$ac_ext <<_ACEOF
3860
cat confdefs.h >>conftest.$ac_ext
3861
cat >>conftest.$ac_ext <<_ACEOF
3862
/* end confdefs.h. */
3863
$ac_includes_default
3864
#include <$ac_header>
3866
rm -f conftest.$ac_objext
3867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868
(eval $ac_compile) 2>conftest.er1
3870
grep -v '^ *+' conftest.er1 >conftest.err
3872
cat conftest.err >&5
3873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874
(exit $ac_status); } &&
3875
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880
(exit $ac_status); }; } &&
3881
{ ac_try='test -s conftest.$ac_objext'
3882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886
(exit $ac_status); }; }; then
3887
ac_header_compiler=yes
3889
echo "$as_me: failed program was:" >&5
3890
sed 's/^/| /' conftest.$ac_ext >&5
3892
ac_header_compiler=no
3895
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3896
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3897
echo "${ECHO_T}$ac_header_compiler" >&6; }
3899
# Is the header present?
3900
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
3901
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3902
cat >conftest.$ac_ext <<_ACEOF
3905
cat confdefs.h >>conftest.$ac_ext
3906
cat >>conftest.$ac_ext <<_ACEOF
3907
/* end confdefs.h. */
3908
#include <$ac_header>
3910
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3911
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3913
grep -v '^ *+' conftest.er1 >conftest.err
3915
cat conftest.err >&5
3916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917
(exit $ac_status); } >/dev/null; then
3918
if test -s conftest.err; then
3919
ac_cpp_err=$ac_c_preproc_warn_flag
3920
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3927
if test -z "$ac_cpp_err"; then
3928
ac_header_preproc=yes
3930
echo "$as_me: failed program was:" >&5
3931
sed 's/^/| /' conftest.$ac_ext >&5
3933
ac_header_preproc=no
3936
rm -f conftest.err conftest.$ac_ext
3937
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3938
echo "${ECHO_T}$ac_header_preproc" >&6; }
3940
# So? What about this header?
3941
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3943
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3944
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3945
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3946
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3947
ac_header_preproc=yes
3950
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3951
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3952
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3953
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3954
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3955
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3956
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3957
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3958
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3959
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3960
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3961
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3965
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3966
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3967
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3968
echo $ECHO_N "(cached) $ECHO_C" >&6
3970
eval "$as_ac_Header=\$ac_header_preproc"
3972
ac_res=`eval echo '${'$as_ac_Header'}'`
3973
{ echo "$as_me:$LINENO: result: $ac_res" >&5
3974
echo "${ECHO_T}$ac_res" >&6; }
3977
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3978
cat >>confdefs.h <<_ACEOF
3979
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3987
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3988
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
3989
if test "${ac_cv_header_time+set}" = set; then
3990
echo $ECHO_N "(cached) $ECHO_C" >&6
3992
cat >conftest.$ac_ext <<_ACEOF
3995
cat confdefs.h >>conftest.$ac_ext
3996
cat >>conftest.$ac_ext <<_ACEOF
3997
/* end confdefs.h. */
1178
for ac_hdr in sys/time.h unistd.h limits.h
1180
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1181
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1182
echo "configure:1183: checking for $ac_hdr" >&5
1183
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1184
echo $ac_n "(cached) $ac_c" 1>&6
1186
cat > conftest.$ac_ext <<EOF
1187
#line 1188 "configure"
1188
#include "confdefs.h"
1191
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1192
{ (eval echo configure:1193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1193
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1194
if test -z "$ac_err"; then
1196
eval "ac_cv_header_$ac_safe=yes"
1199
echo "configure: failed program was:" >&5
1200
cat conftest.$ac_ext >&5
1202
eval "ac_cv_header_$ac_safe=no"
1206
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1207
echo "$ac_t""yes" 1>&6
1208
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1209
cat >> confdefs.h <<EOF
1210
#define $ac_tr_hdr 1
1214
echo "$ac_t""no" 1>&6
1219
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1220
echo "configure:1221: checking whether time.h and sys/time.h may both be included" >&5
1221
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1222
echo $ac_n "(cached) $ac_c" 1>&6
1224
cat > conftest.$ac_ext <<EOF
1225
#line 1226 "configure"
1226
#include "confdefs.h"
3998
1227
#include <sys/types.h>
3999
1228
#include <sys/time.h>
4000
1229
#include <time.h>
4005
if ((struct tm *) 0)
4011
rm -f conftest.$ac_objext
4012
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013
(eval $ac_compile) 2>conftest.er1
4015
grep -v '^ *+' conftest.er1 >conftest.err
4017
cat conftest.err >&5
4018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019
(exit $ac_status); } &&
4020
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025
(exit $ac_status); }; } &&
4026
{ ac_try='test -s conftest.$ac_objext'
4027
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031
(exit $ac_status); }; }; then
1234
if { (eval echo configure:1235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4032
1236
ac_cv_header_time=yes
4034
echo "$as_me: failed program was:" >&5
4035
sed 's/^/| /' conftest.$ac_ext >&5
4037
ac_cv_header_time=no
4040
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4043
echo "${ECHO_T}$ac_cv_header_time" >&6; }
1238
echo "configure: failed program was:" >&5
1239
cat conftest.$ac_ext >&5
1241
ac_cv_header_time=no
1246
echo "$ac_t""$ac_cv_header_time" 1>&6
4044
1247
if test $ac_cv_header_time = yes; then
4046
cat >>confdefs.h <<\_ACEOF
1248
cat >> confdefs.h <<\EOF
4047
1249
#define TIME_WITH_SYS_TIME 1
4052
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4053
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
4054
if test "${ac_cv_struct_tm+set}" = set; then
4055
echo $ECHO_N "(cached) $ECHO_C" >&6
1254
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1255
echo "configure:1256: checking whether struct tm is in sys/time.h or time.h" >&5
1256
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1257
echo $ac_n "(cached) $ac_c" 1>&6
4057
cat >conftest.$ac_ext <<_ACEOF
4060
cat confdefs.h >>conftest.$ac_ext
4061
cat >>conftest.$ac_ext <<_ACEOF
4062
/* end confdefs.h. */
1259
cat > conftest.$ac_ext <<EOF
1260
#line 1261 "configure"
1261
#include "confdefs.h"
4063
1262
#include <sys/types.h>
4064
1263
#include <time.h>
4069
1265
struct tm *tp; tp->tm_sec;
4074
rm -f conftest.$ac_objext
4075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076
(eval $ac_compile) 2>conftest.er1
4078
grep -v '^ *+' conftest.er1 >conftest.err
4080
cat conftest.err >&5
4081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082
(exit $ac_status); } &&
4083
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088
(exit $ac_status); }; } &&
4089
{ ac_try='test -s conftest.$ac_objext'
4090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094
(exit $ac_status); }; }; then
1268
if { (eval echo configure:1269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4095
1270
ac_cv_struct_tm=time.h
4097
echo "$as_me: failed program was:" >&5
4098
sed 's/^/| /' conftest.$ac_ext >&5
4100
ac_cv_struct_tm=sys/time.h
4103
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4105
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4106
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
1272
echo "configure: failed program was:" >&5
1273
cat conftest.$ac_ext >&5
1275
ac_cv_struct_tm=sys/time.h
1280
echo "$ac_t""$ac_cv_struct_tm" 1>&6
4107
1281
if test $ac_cv_struct_tm = sys/time.h; then
4109
cat >>confdefs.h <<\_ACEOF
1282
cat >> confdefs.h <<\EOF
4110
1283
#define TM_IN_SYS_TIME 1
4115
{ echo "$as_me:$LINENO: checking for size_t" >&5
4116
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4117
if test "${ac_cv_type_size_t+set}" = set; then
4118
echo $ECHO_N "(cached) $ECHO_C" >&6
1288
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1289
echo "configure:1290: checking for size_t" >&5
1290
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1291
echo $ac_n "(cached) $ac_c" 1>&6
4120
cat >conftest.$ac_ext <<_ACEOF
4123
cat confdefs.h >>conftest.$ac_ext
4124
cat >>conftest.$ac_ext <<_ACEOF
4125
/* end confdefs.h. */
4126
$ac_includes_default
4127
typedef size_t ac__type_new_;
4131
if ((ac__type_new_ *) 0)
4133
if (sizeof (ac__type_new_))
4139
rm -f conftest.$ac_objext
4140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141
(eval $ac_compile) 2>conftest.er1
4143
grep -v '^ *+' conftest.er1 >conftest.err
4145
cat conftest.err >&5
4146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147
(exit $ac_status); } &&
4148
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153
(exit $ac_status); }; } &&
4154
{ ac_try='test -s conftest.$ac_objext'
4155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159
(exit $ac_status); }; }; then
1293
cat > conftest.$ac_ext <<EOF
1294
#line 1295 "configure"
1295
#include "confdefs.h"
1296
#include <sys/types.h>
1302
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1303
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4160
1305
ac_cv_type_size_t=yes
4162
echo "$as_me: failed program was:" >&5
4163
sed 's/^/| /' conftest.$ac_ext >&5
4165
ac_cv_type_size_t=no
4168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4170
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4171
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4172
if test $ac_cv_type_size_t = yes; then
4176
cat >>confdefs.h <<_ACEOF
4177
#define size_t unsigned int
1308
ac_cv_type_size_t=no
1313
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1314
if test $ac_cv_type_size_t = no; then
1315
cat >> confdefs.h <<\EOF
1316
#define size_t unsigned
4194
1322
for ac_func in gettimeofday mktime usleep select strdup strstr strcasecmp strncasecmp drand48 random rand
4196
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4197
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4198
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4199
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4200
echo $ECHO_N "(cached) $ECHO_C" >&6
1324
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1325
echo "configure:1326: checking for $ac_func" >&5
1326
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1327
echo $ac_n "(cached) $ac_c" 1>&6
4202
cat >conftest.$ac_ext <<_ACEOF
4205
cat confdefs.h >>conftest.$ac_ext
4206
cat >>conftest.$ac_ext <<_ACEOF
4207
/* end confdefs.h. */
4208
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4209
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4210
#define $ac_func innocuous_$ac_func
1329
cat > conftest.$ac_ext <<EOF
1330
#line 1331 "configure"
1331
#include "confdefs.h"
4212
1332
/* System header to define __stub macros and hopefully few prototypes,
4213
which can conflict with char $ac_func (); below.
4214
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215
<limits.h> exists even on freestanding compilers. */
4218
# include <limits.h>
4220
# include <assert.h>
4225
/* Override any GCC internal prototype to avoid an error.
4226
Use char because int might match the return type of a GCC
4227
builtin and then its argument prototype would still apply. */
1333
which can conflict with char $ac_func(); below. */
1335
/* Override any gcc2 internal prototype to avoid an error. */
1336
/* We use char because int might match the return type of a gcc2
1337
builtin and then its argument prototype would still apply. */
4232
1342
/* The GNU C library defines this for functions which it implements
4233
1343
to always fail with ENOSYS. Some functions are actually named
4234
1344
something starting with __ and the normal name is an alias. */
4235
#if defined __stub_$ac_func || defined __stub___$ac_func
1345
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4247
rm -f conftest.$ac_objext conftest$ac_exeext
4248
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4249
(eval $ac_link) 2>conftest.er1
4251
grep -v '^ *+' conftest.er1 >conftest.err
4253
cat conftest.err >&5
4254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
(exit $ac_status); } &&
4256
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
(exit $ac_status); }; } &&
4262
{ ac_try='test -s conftest$ac_exeext'
4263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267
(exit $ac_status); }; }; then
4268
eval "$as_ac_var=yes"
4270
echo "$as_me: failed program was:" >&5
4271
sed 's/^/| /' conftest.$ac_ext >&5
4273
eval "$as_ac_var=no"
4276
rm -f conftest.err conftest.$ac_objext \
4277
conftest$ac_exeext conftest.$ac_ext
4279
ac_res=`eval echo '${'$as_ac_var'}'`
4280
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4281
echo "${ECHO_T}$ac_res" >&6; }
4282
if test `eval echo '${'$as_ac_var'}'` = yes; then
4283
cat >>confdefs.h <<_ACEOF
4284
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4291
{ echo "$as_me:$LINENO: checking for X" >&5
4292
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4294
ac_path_x_has_been_run=yes
4296
# Check whether --with-x was given.
4297
if test "${with_x+set}" = set; then
4301
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4302
if test "x$with_x" = xno; then
4303
# The user explicitly disabled X.
4306
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4307
# Both variables are already set.
4310
if test "${ac_cv_have_x+set}" = set; then
4311
echo $ECHO_N "(cached) $ECHO_C" >&6
4313
# One or both of the vars are not set, and there is no cached value.
4314
ac_x_includes=no ac_x_libraries=no
4315
rm -f -r conftest.dir
4316
if mkdir conftest.dir; then
4318
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
4319
cat >Imakefile <<'_ACEOF'
4321
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4323
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4324
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4325
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4326
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4327
for ac_extension in a so sl; do
4328
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4329
test -f $ac_im_libdir/libX11.$ac_extension; then
4330
ac_im_usrlibdir=$ac_im_libdir; break
4333
# Screen out bogus values from the imake configuration. They are
4334
# bogus both because they are the default anyway, and because
4335
# using them would break gcc on systems where it needs fixed includes.
4336
case $ac_im_incroot in
4337
/usr/include) ac_x_includes= ;;
4338
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4340
case $ac_im_usrlibdir in
4342
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4346
rm -f -r conftest.dir
4349
# Standard set of common directories for X headers.
4350
# Check X11 before X11Rn because it is often a symlink to the current release.
4362
/usr/local/X11/include
4363
/usr/local/X11R6/include
4364
/usr/local/X11R5/include
4365
/usr/local/X11R4/include
4367
/usr/local/include/X11
4368
/usr/local/include/X11R6
4369
/usr/local/include/X11R5
4370
/usr/local/include/X11R4
4374
/usr/XFree86/include/X11
4378
/usr/unsupported/include
4380
/usr/local/x11r5/include
4381
/usr/lpp/Xamples/include
4383
/usr/openwin/include
4384
/usr/openwin/share/include'
4386
if test "$ac_x_includes" = no; then
4387
# Guess where to find include files, by looking for Xlib.h.
4388
# First, try using that file with no special directory specified.
4389
cat >conftest.$ac_ext <<_ACEOF
4392
cat confdefs.h >>conftest.$ac_ext
4393
cat >>conftest.$ac_ext <<_ACEOF
4394
/* end confdefs.h. */
4395
#include <X11/Xlib.h.h>
4397
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4398
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4400
grep -v '^ *+' conftest.er1 >conftest.err
4402
cat conftest.err >&5
4403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404
(exit $ac_status); } >/dev/null; then
4405
if test -s conftest.err; then
4406
ac_cpp_err=$ac_c_preproc_warn_flag
4407
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4414
if test -z "$ac_cpp_err"; then
4415
# We can compile using X headers with no special include directory.
4418
echo "$as_me: failed program was:" >&5
4419
sed 's/^/| /' conftest.$ac_ext >&5
4421
for ac_dir in $ac_x_header_dirs; do
4422
if test -r "$ac_dir/X11/Xlib.h"; then
4423
ac_x_includes=$ac_dir
4429
rm -f conftest.err conftest.$ac_ext
4430
fi # $ac_x_includes = no
4432
if test "$ac_x_libraries" = no; then
4433
# Check for the libraries.
4434
# See if we find them without any special options.
4435
# Don't add to $LIBS permanently.
4438
cat >conftest.$ac_ext <<_ACEOF
4441
cat confdefs.h >>conftest.$ac_ext
4442
cat >>conftest.$ac_ext <<_ACEOF
4443
/* end confdefs.h. */
4444
#include <X11/Xlib.h>
4453
rm -f conftest.$ac_objext conftest$ac_exeext
4454
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455
(eval $ac_link) 2>conftest.er1
4457
grep -v '^ *+' conftest.er1 >conftest.err
4459
cat conftest.err >&5
4460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461
(exit $ac_status); } &&
4462
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4463
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467
(exit $ac_status); }; } &&
4468
{ ac_try='test -s conftest$ac_exeext'
4469
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473
(exit $ac_status); }; }; then
4475
# We can link X programs with no special library path.
4478
echo "$as_me: failed program was:" >&5
4479
sed 's/^/| /' conftest.$ac_ext >&5
4482
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4484
# Don't even attempt the hair of trying to link an X program!
4485
for ac_extension in a so sl; do
4486
if test -r $ac_dir/libX11.$ac_extension; then
4487
ac_x_libraries=$ac_dir
4494
rm -f conftest.err conftest.$ac_objext \
4495
conftest$ac_exeext conftest.$ac_ext
4496
fi # $ac_x_libraries = no
4498
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4499
# Didn't find X anywhere. Cache the known absence of X.
4500
ac_cv_have_x="have_x=no"
4502
# Record where we found X for the cache.
4503
ac_cv_have_x="have_x=yes \
4504
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4509
eval "$ac_cv_have_x"
4512
if test "$have_x" != yes; then
4513
{ echo "$as_me:$LINENO: result: $have_x" >&5
4514
echo "${ECHO_T}$have_x" >&6; }
4517
# If each of the values was on the command line, it overrides each guess.
4518
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4519
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4520
# Update the cache value to reflect the command line values.
4521
ac_cv_have_x="have_x=yes \
4522
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4523
# It might be that x_includes is empty (headers are found in the
4524
# standard search path. Then output the corresponding message
4525
ac_out_x_includes=$x_includes
4526
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
4527
{ echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
4528
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
4532
if test "x$ac_path_x_has_been_run" != xyes; then
4533
{ echo "$as_me:$LINENO: checking for X" >&5
4534
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4536
ac_path_x_has_been_run=yes
4538
# Check whether --with-x was given.
4539
if test "${with_x+set}" = set; then
4543
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4544
if test "x$with_x" = xno; then
4545
# The user explicitly disabled X.
4548
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4549
# Both variables are already set.
4552
if test "${ac_cv_have_x+set}" = set; then
4553
echo $ECHO_N "(cached) $ECHO_C" >&6
4555
# One or both of the vars are not set, and there is no cached value.
4556
ac_x_includes=no ac_x_libraries=no
4557
rm -f -r conftest.dir
4558
if mkdir conftest.dir; then
4560
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
4561
cat >Imakefile <<'_ACEOF'
4563
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4565
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4566
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4567
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4568
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4569
for ac_extension in a so sl; do
4570
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4571
test -f $ac_im_libdir/libX11.$ac_extension; then
4572
ac_im_usrlibdir=$ac_im_libdir; break
4575
# Screen out bogus values from the imake configuration. They are
4576
# bogus both because they are the default anyway, and because
4577
# using them would break gcc on systems where it needs fixed includes.
4578
case $ac_im_incroot in
4579
/usr/include) ac_x_includes= ;;
4580
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4582
case $ac_im_usrlibdir in
4584
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4588
rm -f -r conftest.dir
4591
# Standard set of common directories for X headers.
4592
# Check X11 before X11Rn because it is often a symlink to the current release.
4604
/usr/local/X11/include
4605
/usr/local/X11R6/include
4606
/usr/local/X11R5/include
4607
/usr/local/X11R4/include
4609
/usr/local/include/X11
4610
/usr/local/include/X11R6
4611
/usr/local/include/X11R5
4612
/usr/local/include/X11R4
4616
/usr/XFree86/include/X11
4620
/usr/unsupported/include
4622
/usr/local/x11r5/include
4623
/usr/lpp/Xamples/include
4625
/usr/openwin/include
4626
/usr/openwin/share/include'
4628
if test "$ac_x_includes" = no; then
4629
# Guess where to find include files, by looking for Xlib.h.
4630
# First, try using that file with no special directory specified.
4631
cat >conftest.$ac_ext <<_ACEOF
4634
cat confdefs.h >>conftest.$ac_ext
4635
cat >>conftest.$ac_ext <<_ACEOF
4636
/* end confdefs.h. */
4637
#include <X11/Xlib.h.h>
4639
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4640
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642
grep -v '^ *+' conftest.er1 >conftest.err
4644
cat conftest.err >&5
4645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646
(exit $ac_status); } >/dev/null; then
4647
if test -s conftest.err; then
4648
ac_cpp_err=$ac_c_preproc_warn_flag
4649
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4656
if test -z "$ac_cpp_err"; then
4657
# We can compile using X headers with no special include directory.
4660
echo "$as_me: failed program was:" >&5
4661
sed 's/^/| /' conftest.$ac_ext >&5
4663
for ac_dir in $ac_x_header_dirs; do
4664
if test -r "$ac_dir/X11/Xlib.h"; then
4665
ac_x_includes=$ac_dir
4671
rm -f conftest.err conftest.$ac_ext
4672
fi # $ac_x_includes = no
4674
if test "$ac_x_libraries" = no; then
4675
# Check for the libraries.
4676
# See if we find them without any special options.
4677
# Don't add to $LIBS permanently.
4680
cat >conftest.$ac_ext <<_ACEOF
4683
cat confdefs.h >>conftest.$ac_ext
4684
cat >>conftest.$ac_ext <<_ACEOF
4685
/* end confdefs.h. */
4686
#include <X11/Xlib.h>
4695
rm -f conftest.$ac_objext conftest$ac_exeext
4696
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697
(eval $ac_link) 2>conftest.er1
4699
grep -v '^ *+' conftest.er1 >conftest.err
4701
cat conftest.err >&5
4702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703
(exit $ac_status); } &&
4704
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709
(exit $ac_status); }; } &&
4710
{ ac_try='test -s conftest$ac_exeext'
4711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715
(exit $ac_status); }; }; then
4717
# We can link X programs with no special library path.
4720
echo "$as_me: failed program was:" >&5
4721
sed 's/^/| /' conftest.$ac_ext >&5
4724
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4726
# Don't even attempt the hair of trying to link an X program!
4727
for ac_extension in a so sl; do
4728
if test -r $ac_dir/libX11.$ac_extension; then
4729
ac_x_libraries=$ac_dir
4736
rm -f conftest.err conftest.$ac_objext \
4737
conftest$ac_exeext conftest.$ac_ext
4738
fi # $ac_x_libraries = no
4740
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4741
# Didn't find X anywhere. Cache the known absence of X.
4742
ac_cv_have_x="have_x=no"
4744
# Record where we found X for the cache.
4745
ac_cv_have_x="have_x=yes \
4746
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4751
eval "$ac_cv_have_x"
4754
if test "$have_x" != yes; then
4755
{ echo "$as_me:$LINENO: result: $have_x" >&5
4756
echo "${ECHO_T}$have_x" >&6; }
4759
# If each of the values was on the command line, it overrides each guess.
4760
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4761
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4762
# Update the cache value to reflect the command line values.
4763
ac_cv_have_x="have_x=yes \
4764
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4765
# It might be that x_includes is empty (headers are found in the
4766
# standard search path. Then output the corresponding message
4767
ac_out_x_includes=$x_includes
4768
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
4769
{ echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
4770
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
1353
if { (eval echo configure:1354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1355
eval "ac_cv_func_$ac_func=yes"
1357
echo "configure: failed program was:" >&5
1358
cat conftest.$ac_ext >&5
1360
eval "ac_cv_func_$ac_func=no"
1365
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1366
echo "$ac_t""yes" 1>&6
1367
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1368
cat >> confdefs.h <<EOF
1369
#define $ac_tr_func 1
1373
echo "$ac_t""no" 1>&6
1378
# If we find X, set shell vars x_includes and x_libraries to the
1379
# paths, otherwise set no_x=yes.
1380
# Uses ac_ vars as temps to allow command line to override cache and checks.
1381
# --without-x overrides everything else, but does not touch the cache.
1382
echo $ac_n "checking for X""... $ac_c" 1>&6
1383
echo "configure:1384: checking for X" >&5
1385
# Check whether --with-x or --without-x was given.
1386
if test "${with_x+set}" = set; then
1391
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1392
if test "x$with_x" = xno; then
1393
# The user explicitly disabled X.
1396
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1397
# Both variables are already set.
1400
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1401
echo $ac_n "(cached) $ac_c" 1>&6
1403
# One or both of the vars are not set, and there is no cached value.
1404
ac_x_includes=NO ac_x_libraries=NO
1406
if mkdir conftestdir; then
1408
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
1409
cat > Imakefile <<'EOF'
1411
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1413
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1414
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1415
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1416
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1417
for ac_extension in a so sl; do
1418
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1419
test -f $ac_im_libdir/libX11.$ac_extension; then
1420
ac_im_usrlibdir=$ac_im_libdir; break
1423
# Screen out bogus values from the imake configuration. They are
1424
# bogus both because they are the default anyway, and because
1425
# using them would break gcc on systems where it needs fixed includes.
1426
case "$ac_im_incroot" in
1428
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1430
case "$ac_im_usrlibdir" in
1432
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1439
if test "$ac_x_includes" = NO; then
1440
# Guess where to find include files, by looking for this one X11 .h file.
1441
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1443
# First, try using that file with no special directory specified.
1444
cat > conftest.$ac_ext <<EOF
1445
#line 1446 "configure"
1446
#include "confdefs.h"
1447
#include <$x_direct_test_include>
1449
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1450
{ (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1451
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1452
if test -z "$ac_err"; then
1454
# We can compile using X headers with no special include directory.
1458
echo "configure: failed program was:" >&5
1459
cat conftest.$ac_ext >&5
1461
# Look for the header file in a standard set of common directories.
1462
# Check X11 before X11Rn because it is often a symlink to the current release.
1465
/usr/X11R6/include \
1466
/usr/X11R5/include \
1467
/usr/X11R4/include \
1470
/usr/include/X11R6 \
1471
/usr/include/X11R5 \
1472
/usr/include/X11R4 \
1474
/usr/local/X11/include \
1475
/usr/local/X11R6/include \
1476
/usr/local/X11R5/include \
1477
/usr/local/X11R4/include \
1479
/usr/local/include/X11 \
1480
/usr/local/include/X11R6 \
1481
/usr/local/include/X11R5 \
1482
/usr/local/include/X11R4 \
1486
/usr/XFree86/include/X11 \
1489
/usr/local/include \
1490
/usr/unsupported/include \
1491
/usr/athena/include \
1492
/usr/local/x11r5/include \
1493
/usr/lpp/Xamples/include \
1495
/usr/openwin/include \
1496
/usr/openwin/share/include \
1499
if test -r "$ac_dir/$x_direct_test_include"; then
1500
ac_x_includes=$ac_dir
1506
fi # $ac_x_includes = NO
1508
if test "$ac_x_libraries" = NO; then
1509
# Check for the libraries.
1511
test -z "$x_direct_test_library" && x_direct_test_library=Xt
1512
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1514
# See if we find them without any special options.
1515
# Don't add to $LIBS permanently.
1516
ac_save_LIBS="$LIBS"
1517
LIBS="-l$x_direct_test_library $LIBS"
1518
cat > conftest.$ac_ext <<EOF
1519
#line 1520 "configure"
1520
#include "confdefs.h"
1523
${x_direct_test_function}()
1526
if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1528
LIBS="$ac_save_LIBS"
1529
# We can link X programs with no special library path.
1532
echo "configure: failed program was:" >&5
1533
cat conftest.$ac_ext >&5
1535
LIBS="$ac_save_LIBS"
1536
# First see if replacing the include by lib works.
1537
# Check X11 before X11Rn because it is often a symlink to the current release.
1538
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1549
/usr/local/X11/lib \
1550
/usr/local/X11R6/lib \
1551
/usr/local/X11R5/lib \
1552
/usr/local/X11R4/lib \
1554
/usr/local/lib/X11 \
1555
/usr/local/lib/X11R6 \
1556
/usr/local/lib/X11R5 \
1557
/usr/local/lib/X11R4 \
1561
/usr/XFree86/lib/X11 \
1565
/usr/unsupported/lib \
1567
/usr/local/x11r5/lib \
1568
/usr/lpp/Xamples/lib \
1572
/usr/openwin/share/lib \
1575
for ac_extension in a so sl; do
1576
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1577
ac_x_libraries=$ac_dir
1584
fi # $ac_x_libraries = NO
1586
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1587
# Didn't find X anywhere. Cache the known absence of X.
1588
ac_cv_have_x="have_x=no"
1590
# Record where we found X for the cache.
1591
ac_cv_have_x="have_x=yes \
1592
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1596
eval "$ac_cv_have_x"
1599
if test "$have_x" != yes; then
1600
echo "$ac_t""$have_x" 1>&6
1603
# If each of the values was on the command line, it overrides each guess.
1604
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1605
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1606
# Update the cache value to reflect the command line values.
1607
ac_cv_have_x="have_x=yes \
1608
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1609
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4774
1612
if test "$no_x" = yes; then
4775
1613
# Not all programs may use this symbol, but it does not hurt to define it.
4777
cat >>confdefs.h <<\_ACEOF
1614
cat >> confdefs.h <<\EOF
4778
1615
#define X_DISPLAY_MISSING 1
4781
1618
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4912
1690
if test "$ISC" = yes; then
4913
1691
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4915
# Martyn Johnson says this is needed for Ultrix, if the X
4916
# libraries were built with DECnet support. And Karl Berry says
1693
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1694
# libraries were built with DECnet support. And karl@cs.umb.edu says
4917
1695
# the Alpha needs dnet_stub (dnet does not exist).
4918
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4919
cat >conftest.$ac_ext <<_ACEOF
4922
cat confdefs.h >>conftest.$ac_ext
4923
cat >>conftest.$ac_ext <<_ACEOF
4924
/* end confdefs.h. */
4926
/* Override any GCC internal prototype to avoid an error.
4927
Use char because int might match the return type of a GCC
4928
builtin and then its argument prototype would still apply. */
4932
char XOpenDisplay ();
4936
return XOpenDisplay ();
4941
rm -f conftest.$ac_objext conftest$ac_exeext
4942
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943
(eval $ac_link) 2>conftest.er1
4945
grep -v '^ *+' conftest.er1 >conftest.err
4947
cat conftest.err >&5
4948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949
(exit $ac_status); } &&
4950
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4951
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955
(exit $ac_status); }; } &&
4956
{ ac_try='test -s conftest$ac_exeext'
4957
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961
(exit $ac_status); }; }; then
4964
echo "$as_me: failed program was:" >&5
4965
sed 's/^/| /' conftest.$ac_ext >&5
4967
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4968
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4969
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4970
echo $ECHO_N "(cached) $ECHO_C" >&6
4972
ac_check_lib_save_LIBS=$LIBS
1696
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1697
echo "configure:1698: checking for dnet_ntoa in -ldnet" >&5
1698
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1699
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1700
echo $ac_n "(cached) $ac_c" 1>&6
1702
ac_save_LIBS="$LIBS"
4973
1703
LIBS="-ldnet $LIBS"
4974
cat >conftest.$ac_ext <<_ACEOF
4977
cat confdefs.h >>conftest.$ac_ext
4978
cat >>conftest.$ac_ext <<_ACEOF
4979
/* end confdefs.h. */
1704
cat > conftest.$ac_ext <<EOF
1705
#line 1706 "configure"
1706
#include "confdefs.h"
1707
/* Override any gcc2 internal prototype to avoid an error. */
1708
/* We use char because int might match the return type of a gcc2
1709
builtin and then its argument prototype would still apply. */
4981
/* Override any GCC internal prototype to avoid an error.
4982
Use char because int might match the return type of a GCC
4983
builtin and then its argument prototype would still apply. */
4991
return dnet_ntoa ();
4996
rm -f conftest.$ac_objext conftest$ac_exeext
4997
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4998
(eval $ac_link) 2>conftest.er1
5000
grep -v '^ *+' conftest.er1 >conftest.err
5002
cat conftest.err >&5
5003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004
(exit $ac_status); } &&
5005
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010
(exit $ac_status); }; } &&
5011
{ ac_try='test -s conftest$ac_exeext'
5012
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016
(exit $ac_status); }; }; then
5017
ac_cv_lib_dnet_dnet_ntoa=yes
1716
if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1718
eval "ac_cv_lib_$ac_lib_var=yes"
5019
echo "$as_me: failed program was:" >&5
5020
sed 's/^/| /' conftest.$ac_ext >&5
5022
ac_cv_lib_dnet_dnet_ntoa=no
5025
rm -f conftest.err conftest.$ac_objext \
5026
conftest$ac_exeext conftest.$ac_ext
5027
LIBS=$ac_check_lib_save_LIBS
5029
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5030
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5031
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
1720
echo "configure: failed program was:" >&5
1721
cat conftest.$ac_ext >&5
1723
eval "ac_cv_lib_$ac_lib_var=no"
1726
LIBS="$ac_save_LIBS"
1729
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1730
echo "$ac_t""yes" 1>&6
5032
1731
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1733
echo "$ac_t""no" 1>&6
5035
1736
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5036
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5037
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5038
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5039
echo $ECHO_N "(cached) $ECHO_C" >&6
1737
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1738
echo "configure:1739: checking for dnet_ntoa in -ldnet_stub" >&5
1739
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1740
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1741
echo $ac_n "(cached) $ac_c" 1>&6
5041
ac_check_lib_save_LIBS=$LIBS
1743
ac_save_LIBS="$LIBS"
5042
1744
LIBS="-ldnet_stub $LIBS"
5043
cat >conftest.$ac_ext <<_ACEOF
5046
cat confdefs.h >>conftest.$ac_ext
5047
cat >>conftest.$ac_ext <<_ACEOF
5048
/* end confdefs.h. */
1745
cat > conftest.$ac_ext <<EOF
1746
#line 1747 "configure"
1747
#include "confdefs.h"
1748
/* Override any gcc2 internal prototype to avoid an error. */
1749
/* We use char because int might match the return type of a gcc2
1750
builtin and then its argument prototype would still apply. */
5050
/* Override any GCC internal prototype to avoid an error.
5051
Use char because int might match the return type of a GCC
5052
builtin and then its argument prototype would still apply. */
5060
return dnet_ntoa ();
5065
rm -f conftest.$ac_objext conftest$ac_exeext
5066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5067
(eval $ac_link) 2>conftest.er1
5069
grep -v '^ *+' conftest.er1 >conftest.err
5071
cat conftest.err >&5
5072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073
(exit $ac_status); } &&
5074
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5075
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079
(exit $ac_status); }; } &&
5080
{ ac_try='test -s conftest$ac_exeext'
5081
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085
(exit $ac_status); }; }; then
5086
ac_cv_lib_dnet_stub_dnet_ntoa=yes
1757
if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1759
eval "ac_cv_lib_$ac_lib_var=yes"
5088
echo "$as_me: failed program was:" >&5
5089
sed 's/^/| /' conftest.$ac_ext >&5
5091
ac_cv_lib_dnet_stub_dnet_ntoa=no
5094
rm -f conftest.err conftest.$ac_objext \
5095
conftest$ac_exeext conftest.$ac_ext
5096
LIBS=$ac_check_lib_save_LIBS
5098
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5099
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5100
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
1761
echo "configure: failed program was:" >&5
1762
cat conftest.$ac_ext >&5
1764
eval "ac_cv_lib_$ac_lib_var=no"
1767
LIBS="$ac_save_LIBS"
1770
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1771
echo "$ac_t""yes" 1>&6
5101
1772
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1774
echo "$ac_t""no" 1>&6
5107
rm -f conftest.err conftest.$ac_objext \
5108
conftest$ac_exeext conftest.$ac_ext
5109
LIBS="$ac_xsave_LIBS"
5111
1779
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5112
1780
# to get the SysV transport functions.
5113
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
1781
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5115
1783
# The nsl library prevents programs from opening the X display
5116
# on Irix 5.2, according to T.E. Dickey.
5117
# The functions gethostbyname, getservbyname, and inet_addr are
5118
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5119
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
5120
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5121
if test "${ac_cv_func_gethostbyname+set}" = set; then
5122
echo $ECHO_N "(cached) $ECHO_C" >&6
1784
# on Irix 5.2, according to dickey@clark.net.
1785
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1786
echo "configure:1787: checking for gethostbyname" >&5
1787
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1788
echo $ac_n "(cached) $ac_c" 1>&6
5124
cat >conftest.$ac_ext <<_ACEOF
5127
cat confdefs.h >>conftest.$ac_ext
5128
cat >>conftest.$ac_ext <<_ACEOF
5129
/* end confdefs.h. */
5130
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5131
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5132
#define gethostbyname innocuous_gethostbyname
1790
cat > conftest.$ac_ext <<EOF
1791
#line 1792 "configure"
1792
#include "confdefs.h"
5134
1793
/* System header to define __stub macros and hopefully few prototypes,
5135
which can conflict with char gethostbyname (); below.
5136
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5137
<limits.h> exists even on freestanding compilers. */
5140
# include <limits.h>
5142
# include <assert.h>
5145
#undef gethostbyname
5147
/* Override any GCC internal prototype to avoid an error.
5148
Use char because int might match the return type of a GCC
5149
builtin and then its argument prototype would still apply. */
5153
char gethostbyname ();
1794
which can conflict with char gethostbyname(); below. */
1796
/* Override any gcc2 internal prototype to avoid an error. */
1797
/* We use char because int might match the return type of a gcc2
1798
builtin and then its argument prototype would still apply. */
1799
char gethostbyname();
5154
1803
/* The GNU C library defines this for functions which it implements
5155
1804
to always fail with ENOSYS. Some functions are actually named
5156
1805
something starting with __ and the normal name is an alias. */
5157
#if defined __stub_gethostbyname || defined __stub___gethostbyname
1806
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5164
return gethostbyname ();
5169
rm -f conftest.$ac_objext conftest$ac_exeext
5170
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5171
(eval $ac_link) 2>conftest.er1
5173
grep -v '^ *+' conftest.er1 >conftest.err
5175
cat conftest.err >&5
5176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177
(exit $ac_status); } &&
5178
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5179
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183
(exit $ac_status); }; } &&
5184
{ ac_try='test -s conftest$ac_exeext'
5185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189
(exit $ac_status); }; }; then
5190
ac_cv_func_gethostbyname=yes
5192
echo "$as_me: failed program was:" >&5
5193
sed 's/^/| /' conftest.$ac_ext >&5
5195
ac_cv_func_gethostbyname=no
5198
rm -f conftest.err conftest.$ac_objext \
5199
conftest$ac_exeext conftest.$ac_ext
5201
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5202
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
1814
if { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1816
eval "ac_cv_func_gethostbyname=yes"
1818
echo "configure: failed program was:" >&5
1819
cat conftest.$ac_ext >&5
1821
eval "ac_cv_func_gethostbyname=no"
1826
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1827
echo "$ac_t""yes" 1>&6
1830
echo "$ac_t""no" 1>&6
5204
1833
if test $ac_cv_func_gethostbyname = no; then
5205
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5206
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5207
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5208
echo $ECHO_N "(cached) $ECHO_C" >&6
1834
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1835
echo "configure:1836: checking for gethostbyname in -lnsl" >&5
1836
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1837
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1838
echo $ac_n "(cached) $ac_c" 1>&6
5210
ac_check_lib_save_LIBS=$LIBS
1840
ac_save_LIBS="$LIBS"
5211
1841
LIBS="-lnsl $LIBS"
5212
cat >conftest.$ac_ext <<_ACEOF
5215
cat confdefs.h >>conftest.$ac_ext
5216
cat >>conftest.$ac_ext <<_ACEOF
5217
/* end confdefs.h. */
1842
cat > conftest.$ac_ext <<EOF
1843
#line 1844 "configure"
1844
#include "confdefs.h"
1845
/* Override any gcc2 internal prototype to avoid an error. */
1846
/* We use char because int might match the return type of a gcc2
1847
builtin and then its argument prototype would still apply. */
1848
char gethostbyname();
5219
/* Override any GCC internal prototype to avoid an error.
5220
Use char because int might match the return type of a GCC
5221
builtin and then its argument prototype would still apply. */
5225
char gethostbyname ();
5229
return gethostbyname ();
5234
rm -f conftest.$ac_objext conftest$ac_exeext
5235
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5236
(eval $ac_link) 2>conftest.er1
5238
grep -v '^ *+' conftest.er1 >conftest.err
5240
cat conftest.err >&5
5241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242
(exit $ac_status); } &&
5243
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248
(exit $ac_status); }; } &&
5249
{ ac_try='test -s conftest$ac_exeext'
5250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254
(exit $ac_status); }; }; then
5255
ac_cv_lib_nsl_gethostbyname=yes
1854
if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1856
eval "ac_cv_lib_$ac_lib_var=yes"
5257
echo "$as_me: failed program was:" >&5
5258
sed 's/^/| /' conftest.$ac_ext >&5
5260
ac_cv_lib_nsl_gethostbyname=no
5263
rm -f conftest.err conftest.$ac_objext \
5264
conftest$ac_exeext conftest.$ac_ext
5265
LIBS=$ac_check_lib_save_LIBS
5267
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5268
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5269
if test $ac_cv_lib_nsl_gethostbyname = yes; then
1858
echo "configure: failed program was:" >&5
1859
cat conftest.$ac_ext >&5
1861
eval "ac_cv_lib_$ac_lib_var=no"
1864
LIBS="$ac_save_LIBS"
1867
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1868
echo "$ac_t""yes" 1>&6
5270
1869
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5273
if test $ac_cv_lib_nsl_gethostbyname = no; then
5274
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5275
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5276
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5277
echo $ECHO_N "(cached) $ECHO_C" >&6
5279
ac_check_lib_save_LIBS=$LIBS
5281
cat >conftest.$ac_ext <<_ACEOF
5284
cat confdefs.h >>conftest.$ac_ext
5285
cat >>conftest.$ac_ext <<_ACEOF
5286
/* end confdefs.h. */
5288
/* Override any GCC internal prototype to avoid an error.
5289
Use char because int might match the return type of a GCC
5290
builtin and then its argument prototype would still apply. */
5294
char gethostbyname ();
5298
return gethostbyname ();
5303
rm -f conftest.$ac_objext conftest$ac_exeext
5304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5305
(eval $ac_link) 2>conftest.er1
5307
grep -v '^ *+' conftest.er1 >conftest.err
5309
cat conftest.err >&5
5310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311
(exit $ac_status); } &&
5312
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317
(exit $ac_status); }; } &&
5318
{ ac_try='test -s conftest$ac_exeext'
5319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323
(exit $ac_status); }; }; then
5324
ac_cv_lib_bsd_gethostbyname=yes
5326
echo "$as_me: failed program was:" >&5
5327
sed 's/^/| /' conftest.$ac_ext >&5
5329
ac_cv_lib_bsd_gethostbyname=no
5332
rm -f conftest.err conftest.$ac_objext \
5333
conftest$ac_exeext conftest.$ac_ext
5334
LIBS=$ac_check_lib_save_LIBS
5336
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5337
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5338
if test $ac_cv_lib_bsd_gethostbyname = yes; then
5339
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
1871
echo "$ac_t""no" 1>&6
5345
1876
# lieder@skyler.mavd.honeywell.com says without -lsocket,
5346
1877
# socket/setsockopt and other routines are undefined under SCO ODT
5347
1878
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5348
# on later versions), says Simon Leinen: it contains gethostby*
5349
# variants that don't use the name server (or something). -lsocket
5350
# must be given before -lnsl if both are needed. We assume that
5351
# if connect needs -lnsl, so does gethostbyname.
5352
{ echo "$as_me:$LINENO: checking for connect" >&5
5353
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5354
if test "${ac_cv_func_connect+set}" = set; then
5355
echo $ECHO_N "(cached) $ECHO_C" >&6
1879
# on later versions), says simon@lia.di.epfl.ch: it contains
1880
# gethostby* variants that don't use the nameserver (or something).
1881
# -lsocket must be given before -lnsl if both are needed.
1882
# We assume that if connect needs -lnsl, so does gethostbyname.
1883
echo $ac_n "checking for connect""... $ac_c" 1>&6
1884
echo "configure:1885: checking for connect" >&5
1885
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1886
echo $ac_n "(cached) $ac_c" 1>&6
5357
cat >conftest.$ac_ext <<_ACEOF
5360
cat confdefs.h >>conftest.$ac_ext
5361
cat >>conftest.$ac_ext <<_ACEOF
5362
/* end confdefs.h. */
5363
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
5364
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5365
#define connect innocuous_connect
1888
cat > conftest.$ac_ext <<EOF
1889
#line 1890 "configure"
1890
#include "confdefs.h"
5367
1891
/* System header to define __stub macros and hopefully few prototypes,
5368
which can conflict with char connect (); below.
5369
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5370
<limits.h> exists even on freestanding compilers. */
5373
# include <limits.h>
5375
# include <assert.h>
5380
/* Override any GCC internal prototype to avoid an error.
5381
Use char because int might match the return type of a GCC
5382
builtin and then its argument prototype would still apply. */
1892
which can conflict with char connect(); below. */
1894
/* Override any gcc2 internal prototype to avoid an error. */
1895
/* We use char because int might match the return type of a gcc2
1896
builtin and then its argument prototype would still apply. */
5387
1901
/* The GNU C library defines this for functions which it implements
5388
1902
to always fail with ENOSYS. Some functions are actually named
5389
1903
something starting with __ and the normal name is an alias. */
5390
#if defined __stub_connect || defined __stub___connect
1904
#if defined (__stub_connect) || defined (__stub___connect)
5402
rm -f conftest.$ac_objext conftest$ac_exeext
5403
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5404
(eval $ac_link) 2>conftest.er1
5406
grep -v '^ *+' conftest.er1 >conftest.err
5408
cat conftest.err >&5
5409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410
(exit $ac_status); } &&
5411
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416
(exit $ac_status); }; } &&
5417
{ ac_try='test -s conftest$ac_exeext'
5418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422
(exit $ac_status); }; }; then
5423
ac_cv_func_connect=yes
5425
echo "$as_me: failed program was:" >&5
5426
sed 's/^/| /' conftest.$ac_ext >&5
5428
ac_cv_func_connect=no
5431
rm -f conftest.err conftest.$ac_objext \
5432
conftest$ac_exeext conftest.$ac_ext
5434
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5435
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
1912
if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1914
eval "ac_cv_func_connect=yes"
1916
echo "configure: failed program was:" >&5
1917
cat conftest.$ac_ext >&5
1919
eval "ac_cv_func_connect=no"
1924
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1925
echo "$ac_t""yes" 1>&6
1928
echo "$ac_t""no" 1>&6
5437
1931
if test $ac_cv_func_connect = no; then
5438
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5439
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5440
if test "${ac_cv_lib_socket_connect+set}" = set; then
5441
echo $ECHO_N "(cached) $ECHO_C" >&6
1932
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1933
echo "configure:1934: checking for connect in -lsocket" >&5
1934
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1935
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1936
echo $ac_n "(cached) $ac_c" 1>&6
5443
ac_check_lib_save_LIBS=$LIBS
1938
ac_save_LIBS="$LIBS"
5444
1939
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5445
cat >conftest.$ac_ext <<_ACEOF
5448
cat confdefs.h >>conftest.$ac_ext
5449
cat >>conftest.$ac_ext <<_ACEOF
5450
/* end confdefs.h. */
1940
cat > conftest.$ac_ext <<EOF
1941
#line 1942 "configure"
1942
#include "confdefs.h"
1943
/* Override any gcc2 internal prototype to avoid an error. */
1944
/* We use char because int might match the return type of a gcc2
1945
builtin and then its argument prototype would still apply. */
5452
/* Override any GCC internal prototype to avoid an error.
5453
Use char because int might match the return type of a GCC
5454
builtin and then its argument prototype would still apply. */
5467
rm -f conftest.$ac_objext conftest$ac_exeext
5468
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5469
(eval $ac_link) 2>conftest.er1
5471
grep -v '^ *+' conftest.er1 >conftest.err
5473
cat conftest.err >&5
5474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475
(exit $ac_status); } &&
5476
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481
(exit $ac_status); }; } &&
5482
{ ac_try='test -s conftest$ac_exeext'
5483
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487
(exit $ac_status); }; }; then
5488
ac_cv_lib_socket_connect=yes
1952
if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1954
eval "ac_cv_lib_$ac_lib_var=yes"
5490
echo "$as_me: failed program was:" >&5
5491
sed 's/^/| /' conftest.$ac_ext >&5
5493
ac_cv_lib_socket_connect=no
5496
rm -f conftest.err conftest.$ac_objext \
5497
conftest$ac_exeext conftest.$ac_ext
5498
LIBS=$ac_check_lib_save_LIBS
5500
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5501
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5502
if test $ac_cv_lib_socket_connect = yes; then
1956
echo "configure: failed program was:" >&5
1957
cat conftest.$ac_ext >&5
1959
eval "ac_cv_lib_$ac_lib_var=no"
1962
LIBS="$ac_save_LIBS"
1965
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1966
echo "$ac_t""yes" 1>&6
5503
1967
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1969
echo "$ac_t""no" 1>&6
5508
# Guillermo Gomez says -lposix is necessary on A/UX.
5509
{ echo "$as_me:$LINENO: checking for remove" >&5
5510
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5511
if test "${ac_cv_func_remove+set}" = set; then
5512
echo $ECHO_N "(cached) $ECHO_C" >&6
1974
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1975
echo $ac_n "checking for remove""... $ac_c" 1>&6
1976
echo "configure:1977: checking for remove" >&5
1977
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1978
echo $ac_n "(cached) $ac_c" 1>&6
5514
cat >conftest.$ac_ext <<_ACEOF
5517
cat confdefs.h >>conftest.$ac_ext
5518
cat >>conftest.$ac_ext <<_ACEOF
5519
/* end confdefs.h. */
5520
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
5521
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5522
#define remove innocuous_remove
1980
cat > conftest.$ac_ext <<EOF
1981
#line 1982 "configure"
1982
#include "confdefs.h"
5524
1983
/* System header to define __stub macros and hopefully few prototypes,
5525
which can conflict with char remove (); below.
5526
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527
<limits.h> exists even on freestanding compilers. */
5530
# include <limits.h>
5532
# include <assert.h>
5537
/* Override any GCC internal prototype to avoid an error.
5538
Use char because int might match the return type of a GCC
5539
builtin and then its argument prototype would still apply. */
1984
which can conflict with char remove(); below. */
1986
/* Override any gcc2 internal prototype to avoid an error. */
1987
/* We use char because int might match the return type of a gcc2
1988
builtin and then its argument prototype would still apply. */
5544
1993
/* The GNU C library defines this for functions which it implements
5545
1994
to always fail with ENOSYS. Some functions are actually named
5546
1995
something starting with __ and the normal name is an alias. */
5547
#if defined __stub_remove || defined __stub___remove
1996
#if defined (__stub_remove) || defined (__stub___remove)
5559
rm -f conftest.$ac_objext conftest$ac_exeext
5560
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561
(eval $ac_link) 2>conftest.er1
5563
grep -v '^ *+' conftest.er1 >conftest.err
5565
cat conftest.err >&5
5566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567
(exit $ac_status); } &&
5568
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573
(exit $ac_status); }; } &&
5574
{ ac_try='test -s conftest$ac_exeext'
5575
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579
(exit $ac_status); }; }; then
5580
ac_cv_func_remove=yes
5582
echo "$as_me: failed program was:" >&5
5583
sed 's/^/| /' conftest.$ac_ext >&5
5585
ac_cv_func_remove=no
5588
rm -f conftest.err conftest.$ac_objext \
5589
conftest$ac_exeext conftest.$ac_ext
5591
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5592
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
2004
if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2006
eval "ac_cv_func_remove=yes"
2008
echo "configure: failed program was:" >&5
2009
cat conftest.$ac_ext >&5
2011
eval "ac_cv_func_remove=no"
2016
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2017
echo "$ac_t""yes" 1>&6
2020
echo "$ac_t""no" 1>&6
5594
2023
if test $ac_cv_func_remove = no; then
5595
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5596
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5597
if test "${ac_cv_lib_posix_remove+set}" = set; then
5598
echo $ECHO_N "(cached) $ECHO_C" >&6
2024
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2025
echo "configure:2026: checking for remove in -lposix" >&5
2026
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2027
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2028
echo $ac_n "(cached) $ac_c" 1>&6
5600
ac_check_lib_save_LIBS=$LIBS
2030
ac_save_LIBS="$LIBS"
5601
2031
LIBS="-lposix $LIBS"
5602
cat >conftest.$ac_ext <<_ACEOF
5605
cat confdefs.h >>conftest.$ac_ext
5606
cat >>conftest.$ac_ext <<_ACEOF
5607
/* end confdefs.h. */
2032
cat > conftest.$ac_ext <<EOF
2033
#line 2034 "configure"
2034
#include "confdefs.h"
2035
/* Override any gcc2 internal prototype to avoid an error. */
2036
/* We use char because int might match the return type of a gcc2
2037
builtin and then its argument prototype would still apply. */
5609
/* Override any GCC internal prototype to avoid an error.
5610
Use char because int might match the return type of a GCC
5611
builtin and then its argument prototype would still apply. */
5624
rm -f conftest.$ac_objext conftest$ac_exeext
5625
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5626
(eval $ac_link) 2>conftest.er1
5628
grep -v '^ *+' conftest.er1 >conftest.err
5630
cat conftest.err >&5
5631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632
(exit $ac_status); } &&
5633
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638
(exit $ac_status); }; } &&
5639
{ ac_try='test -s conftest$ac_exeext'
5640
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644
(exit $ac_status); }; }; then
5645
ac_cv_lib_posix_remove=yes
2044
if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2046
eval "ac_cv_lib_$ac_lib_var=yes"
5647
echo "$as_me: failed program was:" >&5
5648
sed 's/^/| /' conftest.$ac_ext >&5
5650
ac_cv_lib_posix_remove=no
5653
rm -f conftest.err conftest.$ac_objext \
5654
conftest$ac_exeext conftest.$ac_ext
5655
LIBS=$ac_check_lib_save_LIBS
5657
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5658
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5659
if test $ac_cv_lib_posix_remove = yes; then
2048
echo "configure: failed program was:" >&5
2049
cat conftest.$ac_ext >&5
2051
eval "ac_cv_lib_$ac_lib_var=no"
2054
LIBS="$ac_save_LIBS"
2057
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2058
echo "$ac_t""yes" 1>&6
5660
2059
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2061
echo "$ac_t""no" 1>&6
5665
2066
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5666
{ echo "$as_me:$LINENO: checking for shmat" >&5
5667
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5668
if test "${ac_cv_func_shmat+set}" = set; then
5669
echo $ECHO_N "(cached) $ECHO_C" >&6
2067
echo $ac_n "checking for shmat""... $ac_c" 1>&6
2068
echo "configure:2069: checking for shmat" >&5
2069
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2070
echo $ac_n "(cached) $ac_c" 1>&6
5671
cat >conftest.$ac_ext <<_ACEOF
5674
cat confdefs.h >>conftest.$ac_ext
5675
cat >>conftest.$ac_ext <<_ACEOF
5676
/* end confdefs.h. */
5677
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5678
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5679
#define shmat innocuous_shmat
2072
cat > conftest.$ac_ext <<EOF
2073
#line 2074 "configure"
2074
#include "confdefs.h"
5681
2075
/* System header to define __stub macros and hopefully few prototypes,
5682
which can conflict with char shmat (); below.
5683
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684
<limits.h> exists even on freestanding compilers. */
5687
# include <limits.h>
5689
# include <assert.h>
5694
/* Override any GCC internal prototype to avoid an error.
5695
Use char because int might match the return type of a GCC
5696
builtin and then its argument prototype would still apply. */
2076
which can conflict with char shmat(); below. */
2078
/* Override any gcc2 internal prototype to avoid an error. */
2079
/* We use char because int might match the return type of a gcc2
2080
builtin and then its argument prototype would still apply. */
5701
2085
/* The GNU C library defines this for functions which it implements
5702
2086
to always fail with ENOSYS. Some functions are actually named
5703
2087
something starting with __ and the normal name is an alias. */
5704
#if defined __stub_shmat || defined __stub___shmat
2088
#if defined (__stub_shmat) || defined (__stub___shmat)
5716
rm -f conftest.$ac_objext conftest$ac_exeext
5717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5718
(eval $ac_link) 2>conftest.er1
5720
grep -v '^ *+' conftest.er1 >conftest.err
5722
cat conftest.err >&5
5723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724
(exit $ac_status); } &&
5725
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5726
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730
(exit $ac_status); }; } &&
5731
{ ac_try='test -s conftest$ac_exeext'
5732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736
(exit $ac_status); }; }; then
5737
ac_cv_func_shmat=yes
5739
echo "$as_me: failed program was:" >&5
5740
sed 's/^/| /' conftest.$ac_ext >&5
5745
rm -f conftest.err conftest.$ac_objext \
5746
conftest$ac_exeext conftest.$ac_ext
5748
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5749
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
2096
if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2098
eval "ac_cv_func_shmat=yes"
2100
echo "configure: failed program was:" >&5
2101
cat conftest.$ac_ext >&5
2103
eval "ac_cv_func_shmat=no"
2108
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2109
echo "$ac_t""yes" 1>&6
2112
echo "$ac_t""no" 1>&6
5751
2115
if test $ac_cv_func_shmat = no; then
5752
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5753
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5754
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5755
echo $ECHO_N "(cached) $ECHO_C" >&6
2116
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2117
echo "configure:2118: checking for shmat in -lipc" >&5
2118
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2119
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2120
echo $ac_n "(cached) $ac_c" 1>&6
5757
ac_check_lib_save_LIBS=$LIBS
2122
ac_save_LIBS="$LIBS"
5758
2123
LIBS="-lipc $LIBS"
5759
cat >conftest.$ac_ext <<_ACEOF
5762
cat confdefs.h >>conftest.$ac_ext
5763
cat >>conftest.$ac_ext <<_ACEOF
5764
/* end confdefs.h. */
2124
cat > conftest.$ac_ext <<EOF
2125
#line 2126 "configure"
2126
#include "confdefs.h"
2127
/* Override any gcc2 internal prototype to avoid an error. */
2128
/* We use char because int might match the return type of a gcc2
2129
builtin and then its argument prototype would still apply. */
5766
/* Override any GCC internal prototype to avoid an error.
5767
Use char because int might match the return type of a GCC
5768
builtin and then its argument prototype would still apply. */
5781
rm -f conftest.$ac_objext conftest$ac_exeext
5782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783
(eval $ac_link) 2>conftest.er1
5785
grep -v '^ *+' conftest.er1 >conftest.err
5787
cat conftest.err >&5
5788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789
(exit $ac_status); } &&
5790
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795
(exit $ac_status); }; } &&
5796
{ ac_try='test -s conftest$ac_exeext'
5797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801
(exit $ac_status); }; }; then
5802
ac_cv_lib_ipc_shmat=yes
2136
if { (eval echo configure:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2138
eval "ac_cv_lib_$ac_lib_var=yes"
5804
echo "$as_me: failed program was:" >&5
5805
sed 's/^/| /' conftest.$ac_ext >&5
5807
ac_cv_lib_ipc_shmat=no
5810
rm -f conftest.err conftest.$ac_objext \
5811
conftest$ac_exeext conftest.$ac_ext
5812
LIBS=$ac_check_lib_save_LIBS
5814
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5815
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5816
if test $ac_cv_lib_ipc_shmat = yes; then
2140
echo "configure: failed program was:" >&5
2141
cat conftest.$ac_ext >&5
2143
eval "ac_cv_lib_$ac_lib_var=no"
2146
LIBS="$ac_save_LIBS"
2149
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2150
echo "$ac_t""yes" 1>&6
5817
2151
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2153
echo "$ac_t""no" 1>&6
5823
2159
# Check for libraries that X11R6 Xt/Xaw programs need.
5824
ac_save_LDFLAGS=$LDFLAGS
2160
ac_save_LDFLAGS="$LDFLAGS"
5825
2161
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5826
2162
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5827
2163
# check for ICE first), but we must link in the order -lSM -lICE or
5828
2164
# we get undefined symbols. So assume we have SM if we have ICE.
5829
2165
# These have to be linked with before -lX11, unlike the other
5830
2166
# libraries we check for below, so use a different variable.
5831
# John Interrante, Karl Berry
5832
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5833
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5834
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5835
echo $ECHO_N "(cached) $ECHO_C" >&6
2167
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2168
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2169
echo "configure:2170: checking for IceConnectionNumber in -lICE" >&5
2170
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2171
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2172
echo $ac_n "(cached) $ac_c" 1>&6
5837
ac_check_lib_save_LIBS=$LIBS
2174
ac_save_LIBS="$LIBS"
5838
2175
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5839
cat >conftest.$ac_ext <<_ACEOF
5842
cat confdefs.h >>conftest.$ac_ext
5843
cat >>conftest.$ac_ext <<_ACEOF
5844
/* end confdefs.h. */
2176
cat > conftest.$ac_ext <<EOF
2177
#line 2178 "configure"
2178
#include "confdefs.h"
2179
/* Override any gcc2 internal prototype to avoid an error. */
2180
/* We use char because int might match the return type of a gcc2
2181
builtin and then its argument prototype would still apply. */
2182
char IceConnectionNumber();
5846
/* Override any GCC internal prototype to avoid an error.
5847
Use char because int might match the return type of a GCC
5848
builtin and then its argument prototype would still apply. */
5852
char IceConnectionNumber ();
5856
return IceConnectionNumber ();
5861
rm -f conftest.$ac_objext conftest$ac_exeext
5862
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5863
(eval $ac_link) 2>conftest.er1
5865
grep -v '^ *+' conftest.er1 >conftest.err
5867
cat conftest.err >&5
5868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869
(exit $ac_status); } &&
5870
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875
(exit $ac_status); }; } &&
5876
{ ac_try='test -s conftest$ac_exeext'
5877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881
(exit $ac_status); }; }; then
5882
ac_cv_lib_ICE_IceConnectionNumber=yes
2185
IceConnectionNumber()
2188
if { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2190
eval "ac_cv_lib_$ac_lib_var=yes"
5884
echo "$as_me: failed program was:" >&5
5885
sed 's/^/| /' conftest.$ac_ext >&5
5887
ac_cv_lib_ICE_IceConnectionNumber=no
5890
rm -f conftest.err conftest.$ac_objext \
5891
conftest$ac_exeext conftest.$ac_ext
5892
LIBS=$ac_check_lib_save_LIBS
5894
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5895
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5896
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
2192
echo "configure: failed program was:" >&5
2193
cat conftest.$ac_ext >&5
2195
eval "ac_cv_lib_$ac_lib_var=no"
2198
LIBS="$ac_save_LIBS"
2201
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2202
echo "$ac_t""yes" 1>&6
5897
2203
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2205
echo "$ac_t""no" 1>&6
5900
LDFLAGS=$ac_save_LDFLAGS
2208
LDFLAGS="$ac_save_LDFLAGS"
5904
2212
LIBS="${LIBS} ${X_PRE_LIBS} -lXt ${X_LIBS} ${X_EXTRA_LIBS}"
5905
2213
CPPFLAGS="${CPPFLAGS} -I${x_includes}"
5906
2214
LDFLAGS="${LDFLAGS} -L${x_libraries}"
5908
{ echo "$as_me:$LINENO: checking for main in -lX11" >&5
5909
echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6; }
5910
if test "${ac_cv_lib_X11_main+set}" = set; then
5911
echo $ECHO_N "(cached) $ECHO_C" >&6
2215
echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
2216
echo "configure:2217: checking for main in -lX11" >&5
2217
ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
2218
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2219
echo $ac_n "(cached) $ac_c" 1>&6
5913
ac_check_lib_save_LIBS=$LIBS
2221
ac_save_LIBS="$LIBS"
5914
2222
LIBS="-lX11 $LIBS"
5915
cat >conftest.$ac_ext <<_ACEOF
5918
cat confdefs.h >>conftest.$ac_ext
5919
cat >>conftest.$ac_ext <<_ACEOF
5920
/* end confdefs.h. */
5931
rm -f conftest.$ac_objext conftest$ac_exeext
5932
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5933
(eval $ac_link) 2>conftest.er1
5935
grep -v '^ *+' conftest.er1 >conftest.err
5937
cat conftest.err >&5
5938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939
(exit $ac_status); } &&
5940
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945
(exit $ac_status); }; } &&
5946
{ ac_try='test -s conftest$ac_exeext'
5947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951
(exit $ac_status); }; }; then
5952
ac_cv_lib_X11_main=yes
2223
cat > conftest.$ac_ext <<EOF
2224
#line 2225 "configure"
2225
#include "confdefs.h"
2231
if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2233
eval "ac_cv_lib_$ac_lib_var=yes"
5954
echo "$as_me: failed program was:" >&5
5955
sed 's/^/| /' conftest.$ac_ext >&5
5957
ac_cv_lib_X11_main=no
5960
rm -f conftest.err conftest.$ac_objext \
5961
conftest$ac_exeext conftest.$ac_ext
5962
LIBS=$ac_check_lib_save_LIBS
5964
{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
5965
echo "${ECHO_T}$ac_cv_lib_X11_main" >&6; }
5966
if test $ac_cv_lib_X11_main = yes; then
5967
cat >>confdefs.h <<_ACEOF
5968
#define HAVE_LIBX11 1
2235
echo "configure: failed program was:" >&5
2236
cat conftest.$ac_ext >&5
2238
eval "ac_cv_lib_$ac_lib_var=no"
2241
LIBS="$ac_save_LIBS"
2244
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2245
echo "$ac_t""yes" 1>&6
2246
ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2247
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2248
cat >> confdefs.h <<EOF
2249
#define $ac_tr_lib 1
5971
2252
LIBS="-lX11 $LIBS"
2255
echo "$ac_t""no" 1>&6
5976
# Check whether --with-xpm-include was given.
2258
# Check whether --with-xpm-include or --without-xpm-include was given.
5977
2259
if test "${with_xpm_include+set}" = set; then
5978
withval=$with_xpm_include; CPPFLAGS="-I${with_xpm_include} ${CPPFLAGS}"
2260
withval="$with_xpm_include"
2261
CPPFLAGS="-I${with_xpm_include} ${CPPFLAGS}"
5982
# Check whether --with-xpm-lib was given.
2264
# Check whether --with-xpm-lib or --without-xpm-lib was given.
5983
2265
if test "${with_xpm_lib+set}" = set; then
5984
withval=$with_xpm_lib; LDFLAGS="-L${with_xpm_lib} ${LDFLAGS}"
2266
withval="$with_xpm_lib"
2267
LDFLAGS="-L${with_xpm_lib} ${LDFLAGS}"
5988
{ echo "$as_me:$LINENO: checking for main in -lXpm" >&5
5989
echo $ECHO_N "checking for main in -lXpm... $ECHO_C" >&6; }
5990
if test "${ac_cv_lib_Xpm_main+set}" = set; then
5991
echo $ECHO_N "(cached) $ECHO_C" >&6
2270
echo $ac_n "checking for main in -lXpm""... $ac_c" 1>&6
2271
echo "configure:2272: checking for main in -lXpm" >&5
2272
ac_lib_var=`echo Xpm'_'main | sed 'y%./+-%__p_%'`
2273
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2274
echo $ac_n "(cached) $ac_c" 1>&6
5993
ac_check_lib_save_LIBS=$LIBS
2276
ac_save_LIBS="$LIBS"
5994
2277
LIBS="-lXpm $LIBS"
5995
cat >conftest.$ac_ext <<_ACEOF
5998
cat confdefs.h >>conftest.$ac_ext
5999
cat >>conftest.$ac_ext <<_ACEOF
6000
/* end confdefs.h. */
6011
rm -f conftest.$ac_objext conftest$ac_exeext
6012
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013
(eval $ac_link) 2>conftest.er1
6015
grep -v '^ *+' conftest.er1 >conftest.err
6017
cat conftest.err >&5
6018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019
(exit $ac_status); } &&
6020
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025
(exit $ac_status); }; } &&
6026
{ ac_try='test -s conftest$ac_exeext'
6027
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031
(exit $ac_status); }; }; then
6032
ac_cv_lib_Xpm_main=yes
2278
cat > conftest.$ac_ext <<EOF
2279
#line 2280 "configure"
2280
#include "confdefs.h"
2286
if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2288
eval "ac_cv_lib_$ac_lib_var=yes"
6034
echo "$as_me: failed program was:" >&5
6035
sed 's/^/| /' conftest.$ac_ext >&5
6037
ac_cv_lib_Xpm_main=no
6040
rm -f conftest.err conftest.$ac_objext \
6041
conftest$ac_exeext conftest.$ac_ext
6042
LIBS=$ac_check_lib_save_LIBS
6044
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_main" >&5
6045
echo "${ECHO_T}$ac_cv_lib_Xpm_main" >&6; }
6046
if test $ac_cv_lib_Xpm_main = yes; then
6047
cat >>confdefs.h <<_ACEOF
6048
#define HAVE_LIBXPM 1
2290
echo "configure: failed program was:" >&5
2291
cat conftest.$ac_ext >&5
2293
eval "ac_cv_lib_$ac_lib_var=no"
2296
LIBS="$ac_save_LIBS"
2299
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2300
echo "$ac_t""yes" 1>&6
2301
ac_tr_lib=HAVE_LIB`echo Xpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2302
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2303
cat >> confdefs.h <<EOF
2304
#define $ac_tr_lib 1
6051
2307
LIBS="-lXpm $LIBS"
2310
echo "$ac_t""no" 1>&6
6056
{ echo "$as_me:$LINENO: checking for main in -lXmu" >&5
6057
echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6; }
6058
if test "${ac_cv_lib_Xmu_main+set}" = set; then
6059
echo $ECHO_N "(cached) $ECHO_C" >&6
2313
echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
2314
echo "configure:2315: checking for main in -lXmu" >&5
2315
ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
2316
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2317
echo $ac_n "(cached) $ac_c" 1>&6
6061
ac_check_lib_save_LIBS=$LIBS
2319
ac_save_LIBS="$LIBS"
6062
2320
LIBS="-lXmu $LIBS"
6063
cat >conftest.$ac_ext <<_ACEOF
6066
cat confdefs.h >>conftest.$ac_ext
6067
cat >>conftest.$ac_ext <<_ACEOF
6068
/* end confdefs.h. */
6079
rm -f conftest.$ac_objext conftest$ac_exeext
6080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081
(eval $ac_link) 2>conftest.er1
6083
grep -v '^ *+' conftest.er1 >conftest.err
6085
cat conftest.err >&5
6086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087
(exit $ac_status); } &&
6088
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093
(exit $ac_status); }; } &&
6094
{ ac_try='test -s conftest$ac_exeext'
6095
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099
(exit $ac_status); }; }; then
6100
ac_cv_lib_Xmu_main=yes
2321
cat > conftest.$ac_ext <<EOF
2322
#line 2323 "configure"
2323
#include "confdefs.h"
2329
if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2331
eval "ac_cv_lib_$ac_lib_var=yes"
6102
echo "$as_me: failed program was:" >&5
6103
sed 's/^/| /' conftest.$ac_ext >&5
6105
ac_cv_lib_Xmu_main=no
6108
rm -f conftest.err conftest.$ac_objext \
6109
conftest$ac_exeext conftest.$ac_ext
6110
LIBS=$ac_check_lib_save_LIBS
6112
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
6113
echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6; }
6114
if test $ac_cv_lib_Xmu_main = yes; then
6115
cat >>confdefs.h <<_ACEOF
6116
#define HAVE_LIBXMU 1
2333
echo "configure: failed program was:" >&5
2334
cat conftest.$ac_ext >&5
2336
eval "ac_cv_lib_$ac_lib_var=no"
2339
LIBS="$ac_save_LIBS"
2342
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2343
echo "$ac_t""yes" 1>&6
2344
ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2345
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2346
cat >> confdefs.h <<EOF
2347
#define $ac_tr_lib 1
6119
2350
LIBS="-lXmu $LIBS"
2353
echo "$ac_t""no" 1>&6
6124
# Check whether --with-motif-include was given.
2356
# Check whether --with-motif-include or --without-motif-include was given.
6125
2357
if test "${with_motif_include+set}" = set; then
6126
withval=$with_motif_include; CPPFLAGS="-I${with_motif_include} ${CPPFLAGS}"
2358
withval="$with_motif_include"
2359
CPPFLAGS="-I${with_motif_include} ${CPPFLAGS}"
6130
# Check whether --with-motif-lib was given.
2362
# Check whether --with-motif-lib or --without-motif-lib was given.
6131
2363
if test "${with_motif_lib+set}" = set; then
6132
withval=$with_motif_lib; LDFLAGS="-L${with_motif_lib} ${LDFLAGS}"
2364
withval="$with_motif_lib"
2365
LDFLAGS="-L${with_motif_lib} ${LDFLAGS}"
6136
# Check whether --with-motif was given.
2368
# Check whether --with-motif or --without-motif was given.
6137
2369
if test "${with_motif+set}" = set; then
6138
withval=$with_motif;
6139
{ echo "$as_me:$LINENO: checking for main in -lXm" >&5
6140
echo $ECHO_N "checking for main in -lXm... $ECHO_C" >&6; }
6141
if test "${ac_cv_lib_Xm_main+set}" = set; then
6142
echo $ECHO_N "(cached) $ECHO_C" >&6
2370
withval="$with_motif"
2371
echo $ac_n "checking for main in -lXm""... $ac_c" 1>&6
2372
echo "configure:2373: checking for main in -lXm" >&5
2373
ac_lib_var=`echo Xm'_'main | sed 'y%./+-%__p_%'`
2374
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2375
echo $ac_n "(cached) $ac_c" 1>&6
6144
ac_check_lib_save_LIBS=$LIBS
2377
ac_save_LIBS="$LIBS"
6145
2378
LIBS="-lXm $LIBS"
6146
cat >conftest.$ac_ext <<_ACEOF
6149
cat confdefs.h >>conftest.$ac_ext
6150
cat >>conftest.$ac_ext <<_ACEOF
6151
/* end confdefs.h. */
6162
rm -f conftest.$ac_objext conftest$ac_exeext
6163
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164
(eval $ac_link) 2>conftest.er1
6166
grep -v '^ *+' conftest.er1 >conftest.err
6168
cat conftest.err >&5
6169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170
(exit $ac_status); } &&
6171
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176
(exit $ac_status); }; } &&
6177
{ ac_try='test -s conftest$ac_exeext'
6178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182
(exit $ac_status); }; }; then
6183
ac_cv_lib_Xm_main=yes
2379
cat > conftest.$ac_ext <<EOF
2380
#line 2381 "configure"
2381
#include "confdefs.h"
2387
if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2389
eval "ac_cv_lib_$ac_lib_var=yes"
6185
echo "$as_me: failed program was:" >&5
6186
sed 's/^/| /' conftest.$ac_ext >&5
6188
ac_cv_lib_Xm_main=no
6191
rm -f conftest.err conftest.$ac_objext \
6192
conftest$ac_exeext conftest.$ac_ext
6193
LIBS=$ac_check_lib_save_LIBS
6195
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_main" >&5
6196
echo "${ECHO_T}$ac_cv_lib_Xm_main" >&6; }
6197
if test $ac_cv_lib_Xm_main = yes; then
6198
cat >>confdefs.h <<_ACEOF
6199
#define HAVE_LIBXM 1
2391
echo "configure: failed program was:" >&5
2392
cat conftest.$ac_ext >&5
2394
eval "ac_cv_lib_$ac_lib_var=no"
2397
LIBS="$ac_save_LIBS"
2400
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2401
echo "$ac_t""yes" 1>&6
2402
ac_tr_lib=HAVE_LIB`echo Xm | sed -e 's/^a-zA-Z0-9_/_/g' \
2403
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2404
cat >> confdefs.h <<EOF
2405
#define $ac_tr_lib 1
6202
2408
LIBS="-lXm $LIBS"
2411
echo "$ac_t""no" 1>&6
6208
{ echo "$as_me:$LINENO: checking for main in -lXaw" >&5
6209
echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6; }
6210
if test "${ac_cv_lib_Xaw_main+set}" = set; then
6211
echo $ECHO_N "(cached) $ECHO_C" >&6
2415
echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
2416
echo "configure:2417: checking for main in -lXaw" >&5
2417
ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
2418
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2419
echo $ac_n "(cached) $ac_c" 1>&6
6213
ac_check_lib_save_LIBS=$LIBS
2421
ac_save_LIBS="$LIBS"
6214
2422
LIBS="-lXaw $LIBS"
6215
cat >conftest.$ac_ext <<_ACEOF
6218
cat confdefs.h >>conftest.$ac_ext
6219
cat >>conftest.$ac_ext <<_ACEOF
6220
/* end confdefs.h. */
6231
rm -f conftest.$ac_objext conftest$ac_exeext
6232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6233
(eval $ac_link) 2>conftest.er1
6235
grep -v '^ *+' conftest.er1 >conftest.err
6237
cat conftest.err >&5
6238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239
(exit $ac_status); } &&
6240
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245
(exit $ac_status); }; } &&
6246
{ ac_try='test -s conftest$ac_exeext'
6247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251
(exit $ac_status); }; }; then
6252
ac_cv_lib_Xaw_main=yes
2423
cat > conftest.$ac_ext <<EOF
2424
#line 2425 "configure"
2425
#include "confdefs.h"
2431
if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2433
eval "ac_cv_lib_$ac_lib_var=yes"
6254
echo "$as_me: failed program was:" >&5
6255
sed 's/^/| /' conftest.$ac_ext >&5
6257
ac_cv_lib_Xaw_main=no
6260
rm -f conftest.err conftest.$ac_objext \
6261
conftest$ac_exeext conftest.$ac_ext
6262
LIBS=$ac_check_lib_save_LIBS
6264
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
6265
echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6; }
6266
if test $ac_cv_lib_Xaw_main = yes; then
6267
cat >>confdefs.h <<_ACEOF
6268
#define HAVE_LIBXAW 1
2435
echo "configure: failed program was:" >&5
2436
cat conftest.$ac_ext >&5
2438
eval "ac_cv_lib_$ac_lib_var=no"
2441
LIBS="$ac_save_LIBS"
2444
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2445
echo "$ac_t""yes" 1>&6
2446
ac_tr_lib=HAVE_LIB`echo Xaw | sed -e 's/^a-zA-Z0-9_/_/g' \
2447
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2448
cat >> confdefs.h <<EOF
2449
#define $ac_tr_lib 1
6271
2452
LIBS="-lXaw $LIBS"
6278
# Check whether --with-x11-resource was given.
2455
echo "$ac_t""no" 1>&6
2460
# Check whether --with-x11-resource or --without-x11-resource was given.
6279
2461
if test "${with_x11_resource+set}" = set; then
6280
withval=$with_x11_resource; XAD_DIR="${with_x11_resource}"
2462
withval="$with_x11_resource"
2463
XAD_DIR="${with_x11_resource}"
6284
# Check whether --enable-dupscore was given.
2467
# Check whether --enable-dupscore or --disable-dupscore was given.
6285
2468
if test "${enable_dupscore+set}" = set; then
6286
enableval=$enable_dupscore; cat >>confdefs.h <<\_ACEOF
2469
enableval="$enable_dupscore"
2470
cat >> confdefs.h <<\EOF
6287
2471
#define ALLOW_DUPSCORE 1
6293
cat >>confdefs.h <<\_ACEOF
2477
cat >> confdefs.h <<\EOF
6294
2478
#define XSHISEN_VERSION "1.51"
6297
CPPFLAGS="-DLIB_DIR=\\\"\$(XSHISENLIB)\\\" -DDAT_DIR=\\\"\$(XSHISENDAT)\\\" ${CPPFLAGS}"
2481
CPPFLAGS="${CPPFLAGS} -DLIB_DIR=\\\"\$(XSHISENLIB)\\\" -DDAT_DIR=\\\"\$(XSHISENDAT)\\\""
6299
2483
for i in lang/XShisen.ad.*; do
6300
2484
lang="`echo $i | sed 's/^.*XShisen\.ad\.//'`"
6316
2500
# Extract the first word of "mkdirhier", so it can be a program name with args.
6317
2501
set dummy mkdirhier; ac_word=$2
6318
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6319
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320
if test "${ac_cv_path_MKDIR+set}" = set; then
6321
echo $ECHO_N "(cached) $ECHO_C" >&6
2502
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2503
echo "configure:2504: checking for $ac_word" >&5
2504
if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
2505
echo $ac_n "(cached) $ac_c" 1>&6
6325
2509
ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
2512
ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a dos path.
6328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332
test -z "$as_dir" && as_dir=.
6333
for ac_exec_ext in '' $ac_executable_extensions; do
6334
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6335
ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6336
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2517
for ac_dir in $ac_dummy; do
2518
test -z "$ac_dir" && ac_dir=.
2519
if test -f $ac_dir/$ac_word; then
2520
ac_cv_path_MKDIR="$ac_dir/$ac_word"
6343
2525
test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir -p"
6347
MKDIR=$ac_cv_path_MKDIR
2529
MKDIR="$ac_cv_path_MKDIR"
6348
2530
if test -n "$MKDIR"; then
6349
{ echo "$as_me:$LINENO: result: $MKDIR" >&5
6350
echo "${ECHO_T}$MKDIR" >&6; }
2531
echo "$ac_t""$MKDIR" 1>&6
6352
{ echo "$as_me:$LINENO: result: no" >&5
6353
echo "${ECHO_T}no" >&6; }
2533
echo "$ac_t""no" 1>&6
6361
ac_config_files="$ac_config_files Makefile"
6363
cat >confcache <<\_ACEOF
2541
cat > confcache <<\EOF
6364
2542
# This file is a shell script that caches the results of configure
6365
2543
# tests run on this system so they can be shared between configure
6366
# scripts and configure runs, see configure's option --config-cache.
6367
# It is not useful on other systems. If it contains results you don't
6368
# want to keep, you may remove or edit it.
6370
# config.status only pays attention to the cache file if you give it
6371
# the --recheck option to rerun configure.
6373
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6374
# loading this file, other *unset* `ac_cv_foo' will be assigned the
2544
# scripts and configure runs. It is not useful on other systems.
2545
# If it contains results you don't want to keep, you may remove or edit it.
2547
# By default, configure uses ./config.cache as the cache file,
2548
# creating it if it does not exist already. You can give configure
2549
# the --cache-file=FILE option to use a different cache file; that is
2550
# what configure does when it calls configure scripts in
2551
# subdirectories, so they share the cache.
2552
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2553
# config.status only pays attention to the cache file if you give it the
2554
# --recheck option to rerun configure.
6379
2557
# The following way of writing the cache mishandles newlines in values,
6380
2558
# but we know of no workaround that is simple, portable, and efficient.
6381
# So, we kill variables containing newlines.
2559
# So, don't put newlines in cache variables' values.
6382
2560
# Ultrix sh set writes to stderr and can't be redirected directly,
6383
2561
# and sets the high bit in the cache file unless we assign to the vars.
6385
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6386
eval ac_val=\$$ac_var
6390
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6391
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6394
_ | IFS | as_nl) ;; #(
6395
*) $as_unset $ac_var ;;
6401
case $as_nl`(ac_space=' '; set) 2>&1` in #(
6402
*${as_nl}ac_space=\ *)
6403
# `set' does not quote correctly, so add quotes (double-quote
6404
# substitution turns \\\\ into \\, and sed turns \\ into \).
6407
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6410
# `set' quotes correctly as required by POSIX, so do not add quotes.
6411
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6420
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6422
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6424
if diff $cache_file confcache >/dev/null 2>&1; then :; else
2563
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2565
# `set' does not quote correctly, so add quotes (double-quote substitution
2566
# turns \\\\ into \\, and sed turns \\ into \).
2568
-e "s/'/'\\\\''/g" \
2569
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2572
# `set' quotes correctly as required by POSIX, so do not add quotes.
2573
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2576
if cmp -s $cache_file confcache; then
6425
2579
if test -w $cache_file; then
6426
test "x$cache_file" != "x/dev/null" &&
6427
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
6428
echo "$as_me: updating cache $cache_file" >&6;}
6429
cat confcache >$cache_file
2580
echo "updating cache $cache_file"
2581
cat confcache > $cache_file
6431
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6432
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2583
echo "not updating unwritable cache $cache_file"
6435
2586
rm -f confcache
2588
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6437
2590
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6438
2591
# Let make expand exec_prefix.
6439
2592
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2594
# Any assignment to VPATH causes Sun make to only execute
2595
# the first set of double-colon rules, so remove it if not needed.
2596
# If there is a colon in the path, we need to keep it.
2597
if test "x$srcdir" = x.; then
2598
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2601
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6441
2603
DEFS=-DHAVE_CONFIG_H
6445
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6446
# 1. Remove the extension, and $U if already installed.
6447
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6448
ac_i=`echo "$ac_i" | sed "$ac_script"`
6449
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6450
# will be set to the directory where LIBOBJS objects are built.
6451
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6452
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6456
LTLIBOBJS=$ac_ltlibobjs
2605
# Without the "./", some shells look in PATH for config.status.
6460
2606
: ${CONFIG_STATUS=./config.status}
6461
ac_clean_files_save=$ac_clean_files
6462
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6463
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6464
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6465
cat >$CONFIG_STATUS <<_ACEOF
6467
# Generated by $as_me.
2608
echo creating $CONFIG_STATUS
2609
rm -f $CONFIG_STATUS
2610
cat > $CONFIG_STATUS <<EOF
2612
# Generated automatically by configure.
6468
2613
# Run this file to recreate the current configuration.
2614
# This directory was configured as follows,
2615
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2617
# $0 $ac_configure_args
6469
2619
# Compiler output produced by configure, useful for debugging
6470
# configure, is in config.log if it exists.
6475
SHELL=\${CONFIG_SHELL-$SHELL}
6478
cat >>$CONFIG_STATUS <<\_ACEOF
6479
## --------------------- ##
6480
## M4sh Initialization. ##
6481
## --------------------- ##
6483
# Be Bourne compatible
6484
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6487
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6488
# is contrary to our usage. Disable this feature.
6489
alias -g '${1+"$@"}'='"$@"'
6490
setopt NO_GLOB_SUBST
6492
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6494
BIN_SH=xpg4; export BIN_SH # for Tru64
6495
DUALCASE=1; export DUALCASE # for MKS sh
6499
# Avoid depending upon Character Ranges.
6500
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6501
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6502
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6503
as_cr_digits='0123456789'
6504
as_cr_alnum=$as_cr_Letters$as_cr_digits
6506
# The user is always right.
6507
if test "${PATH_SEPARATOR+set}" != set; then
6508
echo "#! /bin/sh" >conf$$.sh
6509
echo "exit 0" >>conf$$.sh
6511
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6519
# Support unset when possible.
6520
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6528
# We need space, tab and new line, in precisely that order. Quoting is
6529
# there to prevent editors from complaining about space-tab.
6530
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6531
# splitting by setting IFS to empty value.)
6536
# Find who we are. Look in the path if we contain no directory separator.
6538
*[\\/]* ) as_myself=$0 ;;
6539
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543
test -z "$as_dir" && as_dir=.
6544
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6550
# We did not find ourselves, most probably we were run as `sh COMMAND'
6551
# in which case we are not to be found in the path.
6552
if test "x$as_myself" = x; then
6555
if test ! -f "$as_myself"; then
6556
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6557
{ (exit 1); exit 1; }
6560
# Work around bugs in pre-3.0 UWIN ksh.
6561
for as_var in ENV MAIL MAILPATH
6562
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6570
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6571
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6572
LC_TELEPHONE LC_TIME
6574
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6575
eval $as_var=C; export $as_var
6577
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6581
# Required to use basename.
6582
if expr a : '\(a\)' >/dev/null 2>&1 &&
6583
test "X`expr 00001 : '.*\(...\)'`" = X001; then
6589
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6590
as_basename=basename
6596
# Name of the executable.
6597
as_me=`$as_basename -- "$0" ||
6598
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6599
X"$0" : 'X\(//\)$' \| \
6600
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6602
sed '/^.*\/\([^/][^/]*\)\/*$/{
6623
test "x$as_lineno_1" != "x$as_lineno_2" &&
6624
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6626
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6627
# uniformly replaced by the line number. The first 'sed' inserts a
6628
# line-number line after each line using $LINENO; the second 'sed'
6629
# does the real work. The second script uses 'N' to pair each
6630
# line-number line with the line containing $LINENO, and appends
6631
# trailing '-' during substitution so that $LINENO is not a special
6633
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6634
# scripts with optimization help from Paolo Bonzini. Blame Lee
6635
# E. McMahon (1931-1989) for sed's syntax. :-)
6647
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6651
chmod +x "$as_me.lineno" ||
6652
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6653
{ (exit 1); exit 1; }; }
6655
# Don't try to exec as it changes $[0], causing all sort of problems
6656
# (the dirname of $[0] is not the place where we might find the
6657
# original and so on. Autoconf is especially sensitive to this).
6659
# Exit status is that of the last command.
6664
if (dirname -- /) >/dev/null 2>&1; then
6670
ECHO_C= ECHO_N= ECHO_T=
6673
case `echo 'x\c'` in
6674
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
6681
if expr a : '\(a\)' >/dev/null 2>&1 &&
6682
test "X`expr 00001 : '.*\(...\)'`" = X001; then
6688
rm -f conf$$ conf$$.exe conf$$.file
6689
if test -d conf$$.dir; then
6690
rm -f conf$$.dir/conf$$.file
6696
if ln -s conf$$.file conf$$ 2>/dev/null; then
6698
# ... but there are two gotchas:
6699
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6700
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6701
# In both cases, we have to default to `cp -p'.
6702
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6704
elif ln conf$$.file conf$$ 2>/dev/null; then
6709
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6710
rmdir conf$$.dir 2>/dev/null
6712
if mkdir -p . 2>/dev/null; then
6715
test -d ./-p && rmdir ./-p
6719
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
6720
# systems may use methods other than mode bits to determine executability.
6721
cat >conf$$.file <<_ASEOF
6725
chmod +x conf$$.file
6726
if test -x conf$$.file >/dev/null 2>&1; then
6727
as_executable_p="test -x"
6733
# Sed expression to map a string onto a valid CPP name.
6734
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6736
# Sed expression to map a string onto a valid variable name.
6737
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6742
# Save the log message, to keep $[0] and so on meaningful, and to
6743
# report actual input values of CONFIG_FILES etc. instead of their
6744
# values after options handling.
6746
This file was extended by $as_me, which was
6747
generated by GNU Autoconf 2.59d. Invocation command line was
6749
CONFIG_FILES = $CONFIG_FILES
6750
CONFIG_HEADERS = $CONFIG_HEADERS
6751
CONFIG_LINKS = $CONFIG_LINKS
6752
CONFIG_COMMANDS = $CONFIG_COMMANDS
6755
on `(hostname || uname -n) 2>/dev/null | sed 1q`
6760
cat >>$CONFIG_STATUS <<_ACEOF
6761
# Files that config.status was made for.
6762
config_files="$ac_config_files"
6763
config_headers="$ac_config_headers"
6767
cat >>$CONFIG_STATUS <<\_ACEOF
6769
\`$as_me' instantiates files from templates according to the
6770
current configuration.
6772
Usage: $0 [OPTIONS] [FILE]...
6774
-h, --help print this help, then exit
6775
-V, --version print version number, then exit
6776
-q, --quiet do not print progress messages
6777
-d, --debug don't remove temporary files
6778
--recheck update $as_me by reconfiguring in the same conditions
6779
--file=FILE[:TEMPLATE]
6780
instantiate the configuration file FILE
6781
--header=FILE[:TEMPLATE]
6782
instantiate the configuration header FILE
6784
Configuration files:
6787
Configuration headers:
6790
Report bugs to <bug-autoconf@gnu.org>."
6793
cat >>$CONFIG_STATUS <<_ACEOF
6796
configured by $0, generated by GNU Autoconf 2.59d,
6797
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6799
Copyright (C) 2006 Free Software Foundation, Inc.
6800
This config.status script is free software; the Free Software Foundation
6801
gives unlimited permission to copy, distribute and modify it."
6808
cat >>$CONFIG_STATUS <<\_ACEOF
6809
# If no file are specified by the user, then we need to provide default
6810
# value. By we need to know if files were specified by the user.
6816
ac_option=`expr "X$1" : 'X\([^=]*\)='`
6817
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6828
# Handling of the options.
2620
# configure, is in ./config.log if it exists.
2622
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2625
case "\$ac_option" in
6829
2626
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6831
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6832
echo "$ac_cs_version"; exit ;;
6833
--debug | --debu | --deb | --de | --d | -d )
6835
--file | --fil | --fi | --f )
6837
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6838
ac_need_defaults=false;;
6839
--header | --heade | --head | --hea )
6841
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6842
ac_need_defaults=false;;
6844
# Conflict between --help and --header
6845
{ echo "$as_me: error: ambiguous option: $1
6846
Try \`$0 --help' for more information." >&2
6847
{ (exit 1); exit 1; }; };;
6848
--help | --hel | -h )
6849
echo "$ac_cs_usage"; exit ;;
6850
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
6851
| -silent | --silent | --silen | --sile | --sil | --si | --s)
6855
-*) { echo "$as_me: error: unrecognized option: $1
6856
Try \`$0 --help' for more information." >&2
6857
{ (exit 1); exit 1; }; } ;;
6859
*) ac_config_targets="$ac_config_targets $1"
6860
ac_need_defaults=false ;;
6866
ac_configure_extra_args=
6868
if $ac_cs_silent; then
6870
ac_configure_extra_args="$ac_configure_extra_args --silent"
6874
cat >>$CONFIG_STATUS <<_ACEOF
6875
if \$ac_cs_recheck; then
6876
echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6879
exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6883
cat >>$CONFIG_STATUS <<\_ACEOF
6887
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6888
## Running $as_me. ##
6894
cat >>$CONFIG_STATUS <<_ACEOF
6897
cat >>$CONFIG_STATUS <<\_ACEOF
6899
# Handling of arguments.
6900
for ac_config_target in $ac_config_targets
6902
case $ac_config_target in
6903
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6904
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6906
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6907
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6908
{ (exit 1); exit 1; }; };;
6913
# If the user did not use the arguments to specify the items to instantiate,
6914
# then the envvar interface is used. Set only those that are not.
6915
# We use the long form for the default assignment because of an extremely
6916
# bizarre bug on SunOS 4.1.3.
6917
if $ac_need_defaults; then
6918
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6919
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6922
# Have a temporary directory for convenience. Make it in the build tree
6923
# simply because there is no reason against having it here, and in addition,
6924
# creating and moving files from /tmp can sometimes cause problems.
6925
# Hook for its removal unless debugging.
6926
# Note that there is a small window in which the directory will not be cleaned:
6927
# after its creation but before its name has been assigned to `$tmp'.
6931
trap 'exit_status=$?
6932
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6934
trap '{ (exit 1); exit 1; }' 1 2 13 15
6936
# Create a (secure) tmp directory for tmp files.
6939
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6940
test -n "$tmp" && test -d "$tmp"
6943
tmp=./conf$$-$RANDOM
6944
(umask 077 && mkdir "$tmp")
6947
echo "$me: cannot create a temporary directory in ." >&2
6948
{ (exit 1); exit 1; }
6952
# Set up the sed scripts for CONFIG_FILES section.
6955
# No need to generate the scripts if there are no CONFIG_FILES.
6956
# This happens for instance when ./config.status config.h
6957
if test -n "$CONFIG_FILES"; then
6964
for ac_last_try in false false false false false :; do
6965
cat >conf$$subs.sed <<_ACEOF
6966
SHELL!$SHELL$ac_delim
6967
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6968
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6969
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6970
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6971
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6972
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6973
exec_prefix!$exec_prefix$ac_delim
6974
prefix!$prefix$ac_delim
6975
program_transform_name!$program_transform_name$ac_delim
6976
bindir!$bindir$ac_delim
6977
sbindir!$sbindir$ac_delim
6978
libexecdir!$libexecdir$ac_delim
6979
datarootdir!$datarootdir$ac_delim
6980
datadir!$datadir$ac_delim
6981
sysconfdir!$sysconfdir$ac_delim
6982
sharedstatedir!$sharedstatedir$ac_delim
6983
localstatedir!$localstatedir$ac_delim
6984
includedir!$includedir$ac_delim
6985
oldincludedir!$oldincludedir$ac_delim
6986
docdir!$docdir$ac_delim
6987
infodir!$infodir$ac_delim
6988
htmldir!$htmldir$ac_delim
6989
dvidir!$dvidir$ac_delim
6990
pdfdir!$pdfdir$ac_delim
6991
psdir!$psdir$ac_delim
6992
libdir!$libdir$ac_delim
6993
localedir!$localedir$ac_delim
6994
mandir!$mandir$ac_delim
6996
ECHO_C!$ECHO_C$ac_delim
6997
ECHO_N!$ECHO_N$ac_delim
6998
ECHO_T!$ECHO_T$ac_delim
7000
build_alias!$build_alias$ac_delim
7001
host_alias!$host_alias$ac_delim
7002
target_alias!$target_alias$ac_delim
7003
build!$build$ac_delim
7004
build_cpu!$build_cpu$ac_delim
7005
build_vendor!$build_vendor$ac_delim
7006
build_os!$build_os$ac_delim
7008
host_cpu!$host_cpu$ac_delim
7009
host_vendor!$host_vendor$ac_delim
7010
host_os!$host_os$ac_delim
7011
target!$target$ac_delim
7012
target_cpu!$target_cpu$ac_delim
7013
target_vendor!$target_vendor$ac_delim
7014
target_os!$target_os$ac_delim
7016
CFLAGS!$CFLAGS$ac_delim
7017
LDFLAGS!$LDFLAGS$ac_delim
7018
CPPFLAGS!$CPPFLAGS$ac_delim
7019
ac_ct_CC!$ac_ct_CC$ac_delim
7020
EXEEXT!$EXEEXT$ac_delim
7021
OBJEXT!$OBJEXT$ac_delim
7023
CXXFLAGS!$CXXFLAGS$ac_delim
7024
ac_ct_CXX!$ac_ct_CXX$ac_delim
7025
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7026
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7027
INSTALL_DATA!$INSTALL_DATA$ac_delim
7030
EGREP!$EGREP$ac_delim
7031
XMKMF!$XMKMF$ac_delim
7032
X_CFLAGS!$X_CFLAGS$ac_delim
7033
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
7034
X_LIBS!$X_LIBS$ac_delim
7035
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
7036
MKDIR!$MKDIR$ac_delim
7037
XAD_DIR!$XAD_DIR$ac_delim
7038
LANGS!$LANGS$ac_delim
7039
LIBOBJS!$LIBOBJS$ac_delim
7040
LTLIBOBJS!$LTLIBOBJS$ac_delim
7043
if test `grep -c "$ac_delim\$" conf$$subs.sed` = 75; then
7045
elif $ac_last_try; then
7046
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7047
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7048
{ (exit 1); exit 1; }; }
7050
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7055
if grep '^CEOF$' conf$$subs.sed >/dev/null; then
7056
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
7057
ac_eof=`expr 0$ac_eof + 1`
7060
cat >>$CONFIG_STATUS <<_ACEOF
7061
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7062
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7065
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7066
s/^/s,@/; s/!/@,|#_!!_#|/
7069
s/'"$ac_delim"'$/,g/; t
7071
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7072
' >>$CONFIG_STATUS <conf$$subs.sed
7073
rm -f conf$$subs.sed
7074
cat >>$CONFIG_STATUS <<_ACEOF
7081
# VPATH may cause trouble with some makes, so we remove $(srcdir),
7082
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7083
# trailing colons and then remove the whole line if VPATH becomes empty
7084
# (actually we leave an empty line to preserve line numbers).
7085
if test "x$srcdir" = x.; then
7086
ac_vpsub='/^[ ]*VPATH[ ]*=/{
7090
s/^\([^=]*=[ ]*\):*/\1/
7096
cat >>$CONFIG_STATUS <<\_ACEOF
7097
fi # test -n "$CONFIG_FILES"
7100
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7103
:[FHLC]) ac_mode=$ac_tag; continue;;
7105
case $ac_mode$ac_tag in
7107
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7108
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7109
{ (exit 1); exit 1; }; };;
7110
:[FH]-) ac_tag=-:-;;
7111
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7128
-) ac_f="$tmp/stdin";;
7129
*) # Look for the file first in the build tree, then in the source tree
7130
# (if the path is not absolute). The absolute path cannot be DOS-style,
7131
# because $ac_f cannot contain `:'.
7135
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7137
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7138
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7139
{ (exit 1); exit 1; }; };;
7141
ac_file_inputs="$ac_file_inputs $ac_f"
7144
# Let's still pretend it is `configure' which instantiates (i.e., don't
7145
# use $as_me), people would be surprised to read:
7146
# /* config.h. Generated by config.status. */
7147
configure_input="Generated from "`IFS=:
7148
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7149
if test x"$ac_file" != x-; then
7150
configure_input="$ac_file. $configure_input"
7151
{ echo "$as_me:$LINENO: creating $ac_file" >&5
7152
echo "$as_me: creating $ac_file" >&6;}
7156
*:-:* | *:-) cat >"$tmp/stdin";;
7161
ac_dir=`$as_dirname -- "$ac_file" ||
7162
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7163
X"$ac_file" : 'X\(//\)[^/]' \| \
7164
X"$ac_file" : 'X\(//\)$' \| \
7165
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7167
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7186
-*) as_dir=./$as_dir;;
7188
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7192
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7193
*) as_qdir=$as_dir;;
7195
as_dirs="'$as_qdir' $as_dirs"
7196
as_dir=`$as_dirname -- "$as_dir" ||
7197
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7198
X"$as_dir" : 'X\(//\)[^/]' \| \
7199
X"$as_dir" : 'X\(//\)$' \| \
7200
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7202
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7219
test -d "$as_dir" && break
7221
test -z "$as_dirs" || eval "mkdir $as_dirs"
7222
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7223
echo "$as_me: error: cannot create directory $as_dir" >&2;}
7224
{ (exit 1); exit 1; }; }; }
7228
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7230
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7231
# A ".." for each directory in $ac_dir_suffix.
7232
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7233
case $ac_top_builddir_sub in
7234
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7235
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7238
ac_abs_top_builddir=$ac_pwd
7239
ac_abs_builddir=$ac_pwd$ac_dir_suffix
7240
# for backward compatibility:
7241
ac_top_builddir=$ac_top_build_prefix
7244
.) # We are building in place.
7246
ac_top_srcdir=$ac_top_builddir_sub
7247
ac_abs_top_srcdir=$ac_pwd ;;
7248
[\\/]* | ?:[\\/]* ) # Absolute name.
7249
ac_srcdir=$srcdir$ac_dir_suffix;
7250
ac_top_srcdir=$srcdir
7251
ac_abs_top_srcdir=$srcdir ;;
7253
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7254
ac_top_srcdir=$ac_top_build_prefix$srcdir
7255
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7257
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7267
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7268
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7272
cat >>$CONFIG_STATUS <<\_ACEOF
7273
# If the template does not know about datarootdir, expand it.
7274
# FIXME: This hack should be removed a few years after 2.60.
7275
ac_datarootdir_hack=
7277
case `sed -n '/datarootdir/ {
7286
' $ac_file_inputs` in
7288
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7289
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7290
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7292
cat >>$CONFIG_STATUS <<_ACEOF
7293
ac_datarootdir_hack='
7294
s&@datadir@&$datadir&g
7295
s&@docdir@&$docdir&g
7296
s&@infodir@&$infodir&g
7297
s&@localedir@&$localedir&g
7298
s&@mandir@&$mandir&g
7299
s&\\\${datarootdir}&$datarootdir&g' ;;
7303
# Neutralize VPATH when `$srcdir' = `.'.
7304
# Shell code in configure.ac might set extrasub.
7305
# FIXME: do we really want to maintain this feature?
7306
cat >>$CONFIG_STATUS <<_ACEOF
2627
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2628
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2629
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2630
echo "$CONFIG_STATUS generated by autoconf version 2.13"
2632
-help | --help | --hel | --he | --h)
2633
echo "\$ac_cs_usage"; exit 0 ;;
2634
*) echo "\$ac_cs_usage"; exit 1 ;;
2638
ac_given_srcdir=$srcdir
2639
ac_given_INSTALL="$INSTALL"
2641
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2643
cat >> $CONFIG_STATUS <<EOF
2645
# Protect against being on the right side of a sed subst in config.status.
2646
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2647
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7310
cat >>$CONFIG_STATUS <<\_ACEOF
7312
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7313
s&@configure_input@&$configure_input&;t t
7314
s&@top_builddir@&$ac_top_builddir_sub&;t t
7315
s&@srcdir@&$ac_srcdir&;t t
7316
s&@abs_srcdir@&$ac_abs_srcdir&;t t
7317
s&@top_srcdir@&$ac_top_srcdir&;t t
7318
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7319
s&@builddir@&$ac_builddir&;t t
7320
s&@abs_builddir@&$ac_abs_builddir&;t t
7321
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7322
s&@INSTALL@&$ac_INSTALL&;t t
7323
$ac_datarootdir_hack
7324
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7328
-) cat "$tmp/out"; rm -f "$tmp/out";;
7329
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7337
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7338
# NAME is the cpp macro being defined, VALUE is the value it is being given.
7339
# PARAMS is the parameter list in the macro definition--in most cases, it's
7340
# just an empty string.
7342
ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
7343
ac_dB='\)[ (].*$,\1define\2'
7347
ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
7350
# Transform confdefs.h into a sed script `conftest.defines', that
7351
# substitutes the proper values into config.h.in to produce config.h.
7352
rm -f conftest.defines conftest.tail
7353
# First, append a space to every undef/define line, to ease matching.
7354
echo 's/$/ /' >conftest.defines
7355
# Then, protect against being on the right side of a sed subst, or in
7356
# an unquoted here document, in config.status. If some macros were
7357
# called several times there might be several #defines for the same
7358
# symbol, which is useless. But do not sort them, since the last
7359
# AC_DEFINE must be honored.
7360
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7365
s/^[ ]*#[ ]*define[ ][ ]*//
7371
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
7372
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
7373
' >>conftest.defines
7375
# Remove the space that was appended to ease matching.
7376
# Then replace #undef with comments. This is necessary, for
2651
s%@CFLAGS@%$CFLAGS%g
2652
s%@CPPFLAGS@%$CPPFLAGS%g
2653
s%@CXXFLAGS@%$CXXFLAGS%g
2654
s%@FFLAGS@%$FFLAGS%g
2656
s%@LDFLAGS@%$LDFLAGS%g
2658
s%@exec_prefix@%$exec_prefix%g
2659
s%@prefix@%$prefix%g
2660
s%@program_transform_name@%$program_transform_name%g
2661
s%@bindir@%$bindir%g
2662
s%@sbindir@%$sbindir%g
2663
s%@libexecdir@%$libexecdir%g
2664
s%@datadir@%$datadir%g
2665
s%@sysconfdir@%$sysconfdir%g
2666
s%@sharedstatedir@%$sharedstatedir%g
2667
s%@localstatedir@%$localstatedir%g
2668
s%@libdir@%$libdir%g
2669
s%@includedir@%$includedir%g
2670
s%@oldincludedir@%$oldincludedir%g
2671
s%@infodir@%$infodir%g
2672
s%@mandir@%$mandir%g
2675
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2676
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2677
s%@INSTALL_DATA@%$INSTALL_DATA%g
2679
s%@X_CFLAGS@%$X_CFLAGS%g
2680
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2681
s%@X_LIBS@%$X_LIBS%g
2682
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2684
s%@XAD_DIR@%$XAD_DIR%g
2690
cat >> $CONFIG_STATUS <<\EOF
2692
# Split the substitutions into bite-sized pieces for seds with
2693
# small command number limits, like on Digital OSF/1 and HP-UX.
2694
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2695
ac_file=1 # Number of current file.
2696
ac_beg=1 # First line for current file.
2697
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2700
while $ac_more_lines; do
2701
if test $ac_beg -gt 1; then
2702
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2704
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2706
if test ! -s conftest.s$ac_file; then
2708
rm -f conftest.s$ac_file
2710
if test -z "$ac_sed_cmds"; then
2711
ac_sed_cmds="sed -f conftest.s$ac_file"
2713
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2715
ac_file=`expr $ac_file + 1`
2717
ac_end=`expr $ac_end + $ac_max_sed_cmds`
2720
if test -z "$ac_sed_cmds"; then
2725
cat >> $CONFIG_STATUS <<EOF
2727
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2729
cat >> $CONFIG_STATUS <<\EOF
2730
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2731
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2733
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2734
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2735
*) ac_file_in="${ac_file}.in" ;;
2738
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2740
# Remove last slash and all that follows it. Not all systems have dirname.
2741
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2742
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2743
# The file is in a subdirectory.
2744
test ! -d "$ac_dir" && mkdir "$ac_dir"
2745
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2746
# A "../" for each directory in $ac_dir_suffix.
2747
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2749
ac_dir_suffix= ac_dots=
2752
case "$ac_given_srcdir" in
2754
if test -z "$ac_dots"; then top_srcdir=.
2755
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2756
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2758
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2759
top_srcdir="$ac_dots$ac_given_srcdir" ;;
2762
case "$ac_given_INSTALL" in
2763
[/$]*) INSTALL="$ac_given_INSTALL" ;;
2764
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2767
echo creating "$ac_file"
2769
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2771
*Makefile*) ac_comsub="1i\\
2772
# $configure_input" ;;
2776
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2778
s%@configure_input@%$configure_input%g
2779
s%@srcdir@%$srcdir%g
2780
s%@top_srcdir@%$top_srcdir%g
2781
s%@INSTALL@%$INSTALL%g
2782
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2786
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2787
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2789
# ac_d sets the value in "#define NAME VALUE" lines.
2790
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2791
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2794
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2795
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2796
ac_uB='\([ ]\)%\1#\2define\3'
2799
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2800
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2801
ac_eB='$%\1#\2define\3'
2805
if test "${CONFIG_HEADERS+set}" != set; then
2807
cat >> $CONFIG_STATUS <<EOF
2808
CONFIG_HEADERS="config.h"
2810
cat >> $CONFIG_STATUS <<\EOF
2812
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2813
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2815
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2816
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2817
*) ac_file_in="${ac_file}.in" ;;
2820
echo creating $ac_file
2822
rm -f conftest.frag conftest.in conftest.out
2823
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2824
cat $ac_file_inputs > conftest.in
2828
# Transform confdefs.h into a sed script conftest.vals that substitutes
2829
# the proper values into config.h.in to produce config.h. And first:
2830
# Protect against being on the right side of a sed subst in config.status.
2831
# Protect against being in an unquoted here document in config.status.
2833
cat > conftest.hdr <<\EOF
2836
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2840
sed -n -f conftest.hdr confdefs.h > conftest.vals
2843
# This sed command replaces #undef with comments. This is necessary, for
7377
2844
# example, in the case of _POSIX_SOURCE, which is predefined and required
7378
2845
# on some systems where configure will not decide to define it.
7379
# (The regexp can be short, since the line contains either #define or #undef.)
7381
s,^[ #]*u.*,/* & */,' >>conftest.defines
7383
# Break up conftest.defines:
7386
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7387
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7388
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7390
ac_in='$ac_file_inputs'
7391
ac_out='"$tmp/out1"'
7392
ac_nxt='"$tmp/out2"'
2846
cat >> conftest.vals <<\EOF
2847
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2850
# Break up conftest.vals because some shells have a limit on
2851
# the size of here documents, and old seds have small limits too.
7396
# Write a here document:
7397
echo ' # First, check the format of the line:
7398
cat >"$tmp/defines.sed" <<CEOF
7399
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def
7400
/^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def
7402
:def' >>$CONFIG_STATUS
7403
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
2856
ac_lines=`grep -c . conftest.vals`
2857
# grep -c gives empty output for an empty file on some AIX systems.
2858
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2859
# Write a limited-size here document to conftest.frag.
2860
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2861
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7405
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7406
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7407
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7408
grep . conftest.tail >/dev/null || break
7409
rm -f conftest.defines
7410
mv conftest.tail conftest.defines
2863
sed -f conftest.frag conftest.in > conftest.out
2865
mv conftest.out conftest.in
2867
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2869
mv conftest.tail conftest.vals
7412
rm -f conftest.defines conftest.tail
7414
echo "ac_result=$ac_in" >>$CONFIG_STATUS
7415
cat >>$CONFIG_STATUS <<\_ACEOF
7416
if test x"$ac_file" != x-; then
7417
echo "/* $configure_input */" >"$tmp/config.h"
7418
cat "$ac_result" >>"$tmp/config.h"
7419
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7420
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7421
echo "$as_me: $ac_file is unchanged" >&6;}
7424
mv "$tmp/config.h" $ac_file
2873
cat >> $CONFIG_STATUS <<\EOF
2874
rm -f conftest.frag conftest.h
2875
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2876
cat conftest.in >> conftest.h
2878
if cmp -s $ac_file conftest.h 2>/dev/null; then
2879
echo "$ac_file is unchanged"
2882
# Remove last slash and all that follows it. Not all systems have dirname.
2883
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2884
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2885
# The file is in a subdirectory.
2886
test ! -d "$ac_dir" && mkdir "$ac_dir"
7427
echo "/* $configure_input */"
2889
mv conftest.h $ac_file
7439
{ (exit 0); exit 0; }
2894
cat >> $CONFIG_STATUS <<EOF
2897
cat >> $CONFIG_STATUS <<\EOF
7441
2901
chmod +x $CONFIG_STATUS
7442
ac_clean_files=$ac_clean_files_save
7445
# configure is writing to config.log, and then calls config.status.
7446
# config.status does its own redirection, appending to config.log.
7447
# Unfortunately, on DOS this fails, as config.log is still kept open
7448
# by configure, so config.status won't be able to write to it; its
7449
# output is simply discarded. So we exec the FD to /dev/null,
7450
# effectively closing config.log, so it can be properly (re)opened and
7451
# appended to by config.status. When coming back to configure, we
7452
# need to make the FD available again.
7453
if test "$no_create" != yes; then
7455
ac_config_status_args=
7456
test "$silent" = yes &&
7457
ac_config_status_args="$ac_config_status_args --quiet"
7459
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7461
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
7462
# would make configure fail if this is the last instruction.
7463
$ac_cs_success || { (exit 1); exit 1; }
2902
rm -fr confdefs* $ac_clean_files
2903
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1