2
@%:@ From configure.in Revision.
3
@%:@ Guess values for system-dependent variables and create Makefiles.
4
@%:@ Generated by GNU Autoconf 2.69.
7
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10
@%:@ This configure script is free software; the Free Software Foundation
11
@%:@ gives unlimited permission to copy, distribute and modify it.
12
## -------------------- ##
13
## M4sh Initialization. ##
14
## -------------------- ##
16
# Be more Bourne compatible
17
DUALCASE=1; export DUALCASE # for MKS sh
18
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22
# is contrary to our usage. Disable this feature.
23
alias -g '${1+"$@"}'='"$@"'
26
case `(set -o) 2>/dev/null` in @%:@(
38
# Printing a long string crashes Solaris 7 /usr/bin/printf.
39
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42
# Prefer a ksh shell builtin over an external printf program on Solaris,
43
# but without wasting forks for bash or zsh.
44
if test -z "$BASH_VERSION$ZSH_VERSION" \
45
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
as_echo_n='print -rn --'
48
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54
as_echo_n='/usr/ucb/echo -n'
56
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61
expr "X$arg" : "X\\(.*\\)$as_nl";
62
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67
as_echo_n='sh -c $as_echo_n_body as_echo'
70
as_echo='sh -c $as_echo_body as_echo'
73
# The user is always right.
74
if test "${PATH_SEPARATOR+set}" != set; then
76
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84
# We need space, tab and new line, in precisely that order. Quoting is
85
# there to prevent editors from complaining about space-tab.
86
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
87
# splitting by setting IFS to empty value.)
90
# Find who we are. Look in the path if we contain no directory separator.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
# Use a proper internal environment variable to ensure we don't fall
137
# into an infinite loop, continuously re-executing ourselves.
138
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139
_as_can_reexec=no; export _as_can_reexec;
140
# We cannot yet assume a decent shell, so we have to provide a
141
# neutralization value for shells without unset; and this also
142
# works around shells that cannot unset nonexistent variables.
143
# Preserve -v and -x to the replacement shell.
146
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148
*v*x* | *x*v* ) as_opts=-vx ;;
153
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154
# Admittedly, this is quite paranoid, since all the known shells bail
155
# out after a failed `exec'.
156
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159
# We don't want this to propagate to other subprocesses.
160
{ _as_can_reexec=; unset _as_can_reexec;}
161
if test "x$CONFIG_SHELL" = x; then
162
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166
# is contrary to our usage. Disable this feature.
167
alias -g '\${1+\"\$@\"}'='\"\$@\"'
170
case \`(set -o) 2>/dev/null\` in @%:@(
172
set -o posix ;; @%:@(
178
as_required="as_fn_return () { (exit \$1); }
179
as_fn_success () { as_fn_return 0; }
180
as_fn_failure () { as_fn_return 1; }
181
as_fn_ret_success () { return 0; }
182
as_fn_ret_failure () { return 1; }
185
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
exitcode=1; echo positional parameters were not saved.
194
test x\$exitcode = x0 || exit 1
196
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200
test \$(( 1 + 1 )) = 2 || exit 1"
201
if (eval "$as_required") 2>/dev/null; then :
206
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214
test -z "$as_dir" && as_dir=.
216
case $as_dir in @%:@(
218
for as_base in sh bash ksh sh5; do
219
# Try only shells that exist, to save several forks.
220
as_shell=$as_dir/$as_base
221
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223
CONFIG_SHELL=$as_shell as_have_required=yes
224
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234
CONFIG_SHELL=$SHELL as_have_required=yes
239
if test "x$CONFIG_SHELL" != x; then :
241
# We cannot yet assume a decent shell, so we have to provide a
242
# neutralization value for shells without unset; and this also
243
# works around shells that cannot unset nonexistent variables.
244
# Preserve -v and -x to the replacement shell.
247
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249
*v*x* | *x*v* ) as_opts=-vx ;;
254
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255
# Admittedly, this is quite paranoid, since all the known shells bail
256
# out after a failed `exec'.
257
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
261
if test x$as_have_required = xno; then :
262
$as_echo "$0: This script requires a shell more modern than all"
263
$as_echo "$0: the shells that I found on your system."
264
if test x${ZSH_VERSION+set} = xset ; then
265
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
268
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
269
$0: including any error possibly output before this
270
$0: message. Then install a modern shell, or manually run
271
$0: the script under such a shell if you do have one."
277
SHELL=${CONFIG_SHELL-/bin/sh}
279
# Unset more variables known to interfere with behavior of common tools.
280
CLICOLOR_FORCE= GREP_OPTIONS=
281
unset CLICOLOR_FORCE GREP_OPTIONS
283
## --------------------- ##
284
## M4sh Shell Functions. ##
285
## --------------------- ##
288
@%:@ Portably unset VAR.
291
{ eval $1=; unset $1;}
295
@%:@ as_fn_set_status STATUS
296
@%:@ -----------------------
297
@%:@ Set @S|@? to STATUS, without forking.
301
} @%:@ as_fn_set_status
303
@%:@ as_fn_exit STATUS
304
@%:@ -----------------
305
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
320
-*) as_dir=./$as_dir;;
322
test -d "$as_dir" || eval $as_mkdir_p || {
326
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329
as_dirs="'$as_qdir' $as_dirs"
330
as_dir=`$as_dirname -- "$as_dir" ||
331
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332
X"$as_dir" : 'X\(//\)[^/]' \| \
333
X"$as_dir" : 'X\(//\)$' \| \
334
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335
$as_echo X"$as_dir" |
336
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353
test -d "$as_dir" && break
355
test -z "$as_dirs" || eval "mkdir $as_dirs"
356
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361
@%:@ as_fn_executable_p FILE
362
@%:@ -----------------------
363
@%:@ Test if FILE is an executable regular file.
364
as_fn_executable_p ()
366
test -f "$1" && test -x "$1"
367
} @%:@ as_fn_executable_p
368
@%:@ as_fn_append VAR VALUE
369
@%:@ ----------------------
370
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
371
@%:@ advantage of any shell optimizations that allow amortized linear growth over
372
@%:@ repeated appends, instead of the typical quadratic growth present in naive
373
@%:@ implementations.
374
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
375
eval 'as_fn_append ()
386
@%:@ as_fn_arith ARG...
387
@%:@ ------------------
388
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
389
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
390
@%:@ must be portable across @S|@(()) and expr.
391
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399
as_val=`expr "$@" || test $? -eq 1`
404
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
405
@%:@ ----------------------------------------
406
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408
@%:@ script with STATUS, using 1 if that was 0.
411
as_status=$1; test $as_status -eq 0 && as_status=1
413
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
414
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416
$as_echo "$as_me: error: $2" >&2
417
as_fn_exit $as_status
420
if expr a : '\(a\)' >/dev/null 2>&1 &&
421
test "X`expr 00001 : '.*\(...\)'`" = X001; then
427
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
433
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
439
as_me=`$as_basename -- "$0" ||
440
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441
X"$0" : 'X\(//\)$' \| \
442
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444
sed '/^.*\/\([^/][^/]*\)\/*$/{
458
# Avoid depending upon Character Ranges.
459
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
460
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
462
as_cr_digits='0123456789'
463
as_cr_alnum=$as_cr_Letters$as_cr_digits
466
as_lineno_1=$LINENO as_lineno_1a=$LINENO
467
as_lineno_2=$LINENO as_lineno_2a=$LINENO
468
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
470
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486
chmod +x "$as_me.lineno" ||
487
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490
# already done that, so ensure we don't try to do so again and fall
491
# in an infinite loop. This has already happened in practice.
492
_as_can_reexec=no; export _as_can_reexec
493
# Don't try to exec as it changes $[0], causing all sort of problems
494
# (the dirname of $[0] is not the place where we might find the
495
# original and so on. Autoconf is especially sensitive to this).
497
# Exit status is that of the last command.
501
ECHO_C= ECHO_N= ECHO_T=
502
case `echo -n x` in @%:@(((((
504
case `echo 'xy\c'` in
505
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
507
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
514
rm -f conf$$ conf$$.exe conf$$.file
515
if test -d conf$$.dir; then
516
rm -f conf$$.dir/conf$$.file
519
mkdir conf$$.dir 2>/dev/null
521
if (echo >conf$$.file) 2>/dev/null; then
522
if ln -s conf$$.file conf$$ 2>/dev/null; then
524
# ... but there are two gotchas:
525
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527
# In both cases, we have to default to `cp -pR'.
528
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530
elif ln conf$$.file conf$$ 2>/dev/null; then
538
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539
rmdir conf$$.dir 2>/dev/null
541
if mkdir -p . 2>/dev/null; then
542
as_mkdir_p='mkdir -p "$as_dir"'
544
test -d ./-p && rmdir ./-p
549
as_executable_p=as_fn_executable_p
551
# Sed expression to map a string onto a valid CPP name.
552
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
# Sed expression to map a string onto a valid variable name.
555
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
test -n "$DJDIR" || exec 7<&0 </dev/null
562
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563
# so uname gets run too.
564
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569
ac_default_prefix=/usr/local
571
ac_config_libobj_dir=.
578
# Identity of this package.
586
ac_unique_file="screen.c"
587
# Factoring default headers for most tests.
588
ac_includes_default="\
590
#ifdef HAVE_SYS_TYPES_H
591
# include <sys/types.h>
593
#ifdef HAVE_SYS_STAT_H
594
# include <sys/stat.h>
600
# ifdef HAVE_STDLIB_H
605
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610
#ifdef HAVE_STRINGS_H
611
# include <strings.h>
613
#ifdef HAVE_INTTYPES_H
614
# include <inttypes.h>
623
ac_subst_vars='LTLIBOBJS
671
program_transform_name
684
enable_option_checking
696
ac_precious_vars='build_alias
707
# Initialize some variables set by options.
709
ac_init_version=false
710
ac_unrecognized_opts=
712
# The variables have the same names as the options, with
713
# dashes changed to underlines.
721
program_transform_name=s,x,x,
729
# Installation directory options.
730
# These are left unexpanded so users can "make install exec_prefix=/foo"
731
# and all the variables that are supposed to be based on exec_prefix
732
# by default will actually change.
733
# Use braces instead of parens because sh, perl, etc. also accept them.
734
# (The list follows the same order as the GNU Coding Standards.)
735
bindir='${exec_prefix}/bin'
736
sbindir='${exec_prefix}/sbin'
737
libexecdir='${exec_prefix}/libexec'
738
datarootdir='${prefix}/share'
739
datadir='${datarootdir}'
740
sysconfdir='${prefix}/etc'
741
sharedstatedir='${prefix}/com'
742
localstatedir='${prefix}/var'
743
includedir='${prefix}/include'
744
oldincludedir='/usr/include'
745
docdir='${datarootdir}/doc/${PACKAGE}'
746
infodir='${datarootdir}/info'
751
libdir='${exec_prefix}/lib'
752
localedir='${datarootdir}/locale'
753
mandir='${datarootdir}/man'
759
# If the previous option needs an argument, assign it.
760
if test -n "$ac_prev"; then
761
eval $ac_prev=\$ac_option
767
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772
# Accept the important Cygnus configure options, so we can diagnose typos.
774
case $ac_dashdash$ac_option in
778
-bindir | --bindir | --bindi | --bind | --bin | --bi)
780
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
783
-build | --build | --buil | --bui | --bu)
784
ac_prev=build_alias ;;
785
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
786
build_alias=$ac_optarg ;;
788
-cache-file | --cache-file | --cache-fil | --cache-fi \
789
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790
ac_prev=cache_file ;;
791
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793
cache_file=$ac_optarg ;;
796
cache_file=config.cache ;;
798
-datadir | --datadir | --datadi | --datad)
800
-datadir=* | --datadir=* | --datadi=* | --datad=*)
801
datadir=$ac_optarg ;;
803
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
804
| --dataroo | --dataro | --datar)
805
ac_prev=datarootdir ;;
806
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
807
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
808
datarootdir=$ac_optarg ;;
810
-disable-* | --disable-*)
811
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812
# Reject names that are not valid shell variable names.
813
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
814
as_fn_error $? "invalid feature name: $ac_useropt"
815
ac_useropt_orig=$ac_useropt
816
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817
case $ac_user_opts in
821
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
822
ac_unrecognized_sep=', ';;
824
eval enable_$ac_useropt=no ;;
826
-docdir | --docdir | --docdi | --doc | --do)
828
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836
-enable-* | --enable-*)
837
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838
# Reject names that are not valid shell variable names.
839
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840
as_fn_error $? "invalid feature name: $ac_useropt"
841
ac_useropt_orig=$ac_useropt
842
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843
case $ac_user_opts in
847
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
848
ac_unrecognized_sep=', ';;
850
eval enable_$ac_useropt=\$ac_optarg ;;
852
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854
| --exec | --exe | --ex)
855
ac_prev=exec_prefix ;;
856
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858
| --exec=* | --exe=* | --ex=*)
859
exec_prefix=$ac_optarg ;;
861
-gas | --gas | --ga | --g)
862
# Obsolete; use --with-gas.
865
-help | --help | --hel | --he | -h)
867
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
868
ac_init_help=recursive ;;
869
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
870
ac_init_help=short ;;
872
-host | --host | --hos | --ho)
873
ac_prev=host_alias ;;
874
-host=* | --host=* | --hos=* | --ho=*)
875
host_alias=$ac_optarg ;;
877
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881
htmldir=$ac_optarg ;;
883
-includedir | --includedir | --includedi | --included | --include \
884
| --includ | --inclu | --incl | --inc)
885
ac_prev=includedir ;;
886
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887
| --includ=* | --inclu=* | --incl=* | --inc=*)
888
includedir=$ac_optarg ;;
890
-infodir | --infodir | --infodi | --infod | --info | --inf)
892
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893
infodir=$ac_optarg ;;
895
-libdir | --libdir | --libdi | --libd)
897
-libdir=* | --libdir=* | --libdi=* | --libd=*)
900
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901
| --libexe | --libex | --libe)
902
ac_prev=libexecdir ;;
903
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904
| --libexe=* | --libex=* | --libe=*)
905
libexecdir=$ac_optarg ;;
907
-localedir | --localedir | --localedi | --localed | --locale)
909
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910
localedir=$ac_optarg ;;
912
-localstatedir | --localstatedir | --localstatedi | --localstated \
913
| --localstate | --localstat | --localsta | --localst | --locals)
914
ac_prev=localstatedir ;;
915
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917
localstatedir=$ac_optarg ;;
919
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925
# Obsolete; use --without-fp.
928
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
929
| --no-cr | --no-c | -n)
932
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
933
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938
| --oldin | --oldi | --old | --ol | --o)
939
ac_prev=oldincludedir ;;
940
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943
oldincludedir=$ac_optarg ;;
945
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950
-program-prefix | --program-prefix | --program-prefi | --program-pref \
951
| --program-pre | --program-pr | --program-p)
952
ac_prev=program_prefix ;;
953
-program-prefix=* | --program-prefix=* | --program-prefi=* \
954
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955
program_prefix=$ac_optarg ;;
957
-program-suffix | --program-suffix | --program-suffi | --program-suff \
958
| --program-suf | --program-su | --program-s)
959
ac_prev=program_suffix ;;
960
-program-suffix=* | --program-suffix=* | --program-suffi=* \
961
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962
program_suffix=$ac_optarg ;;
964
-program-transform-name | --program-transform-name \
965
| --program-transform-nam | --program-transform-na \
966
| --program-transform-n | --program-transform- \
967
| --program-transform | --program-transfor \
968
| --program-transfo | --program-transf \
969
| --program-trans | --program-tran \
970
| --progr-tra | --program-tr | --program-t)
971
ac_prev=program_transform_name ;;
972
-program-transform-name=* | --program-transform-name=* \
973
| --program-transform-nam=* | --program-transform-na=* \
974
| --program-transform-n=* | --program-transform-=* \
975
| --program-transform=* | --program-transfor=* \
976
| --program-transfo=* | --program-transf=* \
977
| --program-trans=* | --program-tran=* \
978
| --progr-tra=* | --program-tr=* | --program-t=*)
979
program_transform_name=$ac_optarg ;;
981
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986
-psdir | --psdir | --psdi | --psd | --ps)
988
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
992
| -silent | --silent | --silen | --sile | --sil)
995
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999
sbindir=$ac_optarg ;;
1001
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1002
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003
| --sharedst | --shareds | --shared | --share | --shar \
1005
ac_prev=sharedstatedir ;;
1006
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010
sharedstatedir=$ac_optarg ;;
1012
-site | --site | --sit)
1014
-site=* | --site=* | --sit=*)
1017
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020
srcdir=$ac_optarg ;;
1022
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023
| --syscon | --sysco | --sysc | --sys | --sy)
1024
ac_prev=sysconfdir ;;
1025
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027
sysconfdir=$ac_optarg ;;
1029
-target | --target | --targe | --targ | --tar | --ta | --t)
1030
ac_prev=target_alias ;;
1031
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032
target_alias=$ac_optarg ;;
1034
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1037
-version | --version | --versio | --versi | --vers | -V)
1038
ac_init_version=: ;;
1041
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042
# Reject names that are not valid shell variable names.
1043
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044
as_fn_error $? "invalid package name: $ac_useropt"
1045
ac_useropt_orig=$ac_useropt
1046
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047
case $ac_user_opts in
1051
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1052
ac_unrecognized_sep=', ';;
1054
eval with_$ac_useropt=\$ac_optarg ;;
1056
-without-* | --without-*)
1057
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058
# Reject names that are not valid shell variable names.
1059
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060
as_fn_error $? "invalid package name: $ac_useropt"
1061
ac_useropt_orig=$ac_useropt
1062
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063
case $ac_user_opts in
1067
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1068
ac_unrecognized_sep=', ';;
1070
eval with_$ac_useropt=no ;;
1073
# Obsolete; use --with-x.
1076
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077
| --x-incl | --x-inc | --x-in | --x-i)
1078
ac_prev=x_includes ;;
1079
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081
x_includes=$ac_optarg ;;
1083
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1084
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085
ac_prev=x_libraries ;;
1086
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088
x_libraries=$ac_optarg ;;
1090
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1091
Try \`$0 --help' for more information"
1095
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096
# Reject names that are not valid shell variable names.
1097
case $ac_envvar in #(
1098
'' | [0-9]* | *[!_$as_cr_alnum]* )
1099
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1101
eval $ac_envvar=\$ac_optarg
1102
export $ac_envvar ;;
1105
# FIXME: should be removed in autoconf 3.0.
1106
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1115
if test -n "$ac_prev"; then
1116
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117
as_fn_error $? "missing argument to $ac_option"
1120
if test -n "$ac_unrecognized_opts"; then
1121
case $enable_option_checking in
1123
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1124
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1128
# Check all directory arguments for consistency.
1129
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130
datadir sysconfdir sharedstatedir localstatedir includedir \
1131
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132
libdir localedir mandir
1134
eval ac_val=\$$ac_var
1135
# Remove trailing slashes.
1138
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1139
eval $ac_var=\$ac_val;;
1141
# Be sure to have absolute directory names.
1143
[\\/$]* | ?:[\\/]* ) continue;;
1144
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1146
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1149
# There might be people who depend on the old broken behavior: `$host'
1150
# used to hold the argument of --host etc.
1151
# FIXME: To remove some day.
1154
target=$target_alias
1156
# FIXME: To remove some day.
1157
if test "x$host_alias" != x; then
1158
if test "x$build_alias" = x; then
1159
cross_compiling=maybe
1160
elif test "x$build_alias" != "x$host_alias"; then
1166
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168
test "$silent" = yes && exec 6>/dev/null
1171
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172
ac_ls_di=`ls -di .` &&
1173
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174
as_fn_error $? "working directory cannot be determined"
1175
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176
as_fn_error $? "pwd does not report name of working directory"
1179
# Find the source files, if location was not specified.
1180
if test -z "$srcdir"; then
1181
ac_srcdir_defaulted=yes
1182
# Try the directory containing this script, then the parent directory.
1183
ac_confdir=`$as_dirname -- "$as_myself" ||
1184
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185
X"$as_myself" : 'X\(//\)[^/]' \| \
1186
X"$as_myself" : 'X\(//\)$' \| \
1187
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1188
$as_echo X"$as_myself" |
1189
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207
if test ! -r "$srcdir/$ac_unique_file"; then
1211
ac_srcdir_defaulted=no
1213
if test ! -r "$srcdir/$ac_unique_file"; then
1214
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1217
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1221
# When building in place, set srcdir=.
1222
if test "$ac_abs_confdir" = "$ac_pwd"; then
1225
# Remove unnecessary trailing slashes from srcdir.
1226
# Double slashes in file names in object file debugging info
1227
# mess up M-x gdb in Emacs.
1229
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1231
for ac_var in $ac_precious_vars; do
1232
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233
eval ac_env_${ac_var}_value=\$${ac_var}
1234
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239
# Report the --help message.
1241
if test "$ac_init_help" = "long"; then
1242
# Omit some internal or obsolete options to make the list less imposing.
1243
# This message is too long to be a string in the A/UX 3.1 sh.
1245
\`configure' configures this package to adapt to many kinds of systems.
1247
Usage: $0 [OPTION]... [VAR=VALUE]...
1249
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250
VAR=VALUE. See below for descriptions of some of the useful variables.
1252
Defaults for the options are specified in brackets.
1255
-h, --help display this help and exit
1256
--help=short display options specific to this package
1257
--help=recursive display the short help of all the included packages
1258
-V, --version display version information and exit
1259
-q, --quiet, --silent do not print \`checking ...' messages
1260
--cache-file=FILE cache test results in FILE [disabled]
1261
-C, --config-cache alias for \`--cache-file=config.cache'
1262
-n, --no-create do not create output files
1263
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1265
Installation directories:
1266
--prefix=PREFIX install architecture-independent files in PREFIX
1267
@<:@@S|@ac_default_prefix@:>@
1268
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271
By default, \`make install' will install all the files in
1272
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274
for instance \`--prefix=\$HOME'.
1276
For better control, use the options below.
1278
Fine tuning of the installation directories:
1279
--bindir=DIR user executables [EPREFIX/bin]
1280
--sbindir=DIR system admin executables [EPREFIX/sbin]
1281
--libexecdir=DIR program executables [EPREFIX/libexec]
1282
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285
--libdir=DIR object code libraries [EPREFIX/lib]
1286
--includedir=DIR C header files [PREFIX/include]
1287
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1288
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290
--infodir=DIR info documentation [DATAROOTDIR/info]
1291
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292
--mandir=DIR man documentation [DATAROOTDIR/man]
1293
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1294
--htmldir=DIR html documentation [DOCDIR]
1295
--dvidir=DIR dvi documentation [DOCDIR]
1296
--pdfdir=DIR pdf documentation [DOCDIR]
1297
--psdir=DIR ps documentation [DOCDIR]
1304
if test -n "$ac_init_help"; then
1309
--disable-option-checking ignore unrecognized --enable/--with options
1310
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1311
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1312
--disable-socket-dir disable system wide socket-dir and use ~/.screen instead
1313
--enable-pam enable PAM support
1314
--enable-use-locale use localized month/day names
1315
--enable-telnet enable builtin telnet
1316
--enable-colors256 enable support for 256 colors
1317
--enable-rxvt_osc enable support for rxvt OSC codes
1320
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1321
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1322
--with-socket-dir=path where to put the per-user sockets
1323
--with-pty-mode=mode default mode for ptys
1324
--with-pty-group=group default group for ptys
1325
--with-sys-screenrc=path to the global screenrc file
1327
Some influential environment variables:
1328
CC C compiler command
1329
CFLAGS C compiler flags
1330
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1331
nonstandard directory <lib dir>
1332
LIBS libraries to pass to the linker, e.g. -l<library>
1333
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1334
you have headers in a nonstandard directory <include dir>
1337
Use these variables to override the choices made by `configure' or to help
1338
it to find libraries and programs with nonstandard names/locations.
1340
Report bugs to the package provider.
1345
if test "$ac_init_help" = "recursive"; then
1346
# If there are subdirs, report their specific --help.
1347
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348
test -d "$ac_dir" ||
1349
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1354
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1357
# A ".." for each directory in $ac_dir_suffix.
1358
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1359
case $ac_top_builddir_sub in
1360
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1364
ac_abs_top_builddir=$ac_pwd
1365
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366
# for backward compatibility:
1367
ac_top_builddir=$ac_top_build_prefix
1370
.) # We are building in place.
1372
ac_top_srcdir=$ac_top_builddir_sub
1373
ac_abs_top_srcdir=$ac_pwd ;;
1374
[\\/]* | ?:[\\/]* ) # Absolute name.
1375
ac_srcdir=$srcdir$ac_dir_suffix;
1376
ac_top_srcdir=$srcdir
1377
ac_abs_top_srcdir=$srcdir ;;
1379
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380
ac_top_srcdir=$ac_top_build_prefix$srcdir
1381
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385
cd "$ac_dir" || { ac_status=$?; continue; }
1386
# Check for guested configure.
1387
if test -f "$ac_srcdir/configure.gnu"; then
1389
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390
elif test -f "$ac_srcdir/configure"; then
1392
$SHELL "$ac_srcdir/configure" --help=recursive
1394
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396
cd "$ac_pwd" || { ac_status=$?; break; }
1400
test -n "$ac_init_help" && exit $ac_status
1401
if $ac_init_version; then
1404
generated by GNU Autoconf 2.69
1406
Copyright (C) 2012 Free Software Foundation, Inc.
1407
This configure script is free software; the Free Software Foundation
1408
gives unlimited permission to copy, distribute and modify it.
1413
## ------------------------ ##
1414
## Autoconf initialization. ##
1415
## ------------------------ ##
1417
@%:@ ac_fn_c_try_compile LINENO
1418
@%:@ --------------------------
1419
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1420
ac_fn_c_try_compile ()
1422
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1423
rm -f conftest.$ac_objext
1424
if { { ac_try="$ac_compile"
1426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1427
*) ac_try_echo=$ac_try;;
1429
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1430
$as_echo "$ac_try_echo"; } >&5
1431
(eval "$ac_compile") 2>conftest.err
1433
if test -s conftest.err; then
1434
grep -v '^ *+' conftest.err >conftest.er1
1435
cat conftest.er1 >&5
1436
mv -f conftest.er1 conftest.err
1438
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1439
test $ac_status = 0; } && {
1440
test -z "$ac_c_werror_flag" ||
1441
test ! -s conftest.err
1442
} && test -s conftest.$ac_objext; then :
1445
$as_echo "$as_me: failed program was:" >&5
1446
sed 's/^/| /' conftest.$ac_ext >&5
1450
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1451
as_fn_set_status $ac_retval
1453
} @%:@ ac_fn_c_try_compile
1455
@%:@ ac_fn_c_try_cpp LINENO
1456
@%:@ ----------------------
1457
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1460
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461
if { { ac_try="$ac_cpp conftest.$ac_ext"
1463
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464
*) ac_try_echo=$ac_try;;
1466
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467
$as_echo "$ac_try_echo"; } >&5
1468
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1470
if test -s conftest.err; then
1471
grep -v '^ *+' conftest.err >conftest.er1
1472
cat conftest.er1 >&5
1473
mv -f conftest.er1 conftest.err
1475
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476
test $ac_status = 0; } > conftest.i && {
1477
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1478
test ! -s conftest.err
1482
$as_echo "$as_me: failed program was:" >&5
1483
sed 's/^/| /' conftest.$ac_ext >&5
1487
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1488
as_fn_set_status $ac_retval
1490
} @%:@ ac_fn_c_try_cpp
1492
@%:@ ac_fn_c_try_link LINENO
1493
@%:@ -----------------------
1494
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1497
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498
rm -f conftest.$ac_objext conftest$ac_exeext
1499
if { { ac_try="$ac_link"
1501
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502
*) ac_try_echo=$ac_try;;
1504
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505
$as_echo "$ac_try_echo"; } >&5
1506
(eval "$ac_link") 2>conftest.err
1508
if test -s conftest.err; then
1509
grep -v '^ *+' conftest.err >conftest.er1
1510
cat conftest.er1 >&5
1511
mv -f conftest.er1 conftest.err
1513
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514
test $ac_status = 0; } && {
1515
test -z "$ac_c_werror_flag" ||
1516
test ! -s conftest.err
1517
} && test -s conftest$ac_exeext && {
1518
test "$cross_compiling" = yes ||
1519
test -x conftest$ac_exeext
1523
$as_echo "$as_me: failed program was:" >&5
1524
sed 's/^/| /' conftest.$ac_ext >&5
1528
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1529
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1530
# interfere with the next link command; also delete a directory that is
1531
# left behind by Apple's compiler. We do this before executing the actions.
1532
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1533
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534
as_fn_set_status $ac_retval
1536
} @%:@ ac_fn_c_try_link
1538
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1539
@%:@ -------------------------------------------------------
1540
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1541
@%:@ the include files in INCLUDES and setting the cache variable VAR
1543
ac_fn_c_check_header_mongrel ()
1545
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546
if eval \${$3+:} false; then :
1547
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1548
$as_echo_n "checking for $2... " >&6; }
1549
if eval \${$3+:} false; then :
1550
$as_echo_n "(cached) " >&6
1553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1554
$as_echo "$ac_res" >&6; }
1556
# Is the header compilable?
1557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1558
$as_echo_n "checking $2 usability... " >&6; }
1559
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1560
/* end confdefs.h. */
1564
if ac_fn_c_try_compile "$LINENO"; then :
1565
ac_header_compiler=yes
1567
ac_header_compiler=no
1569
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1571
$as_echo "$ac_header_compiler" >&6; }
1573
# Is the header present?
1574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1575
$as_echo_n "checking $2 presence... " >&6; }
1576
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577
/* end confdefs.h. */
1580
if ac_fn_c_try_cpp "$LINENO"; then :
1581
ac_header_preproc=yes
1583
ac_header_preproc=no
1585
rm -f conftest.err conftest.i conftest.$ac_ext
1586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1587
$as_echo "$ac_header_preproc" >&6; }
1589
# So? What about this header?
1590
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1592
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1593
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1594
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1595
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1598
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1599
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1600
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1601
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1602
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1603
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1604
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1605
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1606
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1607
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611
$as_echo_n "checking for $2... " >&6; }
1612
if eval \${$3+:} false; then :
1613
$as_echo_n "(cached) " >&6
1615
eval "$3=\$ac_header_compiler"
1618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619
$as_echo "$ac_res" >&6; }
1621
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623
} @%:@ ac_fn_c_check_header_mongrel
1625
@%:@ ac_fn_c_try_run LINENO
1626
@%:@ ----------------------
1627
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1628
@%:@ that executables *can* be run.
1631
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632
if { { ac_try="$ac_link"
1634
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635
*) ac_try_echo=$ac_try;;
1637
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638
$as_echo "$ac_try_echo"; } >&5
1639
(eval "$ac_link") 2>&5
1641
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1643
{ { case "(($ac_try" in
1644
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645
*) ac_try_echo=$ac_try;;
1647
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648
$as_echo "$ac_try_echo"; } >&5
1649
(eval "$ac_try") 2>&5
1651
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652
test $ac_status = 0; }; }; then :
1655
$as_echo "$as_me: program exited with status $ac_status" >&5
1656
$as_echo "$as_me: failed program was:" >&5
1657
sed 's/^/| /' conftest.$ac_ext >&5
1659
ac_retval=$ac_status
1661
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
as_fn_set_status $ac_retval
1665
} @%:@ ac_fn_c_try_run
1667
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668
@%:@ -------------------------------------------------------
1669
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1670
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1671
ac_fn_c_check_header_compile ()
1673
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675
$as_echo_n "checking for $2... " >&6; }
1676
if eval \${$3+:} false; then :
1677
$as_echo_n "(cached) " >&6
1679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680
/* end confdefs.h. */
1684
if ac_fn_c_try_compile "$LINENO"; then :
1689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693
$as_echo "$ac_res" >&6; }
1694
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
} @%:@ ac_fn_c_check_header_compile
1698
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1699
@%:@ ----------------------------------
1700
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1701
ac_fn_c_check_func ()
1703
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705
$as_echo_n "checking for $2... " >&6; }
1706
if eval \${$3+:} false; then :
1707
$as_echo_n "(cached) " >&6
1709
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710
/* end confdefs.h. */
1711
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1712
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1713
#define $2 innocuous_$2
1715
/* System header to define __stub macros and hopefully few prototypes,
1716
which can conflict with char $2 (); below.
1717
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1718
<limits.h> exists even on freestanding compilers. */
1721
# include <limits.h>
1723
# include <assert.h>
1728
/* Override any GCC internal prototype to avoid an error.
1729
Use char because int might match the return type of a GCC
1730
builtin and then its argument prototype would still apply. */
1735
/* The GNU C library defines this for functions which it implements
1736
to always fail with ENOSYS. Some functions are actually named
1737
something starting with __ and the normal name is an alias. */
1738
#if defined __stub_$2 || defined __stub___$2
1750
if ac_fn_c_try_link "$LINENO"; then :
1755
rm -f core conftest.err conftest.$ac_objext \
1756
conftest$ac_exeext conftest.$ac_ext
1759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760
$as_echo "$ac_res" >&6; }
1761
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
} @%:@ ac_fn_c_check_func
1764
cat >config.log <<_ACEOF
1765
This file contains any messages produced by compilers while
1766
running configure, to aid debugging if configure makes a mistake.
1768
It was created by $as_me, which was
1769
generated by GNU Autoconf 2.69. Invocation command line was
1781
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1787
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1790
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1791
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1792
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1793
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1794
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1795
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1796
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804
test -z "$as_dir" && as_dir=.
1805
$as_echo "PATH: $as_dir"
1821
# Keep a trace of the command line.
1822
# Strip out --no-create and --no-recursion so they do not pile up.
1823
# Strip out --silent because we don't want to record it for future runs.
1824
# Also quote any args containing shell meta-characters.
1825
# Make two passes to allow for proper duplicate-argument suppression.
1829
ac_must_keep_next=false
1835
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1836
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1837
| -silent | --silent | --silen | --sile | --sil)
1840
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1843
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1845
as_fn_append ac_configure_args1 " '$ac_arg'"
1846
if test $ac_must_keep_next = true; then
1847
ac_must_keep_next=false # Got value, back to normal.
1850
*=* | --config-cache | -C | -disable-* | --disable-* \
1851
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1852
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1853
| -with-* | --with-* | -without-* | --without-* | --x)
1854
case "$ac_configure_args0 " in
1855
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1858
-* ) ac_must_keep_next=true ;;
1861
as_fn_append ac_configure_args " '$ac_arg'"
1866
{ ac_configure_args0=; unset ac_configure_args0;}
1867
{ ac_configure_args1=; unset ac_configure_args1;}
1869
# When interrupted or exit'd, cleanup temporary files, and complete
1870
# config.log. We remove comments because anyway the quotes in there
1871
# would cause problems or look ugly.
1872
# WARNING: Use '\'' to represent an apostrophe within the trap.
1873
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1874
trap 'exit_status=$?
1875
# Save into config.log some information that might help in debugging.
1879
$as_echo "## ---------------- ##
1880
## Cache variables. ##
1881
## ---------------- ##"
1883
# The following way of writing the cache mishandles newlines in values,
1885
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1886
eval ac_val=\$$ac_var
1890
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1891
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1894
_ | IFS | as_nl) ;; #(
1895
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1896
*) { eval $ac_var=; unset $ac_var;} ;;
1901
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1902
*${as_nl}ac_space=\ *)
1904
"s/'\''/'\''\\\\'\'''\''/g;
1905
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1908
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1915
$as_echo "## ----------------- ##
1916
## Output variables. ##
1917
## ----------------- ##"
1919
for ac_var in $ac_subst_vars
1921
eval ac_val=\$$ac_var
1923
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1925
$as_echo "$ac_var='\''$ac_val'\''"
1929
if test -n "$ac_subst_files"; then
1930
$as_echo "## ------------------- ##
1931
## File substitutions. ##
1932
## ------------------- ##"
1934
for ac_var in $ac_subst_files
1936
eval ac_val=\$$ac_var
1938
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1940
$as_echo "$ac_var='\''$ac_val'\''"
1945
if test -s confdefs.h; then
1946
$as_echo "## ----------- ##
1953
test "$ac_signal" != 0 &&
1954
$as_echo "$as_me: caught signal $ac_signal"
1955
$as_echo "$as_me: exit $exit_status"
1957
rm -f core *.core core.conftest.* &&
1958
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1961
for ac_signal in 1 2 13 15; do
1962
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1966
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1967
rm -f -r conftest* confdefs.h
1969
$as_echo "/* confdefs.h */" > confdefs.h
1971
# Predefined preprocessor variables.
1973
cat >>confdefs.h <<_ACEOF
1974
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1977
cat >>confdefs.h <<_ACEOF
1978
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1981
cat >>confdefs.h <<_ACEOF
1982
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1985
cat >>confdefs.h <<_ACEOF
1986
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1989
cat >>confdefs.h <<_ACEOF
1990
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1993
cat >>confdefs.h <<_ACEOF
1994
@%:@define PACKAGE_URL "$PACKAGE_URL"
1998
# Let the site file select an alternate cache file if it wants to.
1999
# Prefer an explicitly selected file to automatically selected ones.
2002
if test -n "$CONFIG_SITE"; then
2003
# We do not want a PATH search for config.site.
2004
case $CONFIG_SITE in @%:@((
2005
-*) ac_site_file1=./$CONFIG_SITE;;
2006
*/*) ac_site_file1=$CONFIG_SITE;;
2007
*) ac_site_file1=./$CONFIG_SITE;;
2009
elif test "x$prefix" != xNONE; then
2010
ac_site_file1=$prefix/share/config.site
2011
ac_site_file2=$prefix/etc/config.site
2013
ac_site_file1=$ac_default_prefix/share/config.site
2014
ac_site_file2=$ac_default_prefix/etc/config.site
2016
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2018
test "x$ac_site_file" = xNONE && continue
2019
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2020
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2021
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2022
sed 's/^/| /' "$ac_site_file" >&5
2024
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2025
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2026
as_fn_error $? "failed to load site script $ac_site_file
2027
See \`config.log' for more details" "$LINENO" 5; }
2031
if test -r "$cache_file"; then
2032
# Some versions of bash will fail to source /dev/null (special files
2033
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2034
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2035
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2036
$as_echo "$as_me: loading cache $cache_file" >&6;}
2038
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2039
*) . "./$cache_file";;
2043
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2044
$as_echo "$as_me: creating cache $cache_file" >&6;}
2048
# Check that the precious variables saved in the cache have kept the same
2050
ac_cache_corrupted=false
2051
for ac_var in $ac_precious_vars; do
2052
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2053
eval ac_new_set=\$ac_env_${ac_var}_set
2054
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2055
eval ac_new_val=\$ac_env_${ac_var}_value
2056
case $ac_old_set,$ac_new_set in
2058
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2059
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2060
ac_cache_corrupted=: ;;
2062
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2063
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2064
ac_cache_corrupted=: ;;
2067
if test "x$ac_old_val" != "x$ac_new_val"; then
2068
# differences in whitespace do not lead to failure.
2069
ac_old_val_w=`echo x $ac_old_val`
2070
ac_new_val_w=`echo x $ac_new_val`
2071
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2072
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2073
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2074
ac_cache_corrupted=:
2076
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2077
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2078
eval $ac_var=\$ac_old_val
2080
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2081
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2082
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2083
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2086
# Pass precious variables to config.status.
2087
if test "$ac_new_set" = set; then
2089
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2090
*) ac_arg=$ac_var=$ac_new_val ;;
2092
case " $ac_configure_args " in
2093
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2094
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2098
if $ac_cache_corrupted; then
2099
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2100
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2101
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2102
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2103
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2105
## -------------------- ##
2106
## Main body of script. ##
2107
## -------------------- ##
2110
ac_cpp='$CPP $CPPFLAGS'
2111
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2112
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2113
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2116
ac_config_headers="$ac_config_headers config.h"
2120
rev=`sed < ${srcdir}/patchlevel.h -n -e '/#define REV/s/#define REV *//p'`
2121
vers=`sed < ${srcdir}/patchlevel.h -n -e '/#define VERS/s/#define VERS *//p'`
2122
pat=`sed < ${srcdir}/patchlevel.h -n -e '/#define PATCHLEVEL/s/#define PATCHLEVEL *//p'`
2123
VERSION="$rev.$vers.$pat"
2124
echo "this is screen version $VERSION" 1>&6
2127
if test "x$prefix" = xNONE; then
2128
$as_echo_n "checking for prefix by " >&6
2129
# Extract the first word of "screen", so it can be a program name with args.
2130
set dummy screen; ac_word=$2
2131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2132
$as_echo_n "checking for $ac_word... " >&6; }
2133
if ${ac_cv_path_ac_prefix_program+:} false; then :
2134
$as_echo_n "(cached) " >&6
2136
case $ac_prefix_program in
2138
ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
2141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145
test -z "$as_dir" && as_dir=.
2146
for ac_exec_ext in '' $ac_executable_extensions; do
2147
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148
ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
2149
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2159
ac_prefix_program=$ac_cv_path_ac_prefix_program
2160
if test -n "$ac_prefix_program"; then
2161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
2162
$as_echo "$ac_prefix_program" >&6; }
2164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2165
$as_echo "no" >&6; }
2169
if test -n "$ac_prefix_program"; then
2170
prefix=`$as_dirname -- "$ac_prefix_program" ||
2171
$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2172
X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
2173
X"$ac_prefix_program" : 'X\(//\)$' \| \
2174
X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
2175
$as_echo X"$ac_prefix_program" |
2176
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2193
prefix=`$as_dirname -- "$prefix" ||
2194
$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2195
X"$prefix" : 'X\(//\)[^/]' \| \
2196
X"$prefix" : 'X\(//\)$' \| \
2197
X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
2198
$as_echo X"$prefix" |
2199
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2219
if test "x$prefix" = xNONE; then
2220
$as_echo_n "checking for prefix by " >&6
2221
# Extract the first word of "gzip", so it can be a program name with args.
2222
set dummy gzip; ac_word=$2
2223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2224
$as_echo_n "checking for $ac_word... " >&6; }
2225
if ${ac_cv_path_ac_prefix_program+:} false; then :
2226
$as_echo_n "(cached) " >&6
2228
case $ac_prefix_program in
2230
ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
2233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237
test -z "$as_dir" && as_dir=.
2238
for ac_exec_ext in '' $ac_executable_extensions; do
2239
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240
ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
2241
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2251
ac_prefix_program=$ac_cv_path_ac_prefix_program
2252
if test -n "$ac_prefix_program"; then
2253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
2254
$as_echo "$ac_prefix_program" >&6; }
2256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2257
$as_echo "no" >&6; }
2261
if test -n "$ac_prefix_program"; then
2262
prefix=`$as_dirname -- "$ac_prefix_program" ||
2263
$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2264
X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
2265
X"$ac_prefix_program" : 'X\(//\)$' \| \
2266
X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
2267
$as_echo X"$ac_prefix_program" |
2268
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2285
prefix=`$as_dirname -- "$prefix" ||
2286
$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2287
X"$prefix" : 'X\(//\)[^/]' \| \
2288
X"$prefix" : 'X\(//\)$' \| \
2289
X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
2290
$as_echo X"$prefix" |
2291
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2312
old_CFLAGS="$CFLAGS"
2314
ac_cpp='$CPP $CPPFLAGS'
2315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318
if test -n "$ac_tool_prefix"; then
2319
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2320
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2322
$as_echo_n "checking for $ac_word... " >&6; }
2323
if ${ac_cv_prog_CC+:} false; then :
2324
$as_echo_n "(cached) " >&6
2326
if test -n "$CC"; then
2327
ac_cv_prog_CC="$CC" # Let the user override the test.
2329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333
test -z "$as_dir" && as_dir=.
2334
for ac_exec_ext in '' $ac_executable_extensions; do
2335
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2337
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2347
if test -n "$CC"; then
2348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2349
$as_echo "$CC" >&6; }
2351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2352
$as_echo "no" >&6; }
2357
if test -z "$ac_cv_prog_CC"; then
2359
# Extract the first word of "gcc", so it can be a program name with args.
2360
set dummy gcc; ac_word=$2
2361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2362
$as_echo_n "checking for $ac_word... " >&6; }
2363
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2364
$as_echo_n "(cached) " >&6
2366
if test -n "$ac_ct_CC"; then
2367
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373
test -z "$as_dir" && as_dir=.
2374
for ac_exec_ext in '' $ac_executable_extensions; do
2375
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376
ac_cv_prog_ac_ct_CC="gcc"
2377
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2386
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2387
if test -n "$ac_ct_CC"; then
2388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2389
$as_echo "$ac_ct_CC" >&6; }
2391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2392
$as_echo "no" >&6; }
2395
if test "x$ac_ct_CC" = x; then
2398
case $cross_compiling:$ac_tool_warned in
2400
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2401
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2402
ac_tool_warned=yes ;;
2410
if test -z "$CC"; then
2411
if test -n "$ac_tool_prefix"; then
2412
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2413
set dummy ${ac_tool_prefix}cc; ac_word=$2
2414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415
$as_echo_n "checking for $ac_word... " >&6; }
2416
if ${ac_cv_prog_CC+:} false; then :
2417
$as_echo_n "(cached) " >&6
2419
if test -n "$CC"; then
2420
ac_cv_prog_CC="$CC" # Let the user override the test.
2422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426
test -z "$as_dir" && as_dir=.
2427
for ac_exec_ext in '' $ac_executable_extensions; do
2428
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2429
ac_cv_prog_CC="${ac_tool_prefix}cc"
2430
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440
if test -n "$CC"; then
2441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2442
$as_echo "$CC" >&6; }
2444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445
$as_echo "no" >&6; }
2451
if test -z "$CC"; then
2452
# Extract the first word of "cc", so it can be a program name with args.
2453
set dummy cc; ac_word=$2
2454
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455
$as_echo_n "checking for $ac_word... " >&6; }
2456
if ${ac_cv_prog_CC+:} false; then :
2457
$as_echo_n "(cached) " >&6
2459
if test -n "$CC"; then
2460
ac_cv_prog_CC="$CC" # Let the user override the test.
2463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467
test -z "$as_dir" && as_dir=.
2468
for ac_exec_ext in '' $ac_executable_extensions; do
2469
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2471
ac_prog_rejected=yes
2475
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2482
if test $ac_prog_rejected = yes; then
2483
# We found a bogon in the path, so make sure we never use it.
2484
set dummy $ac_cv_prog_CC
2486
if test $@%:@ != 0; then
2487
# We chose a different compiler from the bogus one.
2488
# However, it has the same basename, so the bogon will be chosen
2489
# first if we set CC to just the basename; use the full file name.
2491
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2497
if test -n "$CC"; then
2498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2499
$as_echo "$CC" >&6; }
2501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502
$as_echo "no" >&6; }
2507
if test -z "$CC"; then
2508
if test -n "$ac_tool_prefix"; then
2509
for ac_prog in cl.exe
2511
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2512
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514
$as_echo_n "checking for $ac_word... " >&6; }
2515
if ${ac_cv_prog_CC+:} false; then :
2516
$as_echo_n "(cached) " >&6
2518
if test -n "$CC"; then
2519
ac_cv_prog_CC="$CC" # Let the user override the test.
2521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525
test -z "$as_dir" && as_dir=.
2526
for ac_exec_ext in '' $ac_executable_extensions; do
2527
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2529
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539
if test -n "$CC"; then
2540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2541
$as_echo "$CC" >&6; }
2543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544
$as_echo "no" >&6; }
2548
test -n "$CC" && break
2551
if test -z "$CC"; then
2553
for ac_prog in cl.exe
2555
# Extract the first word of "$ac_prog", so it can be a program name with args.
2556
set dummy $ac_prog; ac_word=$2
2557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558
$as_echo_n "checking for $ac_word... " >&6; }
2559
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2560
$as_echo_n "(cached) " >&6
2562
if test -n "$ac_ct_CC"; then
2563
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2565
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569
test -z "$as_dir" && as_dir=.
2570
for ac_exec_ext in '' $ac_executable_extensions; do
2571
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572
ac_cv_prog_ac_ct_CC="$ac_prog"
2573
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583
if test -n "$ac_ct_CC"; then
2584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2585
$as_echo "$ac_ct_CC" >&6; }
2587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588
$as_echo "no" >&6; }
2592
test -n "$ac_ct_CC" && break
2595
if test "x$ac_ct_CC" = x; then
2598
case $cross_compiling:$ac_tool_warned in
2600
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2601
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2602
ac_tool_warned=yes ;;
2611
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613
as_fn_error $? "no acceptable C compiler found in \$PATH
2614
See \`config.log' for more details" "$LINENO" 5; }
2616
# Provide some information about the compiler.
2617
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2620
for ac_option in --version -v -V -qversion; do
2621
{ { ac_try="$ac_compiler $ac_option >&5"
2623
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624
*) ac_try_echo=$ac_try;;
2626
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627
$as_echo "$ac_try_echo"; } >&5
2628
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2630
if test -s conftest.err; then
2632
... rest of stderr output deleted ...
2633
10q' conftest.err >conftest.er1
2634
cat conftest.er1 >&5
2636
rm -f conftest.er1 conftest.err
2637
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638
test $ac_status = 0; }
2641
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642
/* end confdefs.h. */
2652
ac_clean_files_save=$ac_clean_files
2653
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2654
# Try to create an executable without -o first, disregard a.out.
2655
# It will help us diagnose broken compilers, and finding out an intuition
2657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2658
$as_echo_n "checking whether the C compiler works... " >&6; }
2659
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2661
# The possible output files:
2662
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2665
for ac_file in $ac_files
2668
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2669
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2674
if { { ac_try="$ac_link_default"
2676
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677
*) ac_try_echo=$ac_try;;
2679
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2680
$as_echo "$ac_try_echo"; } >&5
2681
(eval "$ac_link_default") 2>&5
2683
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684
test $ac_status = 0; }; then :
2685
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2686
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2687
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2688
# so that the user can short-circuit this test for compilers unknown to
2690
for ac_file in $ac_files ''
2692
test -f "$ac_file" || continue
2694
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2697
# We found the default executable, but exeext='' is most
2701
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2703
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705
# We set ac_cv_exeext here because the later test for it is not
2706
# safe: cross compilers may not add the suffix if given an `-o'
2707
# argument, so we may need to know it at that point already.
2708
# Even if this section looks crufty: it has the advantage of
2715
test "$ac_cv_exeext" = no && ac_cv_exeext=
2720
if test -z "$ac_file"; then :
2721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722
$as_echo "no" >&6; }
2723
$as_echo "$as_me: failed program was:" >&5
2724
sed 's/^/| /' conftest.$ac_ext >&5
2726
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2728
as_fn_error 77 "C compiler cannot create executables
2729
See \`config.log' for more details" "$LINENO" 5; }
2731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732
$as_echo "yes" >&6; }
2734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2735
$as_echo_n "checking for C compiler default output file name... " >&6; }
2736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2737
$as_echo "$ac_file" >&6; }
2738
ac_exeext=$ac_cv_exeext
2740
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2741
ac_clean_files=$ac_clean_files_save
2742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2743
$as_echo_n "checking for suffix of executables... " >&6; }
2744
if { { ac_try="$ac_link"
2746
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747
*) ac_try_echo=$ac_try;;
2749
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2750
$as_echo "$ac_try_echo"; } >&5
2751
(eval "$ac_link") 2>&5
2753
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2754
test $ac_status = 0; }; then :
2755
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2756
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2757
# work properly (i.e., refer to `conftest.exe'), while it won't with
2759
for ac_file in conftest.exe conftest conftest.*; do
2760
test -f "$ac_file" || continue
2762
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2763
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2770
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2771
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2772
See \`config.log' for more details" "$LINENO" 5; }
2774
rm -f conftest conftest$ac_cv_exeext
2775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2776
$as_echo "$ac_cv_exeext" >&6; }
2778
rm -f conftest.$ac_ext
2779
EXEEXT=$ac_cv_exeext
2781
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782
/* end confdefs.h. */
2783
@%:@include <stdio.h>
2787
FILE *f = fopen ("conftest.out", "w");
2788
return ferror (f) || fclose (f) != 0;
2794
ac_clean_files="$ac_clean_files conftest.out"
2795
# Check that the compiler produces executables we can run. If not, either
2796
# the compiler is broken, or we cross compile.
2797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2798
$as_echo_n "checking whether we are cross compiling... " >&6; }
2799
if test "$cross_compiling" != yes; then
2800
{ { ac_try="$ac_link"
2802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803
*) ac_try_echo=$ac_try;;
2805
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806
$as_echo "$ac_try_echo"; } >&5
2807
(eval "$ac_link") 2>&5
2809
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2810
test $ac_status = 0; }
2811
if { ac_try='./conftest$ac_cv_exeext'
2812
{ { case "(($ac_try" in
2813
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814
*) ac_try_echo=$ac_try;;
2816
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817
$as_echo "$ac_try_echo"; } >&5
2818
(eval "$ac_try") 2>&5
2820
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821
test $ac_status = 0; }; }; then
2824
if test "$cross_compiling" = maybe; then
2827
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829
as_fn_error $? "cannot run C compiled programs.
2830
If you meant to cross compile, use \`--host'.
2831
See \`config.log' for more details" "$LINENO" 5; }
2835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2836
$as_echo "$cross_compiling" >&6; }
2838
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2839
ac_clean_files=$ac_clean_files_save
2840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2841
$as_echo_n "checking for suffix of object files... " >&6; }
2842
if ${ac_cv_objext+:} false; then :
2843
$as_echo_n "(cached) " >&6
2845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846
/* end confdefs.h. */
2856
rm -f conftest.o conftest.obj
2857
if { { ac_try="$ac_compile"
2859
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860
*) ac_try_echo=$ac_try;;
2862
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863
$as_echo "$ac_try_echo"; } >&5
2864
(eval "$ac_compile") 2>&5
2866
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867
test $ac_status = 0; }; then :
2868
for ac_file in conftest.o conftest.obj conftest.*; do
2869
test -f "$ac_file" || continue;
2871
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2872
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2877
$as_echo "$as_me: failed program was:" >&5
2878
sed 's/^/| /' conftest.$ac_ext >&5
2880
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882
as_fn_error $? "cannot compute suffix of object files: cannot compile
2883
See \`config.log' for more details" "$LINENO" 5; }
2885
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2888
$as_echo "$ac_cv_objext" >&6; }
2889
OBJEXT=$ac_cv_objext
2891
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2892
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2893
if ${ac_cv_c_compiler_gnu+:} false; then :
2894
$as_echo_n "(cached) " >&6
2896
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897
/* end confdefs.h. */
2910
if ac_fn_c_try_compile "$LINENO"; then :
2915
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2920
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2921
if test $ac_compiler_gnu = yes; then
2926
ac_test_CFLAGS=${CFLAGS+set}
2927
ac_save_CFLAGS=$CFLAGS
2928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2929
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2930
if ${ac_cv_prog_cc_g+:} false; then :
2931
$as_echo_n "(cached) " >&6
2933
ac_save_c_werror_flag=$ac_c_werror_flag
2934
ac_c_werror_flag=yes
2937
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938
/* end confdefs.h. */
2948
if ac_fn_c_try_compile "$LINENO"; then :
2952
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953
/* end confdefs.h. */
2963
if ac_fn_c_try_compile "$LINENO"; then :
2966
ac_c_werror_flag=$ac_save_c_werror_flag
2968
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969
/* end confdefs.h. */
2979
if ac_fn_c_try_compile "$LINENO"; then :
2982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987
ac_c_werror_flag=$ac_save_c_werror_flag
2989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2990
$as_echo "$ac_cv_prog_cc_g" >&6; }
2991
if test "$ac_test_CFLAGS" = set; then
2992
CFLAGS=$ac_save_CFLAGS
2993
elif test $ac_cv_prog_cc_g = yes; then
2994
if test "$GCC" = yes; then
3000
if test "$GCC" = yes; then
3006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3007
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3008
if ${ac_cv_prog_cc_c89+:} false; then :
3009
$as_echo_n "(cached) " >&6
3011
ac_cv_prog_cc_c89=no
3013
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014
/* end confdefs.h. */
3018
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3019
struct buf { int x; };
3020
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3021
static char *e (p, i)
3027
static char *f (char * (*g) (char **, int), char **p, ...)
3032
s = g (p, va_arg (v,int));
3037
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3038
function prototypes and stuff, but not '\xHH' hex character constants.
3039
These don't provoke an error unfortunately, instead are silently treated
3040
as 'x'. The following induces an error, until -std is added to get
3041
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3042
array size at least. It's necessary to write '\x00'==0 to get something
3043
that's true only with -std. */
3044
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3046
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3047
inside strings and character constants. */
3049
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3051
int test (int i, double x);
3052
struct s1 {int (*f) (int a);};
3053
struct s2 {int (*f) (double a);};
3054
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3060
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3065
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3066
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3068
CC="$ac_save_CC $ac_arg"
3069
if ac_fn_c_try_compile "$LINENO"; then :
3070
ac_cv_prog_cc_c89=$ac_arg
3072
rm -f core conftest.err conftest.$ac_objext
3073
test "x$ac_cv_prog_cc_c89" != "xno" && break
3075
rm -f conftest.$ac_ext
3080
case "x$ac_cv_prog_cc_c89" in
3082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3083
$as_echo "none needed" >&6; } ;;
3085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3086
$as_echo "unsupported" >&6; } ;;
3088
CC="$CC $ac_cv_prog_cc_c89"
3089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3090
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3092
if test "x$ac_cv_prog_cc_c89" != xno; then :
3097
ac_cpp='$CPP $CPPFLAGS'
3098
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
ac_cpp='$CPP $CPPFLAGS'
3104
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3108
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3109
# On Suns, sometimes $CPP names a directory.
3110
if test -n "$CPP" && test -d "$CPP"; then
3113
if test -z "$CPP"; then
3114
if ${ac_cv_prog_CPP+:} false; then :
3115
$as_echo_n "(cached) " >&6
3117
# Double quotes because CPP needs to be expanded
3118
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3121
for ac_c_preproc_warn_flag in '' yes
3123
# Use a header file that comes with gcc, so configuring glibc
3124
# with a fresh cross-compiler works.
3125
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3126
# <limits.h> exists even on freestanding compilers.
3127
# On the NeXT, cc -E runs the code through the compiler's parser,
3128
# not just through cpp. "Syntax error" is here to catch this case.
3129
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130
/* end confdefs.h. */
3132
@%:@ include <limits.h>
3134
@%:@ include <assert.h>
3138
if ac_fn_c_try_cpp "$LINENO"; then :
3141
# Broken: fails on valid input.
3144
rm -f conftest.err conftest.i conftest.$ac_ext
3146
# OK, works on sane cases. Now check whether nonexistent headers
3147
# can be detected and how.
3148
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149
/* end confdefs.h. */
3150
@%:@include <ac_nonexistent.h>
3152
if ac_fn_c_try_cpp "$LINENO"; then :
3153
# Broken: success on invalid input.
3156
# Passes both tests.
3160
rm -f conftest.err conftest.i conftest.$ac_ext
3163
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3164
rm -f conftest.i conftest.err conftest.$ac_ext
3165
if $ac_preproc_ok; then :
3177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3178
$as_echo "$CPP" >&6; }
3180
for ac_c_preproc_warn_flag in '' yes
3182
# Use a header file that comes with gcc, so configuring glibc
3183
# with a fresh cross-compiler works.
3184
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185
# <limits.h> exists even on freestanding compilers.
3186
# On the NeXT, cc -E runs the code through the compiler's parser,
3187
# not just through cpp. "Syntax error" is here to catch this case.
3188
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189
/* end confdefs.h. */
3191
@%:@ include <limits.h>
3193
@%:@ include <assert.h>
3197
if ac_fn_c_try_cpp "$LINENO"; then :
3200
# Broken: fails on valid input.
3203
rm -f conftest.err conftest.i conftest.$ac_ext
3205
# OK, works on sane cases. Now check whether nonexistent headers
3206
# can be detected and how.
3207
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208
/* end confdefs.h. */
3209
@%:@include <ac_nonexistent.h>
3211
if ac_fn_c_try_cpp "$LINENO"; then :
3212
# Broken: success on invalid input.
3215
# Passes both tests.
3219
rm -f conftest.err conftest.i conftest.$ac_ext
3222
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223
rm -f conftest.i conftest.err conftest.$ac_ext
3224
if $ac_preproc_ok; then :
3227
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3230
See \`config.log' for more details" "$LINENO" 5; }
3234
ac_cpp='$CPP $CPPFLAGS'
3235
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3242
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3243
if ${ac_cv_path_GREP+:} false; then :
3244
$as_echo_n "(cached) " >&6
3246
if test -z "$GREP"; then
3247
ac_path_GREP_found=false
3248
# Loop through the user's path and test for each of PROGNAME-LIST
3249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3253
test -z "$as_dir" && as_dir=.
3254
for ac_prog in grep ggrep; do
3255
for ac_exec_ext in '' $ac_executable_extensions; do
3256
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3257
as_fn_executable_p "$ac_path_GREP" || continue
3258
# Check for GNU ac_path_GREP and select it if it is found.
3259
# Check for GNU $ac_path_GREP
3260
case `"$ac_path_GREP" --version 2>&1` in
3262
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3265
$as_echo_n 0123456789 >"conftest.in"
3268
cat "conftest.in" "conftest.in" >"conftest.tmp"
3269
mv "conftest.tmp" "conftest.in"
3270
cp "conftest.in" "conftest.nl"
3271
$as_echo 'GREP' >> "conftest.nl"
3272
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3273
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3274
as_fn_arith $ac_count + 1 && ac_count=$as_val
3275
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3276
# Best one so far, save it but keep looking for a better one
3277
ac_cv_path_GREP="$ac_path_GREP"
3278
ac_path_GREP_max=$ac_count
3280
# 10*(2^10) chars as input seems more than enough
3281
test $ac_count -gt 10 && break
3283
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3286
$ac_path_GREP_found && break 3
3291
if test -z "$ac_cv_path_GREP"; then
3292
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3295
ac_cv_path_GREP=$GREP
3299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3300
$as_echo "$ac_cv_path_GREP" >&6; }
3301
GREP="$ac_cv_path_GREP"
3304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3305
$as_echo_n "checking for egrep... " >&6; }
3306
if ${ac_cv_path_EGREP+:} false; then :
3307
$as_echo_n "(cached) " >&6
3309
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3310
then ac_cv_path_EGREP="$GREP -E"
3312
if test -z "$EGREP"; then
3313
ac_path_EGREP_found=false
3314
# Loop through the user's path and test for each of PROGNAME-LIST
3315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3319
test -z "$as_dir" && as_dir=.
3320
for ac_prog in egrep; do
3321
for ac_exec_ext in '' $ac_executable_extensions; do
3322
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3323
as_fn_executable_p "$ac_path_EGREP" || continue
3324
# Check for GNU ac_path_EGREP and select it if it is found.
3325
# Check for GNU $ac_path_EGREP
3326
case `"$ac_path_EGREP" --version 2>&1` in
3328
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3331
$as_echo_n 0123456789 >"conftest.in"
3334
cat "conftest.in" "conftest.in" >"conftest.tmp"
3335
mv "conftest.tmp" "conftest.in"
3336
cp "conftest.in" "conftest.nl"
3337
$as_echo 'EGREP' >> "conftest.nl"
3338
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3339
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3340
as_fn_arith $ac_count + 1 && ac_count=$as_val
3341
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3342
# Best one so far, save it but keep looking for a better one
3343
ac_cv_path_EGREP="$ac_path_EGREP"
3344
ac_path_EGREP_max=$ac_count
3346
# 10*(2^10) chars as input seems more than enough
3347
test $ac_count -gt 10 && break
3349
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3352
$ac_path_EGREP_found && break 3
3357
if test -z "$ac_cv_path_EGREP"; then
3358
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3361
ac_cv_path_EGREP=$EGREP
3366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3367
$as_echo "$ac_cv_path_EGREP" >&6; }
3368
EGREP="$ac_cv_path_EGREP"
3371
if test $ac_cv_c_compiler_gnu = yes; then
3372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3373
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
3374
if ${ac_cv_prog_gcc_traditional+:} false; then :
3375
$as_echo_n "(cached) " >&6
3377
ac_pattern="Autoconf.*'x'"
3378
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379
/* end confdefs.h. */
3383
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3384
$EGREP "$ac_pattern" >/dev/null 2>&1; then :
3385
ac_cv_prog_gcc_traditional=yes
3387
ac_cv_prog_gcc_traditional=no
3392
if test $ac_cv_prog_gcc_traditional = no; then
3393
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394
/* end confdefs.h. */
3398
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399
$EGREP "$ac_pattern" >/dev/null 2>&1; then :
3400
ac_cv_prog_gcc_traditional=yes
3406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3407
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3408
if test $ac_cv_prog_gcc_traditional = yes; then
3409
CC="$CC -traditional"
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3414
$as_echo_n "checking for library containing strerror... " >&6; }
3415
if ${ac_cv_search_strerror+:} false; then :
3416
$as_echo_n "(cached) " >&6
3418
ac_func_search_save_LIBS=$LIBS
3419
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420
/* end confdefs.h. */
3422
/* Override any GCC internal prototype to avoid an error.
3423
Use char because int might match the return type of a GCC
3424
builtin and then its argument prototype would still apply. */
3437
for ac_lib in '' cposix; do
3438
if test -z "$ac_lib"; then
3439
ac_res="none required"
3442
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3444
if ac_fn_c_try_link "$LINENO"; then :
3445
ac_cv_search_strerror=$ac_res
3447
rm -f core conftest.err conftest.$ac_objext \
3449
if ${ac_cv_search_strerror+:} false; then :
3453
if ${ac_cv_search_strerror+:} false; then :
3456
ac_cv_search_strerror=no
3459
LIBS=$ac_func_search_save_LIBS
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3462
$as_echo "$ac_cv_search_strerror" >&6; }
3463
ac_res=$ac_cv_search_strerror
3464
if test "$ac_res" != no; then :
3465
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3470
$as_echo_n "checking for ANSI C header files... " >&6; }
3471
if ${ac_cv_header_stdc+:} false; then :
3472
$as_echo_n "(cached) " >&6
3474
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475
/* end confdefs.h. */
3489
if ac_fn_c_try_compile "$LINENO"; then :
3490
ac_cv_header_stdc=yes
3492
ac_cv_header_stdc=no
3494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496
if test $ac_cv_header_stdc = yes; then
3497
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3498
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499
/* end confdefs.h. */
3503
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3504
$EGREP "memchr" >/dev/null 2>&1; then :
3507
ac_cv_header_stdc=no
3513
if test $ac_cv_header_stdc = yes; then
3514
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3515
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516
/* end confdefs.h. */
3520
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3521
$EGREP "free" >/dev/null 2>&1; then :
3524
ac_cv_header_stdc=no
3530
if test $ac_cv_header_stdc = yes; then
3531
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3532
if test "$cross_compiling" = yes; then :
3535
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536
/* end confdefs.h. */
3539
#if ((' ' & 0x0FF) == 0x020)
3540
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3541
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3543
# define ISLOWER(c) \
3544
(('a' <= (c) && (c) <= 'i') \
3545
|| ('j' <= (c) && (c) <= 'r') \
3546
|| ('s' <= (c) && (c) <= 'z'))
3547
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3550
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3555
for (i = 0; i < 256; i++)
3556
if (XOR (islower (i), ISLOWER (i))
3557
|| toupper (i) != TOUPPER (i))
3562
if ac_fn_c_try_run "$LINENO"; then :
3565
ac_cv_header_stdc=no
3567
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3568
conftest.$ac_objext conftest.beam conftest.$ac_ext
3573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3574
$as_echo "$ac_cv_header_stdc" >&6; }
3575
if test $ac_cv_header_stdc = yes; then
3577
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
3581
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3582
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3583
inttypes.h stdint.h unistd.h
3585
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3586
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3588
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3589
cat >>confdefs.h <<_ACEOF
3590
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3599
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3600
if test "x$ac_cv_header_minix_config_h" = xyes; then :
3607
if test "$MINIX" = yes; then
3609
$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
3612
$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
3615
$as_echo "@%:@define _MINIX 1" >>confdefs.h
3620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3621
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3622
if ${ac_cv_safe_to_define___extensions__+:} false; then :
3623
$as_echo_n "(cached) " >&6
3625
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626
/* end confdefs.h. */
3628
# define __EXTENSIONS__ 1
3629
$ac_includes_default
3638
if ac_fn_c_try_compile "$LINENO"; then :
3639
ac_cv_safe_to_define___extensions__=yes
3641
ac_cv_safe_to_define___extensions__=no
3643
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3646
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3647
test $ac_cv_safe_to_define___extensions__ = yes &&
3648
$as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
3650
$as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
3652
$as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
3654
$as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3656
$as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
3660
if test "$cross_compiling" = yes; then :
3661
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663
as_fn_error $? "cannot run test program while cross compiling
3664
See \`config.log' for more details" "$LINENO" 5; }
3666
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667
/* end confdefs.h. */
3670
if ac_fn_c_try_run "$LINENO"; then :
3674
if test $CC != cc ; then
3675
echo "Your $CC failed - restarting with CC=cc" 1>&6
3681
exec $0 $configure_args
3685
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3686
conftest.$ac_objext conftest.beam conftest.$ac_ext
3690
if test "$cross_compiling" = yes; then :
3691
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693
as_fn_error $? "cannot run test program while cross compiling
3694
See \`config.log' for more details" "$LINENO" 5; }
3696
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697
/* end confdefs.h. */
3700
if ac_fn_c_try_run "$LINENO"; then :
3705
echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
3707
echo "$ac_compile" 1>&6
3709
as_fn_error $? "Can't run the compiler - sorry" "$LINENO" 5
3711
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3712
conftest.$ac_objext conftest.beam conftest.$ac_ext
3716
if test "$cross_compiling" = yes; then :
3717
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3719
as_fn_error $? "cannot run test program while cross compiling
3720
See \`config.log' for more details" "$LINENO" 5; }
3722
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723
/* end confdefs.h. */
3727
int __something_strange_();
3728
__something_strange_(0);
3732
if ac_fn_c_try_run "$LINENO"; then :
3733
as_fn_error $? "Your compiler does not set the exit status - sorry" "$LINENO" 5
3735
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3736
conftest.$ac_objext conftest.beam conftest.$ac_ext
3740
for ac_prog in gawk mawk nawk awk
3742
# Extract the first word of "$ac_prog", so it can be a program name with args.
3743
set dummy $ac_prog; ac_word=$2
3744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745
$as_echo_n "checking for $ac_word... " >&6; }
3746
if ${ac_cv_prog_AWK+:} false; then :
3747
$as_echo_n "(cached) " >&6
3749
if test -n "$AWK"; then
3750
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756
test -z "$as_dir" && as_dir=.
3757
for ac_exec_ext in '' $ac_executable_extensions; do
3758
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759
ac_cv_prog_AWK="$ac_prog"
3760
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770
if test -n "$AWK"; then
3771
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3772
$as_echo "$AWK" >&6; }
3774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775
$as_echo "no" >&6; }
3779
test -n "$AWK" && break
3784
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3785
if test -f "$ac_dir/install-sh"; then
3787
ac_install_sh="$ac_aux_dir/install-sh -c"
3789
elif test -f "$ac_dir/install.sh"; then
3791
ac_install_sh="$ac_aux_dir/install.sh -c"
3793
elif test -f "$ac_dir/shtool"; then
3795
ac_install_sh="$ac_aux_dir/shtool install -c"
3799
if test -z "$ac_aux_dir"; then
3800
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3803
# These three variables are undocumented and unsupported,
3804
# and are intended to be withdrawn in a future Autoconf release.
3805
# They can cause serious problems if a builder's source tree is in a directory
3806
# whose full name contains unusual characters.
3807
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3808
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3809
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3812
# Find a good install program. We prefer a C program (faster),
3813
# so one script is as good as another. But avoid the broken or
3814
# incompatible versions:
3815
# SysV /etc/install, /usr/sbin/install
3816
# SunOS /usr/etc/install
3817
# IRIX /sbin/install
3819
# AmigaOS /C/install, which installs bootblocks on floppy discs
3820
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3821
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3822
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3823
# OS/2's system install, which has a completely different semantic
3824
# ./install, which can be erroneously created by make from ./install.sh.
3825
# Reject install programs that cannot install multiple files.
3826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3827
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3828
if test -z "$INSTALL"; then
3829
if ${ac_cv_path_install+:} false; then :
3830
$as_echo_n "(cached) " >&6
3832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836
test -z "$as_dir" && as_dir=.
3837
# Account for people who put trailing slashes in PATH elements.
3838
case $as_dir/ in @%:@((
3839
./ | .// | /[cC]/* | \
3840
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3841
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3844
# OSF1 and SCO ODT 3.0 have their own names for install.
3845
# Don't use installbsd from OSF since it installs stuff as root
3847
for ac_prog in ginstall scoinst install; do
3848
for ac_exec_ext in '' $ac_executable_extensions; do
3849
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3850
if test $ac_prog = install &&
3851
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3852
# AIX install. It has an incompatible calling convention.
3854
elif test $ac_prog = install &&
3855
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3856
# program-specific install script used by HP pwplus--don't use.
3859
rm -rf conftest.one conftest.two conftest.dir
3860
echo one > conftest.one
3861
echo two > conftest.two
3863
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3864
test -s conftest.one && test -s conftest.two &&
3865
test -s conftest.dir/conftest.one &&
3866
test -s conftest.dir/conftest.two
3868
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3881
rm -rf conftest.one conftest.two conftest.dir
3884
if test "${ac_cv_path_install+set}" = set; then
3885
INSTALL=$ac_cv_path_install
3887
# As a last resort, use the slow shell script. Don't cache a
3888
# value for INSTALL within a source directory, because that will
3889
# break other packages using the cache if that directory is
3890
# removed, or if the value is a relative name.
3891
INSTALL=$ac_install_sh
3894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3895
$as_echo "$INSTALL" >&6; }
3897
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3898
# It thinks the first close brace ends the variable substitution.
3899
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3901
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3903
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3906
if test -f etc/toolcheck; then
3907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
3908
$as_echo "$as_me: checking for buggy tools..." >&6;}
3909
sh etc/toolcheck 1>&6
3914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if a system-wide socket dir should be used" >&5
3915
$as_echo_n "checking if a system-wide socket dir should be used... " >&6; }
3916
@%:@ Check whether --enable-socket-dir was given.
3917
if test "${enable_socket_dir+set}" = set; then :
3918
enableval=$enable_socket_dir;
3919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no. ~/.screen will be used instead." >&5
3920
$as_echo "no. ~/.screen will be used instead." >&6; }
3924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925
$as_echo "yes" >&6; }
3926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the socket dir" >&5
3927
$as_echo_n "checking for the socket dir... " >&6; }
3928
SOCKDIR="(eff_uid ? \"/tmp/uscreens\" : \"/tmp/screens\")"
3930
@%:@ Check whether --with-socket-dir was given.
3931
if test "${with_socket_dir+set}" = set; then :
3932
withval=$with_socket_dir;
3933
case "${withval}" in
3934
*\"*) SOCKDIR="${withval}" ;;
3935
*) SOCKDIR="\"${withval}\"" ;;
3940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SOCKDIR}" >&5
3941
$as_echo "${SOCKDIR}" >&6; }
3942
cat >>confdefs.h <<_ACEOF
3943
@%:@define SOCKDIR $SOCKDIR
3952
if test -n "$ISC"; then
3953
$as_echo "@%:@define ISC 1" >>confdefs.h
3958
if test -f /sysV68 ; then
3959
$as_echo "@%:@define sysV68 1" >>confdefs.h
3963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIPS..." >&5
3964
$as_echo "$as_me: checking for MIPS..." >&6;}
3965
if test -f /lib/libmld.a || test -f /usr/lib/libmld.a || test -f /usr/lib/cmplrs/cc/libmld.a; then
3967
test -f /bin/mx || LIBS="$LIBS -lmld" # for nlist. But not on alpha.
3968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mld library..." >&5
3969
$as_echo "$as_me: checking mld library..." >&6;}
3970
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971
/* end confdefs.h. */
3981
if ac_fn_c_try_link "$LINENO"; then :
3986
rm -f core conftest.err conftest.$ac_objext \
3987
conftest$ac_exeext conftest.$ac_ext
3988
if test -r /dev/ptc; then
3989
$as_echo "@%:@define MIPS 1" >>confdefs.h
3991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wait3..." >&5
3992
$as_echo "$as_me: checking wait3..." >&6;}
3993
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994
/* end confdefs.h. */
4004
if ac_fn_c_try_link "$LINENO"; then :
4007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wait2..." >&5
4008
$as_echo "$as_me: checking wait2..." >&6;}
4009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010
/* end confdefs.h. */
4020
if ac_fn_c_try_link "$LINENO"; then :
4021
$as_echo "@%:@define USE_WAIT2 1" >>confdefs.h
4022
LIBS="$LIBS -lbsd" ; CC="$CC -I/usr/include/bsd"
4025
rm -f core conftest.err conftest.$ac_objext \
4026
conftest$ac_exeext conftest.$ac_ext
4028
rm -f core conftest.err conftest.$ac_objext \
4029
conftest$ac_exeext conftest.$ac_ext
4034
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ultrix..." >&5
4035
$as_echo "$as_me: checking for Ultrix..." >&6;}
4036
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037
/* end confdefs.h. */
4038
#if defined(ultrix) || defined(__ultrix)
4043
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044
$EGREP "yes" >/dev/null 2>&1; then :
4050
if test -f /usr/lib/libpyr.a ; then
4053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Pyramid OSX..." >&5
4054
$as_echo "$as_me: checking Pyramid OSX..." >&6;}
4055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056
/* end confdefs.h. */
4061
open_controlling_pty("")
4066
if ac_fn_c_try_link "$LINENO"; then :
4067
$as_echo "@%:@define OSX 1" >>confdefs.h
4072
rm -f core conftest.err conftest.$ac_objext \
4073
conftest$ac_exeext conftest.$ac_ext
4076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for butterfly..." >&5
4077
$as_echo "$as_me: checking for butterfly..." >&6;}
4078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079
/* end confdefs.h. */
4080
#if defined(butterfly)
4085
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086
$EGREP "yes" >/dev/null 2>&1; then :
4092
if test -z "$butterfly"; then
4093
if test -n "$ULTRIX"; then
4094
test -z "$GCC" && CC="$CC -YBSD"
4096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX.1..." >&5
4097
$as_echo "$as_me: checking for POSIX.1..." >&6;}
4098
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099
/* end confdefs.h. */
4100
#include <sys/types.h>
4103
#ifdef _POSIX_VERSION
4108
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109
$EGREP "yes" >/dev/null 2>&1; then :
4110
echo "- you have a POSIX system" 1>&6
4111
$as_echo "@%:@define POSIX 1" >>confdefs.h
4118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System V..." >&5
4119
$as_echo "$as_me: checking for System V..." >&6;}
4120
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121
/* end confdefs.h. */
4122
#include <sys/types.h>
4128
int x = SIGCHLD | FNDELAY;
4133
if ac_fn_c_try_compile "$LINENO"; then :
4136
$as_echo "@%:@define SYSV 1" >>confdefs.h
4139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sequent/ptx..." >&5
4142
$as_echo "$as_me: checking for sequent/ptx..." >&6;}
4143
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144
/* end confdefs.h. */
4150
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151
$EGREP "yes" >/dev/null 2>&1; then :
4152
LIBS="$LIBS -lsocket -linet";seqptx=1
4159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SVR4..." >&5
4160
$as_echo "$as_me: checking SVR4..." >&6;}
4161
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162
/* end confdefs.h. */
4173
if ac_fn_c_try_link "$LINENO"; then :
4174
ac_fn_c_check_header_mongrel "$LINENO" "dwarf.h" "ac_cv_header_dwarf_h" "$ac_includes_default"
4175
if test "x$ac_cv_header_dwarf_h" = xyes; then :
4176
$as_echo "@%:@define SVR4 1" >>confdefs.h
4177
$as_echo "@%:@define BUGGYGETLOGIN 1" >>confdefs.h
4180
ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
4181
if test "x$ac_cv_header_elf_h" = xyes; then :
4182
$as_echo "@%:@define SVR4 1" >>confdefs.h
4183
$as_echo "@%:@define BUGGYGETLOGIN 1" >>confdefs.h
4195
rm -f core conftest.err conftest.$ac_objext \
4196
conftest$ac_exeext conftest.$ac_ext
4197
for ac_header in stropts.h string.h strings.h
4199
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4200
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4201
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4202
cat >>confdefs.h <<_ACEOF
4203
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 2.x..." >&5
4212
$as_echo "$as_me: checking for Solaris 2.x..." >&6;}
4213
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214
/* end confdefs.h. */
4215
#if defined(SVR4) && defined(sun)
4220
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221
$EGREP "yes" >/dev/null 2>&1; then :
4222
LIBS="$LIBS -lsocket -lnsl -lkstat"
4229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking BSD job jontrol..." >&5
4230
$as_echo "$as_me: checking BSD job jontrol..." >&6;}
4231
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232
/* end confdefs.h. */
4233
#include <sys/types.h>
4234
#include <sys/ioctl.h>
4255
if ac_fn_c_try_link "$LINENO"; then :
4256
echo "- you have jobcontrol" 1>&6
4257
$as_echo "@%:@define BSDJOBS 1" >>confdefs.h
4260
echo "- you don't have jobcontrol" 1>&6
4263
rm -f core conftest.err conftest.$ac_objext \
4264
conftest$ac_exeext conftest.$ac_ext
4266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking setresuid..." >&5
4267
$as_echo "$as_me: checking setresuid..." >&6;}
4268
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269
/* end confdefs.h. */
4281
if ac_fn_c_try_link "$LINENO"; then :
4282
$as_echo "@%:@define HAVE_SETRESUID 1" >>confdefs.h
4285
rm -f core conftest.err conftest.$ac_objext \
4286
conftest$ac_exeext conftest.$ac_ext
4287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking setreuid..." >&5
4288
$as_echo "$as_me: checking setreuid..." >&6;}
4289
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290
/* end confdefs.h. */
4302
if ac_fn_c_try_link "$LINENO"; then :
4303
$as_echo "@%:@define HAVE_SETREUID 1" >>confdefs.h
4306
rm -f core conftest.err conftest.$ac_objext \
4307
conftest$ac_exeext conftest.$ac_ext
4308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking seteuid..." >&5
4309
$as_echo "$as_me: checking seteuid..." >&6;}
4310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311
/* end confdefs.h. */
4317
#if defined(linux) || defined(NeXT) || defined(_AUX_SOURCE) || defined(AUX) || defined(ultrix) || (defined(sun) && defined(SVR4)) || defined(ISC) || defined(sony_news)
4318
seteuid_is_broken(0);
4327
if ac_fn_c_try_link "$LINENO"; then :
4328
$as_echo "@%:@define HAVE_SETEUID 1" >>confdefs.h
4331
rm -f core conftest.err conftest.$ac_objext \
4332
conftest$ac_exeext conftest.$ac_ext
4334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking execvpe..." >&5
4335
$as_echo "$as_me: checking execvpe..." >&6;}
4336
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337
/* end confdefs.h. */
4349
if ac_fn_c_try_link "$LINENO"; then :
4350
$as_echo "@%:@define HAVE_EXECVPE 1" >>confdefs.h
4352
CFLAGS="$CFLAGS -D_GNU_SOURCE"
4354
rm -f core conftest.err conftest.$ac_objext \
4355
conftest$ac_exeext conftest.$ac_ext
4358
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking select..." >&5
4359
$as_echo "$as_me: checking select..." >&6;}
4360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361
/* end confdefs.h. */
4366
select(0, 0, 0, 0, 0);
4371
if ac_fn_c_try_link "$LINENO"; then :
4374
LIBS="$LIBS -lnet -lnsl"
4375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking select with $LIBS..." >&5
4376
$as_echo "$as_me: checking select with $LIBS..." >&6;}
4377
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378
/* end confdefs.h. */
4383
select(0, 0, 0, 0, 0);
4388
if ac_fn_c_try_link "$LINENO"; then :
4391
as_fn_error $? "!!! no select - no screen" "$LINENO" 5
4393
rm -f core conftest.err conftest.$ac_objext \
4394
conftest$ac_exeext conftest.$ac_ext
4397
rm -f core conftest.err conftest.$ac_objext \
4398
conftest$ac_exeext conftest.$ac_ext
4400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fifos..." >&5
4401
$as_echo "$as_me: checking fifos..." >&6;}
4402
if test "$cross_compiling" = yes; then :
4403
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405
as_fn_error $? "cannot run test program while cross compiling
4406
See \`config.log' for more details" "$LINENO" 5; }
4408
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409
/* end confdefs.h. */
4411
/* For select - According to POSIX 1003.1-2001 */
4412
#include <sys/select.h>
4414
/* For select - According to earlier standards */
4415
#include <sys/time.h>
4416
#include <sys/types.h>
4419
#include <sys/stat.h>
4423
#define O_NONBLOCK O_NDELAY
4426
#define S_IFIFO 0010000
4429
char *fin = "/tmp/conftest$$";
4439
if (mkfifo(fin, 0777))
4441
if (mknod(fin, S_IFIFO|0777, 0))
4444
if (stat(fin, &stb) || (stb.st_mode & S_IFIFO) != S_IFIFO)
4449
* The next test fails under 386BSD, but screen works using fifos.
4450
* Fifos in O_RDWR mode are only used for the BROKEN_PIPE case and for
4451
* the select() configuration test.
4455
if (open(fin, O_RDONLY | O_NONBLOCK))
4460
if (open(fin, O_WRONLY | O_NONBLOCK))
4463
if (open(fin, O_WRONLY | O_NONBLOCK))
4465
if (write(0, "TEST", 4) == -1)
4470
if (select(1, &f, 0, 0, 0) == -1)
4476
if ac_fn_c_try_run "$LINENO"; then :
4477
echo "- your fifos are usable" 1>&6
4480
echo "- your fifos are not usable" 1>&6
4483
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4484
conftest.$ac_objext conftest.beam conftest.$ac_ext
4487
rm -f /tmp/conftest*
4489
if test -n "$fifo"; then
4490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken fifo implementation..." >&5
4491
$as_echo "$as_me: checking for broken fifo implementation..." >&6;}
4492
if test "$cross_compiling" = yes; then :
4493
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495
as_fn_error $? "cannot run test program while cross compiling
4496
See \`config.log' for more details" "$LINENO" 5; }
4498
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499
/* end confdefs.h. */
4501
/* For select - According to POSIX 1003.1-2001 */
4502
#include <sys/select.h>
4504
/* For select - According to earlier standards */
4505
#include <sys/time.h>
4506
#include <sys/types.h>
4509
#include <sys/stat.h>
4513
#define O_NONBLOCK O_NDELAY
4516
#define S_IFIFO 0010000
4519
char *fin = "/tmp/conftest$$";
4527
if (mkfifo(fin, 0600))
4529
if (mknod(fin, S_IFIFO|0600, 0))
4533
if (open(fin, O_RDONLY|O_NONBLOCK))
4538
if (select(1, &f, 0, 0, &tv))
4544
if ac_fn_c_try_run "$LINENO"; then :
4545
echo "- your implementation is ok" 1>&6
4548
echo "- you have a broken implementation" 1>&6
4549
$as_echo "@%:@define BROKEN_PIPE 1" >>confdefs.h
4552
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4553
conftest.$ac_objext conftest.beam conftest.$ac_ext
4556
rm -f /tmp/conftest*
4560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sockets..." >&5
4561
$as_echo "$as_me: checking sockets..." >&6;}
4562
if test "$cross_compiling" = yes; then :
4563
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565
as_fn_error $? "cannot run test program while cross compiling
4566
See \`config.log' for more details" "$LINENO" 5; }
4568
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569
/* end confdefs.h. */
4571
/* For select - According to POSIX 1003.1-2001 */
4572
#include <sys/select.h>
4574
/* For select - According to earlier standards */
4575
#include <sys/time.h>
4576
#include <sys/types.h>
4579
#include <sys/stat.h>
4581
#include <sys/socket.h>
4584
char *son = "/tmp/conftest$$";
4589
struct sockaddr_un a;
4593
if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4595
a.sun_family = AF_UNIX;
4596
strcpy(a.sun_path, son);
4598
if (bind(s1, (struct sockaddr *) &a, strlen(son)+2) == -1)
4604
if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4606
(void)connect(s2, (struct sockaddr *)&a, strlen(son) + 2);
4607
if (write(s2, "HELLO", 5) == -1)
4613
if (accept(s1, &a, &l))
4616
if (select(1, &f, 0, 0, 0) == -1)
4622
if ac_fn_c_try_run "$LINENO"; then :
4623
echo "- your sockets are usable" 1>&6
4626
echo "- your sockets are not usable" 1>&6
4629
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4630
conftest.$ac_objext conftest.beam conftest.$ac_ext
4633
rm -f /tmp/conftest*
4635
if test -n "$sock"; then
4636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking socket implementation..." >&5
4637
$as_echo "$as_me: checking socket implementation..." >&6;}
4638
if test "$cross_compiling" = yes; then :
4639
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4640
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4641
as_fn_error $? "cannot run test program while cross compiling
4642
See \`config.log' for more details" "$LINENO" 5; }
4644
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645
/* end confdefs.h. */
4647
/* For select - According to POSIX 1003.1-2001 */
4648
#include <sys/select.h>
4650
/* For select - According to earlier standards */
4651
#include <sys/time.h>
4652
#include <sys/types.h>
4655
#include <sys/stat.h>
4656
#include <sys/socket.h>
4659
char *son = "/tmp/conftest$$";
4665
struct sockaddr_un a;
4666
if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4668
a.sun_family = AF_UNIX;
4669
strcpy(a.sun_path, son);
4671
if (bind(s, (struct sockaddr *) &a, strlen(son)+2) == -1)
4673
if (stat(son, &stb))
4680
if ac_fn_c_try_run "$LINENO"; then :
4681
echo "- you are normal" 1>&6
4684
echo "- unix domain sockets are not kept in the filesystem" 1>&6
4686
$as_echo "@%:@define SOCK_NOT_IN_FS 1" >>confdefs.h
4689
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4690
conftest.$ac_objext conftest.beam conftest.$ac_ext
4693
rm -f /tmp/conftest*
4697
if test -n "$fifo"; then
4698
if test -n "$sock"; then
4699
if test -n "$nore"; then
4700
echo "- hmmm... better take the fifos" 1>&6
4702
$as_echo "@%:@define NAMEDPIPE 1" >>confdefs.h
4704
elif test -n "$fifobr"; then
4705
echo "- as your fifos are broken lets use the sockets." 1>&6
4708
echo "- both sockets and fifos usable. let's take sockets." 1>&6
4712
echo "- using named pipes" 1>&6
4714
$as_echo "@%:@define NAMEDPIPE 1" >>confdefs.h
4717
elif test -n "$sock"; then
4718
echo "- using unix-domain sockets" 1>&6
4721
as_fn_error $? "you have neither usable sockets nor usable pipes -> no screen" "$LINENO" 5
4725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking select return value..." >&5
4726
$as_echo "$as_me: checking select return value..." >&6;}
4727
if test "$cross_compiling" = yes; then :
4728
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4729
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4730
as_fn_error $? "cannot run test program while cross compiling
4731
See \`config.log' for more details" "$LINENO" 5; }
4733
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734
/* end confdefs.h. */
4736
/* For select - According to POSIX 1003.1-2001 */
4737
#include <sys/select.h>
4739
/* For select - According to earlier standards */
4740
#include <sys/time.h>
4741
#include <sys/types.h>
4744
#include <sys/stat.h>
4747
char *nam = "/tmp/conftest$$";
4752
#define O_NONBLOCK O_NDELAY
4755
#define S_IFIFO 0010000
4764
/* From Andrew A. Chernov (ache@astral.msk.su):
4765
* opening RDWR fifo fails in BSD 4.4, but select return values are
4772
if (mkfifo(nam, 0777))
4774
if (mknod(nam, S_IFIFO|0777, 0))
4778
if (open(nam, O_RDWR | O_NONBLOCK))
4780
if (write(0, "TEST", 4) == -1)
4785
#include <sys/types.h>
4786
#include <sys/socket.h>
4792
struct sockaddr_un a;
4796
if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4798
a.sun_family = AF_UNIX;
4799
strcpy(a.sun_path, nam);
4801
if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
4807
if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4809
(void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
4810
if (write(s2, "HELLO", 5) == -1)
4816
if (accept(s1, (struct sockaddr *)&a, &l))
4822
if (select(1, &f, 0, 0, 0) == -1)
4824
if (select(1, &f, &f, 0, 0) != 2)
4830
if ac_fn_c_try_run "$LINENO"; then :
4831
echo "- select is ok" 1>&6
4834
echo "- select can't count" 1>&6
4835
$as_echo "@%:@define SELECT_BROKEN 1" >>confdefs.h
4838
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4839
conftest.$ac_objext conftest.beam conftest.$ac_ext
4843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent..." >&5
4844
$as_echo "$as_me: checking for tgetent..." >&6;}
4845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846
/* end confdefs.h. */
4851
tgetent((char *)0, (char *)0);
4856
if ac_fn_c_try_link "$LINENO"; then :
4860
LIBS="-lcurses $olibs"
4861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libcurses..." >&5
4862
$as_echo "$as_me: checking libcurses..." >&6;}
4863
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864
/* end confdefs.h. */
4871
__sorry_hpux_libcurses_is_totally_broken_in_10_10();
4873
tgetent((char *)0, (char *)0);
4880
if ac_fn_c_try_link "$LINENO"; then :
4883
LIBS="-ltermcap $olibs"
4884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libtermcap..." >&5
4885
$as_echo "$as_me: checking libtermcap..." >&6;}
4886
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887
/* end confdefs.h. */
4892
tgetent((char *)0, (char *)0);
4897
if ac_fn_c_try_link "$LINENO"; then :
4900
LIBS="-ltermlib $olibs"
4901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libtermlib..." >&5
4902
$as_echo "$as_me: checking libtermlib..." >&6;}
4903
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904
/* end confdefs.h. */
4909
tgetent((char *)0, (char *)0);
4914
if ac_fn_c_try_link "$LINENO"; then :
4917
LIBS="-lncursesw $olibs"
4918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libncursesw..." >&5
4919
$as_echo "$as_me: checking libncursesw..." >&6;}
4920
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921
/* end confdefs.h. */
4926
tgetent((char *)0, (char *)0);
4931
if ac_fn_c_try_link "$LINENO"; then :
4934
LIBS="-ltinfow $olibs"
4935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libtinfow..." >&5
4936
$as_echo "$as_me: checking libtinfow..." >&6;}
4937
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938
/* end confdefs.h. */
4943
tgetent((char *)0, (char *)0);
4948
if ac_fn_c_try_link "$LINENO"; then :
4951
LIBS="-lncurses $olibs"
4952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libncurses..." >&5
4953
$as_echo "$as_me: checking libncurses..." >&6;}
4954
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955
/* end confdefs.h. */
4960
tgetent((char *)0, (char *)0);
4965
if ac_fn_c_try_link "$LINENO"; then :
4968
LIBS="-ltinfo $olibs"
4969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libtinfo..." >&5
4970
$as_echo "$as_me: checking libtinfo..." >&6;}
4971
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972
/* end confdefs.h. */
4977
tgetent((char *)0, (char *)0);
4982
if ac_fn_c_try_link "$LINENO"; then :
4985
as_fn_error $? "!!! no tgetent - no screen" "$LINENO" 5
4987
rm -f core conftest.err conftest.$ac_objext \
4988
conftest$ac_exeext conftest.$ac_ext
4990
rm -f core conftest.err conftest.$ac_objext \
4991
conftest$ac_exeext conftest.$ac_ext
4993
rm -f core conftest.err conftest.$ac_objext \
4994
conftest$ac_exeext conftest.$ac_ext
4996
rm -f core conftest.err conftest.$ac_objext \
4997
conftest$ac_exeext conftest.$ac_ext
4999
rm -f core conftest.err conftest.$ac_objext \
5000
conftest$ac_exeext conftest.$ac_ext
5002
rm -f core conftest.err conftest.$ac_objext \
5003
conftest$ac_exeext conftest.$ac_ext
5005
rm -f core conftest.err conftest.$ac_objext \
5006
conftest$ac_exeext conftest.$ac_ext
5008
rm -f core conftest.err conftest.$ac_objext \
5009
conftest$ac_exeext conftest.$ac_ext
5011
if test "$cross_compiling" = yes; then :
5012
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5013
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5014
as_fn_error $? "cannot run test program while cross compiling
5015
See \`config.log' for more details" "$LINENO" 5; }
5017
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018
/* end confdefs.h. */
5022
exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
5025
if ac_fn_c_try_run "$LINENO"; then :
5026
echo "- you use the termcap database" 1>&6
5029
echo "- you use the terminfo database" 1>&6
5030
$as_echo "@%:@define TERMINFO 1" >>confdefs.h
5033
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5034
conftest.$ac_objext conftest.beam conftest.$ac_ext
5037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ospeed..." >&5
5038
$as_echo "$as_me: checking ospeed..." >&6;}
5039
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040
/* end confdefs.h. */
5041
extern short ospeed;
5050
if ac_fn_c_try_link "$LINENO"; then :
5053
$as_echo "@%:@define NEED_OSPEED 1" >>confdefs.h
5056
rm -f core conftest.err conftest.$ac_objext \
5057
conftest$ac_exeext conftest.$ac_ext
5059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc..." >&5
5060
$as_echo "$as_me: checking for /dev/ptc..." >&6;}
5061
if test -r /dev/ptc; then
5062
$as_echo "@%:@define HAVE_DEV_PTC 1" >>confdefs.h
5066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys..." >&5
5067
$as_echo "$as_me: checking for SVR4 ptys..." >&6;}
5069
if test -c /dev/ptmx ; then
5070
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071
/* end confdefs.h. */
5076
ptsname(0);grantpt(0);unlockpt(0);
5081
if ac_fn_c_try_link "$LINENO"; then :
5082
$as_echo "@%:@define HAVE_SVR4_PTYS 1" >>confdefs.h
5086
rm -f core conftest.err conftest.$ac_objext \
5087
conftest$ac_exeext conftest.$ac_ext
5090
for ac_func in getpt
5092
ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
5093
if test "x$ac_cv_func_getpt" = xyes; then :
5094
cat >>confdefs.h <<_ACEOF
5095
@%:@define HAVE_GETPT 1
5102
if test -z "$sysvr4ptys"; then
5103
for ac_func in openpty
5105
ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
5106
if test "x$ac_cv_func_openpty" = xyes; then :
5107
cat >>confdefs.h <<_ACEOF
5108
@%:@define HAVE_OPENPTY 1
5112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
5113
$as_echo_n "checking for openpty in -lutil... " >&6; }
5114
if ${ac_cv_lib_util_openpty+:} false; then :
5115
$as_echo_n "(cached) " >&6
5117
ac_check_lib_save_LIBS=$LIBS
5119
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120
/* end confdefs.h. */
5122
/* Override any GCC internal prototype to avoid an error.
5123
Use char because int might match the return type of a GCC
5124
builtin and then its argument prototype would still apply. */
5137
if ac_fn_c_try_link "$LINENO"; then :
5138
ac_cv_lib_util_openpty=yes
5140
ac_cv_lib_util_openpty=no
5142
rm -f core conftest.err conftest.$ac_objext \
5143
conftest$ac_exeext conftest.$ac_ext
5144
LIBS=$ac_check_lib_save_LIBS
5146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
5147
$as_echo "$ac_cv_lib_util_openpty" >&6; }
5148
if test "x$ac_cv_lib_util_openpty" = xyes; then :
5149
$as_echo "@%:@define HAVE_OPENPTY 1" >>confdefs.h
5158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges..." >&5
5159
$as_echo "$as_me: checking for ptyranges..." >&6;}
5160
if test -d /dev/ptym ; then
5165
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166
/* end confdefs.h. */
5172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5173
$EGREP "yes" >/dev/null 2>&1; then :
5174
ptys=`echo /dev/ptyp??`
5176
ptys=`echo $pdir/pty??`
5180
if test "$ptys" != "$pdir/pty??" ; then
5181
p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
5182
p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
5183
cat >>confdefs.h <<_ACEOF
5184
@%:@define PTYRANGE0 "$p0"
5187
cat >>confdefs.h <<_ACEOF
5188
@%:@define PTYRANGE1 "$p1"
5194
@%:@ Check whether --with-pty-mode was given.
5195
if test "${with_pty_mode+set}" = set; then :
5196
withval=$with_pty_mode; ptymode="${withval}"
5200
@%:@ Check whether --with-pty-group was given.
5201
if test "${with_pty_group+set}" = set; then :
5202
withval=$with_pty_group; ptygrp="${withval}"
5205
test -n "$ptymode" || ptymode=0620
5206
if test -n "$ptygrp" ; then
5207
cat >>confdefs.h <<_ACEOF
5208
@%:@define PTYMODE $ptymode
5211
cat >>confdefs.h <<_ACEOF
5212
@%:@define PTYGROUP $ptygrp
5217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group..." >&5
5218
$as_echo "$as_me: checking default tty permissions/group..." >&6;}
5220
if test "$cross_compiling" = yes; then :
5221
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5222
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5223
as_fn_error $? "cannot run test program while cross compiling
5224
See \`config.log' for more details" "$LINENO" 5; }
5226
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227
/* end confdefs.h. */
5229
#include <sys/types.h>
5230
#include <sys/stat.h>
5239
if (!(x = ttyname(0))) exit(1);
5240
if (stat(x, &sb)) exit(1);
5242
if (om & 002) exit(0);
5243
m = system("mesg y");
5244
if (m == -1 || m == 127) exit(1);
5245
if (stat(x, &sb)) exit(1);
5247
if (chmod(x, om)) exit(1);
5248
if (m & 002) exit(0);
5249
if (sb.st_gid == getgid()) exit(1);
5250
if (!(fp=fopen("conftest_grp", "w")))
5252
fprintf(fp, "%d\n", sb.st_gid);
5258
if ac_fn_c_try_run "$LINENO"; then :
5260
if test -f conftest_grp; then
5261
ptygrp=`cat conftest_grp`
5262
echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
5264
cat >>confdefs.h <<_ACEOF
5265
@%:@define PTYMODE $ptymode
5268
cat >>confdefs.h <<_ACEOF
5269
@%:@define PTYGROUP $ptygrp
5273
echo "- ptys are world accessable" 1>&6
5281
# Extract the first word of "write", so it can be a program name with args.
5282
set dummy write; ac_word=$2
5283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284
$as_echo_n "checking for $ac_word... " >&6; }
5285
if ${ac_cv_path_WRITEPATH+:} false; then :
5286
$as_echo_n "(cached) " >&6
5290
ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path.
5293
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297
test -z "$as_dir" && as_dir=.
5298
for ac_exec_ext in '' $ac_executable_extensions; do
5299
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300
ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext"
5301
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311
WRITEPATH=$ac_cv_path_WRITEPATH
5312
if test -n "$WRITEPATH"; then
5313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WRITEPATH" >&5
5314
$as_echo "$WRITEPATH" >&6; }
5316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317
$as_echo "no" >&6; }
5321
# Extract the first word of "xterm", so it can be a program name with args.
5322
set dummy xterm; ac_word=$2
5323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324
$as_echo_n "checking for $ac_word... " >&6; }
5325
if ${ac_cv_path_XTERMPATH+:} false; then :
5326
$as_echo_n "(cached) " >&6
5330
ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path.
5333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337
test -z "$as_dir" && as_dir=.
5338
for ac_exec_ext in '' $ac_executable_extensions; do
5339
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340
ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext"
5341
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351
XTERMPATH=$ac_cv_path_XTERMPATH
5352
if test -n "$XTERMPATH"; then
5353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XTERMPATH" >&5
5354
$as_echo "$XTERMPATH" >&6; }
5356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357
$as_echo "no" >&6; }
5362
if test -n "$WRITEPATH$XTERMPATH"; then
5365
found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
5366
if test -n "$found"; then
5370
if test -n "$XTERMPATH"; then
5371
ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
5372
if test tty != "$ptygrpn"; then
5377
if test -n "$WRITEPATH$XTERMPATH"; then
5378
found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
5379
if test -n "$found"; then
5380
ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
5381
echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
5383
cat >>confdefs.h <<_ACEOF
5384
@%:@define PTYMODE $ptymode
5387
cat >>confdefs.h <<_ACEOF
5388
@%:@define PTYGROUP $ptygrp
5392
echo "- ptys are world accessable" 1>&6
5396
echo "- can't determine - assume ptys are world accessable" 1>&6
5402
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5403
conftest.$ac_objext conftest.beam conftest.$ac_ext
5409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getutent..." >&5
5410
$as_echo "$as_me: checking getutent..." >&6;}
5411
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412
/* end confdefs.h. */
5414
#include <time.h> /* to get time_t on SCO */
5415
#include <sys/types.h>
5416
#if defined(SVR4) && !defined(DGUX)
5423
#define pututline _pututline
5429
int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();
5434
if ac_fn_c_try_link "$LINENO"; then :
5435
$as_echo "@%:@define GETUTENT 1" >>confdefs.h
5440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getutent with -lgen..." >&5
5441
$as_echo "$as_me: checking getutent with -lgen..." >&6;}
5442
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443
/* end confdefs.h. */
5446
#include <sys/types.h>
5447
#if defined(SVR4) && !defined(DGUX)
5454
#define pututline _pututline
5460
int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();
5465
if ac_fn_c_try_link "$LINENO"; then :
5466
$as_echo "@%:@define GETUTENT 1" >>confdefs.h
5471
rm -f core conftest.err conftest.$ac_objext \
5472
conftest$ac_exeext conftest.$ac_ext
5475
rm -f core conftest.err conftest.$ac_objext \
5476
conftest$ac_exeext conftest.$ac_ext
5477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ut_host..." >&5
5478
$as_echo "$as_me: checking ut_host..." >&6;}
5479
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480
/* end confdefs.h. */
5483
#include <sys/types.h>
5484
#if defined(SVR4) && !defined(DGUX)
5494
struct utmp u; u.ut_host[0] = 0;
5499
if ac_fn_c_try_compile "$LINENO"; then :
5500
$as_echo "@%:@define UTHOST 1" >>confdefs.h
5503
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504
ac_fn_c_check_header_mongrel "$LINENO" "utempter.h" "ac_cv_header_utempter_h" "$ac_includes_default"
5505
if test "x$ac_cv_header_utempter_h" = xyes; then :
5512
if test "$have_utempter" = yes; then
5513
$as_echo "@%:@define HAVE_UTEMPTER 1" >>confdefs.h
5515
LIBS="$LIBS -lutempter"
5518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libutil(s)..." >&5
5519
$as_echo "$as_me: checking for libutil(s)..." >&6;}
5520
test -f /usr/lib/libutils.a && LIBS="$LIBS -lutils"
5521
test -f /usr/lib/libutil.a && LIBS="$LIBS -lutil"
5523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getloadavg..." >&5
5524
$as_echo "$as_me: checking getloadavg..." >&6;}
5525
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526
/* end confdefs.h. */
5531
getloadavg((double *)0, 0);
5536
if ac_fn_c_try_link "$LINENO"; then :
5537
$as_echo "@%:@define LOADAV_GETLOADAVG 1" >>confdefs.h
5540
if test -f /usr/lib/libkvm.a ; then
5543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getloadavg with -lkvm..." >&5
5544
$as_echo "$as_me: checking getloadavg with -lkvm..." >&6;}
5545
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546
/* end confdefs.h. */
5551
getloadavg((double *)0, 0);
5556
if ac_fn_c_try_link "$LINENO"; then :
5557
$as_echo "@%:@define LOADAV_GETLOADAVG 1" >>confdefs.h
5562
rm -f core conftest.err conftest.$ac_objext \
5563
conftest$ac_exeext conftest.$ac_ext
5567
rm -f core conftest.err conftest.$ac_objext \
5568
conftest$ac_exeext conftest.$ac_ext
5570
if test -z "$load" ; then
5571
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572
/* end confdefs.h. */
5573
#if defined(NeXT) || defined(apollo) || defined(linux)
5578
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5579
$EGREP "yes" >/dev/null 2>&1; then :
5585
if test -z "$load" ; then
5586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernelfile..." >&5
5587
$as_echo "$as_me: checking for kernelfile..." >&6;}
5588
for core in /unix /vmunix /dynix /hp-ux /xelos /dev/ksyms /kernel/unix /kernel/genunix /unicos /mach /netbsd /386bsd /dgux /bsd /stand/vmunix; do
5589
if test -f $core || test -c $core; then
5593
if test ! -f $core && test ! -c $core ; then
5594
echo "- no kernelfile found" 1>&6
5597
echo "- using kernelfile '$core'" 1>&6
5599
if test -r $core ; then
5600
cat >>confdefs.h <<_ACEOF
5601
@%:@define LOADAV_UNIX "$core"
5604
ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
5605
if test "x$ac_cv_header_nlist_h" = xyes; then :
5606
$as_echo "@%:@define NLIST_STRUCT 1" >>confdefs.h
5608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking n_un in struct nlist..." >&5
5609
$as_echo "$as_me: checking n_un in struct nlist..." >&6;}
5610
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611
/* end confdefs.h. */
5616
struct nlist n; n.n_un.n_name = 0;
5621
if ac_fn_c_try_compile "$LINENO"; then :
5622
$as_echo "@%:@define NLIST_NAME_UNION 1" >>confdefs.h
5625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist declaration..." >&5
5631
$as_echo "$as_me: checking for nlist declaration..." >&6;}
5632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633
/* end confdefs.h. */
5642
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5643
$EGREP "nlist(( | )( | )*.*\(|\()" >/dev/null 2>&1; then :
5644
$as_echo "@%:@define NLIST_DECLARED 1" >>confdefs.h
5650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avenrun symbol..." >&5
5651
$as_echo "$as_me: checking for avenrun symbol..." >&6;}
5653
for av in avenrun _avenrun _Loadavg avenrun _avenrun _Loadavg; do
5654
if test "$cross_compiling" = yes; then :
5655
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5656
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5657
as_fn_error $? "cannot run test program while cross compiling
5658
See \`config.log' for more details" "$LINENO" 5; }
5660
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661
/* end confdefs.h. */
5663
#include <sys/types.h>
5676
#if !defined(_AUX_SOURCE) && !defined(AUX)
5677
# ifdef NLIST_NAME_UNION
5678
nl[0].n_un.n_name = "$av";
5680
nl[0].n_name = "$av";
5683
strncpy(nl[0].n_name, "$av", sizeof(nl[0].n_name));
5685
nlist(LOADAV_UNIX, nl);
5686
if (nl[0].n_value == 0)
5692
if ac_fn_c_try_run "$LINENO"; then :
5695
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5696
conftest.$ac_objext conftest.beam conftest.$ac_ext
5699
if test "$av" = _Loadavg; then
5700
nlist64='#define nlist nlist64'
5703
if test -z "$avensym" ; then
5704
echo "- no avenrun symbol found" 1>&6
5707
echo "- using avenrun symbol '$avensym'" 1>&6
5709
cat >>confdefs.h <<_ACEOF
5710
@%:@define LOADAV_AVENRUN "$avensym"
5713
if test -n "$nlist64"; then
5714
echo "- used nlist64 to find it" 1>&6
5716
$as_echo "@%:@define LOADAV_USE_NLIST64 1" >>confdefs.h
5722
echo "Can't configure the load average display feature" 1>&6
5724
echo "because $core is not readable by you." 1>&6
5726
echo "To configure the load average display feature" 1>&6
5728
echo "re-run configure as root if possible." 1>&6
5730
echo "If you are not the system administrator then disregard" 1>&6
5732
echo "this warning. You can still use screen without" 1>&6
5734
echo "the load average display feature." 1>&6
5740
cat > conftest.c <<EOF
5741
#include "confdefs.h"
5743
#include <sys/types.h>
5744
#include <sys/param.h>
5748
#if !defined(LOADAV_GETLOADAVG) && ((defined(hp300) && !defined(__hpux)) || defined(sun) || (defined(ultrix) && defined(mips)) || defined(_SEQUENT_) || defined(sgi) || (defined(SVR4) && !defined(__hpux)) || defined(sony_news) || (!defined(__osf__) && defined(__alpha)) || defined(_IBMR2) || defined(_AUX_SOURCE) || defined(AUX) || defined(m88k))
5750
# if defined(apollo) || defined(_IBMR2) || defined(_AUX_SOURCE) || defined(AUX)
5753
# if defined(FSCALE) && !defined(__osf__)
5761
# if defined(MIPS) || defined(SVR4) || defined(m88k)
5763
# else /* not MIPS */
5764
loadscale=1000 /* our default value */
5767
# endif /* not FSCALE */
5768
# endif /* not apollo */
5780
eval "$ac_cpp conftest.c 2>&5 | sed -e '1,/_CUT_HERE_/d' -e 's/ //g' > conftest.out"
5785
if test -n "$load" ; then $as_echo "@%:@define LOADAV 1" >>confdefs.h
5787
if test -n "$loadtype" ; then cat >>confdefs.h <<_ACEOF
5788
@%:@define LOADAV_TYPE $loadtype
5791
if test -n "$loadnum" ; then cat >>confdefs.h <<_ACEOF
5792
@%:@define LOADAV_NUM $loadnum
5795
if test -n "$loadscale" ; then cat >>confdefs.h <<_ACEOF
5796
@%:@define LOADAV_SCALE $loadscale
5800
if test -n "$posix" ; then
5802
echo "assuming posix signal definition" 1>&6
5804
$as_echo "@%:@define SIGVOID 1" >>confdefs.h
5809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers..." >&5
5810
$as_echo "$as_me: checking return type of signal handlers..." >&6;}
5811
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812
/* end confdefs.h. */
5813
#include <sys/types.h>
5818
extern void (*signal ()) ();
5827
if ac_fn_c_try_compile "$LINENO"; then :
5828
$as_echo "@%:@define SIGVOID 1" >>confdefs.h
5831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sigset..." >&5
5833
$as_echo "$as_me: checking sigset..." >&6;}
5834
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835
/* end confdefs.h. */
5837
#include <sys/types.h>
5845
sigset(0, (void (*)())0);
5847
sigset(0, (int (*)())0);
5854
if ac_fn_c_try_link "$LINENO"; then :
5855
$as_echo "@%:@define USESIGSET 1" >>confdefs.h
5858
rm -f core conftest.err conftest.$ac_objext \
5859
conftest$ac_exeext conftest.$ac_ext
5860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking signal implementation..." >&5
5861
$as_echo "$as_me: checking signal implementation..." >&6;}
5862
if test "$cross_compiling" = yes; then :
5863
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5864
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5865
as_fn_error $? "cannot run test program while cross compiling
5866
See \`config.log' for more details" "$LINENO" 5; }
5868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869
/* end confdefs.h. */
5871
#include <sys/types.h>
5875
#define SIGCLD SIGCHLD
5878
#define signal sigset
5893
/* on hpux we use sigvec to get bsd signals */
5895
(void)signal(SIGCLD, hand);
5896
kill(getpid(), SIGCLD);
5897
kill(getpid(), SIGCLD);
5905
if ac_fn_c_try_run "$LINENO"; then :
5908
$as_echo "@%:@define SYSVSIGS 1" >>confdefs.h
5911
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5912
conftest.$ac_objext conftest.beam conftest.$ac_ext
5919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt and sec libraries..." >&5
5920
$as_echo "$as_me: checking for crypt and sec libraries..." >&6;}
5921
test -f /lib/libcrypt_d.a || test -f /usr/lib/libcrypt_d.a && LIBS="$LIBS -lcrypt_d"
5923
LIBS="$LIBS -lcrypt"
5924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking crypt..." >&5
5925
$as_echo "$as_me: checking crypt..." >&6;}
5926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927
/* end confdefs.h. */
5937
if ac_fn_c_try_link "$LINENO"; then :
5942
rm -f core conftest.err conftest.$ac_objext \
5943
conftest$ac_exeext conftest.$ac_ext
5944
test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
5945
test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
5948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIX sun library..." >&5
5949
$as_echo "$as_me: checking IRIX sun library..." >&6;}
5950
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951
/* end confdefs.h. */
5961
if ac_fn_c_try_link "$LINENO"; then :
5966
rm -f core conftest.err conftest.$ac_objext \
5967
conftest$ac_exeext conftest.$ac_ext
5969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking syslog..." >&5
5970
$as_echo "$as_me: checking syslog..." >&6;}
5971
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972
/* end confdefs.h. */
5982
if ac_fn_c_try_link "$LINENO"; then :
5987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking syslog in libbsd.a..." >&5
5988
$as_echo "$as_me: checking syslog in libbsd.a..." >&6;}
5989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990
/* end confdefs.h. */
6000
if ac_fn_c_try_link "$LINENO"; then :
6001
echo "- found." 1>&6
6005
echo "- bad news: syslog missing." 1>&6
6006
$as_echo "@%:@define NOSYSLOG 1" >>confdefs.h
6009
rm -f core conftest.err conftest.$ac_objext \
6010
conftest$ac_exeext conftest.$ac_ext
6012
rm -f core conftest.err conftest.$ac_objext \
6013
conftest$ac_exeext conftest.$ac_ext
6015
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016
/* end confdefs.h. */
6022
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023
$EGREP "yes" >/dev/null 2>&1; then :
6024
LIBS="$LIBS -lsocket -lcrypt_i"
6029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wait union..." >&5
6030
$as_echo "$as_me: checking wait union..." >&6;}
6031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032
/* end confdefs.h. */
6033
#include <sys/types.h>
6034
#include <sys/wait.h>
6050
if ac_fn_c_try_compile "$LINENO"; then :
6051
$as_echo "@%:@define BSDWAIT 1" >>confdefs.h
6054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056
if test -z "$butterfly"; then
6057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termio or termios..." >&5
6058
$as_echo "$as_me: checking for termio or termios..." >&6;}
6059
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060
/* end confdefs.h. */
6063
if ac_fn_c_try_cpp "$LINENO"; then :
6064
$as_echo "@%:@define TERMIO 1" >>confdefs.h
6067
if test -n "$posix"; then
6068
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069
/* end confdefs.h. */
6070
#include <termios.h>
6072
if ac_fn_c_try_cpp "$LINENO"; then :
6073
$as_echo "@%:@define TERMIO 1" >>confdefs.h
6076
rm -f conftest.err conftest.i conftest.$ac_ext
6080
rm -f conftest.err conftest.i conftest.$ac_ext
6083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getspnam..." >&5
6084
$as_echo "$as_me: checking getspnam..." >&6;}
6085
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086
/* end confdefs.h. */
6096
if ac_fn_c_try_link "$LINENO"; then :
6097
$as_echo "@%:@define SHADOWPW 1" >>confdefs.h
6100
rm -f core conftest.err conftest.$ac_objext \
6101
conftest$ac_exeext conftest.$ac_ext
6103
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getttyent..." >&5
6104
$as_echo "$as_me: checking getttyent..." >&6;}
6105
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106
/* end confdefs.h. */
6116
if ac_fn_c_try_link "$LINENO"; then :
6117
$as_echo "@%:@define GETTTYENT 1" >>confdefs.h
6120
rm -f core conftest.err conftest.$ac_objext \
6121
conftest$ac_exeext conftest.$ac_ext
6123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fdwalk..." >&5
6124
$as_echo "$as_me: checking fdwalk..." >&6;}
6125
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126
/* end confdefs.h. */
6136
if ac_fn_c_try_link "$LINENO"; then :
6137
$as_echo "@%:@define HAVE_FDWALK 1" >>confdefs.h
6140
rm -f core conftest.err conftest.$ac_objext \
6141
conftest$ac_exeext conftest.$ac_ext
6143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy/memmove/bcopy handles overlapping arguments..." >&5
6144
$as_echo "$as_me: checking whether memcpy/memmove/bcopy handles overlapping arguments..." >&6;}
6145
if test "$cross_compiling" = yes; then :
6146
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6147
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6148
as_fn_error $? "cannot run test program while cross compiling
6149
See \`config.log' for more details" "$LINENO" 5; }
6151
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152
/* end confdefs.h. */
6156
strcpy(buf, "abcdefghi");
6157
bcopy(buf, buf + 2, 3);
6158
if (strncmp(buf, "ababcf", 6))
6160
strcpy(buf, "abcdefghi");
6161
bcopy(buf + 2, buf, 3);
6162
if (strncmp(buf, "cdedef", 6))
6164
exit(0); /* libc version works properly. */
6167
if ac_fn_c_try_run "$LINENO"; then :
6168
$as_echo "@%:@define USEBCOPY 1" >>confdefs.h
6171
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6172
conftest.$ac_objext conftest.beam conftest.$ac_ext
6176
if test "$cross_compiling" = yes; then :
6177
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6178
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6179
as_fn_error $? "cannot run test program while cross compiling
6180
See \`config.log' for more details" "$LINENO" 5; }
6182
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183
/* end confdefs.h. */
6185
#define bcopy(s,d,l) memmove(d,s,l)
6188
strcpy(buf, "abcdefghi");
6189
bcopy(buf, buf + 2, 3);
6190
if (strncmp(buf, "ababcf", 6))
6192
strcpy(buf, "abcdefghi");
6193
bcopy(buf + 2, buf, 3);
6194
if (strncmp(buf, "cdedef", 6))
6196
exit(0); /* libc version works properly. */
6199
if ac_fn_c_try_run "$LINENO"; then :
6200
$as_echo "@%:@define USEMEMMOVE 1" >>confdefs.h
6203
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6204
conftest.$ac_objext conftest.beam conftest.$ac_ext
6209
if test "$cross_compiling" = yes; then :
6210
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6211
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6212
as_fn_error $? "cannot run test program while cross compiling
6213
See \`config.log' for more details" "$LINENO" 5; }
6215
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216
/* end confdefs.h. */
6218
#define bcopy(s,d,l) memcpy(d,s,l)
6221
strcpy(buf, "abcdefghi");
6222
bcopy(buf, buf + 2, 3);
6223
if (strncmp(buf, "ababcf", 6))
6225
strcpy(buf, "abcdefghi");
6226
bcopy(buf + 2, buf, 3);
6227
if (strncmp(buf, "cdedef", 6))
6229
exit(0); /* libc version works properly. */
6232
if ac_fn_c_try_run "$LINENO"; then :
6233
$as_echo "@%:@define USEMEMCPY 1" >>confdefs.h
6236
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6237
conftest.$ac_objext conftest.beam conftest.$ac_ext
6241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6242
$as_echo_n "checking for long file names... " >&6; }
6243
if ${ac_cv_sys_long_file_names+:} false; then :
6244
$as_echo_n "(cached) " >&6
6246
ac_cv_sys_long_file_names=yes
6247
# Test for long file names in all the places we know might matter:
6248
# . the current directory, where building will happen
6249
# $prefix/lib where we will be installing things
6250
# $exec_prefix/lib likewise
6251
# $TMPDIR if set, where it might want to write temporary files
6252
# /tmp where it might want to write temporary files
6255
for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6256
# Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6257
# in the usual case where exec_prefix is '${prefix}'.
6259
. | /* | ?:[\\/]*) ;; #(
6262
test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6263
ac_xdir=$ac_dir/cf$$
6264
(umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6265
ac_tf1=$ac_xdir/conftest9012345
6266
ac_tf2=$ac_xdir/conftest9012346
6267
touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6268
ac_cv_sys_long_file_names=no
6269
rm -f -r "$ac_xdir" 2>/dev/null
6270
test $ac_cv_sys_long_file_names = no && break
6273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6274
$as_echo "$ac_cv_sys_long_file_names" >&6; }
6275
if test $ac_cv_sys_long_file_names = yes; then
6277
$as_echo "@%:@define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6282
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsprintf" >&5
6283
$as_echo_n "checking for vsprintf... " >&6; }
6284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285
/* end confdefs.h. */
6290
va_list valist; vsprintf(0,0,valist);
6295
if ac_fn_c_try_link "$LINENO"; then :
6296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6297
$as_echo "yes" >&6; };$as_echo "@%:@define USEVARARGS 1" >>confdefs.h
6300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301
$as_echo "no" >&6; }
6303
rm -f core conftest.err conftest.$ac_objext \
6304
conftest$ac_exeext conftest.$ac_ext
6307
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6308
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6310
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6311
if eval \${$as_ac_Header+:} false; then :
6312
$as_echo_n "(cached) " >&6
6314
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315
/* end confdefs.h. */
6316
#include <sys/types.h>
6328
if ac_fn_c_try_compile "$LINENO"; then :
6329
eval "$as_ac_Header=yes"
6331
eval "$as_ac_Header=no"
6333
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335
eval ac_res=\$$as_ac_Header
6336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6337
$as_echo "$ac_res" >&6; }
6338
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6339
cat >>confdefs.h <<_ACEOF
6340
@%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6343
ac_header_dirent=$ac_hdr; break
6347
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6348
if test $ac_header_dirent = dirent.h; then
6349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6350
$as_echo_n "checking for library containing opendir... " >&6; }
6351
if ${ac_cv_search_opendir+:} false; then :
6352
$as_echo_n "(cached) " >&6
6354
ac_func_search_save_LIBS=$LIBS
6355
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356
/* end confdefs.h. */
6358
/* Override any GCC internal prototype to avoid an error.
6359
Use char because int might match the return type of a GCC
6360
builtin and then its argument prototype would still apply. */
6373
for ac_lib in '' dir; do
6374
if test -z "$ac_lib"; then
6375
ac_res="none required"
6378
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6380
if ac_fn_c_try_link "$LINENO"; then :
6381
ac_cv_search_opendir=$ac_res
6383
rm -f core conftest.err conftest.$ac_objext \
6385
if ${ac_cv_search_opendir+:} false; then :
6389
if ${ac_cv_search_opendir+:} false; then :
6392
ac_cv_search_opendir=no
6395
LIBS=$ac_func_search_save_LIBS
6397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6398
$as_echo "$ac_cv_search_opendir" >&6; }
6399
ac_res=$ac_cv_search_opendir
6400
if test "$ac_res" != no; then :
6401
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6407
$as_echo_n "checking for library containing opendir... " >&6; }
6408
if ${ac_cv_search_opendir+:} false; then :
6409
$as_echo_n "(cached) " >&6
6411
ac_func_search_save_LIBS=$LIBS
6412
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413
/* end confdefs.h. */
6415
/* Override any GCC internal prototype to avoid an error.
6416
Use char because int might match the return type of a GCC
6417
builtin and then its argument prototype would still apply. */
6430
for ac_lib in '' x; do
6431
if test -z "$ac_lib"; then
6432
ac_res="none required"
6435
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6437
if ac_fn_c_try_link "$LINENO"; then :
6438
ac_cv_search_opendir=$ac_res
6440
rm -f core conftest.err conftest.$ac_objext \
6442
if ${ac_cv_search_opendir+:} false; then :
6446
if ${ac_cv_search_opendir+:} false; then :
6449
ac_cv_search_opendir=no
6452
LIBS=$ac_func_search_save_LIBS
6454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6455
$as_echo "$ac_cv_search_opendir" >&6; }
6456
ac_res=$ac_cv_search_opendir
6457
if test "$ac_res" != no; then :
6458
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setenv" >&5
6466
$as_echo_n "checking for setenv... " >&6; }
6467
if test -z "$ac_setenv_args"; then
6468
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469
/* end confdefs.h. */
6475
setenv((char *) 0, (char *) 0, 0);
6481
if ac_fn_c_try_link "$LINENO"; then :
6484
rm -f core conftest.err conftest.$ac_objext \
6485
conftest$ac_exeext conftest.$ac_ext
6487
if test -z "$ac_setenv_args"; then
6488
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489
/* end confdefs.h. */
6495
setenv((char *) 0, (char *) 0);
6501
if ac_fn_c_try_link "$LINENO"; then :
6504
rm -f core conftest.err conftest.$ac_objext \
6505
conftest$ac_exeext conftest.$ac_ext
6507
if test -n "$ac_setenv_args"; then
6508
$as_echo "@%:@define USESETENV 1" >>confdefs.h
6510
if test "$ac_setenv_args" = 3; then
6511
$as_echo "@%:@define HAVE_SETENV_3 1" >>confdefs.h
6513
elif test "$ac_setenv_args" = 2; then
6514
$as_echo "@%:@define HAVE_SETENV_2 1" >>confdefs.h
6518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519
$as_echo "no" >&6; }
6520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv" >&5
6521
$as_echo_n "checking for putenv... " >&6; }
6522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523
/* end confdefs.h. */
6528
putenv((char *)0);unsetenv((char *)0);
6533
if ac_fn_c_try_link "$LINENO"; then :
6534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6535
$as_echo "yes" >&6; }
6537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538
$as_echo "no" >&6; };$as_echo "@%:@define NEEDPUTENV 1" >>confdefs.h
6541
rm -f core conftest.err conftest.$ac_objext \
6542
conftest$ac_exeext conftest.$ac_ext
6544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
6545
$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
6546
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547
/* end confdefs.h. */
6549
#include <langinfo.h>
6554
nl_langinfo(CODESET);
6559
if ac_fn_c_try_link "$LINENO"; then :
6560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6561
$as_echo "yes" >&6; };$as_echo "@%:@define HAVE_NL_LANGINFO 1" >>confdefs.h
6564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565
$as_echo "no" >&6; }
6567
rm -f core conftest.err conftest.$ac_objext \
6568
conftest$ac_exeext conftest.$ac_ext
6570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
6571
$as_echo_n "checking for library containing gethostname... " >&6; }
6572
if ${ac_cv_search_gethostname+:} false; then :
6573
$as_echo_n "(cached) " >&6
6575
ac_func_search_save_LIBS=$LIBS
6576
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577
/* end confdefs.h. */
6579
/* Override any GCC internal prototype to avoid an error.
6580
Use char because int might match the return type of a GCC
6581
builtin and then its argument prototype would still apply. */
6585
char gethostname ();
6589
return gethostname ();
6594
for ac_lib in '' nsl; do
6595
if test -z "$ac_lib"; then
6596
ac_res="none required"
6599
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6601
if ac_fn_c_try_link "$LINENO"; then :
6602
ac_cv_search_gethostname=$ac_res
6604
rm -f core conftest.err conftest.$ac_objext \
6606
if ${ac_cv_search_gethostname+:} false; then :
6610
if ${ac_cv_search_gethostname+:} false; then :
6613
ac_cv_search_gethostname=no
6616
LIBS=$ac_func_search_save_LIBS
6618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
6619
$as_echo "$ac_cv_search_gethostname" >&6; }
6620
ac_res=$ac_cv_search_gethostname
6621
if test "$ac_res" != no; then :
6622
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6627
for ac_func in rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime
6629
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6630
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6631
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6632
cat >>confdefs.h <<_ACEOF
6633
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6640
@%:@ Check whether --enable-pam was given.
6641
if test "${enable_pam+set}" = set; then :
6642
enableval=$enable_pam;
6645
if test "$enable_pam" = "yes"; then
6646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM support" >&5
6647
$as_echo_n "checking for PAM support... " >&6; }
6650
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651
/* end confdefs.h. */
6652
#include <security/pam_appl.h>
6657
pam_start(0, 0, 0, 0);
6658
pam_authenticate(0, 0);
6665
if ac_fn_c_try_link "$LINENO"; then :
6666
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6667
$as_echo "yes" >&6; };$as_echo "@%:@define USE_PAM 1" >>confdefs.h
6670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671
$as_echo "no" >&6; };LIBS="$oldlibs"
6673
rm -f core conftest.err conftest.$ac_objext \
6674
conftest$ac_exeext conftest.$ac_ext
6677
@%:@ Check whether --enable-use_locale was given.
6678
if test "${enable_use_locale+set}" = set; then :
6679
enableval=$enable_use_locale;
6682
if test "$enable_use_locale" = "yes"; then
6683
$as_echo "@%:@define USE_LOCALE 1" >>confdefs.h
6686
@%:@ Check whether --enable-telnet was given.
6687
if test "${enable_telnet+set}" = set; then :
6688
enableval=$enable_telnet;
6691
if test "$enable_telnet" = "yes"; then
6692
$as_echo "@%:@define BUILTIN_TELNET 1" >>confdefs.h
6695
@%:@ Check whether --enable-colors256 was given.
6696
if test "${enable_colors256+set}" = set; then :
6697
enableval=$enable_colors256;
6700
if test "$enable_colors256" = "yes"; then
6701
$as_echo "@%:@define COLORS256 1" >>confdefs.h
6704
@%:@ Check whether --enable-rxvt_osc was given.
6705
if test "${enable_rxvt_osc+set}" = set; then :
6706
enableval=$enable_rxvt_osc;
6709
if test "$enable_rxvt_osc" = "yes"; then
6710
$as_echo "@%:@define RXVT_OSC 1" >>confdefs.h
6714
if test -z "$old_CFLAGS"; then
6715
if test "x$CFLAGS" = "x-g"; then
6719
test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
6721
if test "$cross_compiling" = yes; then :
6722
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6723
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6724
as_fn_error $? "cannot run test program while cross compiling
6725
See \`config.log' for more details" "$LINENO" 5; }
6727
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728
/* end confdefs.h. */
6731
if ac_fn_c_try_run "$LINENO"; then :
6734
as_fn_error $? "Can't run the compiler - internal error. Sorry." "$LINENO" 5
6736
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6737
conftest.$ac_objext conftest.beam conftest.$ac_ext
6742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the global screenrc file" >&5
6743
$as_echo_n "checking for the global screenrc file... " >&6; }
6745
@%:@ Check whether --with-sys-screenrc was given.
6746
if test "${with_sys_screenrc+set}" = set; then :
6747
withval=$with_sys_screenrc; ETCSCREENRC="${withval}"
6752
ac_config_files="$ac_config_files Makefile doc/Makefile"
6754
ac_config_commands="$ac_config_commands default"
6756
cat >confcache <<\_ACEOF
6757
# This file is a shell script that caches the results of configure
6758
# tests run on this system so they can be shared between configure
6759
# scripts and configure runs, see configure's option --config-cache.
6760
# It is not useful on other systems. If it contains results you don't
6761
# want to keep, you may remove or edit it.
6763
# config.status only pays attention to the cache file if you give it
6764
# the --recheck option to rerun configure.
6766
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6767
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6772
# The following way of writing the cache mishandles newlines in values,
6773
# but we know of no workaround that is simple, portable, and efficient.
6774
# So, we kill variables containing newlines.
6775
# Ultrix sh set writes to stderr and can't be redirected directly,
6776
# and sets the high bit in the cache file unless we assign to the vars.
6778
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6779
eval ac_val=\$$ac_var
6783
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6784
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6787
_ | IFS | as_nl) ;; #(
6788
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6789
*) { eval $ac_var=; unset $ac_var;} ;;
6795
case $as_nl`(ac_space=' '; set) 2>&1` in #(
6796
*${as_nl}ac_space=\ *)
6797
# `set' does not quote correctly, so add quotes: double-quote
6798
# substitution turns \\\\ into \\, and sed turns \\ into \.
6801
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6804
# `set' quotes correctly as required by POSIX, so do not add quotes.
6805
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6814
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6816
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6818
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6819
if test -w "$cache_file"; then
6820
if test "x$cache_file" != "x/dev/null"; then
6821
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6822
$as_echo "$as_me: updating cache $cache_file" >&6;}
6823
if test ! -f "$cache_file" || test -h "$cache_file"; then
6824
cat confcache >"$cache_file"
6826
case $cache_file in #(
6828
mv -f confcache "$cache_file"$$ &&
6829
mv -f "$cache_file"$$ "$cache_file" ;; #(
6831
mv -f confcache "$cache_file" ;;
6836
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6837
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6842
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6843
# Let make expand exec_prefix.
6844
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6846
DEFS=-DHAVE_CONFIG_H
6851
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
6852
# 1. Remove the extension, and $U if already installed.
6853
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6854
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6855
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6856
# will be set to the directory where LIBOBJS objects are built.
6857
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6858
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6860
LIB@&t@OBJS=$ac_libobjs
6862
LTLIBOBJS=$ac_ltlibobjs
6866
: "${CONFIG_STATUS=./config.status}"
6868
ac_clean_files_save=$ac_clean_files
6869
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6870
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6871
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6873
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6875
# Generated by $as_me.
6876
# Run this file to recreate the current configuration.
6877
# Compiler output produced by configure, useful for debugging
6878
# configure, is in config.log if it exists.
6884
SHELL=\${CONFIG_SHELL-$SHELL}
6887
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6888
## -------------------- ##
6889
## M4sh Initialization. ##
6890
## -------------------- ##
6892
# Be more Bourne compatible
6893
DUALCASE=1; export DUALCASE # for MKS sh
6894
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6897
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6898
# is contrary to our usage. Disable this feature.
6899
alias -g '${1+"$@"}'='"$@"'
6900
setopt NO_GLOB_SUBST
6902
case `(set -o) 2>/dev/null` in @%:@(
6904
set -o posix ;; @%:@(
6914
# Printing a long string crashes Solaris 7 /usr/bin/printf.
6915
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6916
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6917
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6918
# Prefer a ksh shell builtin over an external printf program on Solaris,
6919
# but without wasting forks for bash or zsh.
6920
if test -z "$BASH_VERSION$ZSH_VERSION" \
6921
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6922
as_echo='print -r --'
6923
as_echo_n='print -rn --'
6924
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6925
as_echo='printf %s\n'
6926
as_echo_n='printf %s'
6928
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6929
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6930
as_echo_n='/usr/ucb/echo -n'
6932
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6933
as_echo_n_body='eval
6937
expr "X$arg" : "X\\(.*\\)$as_nl";
6938
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6940
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6942
export as_echo_n_body
6943
as_echo_n='sh -c $as_echo_n_body as_echo'
6946
as_echo='sh -c $as_echo_body as_echo'
6949
# The user is always right.
6950
if test "${PATH_SEPARATOR+set}" != set; then
6952
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6953
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6960
# We need space, tab and new line, in precisely that order. Quoting is
6961
# there to prevent editors from complaining about space-tab.
6962
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6963
# splitting by setting IFS to empty value.)
6966
# Find who we are. Look in the path if we contain no directory separator.
6969
*[\\/]* ) as_myself=$0 ;;
6970
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974
test -z "$as_dir" && as_dir=.
6975
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6981
# We did not find ourselves, most probably we were run as `sh COMMAND'
6982
# in which case we are not to be found in the path.
6983
if test "x$as_myself" = x; then
6986
if test ! -f "$as_myself"; then
6987
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6991
# Unset variables that we do not need and which cause bugs (e.g. in
6992
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6993
# suppresses any "Segmentation fault" message there. '((' could
6994
# trigger a bug in pdksh 5.2.14.
6995
for as_var in BASH_ENV ENV MAIL MAILPATH
6996
do eval test x\${$as_var+set} = xset \
6997
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7010
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7013
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
7014
@%:@ ----------------------------------------
7015
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7016
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7017
@%:@ script with STATUS, using 1 if that was 0.
7020
as_status=$1; test $as_status -eq 0 && as_status=1
7022
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7023
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7025
$as_echo "$as_me: error: $2" >&2
7026
as_fn_exit $as_status
7030
@%:@ as_fn_set_status STATUS
7031
@%:@ -----------------------
7032
@%:@ Set @S|@? to STATUS, without forking.
7036
} @%:@ as_fn_set_status
7038
@%:@ as_fn_exit STATUS
7039
@%:@ -----------------
7040
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7048
@%:@ as_fn_unset VAR
7049
@%:@ ---------------
7050
@%:@ Portably unset VAR.
7053
{ eval $1=; unset $1;}
7055
as_unset=as_fn_unset
7056
@%:@ as_fn_append VAR VALUE
7057
@%:@ ----------------------
7058
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
7059
@%:@ advantage of any shell optimizations that allow amortized linear growth over
7060
@%:@ repeated appends, instead of the typical quadratic growth present in naive
7061
@%:@ implementations.
7062
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7063
eval 'as_fn_append ()
7074
@%:@ as_fn_arith ARG...
7075
@%:@ ------------------
7076
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
7077
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
7078
@%:@ must be portable across @S|@(()) and expr.
7079
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7080
eval 'as_fn_arith ()
7087
as_val=`expr "$@" || test $? -eq 1`
7092
if expr a : '\(a\)' >/dev/null 2>&1 &&
7093
test "X`expr 00001 : '.*\(...\)'`" = X001; then
7099
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7100
as_basename=basename
7105
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7111
as_me=`$as_basename -- "$0" ||
7112
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7113
X"$0" : 'X\(//\)$' \| \
7114
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7116
sed '/^.*\/\([^/][^/]*\)\/*$/{
7130
# Avoid depending upon Character Ranges.
7131
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7132
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7133
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7134
as_cr_digits='0123456789'
7135
as_cr_alnum=$as_cr_Letters$as_cr_digits
7137
ECHO_C= ECHO_N= ECHO_T=
7138
case `echo -n x` in @%:@(((((
7140
case `echo 'xy\c'` in
7141
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
7143
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7150
rm -f conf$$ conf$$.exe conf$$.file
7151
if test -d conf$$.dir; then
7152
rm -f conf$$.dir/conf$$.file
7155
mkdir conf$$.dir 2>/dev/null
7157
if (echo >conf$$.file) 2>/dev/null; then
7158
if ln -s conf$$.file conf$$ 2>/dev/null; then
7160
# ... but there are two gotchas:
7161
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7162
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7163
# In both cases, we have to default to `cp -pR'.
7164
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7166
elif ln conf$$.file conf$$ 2>/dev/null; then
7174
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7175
rmdir conf$$.dir 2>/dev/null
7180
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
7185
-*) as_dir=./$as_dir;;
7187
test -d "$as_dir" || eval $as_mkdir_p || {
7191
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7192
*) as_qdir=$as_dir;;
7194
as_dirs="'$as_qdir' $as_dirs"
7195
as_dir=`$as_dirname -- "$as_dir" ||
7196
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7197
X"$as_dir" : 'X\(//\)[^/]' \| \
7198
X"$as_dir" : 'X\(//\)$' \| \
7199
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7200
$as_echo X"$as_dir" |
7201
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7218
test -d "$as_dir" && break
7220
test -z "$as_dirs" || eval "mkdir $as_dirs"
7221
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7224
} @%:@ as_fn_mkdir_p
7225
if mkdir -p . 2>/dev/null; then
7226
as_mkdir_p='mkdir -p "$as_dir"'
7228
test -d ./-p && rmdir ./-p
7233
@%:@ as_fn_executable_p FILE
7234
@%:@ -----------------------
7235
@%:@ Test if FILE is an executable regular file.
7236
as_fn_executable_p ()
7238
test -f "$1" && test -x "$1"
7239
} @%:@ as_fn_executable_p
7241
as_executable_p=as_fn_executable_p
7243
# Sed expression to map a string onto a valid CPP name.
7244
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7246
# Sed expression to map a string onto a valid variable name.
7247
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7251
## ----------------------------------- ##
7252
## Main body of $CONFIG_STATUS script. ##
7253
## ----------------------------------- ##
7255
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7257
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7258
# Save the log message, to keep $0 and so on meaningful, and to
7259
# report actual input values of CONFIG_FILES etc. instead of their
7260
# values after options handling.
7262
This file was extended by $as_me, which was
7263
generated by GNU Autoconf 2.69. Invocation command line was
7265
CONFIG_FILES = $CONFIG_FILES
7266
CONFIG_HEADERS = $CONFIG_HEADERS
7267
CONFIG_LINKS = $CONFIG_LINKS
7268
CONFIG_COMMANDS = $CONFIG_COMMANDS
7271
on `(hostname || uname -n) 2>/dev/null | sed 1q`
7276
case $ac_config_files in *"
7277
"*) set x $ac_config_files; shift; ac_config_files=$*;;
7280
case $ac_config_headers in *"
7281
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7285
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7286
# Files that config.status was made for.
7287
config_files="$ac_config_files"
7288
config_headers="$ac_config_headers"
7289
config_commands="$ac_config_commands"
7293
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7295
\`$as_me' instantiates files and other configuration actions
7296
from templates according to the current configuration. Unless the files
7297
and actions are specified as TAGs, all are instantiated by default.
7299
Usage: $0 [OPTION]... [TAG]...
7301
-h, --help print this help, then exit
7302
-V, --version print version number and configuration settings, then exit
7303
--config print configuration, then exit
7304
-q, --quiet, --silent
7305
do not print progress messages
7306
-d, --debug don't remove temporary files
7307
--recheck update $as_me by reconfiguring in the same conditions
7308
--file=FILE[:TEMPLATE]
7309
instantiate the configuration file FILE
7310
--header=FILE[:TEMPLATE]
7311
instantiate the configuration header FILE
7313
Configuration files:
7316
Configuration headers:
7319
Configuration commands:
7322
Report bugs to the package provider."
7325
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7326
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7329
configured by $0, generated by GNU Autoconf 2.69,
7330
with options \\"\$ac_cs_config\\"
7332
Copyright (C) 2012 Free Software Foundation, Inc.
7333
This config.status script is free software; the Free Software Foundation
7334
gives unlimited permission to copy, distribute and modify it."
7340
test -n "\$AWK" || AWK=awk
7343
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7344
# The default lists apply if the user does not specify any file.
7350
ac_option=`expr "X$1" : 'X\([^=]*\)='`
7351
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7355
ac_option=`expr "X$1" : 'X\([^=]*\)='`
7367
# Handling of the options.
7368
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7370
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7371
$as_echo "$ac_cs_version"; exit ;;
7372
--config | --confi | --conf | --con | --co | --c )
7373
$as_echo "$ac_cs_config"; exit ;;
7374
--debug | --debu | --deb | --de | --d | -d )
7376
--file | --fil | --fi | --f )
7379
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7380
'') as_fn_error $? "missing file argument" ;;
7382
as_fn_append CONFIG_FILES " '$ac_optarg'"
7383
ac_need_defaults=false;;
7384
--header | --heade | --head | --hea )
7387
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7389
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7390
ac_need_defaults=false;;
7392
# Conflict between --help and --header
7393
as_fn_error $? "ambiguous option: \`$1'
7394
Try \`$0 --help' for more information.";;
7395
--help | --hel | -h )
7396
$as_echo "$ac_cs_usage"; exit ;;
7397
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7398
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7402
-*) as_fn_error $? "unrecognized option: \`$1'
7403
Try \`$0 --help' for more information." ;;
7405
*) as_fn_append ac_config_targets " $1"
7406
ac_need_defaults=false ;;
7412
ac_configure_extra_args=
7414
if $ac_cs_silent; then
7416
ac_configure_extra_args="$ac_configure_extra_args --silent"
7420
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7421
if \$ac_cs_recheck; then
7422
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7424
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7425
CONFIG_SHELL='$SHELL'
7431
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7435
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
7436
@%:@@%:@ Running $as_me. @%:@@%:@
7442
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7445
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7447
# Handling of arguments.
7448
for ac_config_target in $ac_config_targets
7450
case $ac_config_target in
7451
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7452
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7453
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7454
"default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7456
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7461
# If the user did not use the arguments to specify the items to instantiate,
7462
# then the envvar interface is used. Set only those that are not.
7463
# We use the long form for the default assignment because of an extremely
7464
# bizarre bug on SunOS 4.1.3.
7465
if $ac_need_defaults; then
7466
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7467
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7468
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7471
# Have a temporary directory for convenience. Make it in the build tree
7472
# simply because there is no reason against having it here, and in addition,
7473
# creating and moving files from /tmp can sometimes cause problems.
7474
# Hook for its removal unless debugging.
7475
# Note that there is a small window in which the directory will not be cleaned:
7476
# after its creation but before its name has been assigned to `$tmp'.
7480
trap 'exit_status=$?
7482
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7484
trap 'as_fn_exit 1' 1 2 13 15
7486
# Create a (secure) tmp directory for tmp files.
7489
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7493
tmp=./conf$$-$RANDOM
7494
(umask 077 && mkdir "$tmp")
7495
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7498
# Set up the scripts for CONFIG_FILES section.
7499
# No need to generate them if there are no CONFIG_FILES.
7500
# This happens for instance with `./config.status config.h'.
7501
if test -n "$CONFIG_FILES"; then
7504
ac_cr=`echo X | tr X '\015'`
7505
# On cygwin, bash can eat \r inside `` if the user requested igncr.
7506
# But we know of no other shell where ac_cr would be empty at this
7507
# point, so we can use a bashism as a fallback.
7508
if test "x$ac_cr" = x; then
7509
eval ac_cr=\$\'\\r\'
7511
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7512
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7518
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7523
echo "cat >conf$$subs.awk <<_ACEOF" &&
7524
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7527
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7528
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7530
for ac_last_try in false false false false false :; do
7531
. ./conf$$subs.sh ||
7532
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7534
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7535
if test $ac_delim_n = $ac_delim_num; then
7537
elif $ac_last_try; then
7538
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7540
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7545
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7546
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7550
s/^/S["/; s/!.*/"]=/
7560
s/\(.\{148\}\)..*/\1/
7562
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7567
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7574
s/\(.\{148\}\)..*/\1/
7576
s/["\\]/\\&/g; s/^/"/; s/$/"/
7580
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7585
' <conf$$subs.awk | sed '
7590
' >>$CONFIG_STATUS || ac_write_fail=1
7591
rm -f conf$$subs.awk
7592
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7594
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7595
for (key in S) S_is_set[key] = 1
7601
nfields = split(line, field, "@")
7603
len = length(field[1])
7604
for (i = 2; i < nfields; i++) {
7606
keylen = length(key)
7607
if (S_is_set[key]) {
7609
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7610
len += length(value) + length(field[++i])
7621
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7622
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7623
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7626
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7627
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7630
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7631
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7632
# trailing colons and then remove the whole line if VPATH becomes empty
7633
# (actually we leave an empty line to preserve line numbers).
7634
if test "x$srcdir" = x.; then
7635
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7653
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7654
fi # test -n "$CONFIG_FILES"
7656
# Set up the scripts for CONFIG_HEADERS section.
7657
# No need to generate them if there are no CONFIG_HEADERS.
7658
# This happens for instance with `./config.status Makefile'.
7659
if test -n "$CONFIG_HEADERS"; then
7660
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7664
# Transform confdefs.h into an awk script `defines.awk', embedded as
7665
# here-document in config.status, that substitutes the proper values into
7666
# config.h.in to produce config.h.
7668
# Create a delimiter string that does not exist in confdefs.h, to ease
7669
# handling of long lines.
7671
for ac_last_try in false false :; do
7672
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7673
if test -z "$ac_tt"; then
7675
elif $ac_last_try; then
7676
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7678
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7682
# For the awk script, D is an array of macro values keyed by name,
7683
# likewise P contains macro parameters if any. Preserve backslash
7684
# newline sequences.
7686
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7688
s/.\{148\}/&'"$ac_delim"'/g
7691
s/^[ ]*#[ ]*define[ ][ ]*/ /
7698
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7700
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7704
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7705
D["\1"]=" \3\\\\\\n"\\/p
7707
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7712
s/.\{148\}/&'"$ac_delim"'/g
7717
s/["\\]/\\&/g; s/^/"/; s/$/"/p
7720
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7722
' <confdefs.h | sed '
7723
s/'"$ac_delim"'/"\\\
7724
"/g' >>$CONFIG_STATUS || ac_write_fail=1
7726
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7727
for (key in D) D_is_set[key] = 1
7730
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7732
split(line, arg, " ")
7733
if (arg[1] == "#") {
7737
defundef = substr(arg[1], 2)
7740
split(mac1, mac2, "(") #)
7742
prefix = substr(line, 1, index(line, defundef) - 1)
7743
if (D_is_set[macro]) {
7744
# Preserve the white space surrounding the "#".
7745
print prefix "define", macro P[macro] D[macro]
7748
# Replace #undef with comments. This is necessary, for example,
7749
# in the case of _POSIX_SOURCE, which is predefined and required
7750
# on some systems where configure will not decide to define it.
7751
if (defundef == "undef") {
7752
print "/*", prefix defundef, macro, "*/"
7760
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7761
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7762
fi # test -n "$CONFIG_HEADERS"
7765
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7770
:[FHLC]) ac_mode=$ac_tag; continue;;
7772
case $ac_mode$ac_tag in
7774
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7775
:[FH]-) ac_tag=-:-;;
7776
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7793
-) ac_f="$ac_tmp/stdin";;
7794
*) # Look for the file first in the build tree, then in the source tree
7795
# (if the path is not absolute). The absolute path cannot be DOS-style,
7796
# because $ac_f cannot contain `:'.
7800
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7802
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7804
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7805
as_fn_append ac_file_inputs " '$ac_f'"
7808
# Let's still pretend it is `configure' which instantiates (i.e., don't
7809
# use $as_me), people would be surprised to read:
7810
# /* config.h. Generated by config.status. */
7811
configure_input='Generated from '`
7812
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7814
if test x"$ac_file" != x-; then
7815
configure_input="$ac_file. $configure_input"
7816
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7817
$as_echo "$as_me: creating $ac_file" >&6;}
7819
# Neutralize special characters interpreted by sed in replacement strings.
7820
case $configure_input in #(
7821
*\&* | *\|* | *\\* )
7822
ac_sed_conf_input=`$as_echo "$configure_input" |
7823
sed 's/[\\\\&|]/\\\\&/g'`;; #(
7824
*) ac_sed_conf_input=$configure_input;;
7828
*:-:* | *:-) cat >"$ac_tmp/stdin" \
7829
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7834
ac_dir=`$as_dirname -- "$ac_file" ||
7835
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7836
X"$ac_file" : 'X\(//\)[^/]' \| \
7837
X"$ac_file" : 'X\(//\)$' \| \
7838
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7839
$as_echo X"$ac_file" |
7840
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7857
as_dir="$ac_dir"; as_fn_mkdir_p
7861
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7863
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7864
# A ".." for each directory in $ac_dir_suffix.
7865
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7866
case $ac_top_builddir_sub in
7867
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7868
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7871
ac_abs_top_builddir=$ac_pwd
7872
ac_abs_builddir=$ac_pwd$ac_dir_suffix
7873
# for backward compatibility:
7874
ac_top_builddir=$ac_top_build_prefix
7877
.) # We are building in place.
7879
ac_top_srcdir=$ac_top_builddir_sub
7880
ac_abs_top_srcdir=$ac_pwd ;;
7881
[\\/]* | ?:[\\/]* ) # Absolute name.
7882
ac_srcdir=$srcdir$ac_dir_suffix;
7883
ac_top_srcdir=$srcdir
7884
ac_abs_top_srcdir=$srcdir ;;
7886
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7887
ac_top_srcdir=$ac_top_build_prefix$srcdir
7888
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7890
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7900
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7901
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7905
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7906
# If the template does not know about datarootdir, expand it.
7907
# FIXME: This hack should be removed a few years after 2.60.
7908
ac_datarootdir_hack=; ac_datarootdir_seen=
7919
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7920
*datarootdir*) ac_datarootdir_seen=yes;;
7921
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7922
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7923
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7925
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7926
ac_datarootdir_hack='
7927
s&@datadir@&$datadir&g
7928
s&@docdir@&$docdir&g
7929
s&@infodir@&$infodir&g
7930
s&@localedir@&$localedir&g
7931
s&@mandir@&$mandir&g
7932
s&\\\${datarootdir}&$datarootdir&g' ;;
7936
# Neutralize VPATH when `$srcdir' = `.'.
7937
# Shell code in configure.ac might set extrasub.
7938
# FIXME: do we really want to maintain this feature?
7939
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7940
ac_sed_extra="$ac_vpsub
7943
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7945
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7946
s|@configure_input@|$ac_sed_conf_input|;t t
7947
s&@top_builddir@&$ac_top_builddir_sub&;t t
7948
s&@top_build_prefix@&$ac_top_build_prefix&;t t
7949
s&@srcdir@&$ac_srcdir&;t t
7950
s&@abs_srcdir@&$ac_abs_srcdir&;t t
7951
s&@top_srcdir@&$ac_top_srcdir&;t t
7952
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7953
s&@builddir@&$ac_builddir&;t t
7954
s&@abs_builddir@&$ac_abs_builddir&;t t
7955
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7956
s&@INSTALL@&$ac_INSTALL&;t t
7957
$ac_datarootdir_hack
7959
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7960
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7962
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7963
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7964
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7965
"$ac_tmp/out"`; test -z "$ac_out"; } &&
7966
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7967
which seems to be undefined. Please make sure it is defined" >&5
7968
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7969
which seems to be undefined. Please make sure it is defined" >&2;}
7971
rm -f "$ac_tmp/stdin"
7973
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7974
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7976
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
7982
if test x"$ac_file" != x-; then
7984
$as_echo "/* $configure_input */" \
7985
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7986
} >"$ac_tmp/config.h" \
7987
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
7988
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7989
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7990
$as_echo "$as_me: $ac_file is unchanged" >&6;}
7993
mv "$ac_tmp/config.h" "$ac_file" \
7994
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
7997
$as_echo "/* $configure_input */" \
7998
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7999
|| as_fn_error $? "could not create -" "$LINENO" 5
8003
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8004
$as_echo "$as_me: executing $ac_file commands" >&6;}
8009
case $ac_file$ac_mode in
8011
# a hook for preserving undef directive in config.h
8012
mv config.h conftest
8013
sed -e 's@^\(.*\)defin.\( .*\) .*/\*\(.*KEEP_UNDEF_HERE\)@\1undef\2 /\*\3@' < conftest > config.h
8023
ac_clean_files=$ac_clean_files_save
8025
test $ac_write_fail = 0 ||
8026
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8029
# configure is writing to config.log, and then calls config.status.
8030
# config.status does its own redirection, appending to config.log.
8031
# Unfortunately, on DOS this fails, as config.log is still kept open
8032
# by configure, so config.status won't be able to write to it; its
8033
# output is simply discarded. So we exec the FD to /dev/null,
8034
# effectively closing config.log, so it can be properly (re)opened and
8035
# appended to by config.status. When coming back to configure, we
8036
# need to make the FD available again.
8037
if test "$no_create" != yes; then
8039
ac_config_status_args=
8040
test "$silent" = yes &&
8041
ac_config_status_args="$ac_config_status_args --quiet"
8043
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8045
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
8046
# would make configure fail if this is the last instruction.
8047
$ac_cs_success || as_fn_exit 1
8049
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8050
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8051
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8056
if test -z "$AWK"; then
8057
echo "!!! Since you have no awk you must copy the files 'comm.h.dist'"
8058
echo "!!! and 'term.h.dist' to 'comm.h' and 'term.h'."
8059
echo "!!! Do _not_ change the user configuration section in config.h!"
8060
echo "Please check the pathnames in the Makefile."
8062
echo "Now please check the pathnames in the Makefile and in the user"
8063
echo "configuration section in config.h."
8065
echo "Then type 'make' to make screen. Good luck."