1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.59. |
4 |
# |
5 |
# Copyright (C) 2003 Free Software Foundation, Inc. |
6 |
# This configure script is free software; the Free Software Foundation |
7 |
# gives unlimited permission to copy, distribute and modify it. |
8 |
## --------------------- ## |
9 |
## M4sh Initialization. ## |
10 |
## --------------------- ## |
11 |
|
12 |
# Be Bourne compatible |
13 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14 |
emulate sh |
15 |
NULLCMD=: |
16 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
17 |
# is contrary to our usage. Disable this feature. |
18 |
alias -g '${1+"$@"}'='"$@"' |
19 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 |
set -o posix |
21 |
fi |
22 |
DUALCASE=1; export DUALCASE # for MKS sh |
23 |
|
24 |
# Support unset when possible. |
25 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
26 |
as_unset=unset |
27 |
else |
28 |
as_unset=false |
29 |
fi |
30 |
|
31 |
|
32 |
# Work around bugs in pre-3.0 UWIN ksh. |
33 |
$as_unset ENV MAIL MAILPATH |
34 |
PS1='$ ' |
35 |
PS2='> ' |
36 |
PS4='+ ' |
37 |
|
38 |
# NLS nuisances. |
39 |
for as_var in \ |
40 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
41 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
42 |
LC_TELEPHONE LC_TIME |
43 |
do |
44 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
45 |
eval $as_var=C; export $as_var |
46 |
else |
47 |
$as_unset $as_var |
48 |
fi |
49 |
done |
50 |
|
51 |
# Required to use basename. |
52 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
53 |
as_expr=expr |
54 |
else |
55 |
as_expr=false |
56 |
fi |
57 |
|
58 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
59 |
as_basename=basename |
60 |
else |
61 |
as_basename=false |
62 |
fi |
63 |
|
64 |
|
65 |
# Name of the executable. |
66 |
as_me=`$as_basename "$0" || |
67 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 |
X"$0" : 'X\(//\)$' \| \ |
69 |
X"$0" : 'X\(/\)$' \| \ |
70 |
. : '\(.\)' 2>/dev/null || |
71 |
echo X/"$0" | |
72 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
74 |
/^X\/\(\/\).*/{ s//\1/; q; } |
75 |
s/.*/./; q'` |
76 |
|
77 |
|
78 |
# PATH needs CR, and LINENO needs CR and PATH. |
79 |
# Avoid depending upon Character Ranges. |
80 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
81 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
82 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
83 |
as_cr_digits='0123456789' |
84 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
85 |
|
86 |
# The user is always right. |
87 |
if test "${PATH_SEPARATOR+set}" != set; then |
88 |
echo "#! /bin/sh" >conf$$.sh |
89 |
echo "exit 0" >>conf$$.sh |
90 |
chmod +x conf$$.sh |
91 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
92 |
PATH_SEPARATOR=';' |
93 |
else |
94 |
PATH_SEPARATOR=: |
95 |
fi |
96 |
rm -f conf$$.sh |
97 |
fi |
98 |
|
99 |
|
100 |
as_lineno_1=$LINENO |
101 |
as_lineno_2=$LINENO |
102 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
103 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
104 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
105 |
# Find who we are. Look in the path if we contain no path at all |
106 |
# relative or not. |
107 |
case $0 in |
108 |
*[\\/]* ) as_myself=$0 ;; |
109 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
110 |
for as_dir in $PATH |
111 |
do |
112 |
IFS=$as_save_IFS |
113 |
test -z "$as_dir" && as_dir=. |
114 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
115 |
done |
116 |
|
117 |
;; |
118 |
esac |
119 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
120 |
# in which case we are not to be found in the path. |
121 |
if test "x$as_myself" = x; then |
122 |
as_myself=$0 |
123 |
fi |
124 |
if test ! -f "$as_myself"; then |
125 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
126 |
{ (exit 1); exit 1; }; } |
127 |
fi |
128 |
case $CONFIG_SHELL in |
129 |
'') |
130 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
131 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
132 |
do |
133 |
IFS=$as_save_IFS |
134 |
test -z "$as_dir" && as_dir=. |
135 |
for as_base in sh bash ksh sh5; do |
136 |
case $as_dir in |
137 |
/*) |
138 |
if ("$as_dir/$as_base" -c ' |
139 |
as_lineno_1=$LINENO |
140 |
as_lineno_2=$LINENO |
141 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
142 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
143 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
144 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
145 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
146 |
CONFIG_SHELL=$as_dir/$as_base |
147 |
export CONFIG_SHELL |
148 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
149 |
fi;; |
150 |
esac |
151 |
done |
152 |
done |
153 |
;; |
154 |
esac |
155 |
|
156 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
157 |
# uniformly replaced by the line number. The first 'sed' inserts a |
158 |
# line-number line before each line; the second 'sed' does the real |
159 |
# work. The second script uses 'N' to pair each line-number line |
160 |
# with the numbered line, and appends trailing '-' during |
161 |
# substitution so that $LINENO is not a special case at line end. |
162 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
163 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 |
sed '=' <$as_myself | |
165 |
sed ' |
166 |
N |
167 |
s,$,-, |
168 |
: loop |
169 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
170 |
t loop |
171 |
s,-$,, |
172 |
s,^['$as_cr_digits']*\n,, |
173 |
' >$as_me.lineno && |
174 |
chmod +x $as_me.lineno || |
175 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
176 |
{ (exit 1); exit 1; }; } |
177 |
|
178 |
# Don't try to exec as it changes $[0], causing all sort of problems |
179 |
# (the dirname of $[0] is not the place where we might find the |
180 |
# original and so on. Autoconf is especially sensible to this). |
181 |
. ./$as_me.lineno |
182 |
# Exit status is that of the last command. |
183 |
exit |
184 |
} |
185 |
|
186 |
|
187 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 |
*c*,-n*) ECHO_N= ECHO_C=' |
189 |
' ECHO_T=' ' ;; |
190 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
191 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
192 |
esac |
193 |
|
194 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
195 |
as_expr=expr |
196 |
else |
197 |
as_expr=false |
198 |
fi |
199 |
|
200 |
rm -f conf$$ conf$$.exe conf$$.file |
201 |
echo >conf$$.file |
202 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
203 |
# We could just check for DJGPP; but this test a) works b) is more generic |
204 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
205 |
if test -f conf$$.exe; then |
206 |
# Don't use ln at all; we don't have any links |
207 |
as_ln_s='cp -p' |
208 |
else |
209 |
as_ln_s='ln -s' |
210 |
fi |
211 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
212 |
as_ln_s=ln |
213 |
else |
214 |
as_ln_s='cp -p' |
215 |
fi |
216 |
rm -f conf$$ conf$$.exe conf$$.file |
217 |
|
218 |
if mkdir -p . 2>/dev/null; then |
219 |
as_mkdir_p=: |
220 |
else |
221 |
test -d ./-p && rmdir ./-p |
222 |
as_mkdir_p=false |
223 |
fi |
224 |
|
225 |
as_executable_p="test -f" |
226 |
|
227 |
# Sed expression to map a string onto a valid CPP name. |
228 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
229 |
|
230 |
# Sed expression to map a string onto a valid variable name. |
231 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
232 |
|
233 |
|
234 |
# IFS |
235 |
# We need space, tab and new line, in precisely that order. |
236 |
as_nl=' |
237 |
' |
238 |
IFS=" $as_nl" |
239 |
|
240 |
# CDPATH. |
241 |
$as_unset CDPATH |
242 |
|
243 |
|
244 |
# Name of the host. |
245 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
246 |
# so uname gets run too. |
247 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
248 |
|
249 |
exec 6>&1 |
250 |
|
251 |
# |
252 |
# Initializations. |
253 |
# |
254 |
ac_default_prefix=/usr/local |
255 |
ac_config_libobj_dir=. |
256 |
cross_compiling=no |
257 |
subdirs= |
258 |
MFLAGS= |
259 |
MAKEFLAGS= |
260 |
SHELL=${CONFIG_SHELL-/bin/sh} |
261 |
|
262 |
# Maximum number of lines to put in a shell here document. |
263 |
# This variable seems obsolete. It should probably be removed, and |
264 |
# only ac_max_sed_lines should be used. |
265 |
: ${ac_max_here_lines=38} |
266 |
|
267 |
# Identity of this package. |
268 |
PACKAGE_NAME= |
269 |
PACKAGE_TARNAME= |
270 |
PACKAGE_VERSION= |
271 |
PACKAGE_STRING= |
272 |
PACKAGE_BUGREPORT= |
273 |
|
274 |
ac_unique_file="src/logging.C" |
275 |
# Factoring default headers for most tests. |
276 |
ac_includes_default="\ |
277 |
#include <stdio.h> |
278 |
#if HAVE_SYS_TYPES_H |
279 |
# include <sys/types.h> |
280 |
#endif |
281 |
#if HAVE_SYS_STAT_H |
282 |
# include <sys/stat.h> |
283 |
#endif |
284 |
#if STDC_HEADERS |
285 |
# include <stdlib.h> |
286 |
# include <stddef.h> |
287 |
#else |
288 |
# if HAVE_STDLIB_H |
289 |
# include <stdlib.h> |
290 |
# endif |
291 |
#endif |
292 |
#if HAVE_STRING_H |
293 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
294 |
# include <memory.h> |
295 |
# endif |
296 |
# include <string.h> |
297 |
#endif |
298 |
#if HAVE_STRINGS_H |
299 |
# include <strings.h> |
300 |
#endif |
301 |
#if HAVE_INTTYPES_H |
302 |
# include <inttypes.h> |
303 |
#else |
304 |
# if HAVE_STDINT_H |
305 |
# include <stdint.h> |
306 |
# endif |
307 |
#endif |
308 |
#if HAVE_UNISTD_H |
309 |
# include <unistd.h> |
310 |
#endif" |
311 |
|
312 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CXXCPP EGREP LIBOBJS LTLIBOBJS' |
313 |
ac_subst_files='' |
314 |
|
315 |
# Initialize some variables set by options. |
316 |
ac_init_help= |
317 |
ac_init_version=false |
318 |
# The variables have the same names as the options, with |
319 |
# dashes changed to underlines. |
320 |
cache_file=/dev/null |
321 |
exec_prefix=NONE |
322 |
no_create= |
323 |
no_recursion= |
324 |
prefix=NONE |
325 |
program_prefix=NONE |
326 |
program_suffix=NONE |
327 |
program_transform_name=s,x,x, |
328 |
silent= |
329 |
site= |
330 |
srcdir= |
331 |
verbose= |
332 |
x_includes=NONE |
333 |
x_libraries=NONE |
334 |
|
335 |
# Installation directory options. |
336 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
337 |
# and all the variables that are supposed to be based on exec_prefix |
338 |
# by default will actually change. |
339 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
340 |
bindir='${exec_prefix}/bin' |
341 |
sbindir='${exec_prefix}/sbin' |
342 |
libexecdir='${exec_prefix}/libexec' |
343 |
datadir='${prefix}/share' |
344 |
sysconfdir='${prefix}/etc' |
345 |
sharedstatedir='${prefix}/com' |
346 |
localstatedir='${prefix}/var' |
347 |
libdir='${exec_prefix}/lib' |
348 |
includedir='${prefix}/include' |
349 |
oldincludedir='/usr/include' |
350 |
infodir='${prefix}/info' |
351 |
mandir='${prefix}/man' |
352 |
|
353 |
ac_prev= |
354 |
for ac_option |
355 |
do |
356 |
# If the previous option needs an argument, assign it. |
357 |
if test -n "$ac_prev"; then |
358 |
eval "$ac_prev=\$ac_option" |
359 |
ac_prev= |
360 |
continue |
361 |
fi |
362 |
|
363 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
364 |
|
365 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
366 |
|
367 |
case $ac_option in |
368 |
|
369 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
370 |
ac_prev=bindir ;; |
371 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
372 |
bindir=$ac_optarg ;; |
373 |
|
374 |
-build | --build | --buil | --bui | --bu) |
375 |
ac_prev=build_alias ;; |
376 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
377 |
build_alias=$ac_optarg ;; |
378 |
|
379 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
380 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
381 |
ac_prev=cache_file ;; |
382 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
383 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
384 |
cache_file=$ac_optarg ;; |
385 |
|
386 |
--config-cache | -C) |
387 |
cache_file=config.cache ;; |
388 |
|
389 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
390 |
ac_prev=datadir ;; |
391 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
392 |
| --da=*) |
393 |
datadir=$ac_optarg ;; |
394 |
|
395 |
-disable-* | --disable-*) |
396 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
397 |
# Reject names that are not valid shell variable names. |
398 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
400 |
{ (exit 1); exit 1; }; } |
401 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
402 |
eval "enable_$ac_feature=no" ;; |
403 |
|
404 |
-enable-* | --enable-*) |
405 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
406 |
# Reject names that are not valid shell variable names. |
407 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
409 |
{ (exit 1); exit 1; }; } |
410 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
411 |
case $ac_option in |
412 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
413 |
*) ac_optarg=yes ;; |
414 |
esac |
415 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
416 |
|
417 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
418 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
419 |
| --exec | --exe | --ex) |
420 |
ac_prev=exec_prefix ;; |
421 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
422 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
423 |
| --exec=* | --exe=* | --ex=*) |
424 |
exec_prefix=$ac_optarg ;; |
425 |
|
426 |
-gas | --gas | --ga | --g) |
427 |
# Obsolete; use --with-gas. |
428 |
with_gas=yes ;; |
429 |
|
430 |
-help | --help | --hel | --he | -h) |
431 |
ac_init_help=long ;; |
432 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
433 |
ac_init_help=recursive ;; |
434 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
435 |
ac_init_help=short ;; |
436 |
|
437 |
-host | --host | --hos | --ho) |
438 |
ac_prev=host_alias ;; |
439 |
-host=* | --host=* | --hos=* | --ho=*) |
440 |
host_alias=$ac_optarg ;; |
441 |
|
442 |
-includedir | --includedir | --includedi | --included | --include \ |
443 |
| --includ | --inclu | --incl | --inc) |
444 |
ac_prev=includedir ;; |
445 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
446 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
447 |
includedir=$ac_optarg ;; |
448 |
|
449 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
450 |
ac_prev=infodir ;; |
451 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
452 |
infodir=$ac_optarg ;; |
453 |
|
454 |
-libdir | --libdir | --libdi | --libd) |
455 |
ac_prev=libdir ;; |
456 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
457 |
libdir=$ac_optarg ;; |
458 |
|
459 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
460 |
| --libexe | --libex | --libe) |
461 |
ac_prev=libexecdir ;; |
462 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
463 |
| --libexe=* | --libex=* | --libe=*) |
464 |
libexecdir=$ac_optarg ;; |
465 |
|
466 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
467 |
| --localstate | --localstat | --localsta | --localst \ |
468 |
| --locals | --local | --loca | --loc | --lo) |
469 |
ac_prev=localstatedir ;; |
470 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
471 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
472 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
473 |
localstatedir=$ac_optarg ;; |
474 |
|
475 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
476 |
ac_prev=mandir ;; |
477 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
478 |
mandir=$ac_optarg ;; |
479 |
|
480 |
-nfp | --nfp | --nf) |
481 |
# Obsolete; use --without-fp. |
482 |
with_fp=no ;; |
483 |
|
484 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
485 |
| --no-cr | --no-c | -n) |
486 |
no_create=yes ;; |
487 |
|
488 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
489 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
490 |
no_recursion=yes ;; |
491 |
|
492 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
493 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
494 |
| --oldin | --oldi | --old | --ol | --o) |
495 |
ac_prev=oldincludedir ;; |
496 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
497 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
498 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
499 |
oldincludedir=$ac_optarg ;; |
500 |
|
501 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
502 |
ac_prev=prefix ;; |
503 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
504 |
prefix=$ac_optarg ;; |
505 |
|
506 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
507 |
| --program-pre | --program-pr | --program-p) |
508 |
ac_prev=program_prefix ;; |
509 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
510 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
511 |
program_prefix=$ac_optarg ;; |
512 |
|
513 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
514 |
| --program-suf | --program-su | --program-s) |
515 |
ac_prev=program_suffix ;; |
516 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
517 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
518 |
program_suffix=$ac_optarg ;; |
519 |
|
520 |
-program-transform-name | --program-transform-name \ |
521 |
| --program-transform-nam | --program-transform-na \ |
522 |
| --program-transform-n | --program-transform- \ |
523 |
| --program-transform | --program-transfor \ |
524 |
| --program-transfo | --program-transf \ |
525 |
| --program-trans | --program-tran \ |
526 |
| --progr-tra | --program-tr | --program-t) |
527 |
ac_prev=program_transform_name ;; |
528 |
-program-transform-name=* | --program-transform-name=* \ |
529 |
| --program-transform-nam=* | --program-transform-na=* \ |
530 |
| --program-transform-n=* | --program-transform-=* \ |
531 |
| --program-transform=* | --program-transfor=* \ |
532 |
| --program-transfo=* | --program-transf=* \ |
533 |
| --program-trans=* | --program-tran=* \ |
534 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
535 |
program_transform_name=$ac_optarg ;; |
536 |
|
537 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
538 |
| -silent | --silent | --silen | --sile | --sil) |
539 |
silent=yes ;; |
540 |
|
541 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
542 |
ac_prev=sbindir ;; |
543 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
544 |
| --sbi=* | --sb=*) |
545 |
sbindir=$ac_optarg ;; |
546 |
|
547 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
548 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
549 |
| --sharedst | --shareds | --shared | --share | --shar \ |
550 |
| --sha | --sh) |
551 |
ac_prev=sharedstatedir ;; |
552 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
553 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
554 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
555 |
| --sha=* | --sh=*) |
556 |
sharedstatedir=$ac_optarg ;; |
557 |
|
558 |
-site | --site | --sit) |
559 |
ac_prev=site ;; |
560 |
-site=* | --site=* | --sit=*) |
561 |
site=$ac_optarg ;; |
562 |
|
563 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 |
ac_prev=srcdir ;; |
565 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
566 |
srcdir=$ac_optarg ;; |
567 |
|
568 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
569 |
| --syscon | --sysco | --sysc | --sys | --sy) |
570 |
ac_prev=sysconfdir ;; |
571 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
572 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
573 |
sysconfdir=$ac_optarg ;; |
574 |
|
575 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
576 |
ac_prev=target_alias ;; |
577 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
578 |
target_alias=$ac_optarg ;; |
579 |
|
580 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
581 |
verbose=yes ;; |
582 |
|
583 |
-version | --version | --versio | --versi | --vers | -V) |
584 |
ac_init_version=: ;; |
585 |
|
586 |
-with-* | --with-*) |
587 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
588 |
# Reject names that are not valid shell variable names. |
589 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
591 |
{ (exit 1); exit 1; }; } |
592 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
593 |
case $ac_option in |
594 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
595 |
*) ac_optarg=yes ;; |
596 |
esac |
597 |
eval "with_$ac_package='$ac_optarg'" ;; |
598 |
|
599 |
-without-* | --without-*) |
600 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
601 |
# Reject names that are not valid shell variable names. |
602 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
604 |
{ (exit 1); exit 1; }; } |
605 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
606 |
eval "with_$ac_package=no" ;; |
607 |
|
608 |
--x) |
609 |
# Obsolete; use --with-x. |
610 |
with_x=yes ;; |
611 |
|
612 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
613 |
| --x-incl | --x-inc | --x-in | --x-i) |
614 |
ac_prev=x_includes ;; |
615 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
616 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
617 |
x_includes=$ac_optarg ;; |
618 |
|
619 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
620 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
621 |
ac_prev=x_libraries ;; |
622 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
623 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
624 |
x_libraries=$ac_optarg ;; |
625 |
|
626 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
627 |
Try \`$0 --help' for more information." >&2 |
628 |
{ (exit 1); exit 1; }; } |
629 |
;; |
630 |
|
631 |
*=*) |
632 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
633 |
# Reject names that are not valid shell variable names. |
634 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
635 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
636 |
{ (exit 1); exit 1; }; } |
637 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
638 |
eval "$ac_envvar='$ac_optarg'" |
639 |
export $ac_envvar ;; |
640 |
|
641 |
*) |
642 |
# FIXME: should be removed in autoconf 3.0. |
643 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
644 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
645 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
646 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
647 |
;; |
648 |
|
649 |
esac |
650 |
done |
651 |
|
652 |
if test -n "$ac_prev"; then |
653 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
655 |
{ (exit 1); exit 1; }; } |
656 |
fi |
657 |
|
658 |
# Be sure to have absolute paths. |
659 |
for ac_var in exec_prefix prefix |
660 |
do |
661 |
eval ac_val=$`echo $ac_var` |
662 |
case $ac_val in |
663 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
664 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
665 |
{ (exit 1); exit 1; }; };; |
666 |
esac |
667 |
done |
668 |
|
669 |
# Be sure to have absolute paths. |
670 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
671 |
localstatedir libdir includedir oldincludedir infodir mandir |
672 |
do |
673 |
eval ac_val=$`echo $ac_var` |
674 |
case $ac_val in |
675 |
[\\/$]* | ?:[\\/]* ) ;; |
676 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
677 |
{ (exit 1); exit 1; }; };; |
678 |
esac |
679 |
done |
680 |
|
681 |
# There might be people who depend on the old broken behavior: `$host' |
682 |
# used to hold the argument of --host etc. |
683 |
# FIXME: To remove some day. |
684 |
build=$build_alias |
685 |
host=$host_alias |
686 |
target=$target_alias |
687 |
|
688 |
# FIXME: To remove some day. |
689 |
if test "x$host_alias" != x; then |
690 |
if test "x$build_alias" = x; then |
691 |
cross_compiling=maybe |
692 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
693 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
694 |
elif test "x$build_alias" != "x$host_alias"; then |
695 |
cross_compiling=yes |
696 |
fi |
697 |
fi |
698 |
|
699 |
ac_tool_prefix= |
700 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
701 |
|
702 |
test "$silent" = yes && exec 6>/dev/null |
703 |
|
704 |
|
705 |
# Find the source files, if location was not specified. |
706 |
if test -z "$srcdir"; then |
707 |
ac_srcdir_defaulted=yes |
708 |
# Try the directory containing this script, then its parent. |
709 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
710 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
711 |
X"$0" : 'X\(//\)[^/]' \| \ |
712 |
X"$0" : 'X\(//\)$' \| \ |
713 |
X"$0" : 'X\(/\)' \| \ |
714 |
. : '\(.\)' 2>/dev/null || |
715 |
echo X"$0" | |
716 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
717 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
718 |
/^X\(\/\/\)$/{ s//\1/; q; } |
719 |
/^X\(\/\).*/{ s//\1/; q; } |
720 |
s/.*/./; q'` |
721 |
srcdir=$ac_confdir |
722 |
if test ! -r $srcdir/$ac_unique_file; then |
723 |
srcdir=.. |
724 |
fi |
725 |
else |
726 |
ac_srcdir_defaulted=no |
727 |
fi |
728 |
if test ! -r $srcdir/$ac_unique_file; then |
729 |
if test "$ac_srcdir_defaulted" = yes; then |
730 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 |
{ (exit 1); exit 1; }; } |
732 |
else |
733 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 |
{ (exit 1); exit 1; }; } |
735 |
fi |
736 |
fi |
737 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
739 |
{ (exit 1); exit 1; }; } |
740 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
741 |
ac_env_build_alias_set=${build_alias+set} |
742 |
ac_env_build_alias_value=$build_alias |
743 |
ac_cv_env_build_alias_set=${build_alias+set} |
744 |
ac_cv_env_build_alias_value=$build_alias |
745 |
ac_env_host_alias_set=${host_alias+set} |
746 |
ac_env_host_alias_value=$host_alias |
747 |
ac_cv_env_host_alias_set=${host_alias+set} |
748 |
ac_cv_env_host_alias_value=$host_alias |
749 |
ac_env_target_alias_set=${target_alias+set} |
750 |
ac_env_target_alias_value=$target_alias |
751 |
ac_cv_env_target_alias_set=${target_alias+set} |
752 |
ac_cv_env_target_alias_value=$target_alias |
753 |
ac_env_CXX_set=${CXX+set} |
754 |
ac_env_CXX_value=$CXX |
755 |
ac_cv_env_CXX_set=${CXX+set} |
756 |
ac_cv_env_CXX_value=$CXX |
757 |
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
758 |
ac_env_CXXFLAGS_value=$CXXFLAGS |
759 |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
760 |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
761 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
762 |
ac_env_LDFLAGS_value=$LDFLAGS |
763 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
764 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
765 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
766 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
767 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
768 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
769 |
ac_env_CXXCPP_set=${CXXCPP+set} |
770 |
ac_env_CXXCPP_value=$CXXCPP |
771 |
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
772 |
ac_cv_env_CXXCPP_value=$CXXCPP |
773 |
|
774 |
# |
775 |
# Report the --help message. |
776 |
# |
777 |
if test "$ac_init_help" = "long"; then |
778 |
# Omit some internal or obsolete options to make the list less imposing. |
779 |
# This message is too long to be a string in the A/UX 3.1 sh. |
780 |
cat <<_ACEOF |
781 |
\`configure' configures this package to adapt to many kinds of systems. |
782 |
|
783 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
784 |
|
785 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
786 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
787 |
|
788 |
Defaults for the options are specified in brackets. |
789 |
|
790 |
Configuration: |
791 |
-h, --help display this help and exit |
792 |
--help=short display options specific to this package |
793 |
--help=recursive display the short help of all the included packages |
794 |
-V, --version display version information and exit |
795 |
-q, --quiet, --silent do not print \`checking...' messages |
796 |
--cache-file=FILE cache test results in FILE [disabled] |
797 |
-C, --config-cache alias for \`--cache-file=config.cache' |
798 |
-n, --no-create do not create output files |
799 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
800 |
|
801 |
_ACEOF |
802 |
|
803 |
cat <<_ACEOF |
804 |
Installation directories: |
805 |
--prefix=PREFIX install architecture-independent files in PREFIX |
806 |
[$ac_default_prefix] |
807 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
808 |
[PREFIX] |
809 |
|
810 |
By default, \`make install' will install all the files in |
811 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
812 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
813 |
for instance \`--prefix=\$HOME'. |
814 |
|
815 |
For better control, use the options below. |
816 |
|
817 |
Fine tuning of the installation directories: |
818 |
--bindir=DIR user executables [EPREFIX/bin] |
819 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
820 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
821 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
822 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
823 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
824 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
825 |
--libdir=DIR object code libraries [EPREFIX/lib] |
826 |
--includedir=DIR C header files [PREFIX/include] |
827 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
828 |
--infodir=DIR info documentation [PREFIX/info] |
829 |
--mandir=DIR man documentation [PREFIX/man] |
830 |
_ACEOF |
831 |
|
832 |
cat <<\_ACEOF |
833 |
|
834 |
System types: |
835 |
--build=BUILD configure for building on BUILD [guessed] |
836 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
837 |
_ACEOF |
838 |
fi |
839 |
|
840 |
if test -n "$ac_init_help"; then |
841 |
|
842 |
cat <<\_ACEOF |
843 |
|
844 |
Some influential environment variables: |
845 |
CXX C++ compiler command |
846 |
CXXFLAGS C++ compiler flags |
847 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
848 |
nonstandard directory <lib dir> |
849 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
850 |
headers in a nonstandard directory <include dir> |
851 |
CXXCPP C++ preprocessor |
852 |
|
853 |
Use these variables to override the choices made by `configure' or to help |
854 |
it to find libraries and programs with nonstandard names/locations. |
855 |
|
856 |
_ACEOF |
857 |
fi |
858 |
|
859 |
if test "$ac_init_help" = "recursive"; then |
860 |
# If there are subdirs, report their specific --help. |
861 |
ac_popdir=`pwd` |
862 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
863 |
test -d $ac_dir || continue |
864 |
ac_builddir=. |
865 |
|
866 |
if test "$ac_dir" != .; then |
867 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
868 |
# A "../" for each directory in $ac_dir_suffix. |
869 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
870 |
else |
871 |
ac_dir_suffix= ac_top_builddir= |
872 |
fi |
873 |
|
874 |
case $srcdir in |
875 |
.) # No --srcdir option. We are building in place. |
876 |
ac_srcdir=. |
877 |
if test -z "$ac_top_builddir"; then |
878 |
ac_top_srcdir=. |
879 |
else |
880 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
881 |
fi ;; |
882 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
883 |
ac_srcdir=$srcdir$ac_dir_suffix; |
884 |
ac_top_srcdir=$srcdir ;; |
885 |
*) # Relative path. |
886 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
887 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
888 |
esac |
889 |
|
890 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
891 |
# the directories may not exist. |
892 |
case `pwd` in |
893 |
.) ac_abs_builddir="$ac_dir";; |
894 |
*) |
895 |
case "$ac_dir" in |
896 |
.) ac_abs_builddir=`pwd`;; |
897 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
898 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
899 |
esac;; |
900 |
esac |
901 |
case $ac_abs_builddir in |
902 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
903 |
*) |
904 |
case ${ac_top_builddir}. in |
905 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
906 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
907 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
908 |
esac;; |
909 |
esac |
910 |
case $ac_abs_builddir in |
911 |
.) ac_abs_srcdir=$ac_srcdir;; |
912 |
*) |
913 |
case $ac_srcdir in |
914 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
915 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
916 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
917 |
esac;; |
918 |
esac |
919 |
case $ac_abs_builddir in |
920 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
921 |
*) |
922 |
case $ac_top_srcdir in |
923 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
924 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
925 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
926 |
esac;; |
927 |
esac |
928 |
|
929 |
cd $ac_dir |
930 |
# Check for guested configure; otherwise get Cygnus style configure. |
931 |
if test -f $ac_srcdir/configure.gnu; then |
932 |
echo |
933 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
934 |
elif test -f $ac_srcdir/configure; then |
935 |
echo |
936 |
$SHELL $ac_srcdir/configure --help=recursive |
937 |
elif test -f $ac_srcdir/configure.ac || |
938 |
test -f $ac_srcdir/configure.in; then |
939 |
echo |
940 |
$ac_configure --help |
941 |
else |
942 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
943 |
fi |
944 |
cd "$ac_popdir" |
945 |
done |
946 |
fi |
947 |
|
948 |
test -n "$ac_init_help" && exit 0 |
949 |
if $ac_init_version; then |
950 |
cat <<\_ACEOF |
951 |
|
952 |
Copyright (C) 2003 Free Software Foundation, Inc. |
953 |
This configure script is free software; the Free Software Foundation |
954 |
gives unlimited permission to copy, distribute and modify it. |
955 |
_ACEOF |
956 |
exit 0 |
957 |
fi |
958 |
exec 5>config.log |
959 |
cat >&5 <<_ACEOF |
960 |
This file contains any messages produced by compilers while |
961 |
running configure, to aid debugging if configure makes a mistake. |
962 |
|
963 |
It was created by $as_me, which was |
964 |
generated by GNU Autoconf 2.59. Invocation command line was |
965 |
|
966 |
$ $0 $@ |
967 |
|
968 |
_ACEOF |
969 |
{ |
970 |
cat <<_ASUNAME |
971 |
## --------- ## |
972 |
## Platform. ## |
973 |
## --------- ## |
974 |
|
975 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
976 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
977 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
978 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
979 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
980 |
|
981 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
982 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
983 |
|
984 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
985 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
986 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
987 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
988 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
989 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
990 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
991 |
|
992 |
_ASUNAME |
993 |
|
994 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
995 |
for as_dir in $PATH |
996 |
do |
997 |
IFS=$as_save_IFS |
998 |
test -z "$as_dir" && as_dir=. |
999 |
echo "PATH: $as_dir" |
1000 |
done |
1001 |
|
1002 |
} >&5 |
1003 |
|
1004 |
cat >&5 <<_ACEOF |
1005 |
|
1006 |
|
1007 |
## ----------- ## |
1008 |
## Core tests. ## |
1009 |
## ----------- ## |
1010 |
|
1011 |
_ACEOF |
1012 |
|
1013 |
|
1014 |
# Keep a trace of the command line. |
1015 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1016 |
# Strip out --silent because we don't want to record it for future runs. |
1017 |
# Also quote any args containing shell meta-characters. |
1018 |
# Make two passes to allow for proper duplicate-argument suppression. |
1019 |
ac_configure_args= |
1020 |
ac_configure_args0= |
1021 |
ac_configure_args1= |
1022 |
ac_sep= |
1023 |
ac_must_keep_next=false |
1024 |
for ac_pass in 1 2 |
1025 |
do |
1026 |
for ac_arg |
1027 |
do |
1028 |
case $ac_arg in |
1029 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1030 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1031 |
| -silent | --silent | --silen | --sile | --sil) |
1032 |
continue ;; |
1033 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1034 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1035 |
esac |
1036 |
case $ac_pass in |
1037 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1038 |
2) |
1039 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1040 |
if test $ac_must_keep_next = true; then |
1041 |
ac_must_keep_next=false # Got value, back to normal. |
1042 |
else |
1043 |
case $ac_arg in |
1044 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1045 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1046 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1047 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1048 |
case "$ac_configure_args0 " in |
1049 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1050 |
esac |
1051 |
;; |
1052 |
-* ) ac_must_keep_next=true ;; |
1053 |
esac |
1054 |
fi |
1055 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1056 |
# Get rid of the leading space. |
1057 |
ac_sep=" " |
1058 |
;; |
1059 |
esac |
1060 |
done |
1061 |
done |
1062 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1063 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1064 |
|
1065 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1066 |
# config.log. We remove comments because anyway the quotes in there |
1067 |
# would cause problems or look ugly. |
1068 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
1069 |
# such as our DU 5.0 friend, will then `close' the trap. |
1070 |
trap 'exit_status=$? |
1071 |
# Save into config.log some information that might help in debugging. |
1072 |
{ |
1073 |
echo |
1074 |
|
1075 |
cat <<\_ASBOX |
1076 |
## ---------------- ## |
1077 |
## Cache variables. ## |
1078 |
## ---------------- ## |
1079 |
_ASBOX |
1080 |
echo |
1081 |
# The following way of writing the cache mishandles newlines in values, |
1082 |
{ |
1083 |
(set) 2>&1 | |
1084 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1085 |
*ac_space=\ *) |
1086 |
sed -n \ |
1087 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1088 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1089 |
;; |
1090 |
*) |
1091 |
sed -n \ |
1092 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1093 |
;; |
1094 |
esac; |
1095 |
} |
1096 |
echo |
1097 |
|
1098 |
cat <<\_ASBOX |
1099 |
## ----------------- ## |
1100 |
## Output variables. ## |
1101 |
## ----------------- ## |
1102 |
_ASBOX |
1103 |
echo |
1104 |
for ac_var in $ac_subst_vars |
1105 |
do |
1106 |
eval ac_val=$`echo $ac_var` |
1107 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1108 |
done | sort |
1109 |
echo |
1110 |
|
1111 |
if test -n "$ac_subst_files"; then |
1112 |
cat <<\_ASBOX |
1113 |
## ------------- ## |
1114 |
## Output files. ## |
1115 |
## ------------- ## |
1116 |
_ASBOX |
1117 |
echo |
1118 |
for ac_var in $ac_subst_files |
1119 |
do |
1120 |
eval ac_val=$`echo $ac_var` |
1121 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1122 |
done | sort |
1123 |
echo |
1124 |
fi |
1125 |
|
1126 |
if test -s confdefs.h; then |
1127 |
cat <<\_ASBOX |
1128 |
## ----------- ## |
1129 |
## confdefs.h. ## |
1130 |
## ----------- ## |
1131 |
_ASBOX |
1132 |
echo |
1133 |
sed "/^$/d" confdefs.h | sort |
1134 |
echo |
1135 |
fi |
1136 |
test "$ac_signal" != 0 && |
1137 |
echo "$as_me: caught signal $ac_signal" |
1138 |
echo "$as_me: exit $exit_status" |
1139 |
} >&5 |
1140 |
rm -f core *.core && |
1141 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1142 |
exit $exit_status |
1143 |
' 0 |
1144 |
for ac_signal in 1 2 13 15; do |
1145 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1146 |
done |
1147 |
ac_signal=0 |
1148 |
|
1149 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1150 |
rm -rf conftest* confdefs.h |
1151 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1152 |
echo >confdefs.h |
1153 |
|
1154 |
# Predefined preprocessor variables. |
1155 |
|
1156 |
cat >>confdefs.h <<_ACEOF |
1157 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1158 |
_ACEOF |
1159 |
|
1160 |
|
1161 |
cat >>confdefs.h <<_ACEOF |
1162 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1163 |
_ACEOF |
1164 |
|
1165 |
|
1166 |
cat >>confdefs.h <<_ACEOF |
1167 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1168 |
_ACEOF |
1169 |
|
1170 |
|
1171 |
cat >>confdefs.h <<_ACEOF |
1172 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1173 |
_ACEOF |
1174 |
|
1175 |
|
1176 |
cat >>confdefs.h <<_ACEOF |
1177 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1178 |
_ACEOF |
1179 |
|
1180 |
|
1181 |
# Let the site file select an alternate cache file if it wants to. |
1182 |
# Prefer explicitly selected file to automatically selected ones. |
1183 |
if test -z "$CONFIG_SITE"; then |
1184 |
if test "x$prefix" != xNONE; then |
1185 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1186 |
else |
1187 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1188 |
fi |
1189 |
fi |
1190 |
for ac_site_file in $CONFIG_SITE; do |
1191 |
if test -r "$ac_site_file"; then |
1192 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1193 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
1194 |
sed 's/^/| /' "$ac_site_file" >&5 |
1195 |
. "$ac_site_file" |
1196 |
fi |
1197 |
done |
1198 |
|
1199 |
if test -r "$cache_file"; then |
1200 |
# Some versions of bash will fail to source /dev/null (special |
1201 |
# files actually), so we avoid doing that. |
1202 |
if test -f "$cache_file"; then |
1203 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1204 |
echo "$as_me: loading cache $cache_file" >&6;} |
1205 |
case $cache_file in |
1206 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1207 |
*) . ./$cache_file;; |
1208 |
esac |
1209 |
fi |
1210 |
else |
1211 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1212 |
echo "$as_me: creating cache $cache_file" >&6;} |
1213 |
>$cache_file |
1214 |
fi |
1215 |
|
1216 |
# Check that the precious variables saved in the cache have kept the same |
1217 |
# value. |
1218 |
ac_cache_corrupted=false |
1219 |
for ac_var in `(set) 2>&1 | |
1220 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1221 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1222 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1223 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1224 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
1225 |
case $ac_old_set,$ac_new_set in |
1226 |
set,) |
1227 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1228 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1229 |
ac_cache_corrupted=: ;; |
1230 |
,set) |
1231 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1232 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1233 |
ac_cache_corrupted=: ;; |
1234 |
,);; |
1235 |
*) |
1236 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1237 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1238 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1239 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1240 |
echo "$as_me: former value: $ac_old_val" >&2;} |
1241 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1242 |
echo "$as_me: current value: $ac_new_val" >&2;} |
1243 |
ac_cache_corrupted=: |
1244 |
fi;; |
1245 |
esac |
1246 |
# Pass precious variables to config.status. |
1247 |
if test "$ac_new_set" = set; then |
1248 |
case $ac_new_val in |
1249 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1250 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1251 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1252 |
esac |
1253 |
case " $ac_configure_args " in |
1254 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1255 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1256 |
esac |
1257 |
fi |
1258 |
done |
1259 |
if $ac_cache_corrupted; then |
1260 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1261 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1262 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1263 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1264 |
{ (exit 1); exit 1; }; } |
1265 |
fi |
1266 |
|
1267 |
ac_ext=c |
1268 |
ac_cpp='$CPP $CPPFLAGS' |
1269 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1270 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1271 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1272 |
|
1273 |
|
1274 |
|
1275 |
|
1276 |
|
1277 |
|
1278 |
|
1279 |
|
1280 |
|
1281 |
|
1282 |
|
1283 |
|
1284 |
|
1285 |
|
1286 |
|
1287 |
|
1288 |
|
1289 |
|
1290 |
|
1291 |
|
1292 |
|
1293 |
ac_config_headers="$ac_config_headers config.h:config.h.in" |
1294 |
|
1295 |
|
1296 |
ac_aux_dir= |
1297 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1298 |
if test -f $ac_dir/install-sh; then |
1299 |
ac_aux_dir=$ac_dir |
1300 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
1301 |
break |
1302 |
elif test -f $ac_dir/install.sh; then |
1303 |
ac_aux_dir=$ac_dir |
1304 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
1305 |
break |
1306 |
elif test -f $ac_dir/shtool; then |
1307 |
ac_aux_dir=$ac_dir |
1308 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
1309 |
break |
1310 |
fi |
1311 |
done |
1312 |
if test -z "$ac_aux_dir"; then |
1313 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1314 |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1315 |
{ (exit 1); exit 1; }; } |
1316 |
fi |
1317 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1318 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1319 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1320 |
|
1321 |
# Make sure we can run config.sub. |
1322 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
1323 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1324 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1325 |
{ (exit 1); exit 1; }; } |
1326 |
|
1327 |
echo "$as_me:$LINENO: checking build system type" >&5 |
1328 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1329 |
if test "${ac_cv_build+set}" = set; then |
1330 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1331 |
else |
1332 |
ac_cv_build_alias=$build_alias |
1333 |
test -z "$ac_cv_build_alias" && |
1334 |
ac_cv_build_alias=`$ac_config_guess` |
1335 |
test -z "$ac_cv_build_alias" && |
1336 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1337 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1338 |
{ (exit 1); exit 1; }; } |
1339 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1340 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1341 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
1342 |
{ (exit 1); exit 1; }; } |
1343 |
|
1344 |
fi |
1345 |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1346 |
echo "${ECHO_T}$ac_cv_build" >&6 |
1347 |
build=$ac_cv_build |
1348 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1349 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1350 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1351 |
|
1352 |
|
1353 |
echo "$as_me:$LINENO: checking host system type" >&5 |
1354 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1355 |
if test "${ac_cv_host+set}" = set; then |
1356 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1357 |
else |
1358 |
ac_cv_host_alias=$host_alias |
1359 |
test -z "$ac_cv_host_alias" && |
1360 |
ac_cv_host_alias=$ac_cv_build_alias |
1361 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
1362 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1363 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1364 |
{ (exit 1); exit 1; }; } |
1365 |
|
1366 |
fi |
1367 |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1368 |
echo "${ECHO_T}$ac_cv_host" >&6 |
1369 |
host=$ac_cv_host |
1370 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1371 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1372 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1373 |
|
1374 |
|
1375 |
|
1376 |
ac_ext=cc |
1377 |
ac_cpp='$CXXCPP $CPPFLAGS' |
1378 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1379 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1380 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
1381 |
if test -n "$ac_tool_prefix"; then |
1382 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
1383 |
do |
1384 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1385 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1386 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1387 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1388 |
if test "${ac_cv_prog_CXX+set}" = set; then |
1389 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1390 |
else |
1391 |
if test -n "$CXX"; then |
1392 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
1393 |
else |
1394 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1395 |
for as_dir in $PATH |
1396 |
do |
1397 |
IFS=$as_save_IFS |
1398 |
test -z "$as_dir" && as_dir=. |
1399 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1400 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1401 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
1402 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1403 |
break 2 |
1404 |
fi |
1405 |
done |
1406 |
done |
1407 |
|
1408 |
fi |
1409 |
fi |
1410 |
CXX=$ac_cv_prog_CXX |
1411 |
if test -n "$CXX"; then |
1412 |
echo "$as_me:$LINENO: result: $CXX" >&5 |
1413 |
echo "${ECHO_T}$CXX" >&6 |
1414 |
else |
1415 |
echo "$as_me:$LINENO: result: no" >&5 |
1416 |
echo "${ECHO_T}no" >&6 |
1417 |
fi |
1418 |
|
1419 |
test -n "$CXX" && break |
1420 |
done |
1421 |
fi |
1422 |
if test -z "$CXX"; then |
1423 |
ac_ct_CXX=$CXX |
1424 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
1425 |
do |
1426 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1427 |
set dummy $ac_prog; ac_word=$2 |
1428 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1429 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1430 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
1431 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1432 |
else |
1433 |
if test -n "$ac_ct_CXX"; then |
1434 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
1435 |
else |
1436 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1437 |
for as_dir in $PATH |
1438 |
do |
1439 |
IFS=$as_save_IFS |
1440 |
test -z "$as_dir" && as_dir=. |
1441 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1442 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1443 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
1444 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1445 |
break 2 |
1446 |
fi |
1447 |
done |
1448 |
done |
1449 |
|
1450 |
fi |
1451 |
fi |
1452 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
1453 |
if test -n "$ac_ct_CXX"; then |
1454 |
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
1455 |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
1456 |
else |
1457 |
echo "$as_me:$LINENO: result: no" >&5 |
1458 |
echo "${ECHO_T}no" >&6 |
1459 |
fi |
1460 |
|
1461 |
test -n "$ac_ct_CXX" && break |
1462 |
done |
1463 |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
1464 |
|
1465 |
CXX=$ac_ct_CXX |
1466 |
fi |
1467 |
|
1468 |
|
1469 |
# Provide some information about the compiler. |
1470 |
echo "$as_me:$LINENO:" \ |
1471 |
"checking for C++ compiler version" >&5 |
1472 |
ac_compiler=`set X $ac_compile; echo $2` |
1473 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1474 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
1475 |
ac_status=$? |
1476 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1477 |
(exit $ac_status); } |
1478 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1479 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
1480 |
ac_status=$? |
1481 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1482 |
(exit $ac_status); } |
1483 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1484 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
1485 |
ac_status=$? |
1486 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1487 |
(exit $ac_status); } |
1488 |
|
1489 |
cat >conftest.$ac_ext <<_ACEOF |
1490 |
/* confdefs.h. */ |
1491 |
_ACEOF |
1492 |
cat confdefs.h >>conftest.$ac_ext |
1493 |
cat >>conftest.$ac_ext <<_ACEOF |
1494 |
/* end confdefs.h. */ |
1495 |
|
1496 |
int |
1497 |
main () |
1498 |
{ |
1499 |
|
1500 |
; |
1501 |
return 0; |
1502 |
} |
1503 |
_ACEOF |
1504 |
ac_clean_files_save=$ac_clean_files |
1505 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1506 |
# Try to create an executable without -o first, disregard a.out. |
1507 |
# It will help us diagnose broken compilers, and finding out an intuition |
1508 |
# of exeext. |
1509 |
echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
1510 |
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
1511 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1512 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1513 |
(eval $ac_link_default) 2>&5 |
1514 |
ac_status=$? |
1515 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1516 |
(exit $ac_status); }; then |
1517 |
# Find the output, starting from the most likely. This scheme is |
1518 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
1519 |
# resort. |
1520 |
|
1521 |
# Be careful to initialize this variable, since it used to be cached. |
1522 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
1523 |
ac_cv_exeext= |
1524 |
# b.out is created by i960 compilers. |
1525 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
1526 |
do |
1527 |
test -f "$ac_file" || continue |
1528 |
case $ac_file in |
1529 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1530 |
;; |
1531 |
conftest.$ac_ext ) |
1532 |
# This is the source file. |
1533 |
;; |
1534 |
[ab].out ) |
1535 |
# We found the default executable, but exeext='' is most |
1536 |
# certainly right. |
1537 |
break;; |
1538 |
*.* ) |
1539 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1540 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
1541 |
# but it would be cool to find out if it's true. Does anybody |
1542 |
# maintain Libtool? --akim. |
1543 |
export ac_cv_exeext |
1544 |
break;; |
1545 |
* ) |
1546 |
break;; |
1547 |
esac |
1548 |
done |
1549 |
else |
1550 |
echo "$as_me: failed program was:" >&5 |
1551 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1552 |
|
1553 |
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
1554 |
See \`config.log' for more details." >&5 |
1555 |
echo "$as_me: error: C++ compiler cannot create executables |
1556 |
See \`config.log' for more details." >&2;} |
1557 |
{ (exit 77); exit 77; }; } |
1558 |
fi |
1559 |
|
1560 |
ac_exeext=$ac_cv_exeext |
1561 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
1562 |
echo "${ECHO_T}$ac_file" >&6 |
1563 |
|
1564 |
# Check the compiler produces executables we can run. If not, either |
1565 |
# the compiler is broken, or we cross compile. |
1566 |
echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
1567 |
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
1568 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1569 |
# If not cross compiling, check that we can run a simple program. |
1570 |
if test "$cross_compiling" != yes; then |
1571 |
if { ac_try='./$ac_file' |
1572 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1573 |
(eval $ac_try) 2>&5 |
1574 |
ac_status=$? |
1575 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1576 |
(exit $ac_status); }; }; then |
1577 |
cross_compiling=no |
1578 |
else |
1579 |
if test "$cross_compiling" = maybe; then |
1580 |
cross_compiling=yes |
1581 |
else |
1582 |
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
1583 |
If you meant to cross compile, use \`--host'. |
1584 |
See \`config.log' for more details." >&5 |
1585 |
echo "$as_me: error: cannot run C++ compiled programs. |
1586 |
If you meant to cross compile, use \`--host'. |
1587 |
See \`config.log' for more details." >&2;} |
1588 |
{ (exit 1); exit 1; }; } |
1589 |
fi |
1590 |
fi |
1591 |
fi |
1592 |
echo "$as_me:$LINENO: result: yes" >&5 |
1593 |
echo "${ECHO_T}yes" >&6 |
1594 |
|
1595 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1596 |
ac_clean_files=$ac_clean_files_save |
1597 |
# Check the compiler produces executables we can run. If not, either |
1598 |
# the compiler is broken, or we cross compile. |
1599 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1600 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
1601 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
1602 |
echo "${ECHO_T}$cross_compiling" >&6 |
1603 |
|
1604 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1605 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
1606 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1607 |
(eval $ac_link) 2>&5 |
1608 |
ac_status=$? |
1609 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1610 |
(exit $ac_status); }; then |
1611 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
1612 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
1613 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
1614 |
# `rm'. |
1615 |
for ac_file in conftest.exe conftest conftest.*; do |
1616 |
test -f "$ac_file" || continue |
1617 |
case $ac_file in |
1618 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
1619 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1620 |
export ac_cv_exeext |
1621 |
break;; |
1622 |
* ) break;; |
1623 |
esac |
1624 |
done |
1625 |
else |
1626 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1627 |
See \`config.log' for more details." >&5 |
1628 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
1629 |
See \`config.log' for more details." >&2;} |
1630 |
{ (exit 1); exit 1; }; } |
1631 |
fi |
1632 |
|
1633 |
rm -f conftest$ac_cv_exeext |
1634 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1635 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
1636 |
|
1637 |
rm -f conftest.$ac_ext |
1638 |
EXEEXT=$ac_cv_exeext |
1639 |
ac_exeext=$EXEEXT |
1640 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1641 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
1642 |
if test "${ac_cv_objext+set}" = set; then |
1643 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1644 |
else |
1645 |
cat >conftest.$ac_ext <<_ACEOF |
1646 |
/* confdefs.h. */ |
1647 |
_ACEOF |
1648 |
cat confdefs.h >>conftest.$ac_ext |
1649 |
cat >>conftest.$ac_ext <<_ACEOF |
1650 |
/* end confdefs.h. */ |
1651 |
|
1652 |
int |
1653 |
main () |
1654 |
{ |
1655 |
|
1656 |
; |
1657 |
return 0; |
1658 |
} |
1659 |
_ACEOF |
1660 |
rm -f conftest.o conftest.obj |
1661 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1662 |
(eval $ac_compile) 2>&5 |
1663 |
ac_status=$? |
1664 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1665 |
(exit $ac_status); }; then |
1666 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
1667 |
case $ac_file in |
1668 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
1669 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1670 |
break;; |
1671 |
esac |
1672 |
done |
1673 |
else |
1674 |
echo "$as_me: failed program was:" >&5 |
1675 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1676 |
|
1677 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1678 |
See \`config.log' for more details." >&5 |
1679 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
1680 |
See \`config.log' for more details." >&2;} |
1681 |
{ (exit 1); exit 1; }; } |
1682 |
fi |
1683 |
|
1684 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1685 |
fi |
1686 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1687 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
1688 |
OBJEXT=$ac_cv_objext |
1689 |
ac_objext=$OBJEXT |
1690 |
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
1691 |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
1692 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
1693 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1694 |
else |
1695 |
cat >conftest.$ac_ext <<_ACEOF |
1696 |
/* confdefs.h. */ |
1697 |
_ACEOF |
1698 |
cat confdefs.h >>conftest.$ac_ext |
1699 |
cat >>conftest.$ac_ext <<_ACEOF |
1700 |
/* end confdefs.h. */ |
1701 |
|
1702 |
int |
1703 |
main () |
1704 |
{ |
1705 |
#ifndef __GNUC__ |
1706 |
choke me |
1707 |
#endif |
1708 |
|
1709 |
; |
1710 |
return 0; |
1711 |
} |
1712 |
_ACEOF |
1713 |
rm -f conftest.$ac_objext |
1714 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1715 |
(eval $ac_compile) 2>conftest.er1 |
1716 |
ac_status=$? |
1717 |
grep -v '^ *+' conftest.er1 >conftest.err |
1718 |
rm -f conftest.er1 |
1719 |
cat conftest.err >&5 |
1720 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1721 |
(exit $ac_status); } && |
1722 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1723 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1724 |
(eval $ac_try) 2>&5 |
1725 |
ac_status=$? |
1726 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1727 |
(exit $ac_status); }; } && |
1728 |
{ ac_try='test -s conftest.$ac_objext' |
1729 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1730 |
(eval $ac_try) 2>&5 |
1731 |
ac_status=$? |
1732 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1733 |
(exit $ac_status); }; }; then |
1734 |
ac_compiler_gnu=yes |
1735 |
else |
1736 |
echo "$as_me: failed program was:" >&5 |
1737 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1738 |
|
1739 |
ac_compiler_gnu=no |
1740 |
fi |
1741 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1742 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
1743 |
|
1744 |
fi |
1745 |
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
1746 |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
1747 |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
1748 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
1749 |
ac_save_CXXFLAGS=$CXXFLAGS |
1750 |
CXXFLAGS="-g" |
1751 |
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
1752 |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
1753 |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
1754 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1755 |
else |
1756 |
cat >conftest.$ac_ext <<_ACEOF |
1757 |
/* confdefs.h. */ |
1758 |
_ACEOF |
1759 |
cat confdefs.h >>conftest.$ac_ext |
1760 |
cat >>conftest.$ac_ext <<_ACEOF |
1761 |
/* end confdefs.h. */ |
1762 |
|
1763 |
int |
1764 |
main () |
1765 |
{ |
1766 |
|
1767 |
; |
1768 |
return 0; |
1769 |
} |
1770 |
_ACEOF |
1771 |
rm -f conftest.$ac_objext |
1772 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1773 |
(eval $ac_compile) 2>conftest.er1 |
1774 |
ac_status=$? |
1775 |
grep -v '^ *+' conftest.er1 >conftest.err |
1776 |
rm -f conftest.er1 |
1777 |
cat conftest.err >&5 |
1778 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1779 |
(exit $ac_status); } && |
1780 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1781 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1782 |
(eval $ac_try) 2>&5 |
1783 |
ac_status=$? |
1784 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1785 |
(exit $ac_status); }; } && |
1786 |
{ ac_try='test -s conftest.$ac_objext' |
1787 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1788 |
(eval $ac_try) 2>&5 |
1789 |
ac_status=$? |
1790 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1791 |
(exit $ac_status); }; }; then |
1792 |
ac_cv_prog_cxx_g=yes |
1793 |
else |
1794 |
echo "$as_me: failed program was:" >&5 |
1795 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1796 |
|
1797 |
ac_cv_prog_cxx_g=no |
1798 |
fi |
1799 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1800 |
fi |
1801 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
1802 |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
1803 |
if test "$ac_test_CXXFLAGS" = set; then |
1804 |
CXXFLAGS=$ac_save_CXXFLAGS |
1805 |
elif test $ac_cv_prog_cxx_g = yes; then |
1806 |
if test "$GXX" = yes; then |
1807 |
CXXFLAGS="-g -O2" |
1808 |
else |
1809 |
CXXFLAGS="-g" |
1810 |
fi |
1811 |
else |
1812 |
if test "$GXX" = yes; then |
1813 |
CXXFLAGS="-O2" |
1814 |
else |
1815 |
CXXFLAGS= |
1816 |
fi |
1817 |
fi |
1818 |
for ac_declaration in \ |
1819 |
'' \ |
1820 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
1821 |
'extern "C" void std::exit (int); using std::exit;' \ |
1822 |
'extern "C" void exit (int) throw ();' \ |
1823 |
'extern "C" void exit (int);' \ |
1824 |
'void exit (int);' |
1825 |
do |
1826 |
cat >conftest.$ac_ext <<_ACEOF |
1827 |
/* confdefs.h. */ |
1828 |
_ACEOF |
1829 |
cat confdefs.h >>conftest.$ac_ext |
1830 |
cat >>conftest.$ac_ext <<_ACEOF |
1831 |
/* end confdefs.h. */ |
1832 |
$ac_declaration |
1833 |
#include <stdlib.h> |
1834 |
int |
1835 |
main () |
1836 |
{ |
1837 |
exit (42); |
1838 |
; |
1839 |
return 0; |
1840 |
} |
1841 |
_ACEOF |
1842 |
rm -f conftest.$ac_objext |
1843 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1844 |
(eval $ac_compile) 2>conftest.er1 |
1845 |
ac_status=$? |
1846 |
grep -v '^ *+' conftest.er1 >conftest.err |
1847 |
rm -f conftest.er1 |
1848 |
cat conftest.err >&5 |
1849 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1850 |
(exit $ac_status); } && |
1851 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1852 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1853 |
(eval $ac_try) 2>&5 |
1854 |
ac_status=$? |
1855 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1856 |
(exit $ac_status); }; } && |
1857 |
{ ac_try='test -s conftest.$ac_objext' |
1858 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1859 |
(eval $ac_try) 2>&5 |
1860 |
ac_status=$? |
1861 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1862 |
(exit $ac_status); }; }; then |
1863 |
: |
1864 |
else |
1865 |
echo "$as_me: failed program was:" >&5 |
1866 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1867 |
|
1868 |
continue |
1869 |
fi |
1870 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1871 |
cat >conftest.$ac_ext <<_ACEOF |
1872 |
/* confdefs.h. */ |
1873 |
_ACEOF |
1874 |
cat confdefs.h >>conftest.$ac_ext |
1875 |
cat >>conftest.$ac_ext <<_ACEOF |
1876 |
/* end confdefs.h. */ |
1877 |
$ac_declaration |
1878 |
int |
1879 |
main () |
1880 |
{ |
1881 |
exit (42); |
1882 |
; |
1883 |
return 0; |
1884 |
} |
1885 |
_ACEOF |
1886 |
rm -f conftest.$ac_objext |
1887 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1888 |
(eval $ac_compile) 2>conftest.er1 |
1889 |
ac_status=$? |
1890 |
grep -v '^ *+' conftest.er1 >conftest.err |
1891 |
rm -f conftest.er1 |
1892 |
cat conftest.err >&5 |
1893 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1894 |
(exit $ac_status); } && |
1895 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
1896 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1897 |
(eval $ac_try) 2>&5 |
1898 |
ac_status=$? |
1899 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1900 |
(exit $ac_status); }; } && |
1901 |
{ ac_try='test -s conftest.$ac_objext' |
1902 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1903 |
(eval $ac_try) 2>&5 |
1904 |
ac_status=$? |
1905 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1906 |
(exit $ac_status); }; }; then |
1907 |
break |
1908 |
else |
1909 |
echo "$as_me: failed program was:" >&5 |
1910 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1911 |
|
1912 |
fi |
1913 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1914 |
done |
1915 |
rm -f conftest* |
1916 |
if test -n "$ac_declaration"; then |
1917 |
echo '#ifdef __cplusplus' >>confdefs.h |
1918 |
echo $ac_declaration >>confdefs.h |
1919 |
echo '#endif' >>confdefs.h |
1920 |
fi |
1921 |
|
1922 |
ac_ext=c |
1923 |
ac_cpp='$CPP $CPPFLAGS' |
1924 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1925 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1926 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1927 |
|
1928 |
# Find a good install program. We prefer a C program (faster), |
1929 |
# so one script is as good as another. But avoid the broken or |
1930 |
# incompatible versions: |
1931 |
# SysV /etc/install, /usr/sbin/install |
1932 |
# SunOS /usr/etc/install |
1933 |
# IRIX /sbin/install |
1934 |
# AIX /bin/install |
1935 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
1936 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1937 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1938 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1939 |
# OS/2's system install, which has a completely different semantic |
1940 |
# ./install, which can be erroneously created by make from ./install.sh. |
1941 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1942 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1943 |
if test -z "$INSTALL"; then |
1944 |
if test "${ac_cv_path_install+set}" = set; then |
1945 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1946 |
else |
1947 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1948 |
for as_dir in $PATH |
1949 |
do |
1950 |
IFS=$as_save_IFS |
1951 |
test -z "$as_dir" && as_dir=. |
1952 |
# Account for people who put trailing slashes in PATH elements. |
1953 |
case $as_dir/ in |
1954 |
./ | .// | /cC/* | \ |
1955 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1956 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1957 |
/usr/ucb/* ) ;; |
1958 |
*) |
1959 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
1960 |
# Don't use installbsd from OSF since it installs stuff as root |
1961 |
# by default. |
1962 |
for ac_prog in ginstall scoinst install; do |
1963 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1964 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1965 |
if test $ac_prog = install && |
1966 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1967 |
# AIX install. It has an incompatible calling convention. |
1968 |
: |
1969 |
elif test $ac_prog = install && |
1970 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1971 |
# program-specific install script used by HP pwplus--don't use. |
1972 |
: |
1973 |
else |
1974 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1975 |
break 3 |
1976 |
fi |
1977 |
fi |
1978 |
done |
1979 |
done |
1980 |
;; |
1981 |
esac |
1982 |
done |
1983 |
|
1984 |
|
1985 |
fi |
1986 |
if test "${ac_cv_path_install+set}" = set; then |
1987 |
INSTALL=$ac_cv_path_install |
1988 |
else |
1989 |
# As a last resort, use the slow shell script. We don't cache a |
1990 |
# path for INSTALL within a source directory, because that will |
1991 |
# break other packages using the cache if that directory is |
1992 |
# removed, or if the path is relative. |
1993 |
INSTALL=$ac_install_sh |
1994 |
fi |
1995 |
fi |
1996 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1997 |
echo "${ECHO_T}$INSTALL" >&6 |
1998 |
|
1999 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2000 |
# It thinks the first close brace ends the variable substitution. |
2001 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2002 |
|
2003 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2004 |
|
2005 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2006 |
|
2007 |
|
2008 |
ac_ext=cc |
2009 |
ac_cpp='$CXXCPP $CPPFLAGS' |
2010 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2011 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2012 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2013 |
|
2014 |
|
2015 |
# Extract the first word of "rm", so it can be a program name with args. |
2016 |
set dummy rm; ac_word=$2 |
2017 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2018 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2019 |
if test "${ac_cv_path_RM+set}" = set; then |
2020 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2021 |
else |
2022 |
case $RM in |
2023 |
[\\/]* | ?:[\\/]*) |
2024 |
ac_cv_path_RM="$RM" # Let the user override the test with a path. |
2025 |
;; |
2026 |
*) |
2027 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2028 |
for as_dir in $PATH |
2029 |
do |
2030 |
IFS=$as_save_IFS |
2031 |
test -z "$as_dir" && as_dir=. |
2032 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2033 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2034 |
ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
2035 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2036 |
break 2 |
2037 |
fi |
2038 |
done |
2039 |
done |
2040 |
|
2041 |
;; |
2042 |
esac |
2043 |
fi |
2044 |
RM=$ac_cv_path_RM |
2045 |
|
2046 |
if test -n "$RM"; then |
2047 |
echo "$as_me:$LINENO: result: $RM" >&5 |
2048 |
echo "${ECHO_T}$RM" >&6 |
2049 |
else |
2050 |
echo "$as_me:$LINENO: result: no" >&5 |
2051 |
echo "${ECHO_T}no" >&6 |
2052 |
fi |
2053 |
|
2054 |
|
2055 |
|
2056 |
ac_ext=cc |
2057 |
ac_cpp='$CXXCPP $CPPFLAGS' |
2058 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2059 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2060 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2061 |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
2062 |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
2063 |
if test -z "$CXXCPP"; then |
2064 |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
2065 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2066 |
else |
2067 |
# Double quotes because CXXCPP needs to be expanded |
2068 |
for CXXCPP in "$CXX -E" "/lib/cpp" |
2069 |
do |
2070 |
ac_preproc_ok=false |
2071 |
for ac_cxx_preproc_warn_flag in '' yes |
2072 |
do |
2073 |
# Use a header file that comes with gcc, so configuring glibc |
2074 |
# with a fresh cross-compiler works. |
2075 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2076 |
# <limits.h> exists even on freestanding compilers. |
2077 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2078 |
# not just through cpp. "Syntax error" is here to catch this case. |
2079 |
cat >conftest.$ac_ext <<_ACEOF |
2080 |
/* confdefs.h. */ |
2081 |
_ACEOF |
2082 |
cat confdefs.h >>conftest.$ac_ext |
2083 |
cat >>conftest.$ac_ext <<_ACEOF |
2084 |
/* end confdefs.h. */ |
2085 |
#ifdef __STDC__ |
2086 |
# include <limits.h> |
2087 |
#else |
2088 |
# include <assert.h> |
2089 |
#endif |
2090 |
Syntax error |
2091 |
_ACEOF |
2092 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2093 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2094 |
ac_status=$? |
2095 |
grep -v '^ *+' conftest.er1 >conftest.err |
2096 |
rm -f conftest.er1 |
2097 |
cat conftest.err >&5 |
2098 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2099 |
(exit $ac_status); } >/dev/null; then |
2100 |
if test -s conftest.err; then |
2101 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
2102 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
2103 |
else |
2104 |
ac_cpp_err= |
2105 |
fi |
2106 |
else |
2107 |
ac_cpp_err=yes |
2108 |
fi |
2109 |
if test -z "$ac_cpp_err"; then |
2110 |
: |
2111 |
else |
2112 |
echo "$as_me: failed program was:" >&5 |
2113 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2114 |
|
2115 |
# Broken: fails on valid input. |
2116 |
continue |
2117 |
fi |
2118 |
rm -f conftest.err conftest.$ac_ext |
2119 |
|
2120 |
# OK, works on sane cases. Now check whether non-existent headers |
2121 |
# can be detected and how. |
2122 |
cat >conftest.$ac_ext <<_ACEOF |
2123 |
/* confdefs.h. */ |
2124 |
_ACEOF |
2125 |
cat confdefs.h >>conftest.$ac_ext |
2126 |
cat >>conftest.$ac_ext <<_ACEOF |
2127 |
/* end confdefs.h. */ |
2128 |
#include <ac_nonexistent.h> |
2129 |
_ACEOF |
2130 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2131 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2132 |
ac_status=$? |
2133 |
grep -v '^ *+' conftest.er1 >conftest.err |
2134 |
rm -f conftest.er1 |
2135 |
cat conftest.err >&5 |
2136 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2137 |
(exit $ac_status); } >/dev/null; then |
2138 |
if test -s conftest.err; then |
2139 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
2140 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
2141 |
else |
2142 |
ac_cpp_err= |
2143 |
fi |
2144 |
else |
2145 |
ac_cpp_err=yes |
2146 |
fi |
2147 |
if test -z "$ac_cpp_err"; then |
2148 |
# Broken: success on invalid input. |
2149 |
continue |
2150 |
else |
2151 |
echo "$as_me: failed program was:" >&5 |
2152 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2153 |
|
2154 |
# Passes both tests. |
2155 |
ac_preproc_ok=: |
2156 |
break |
2157 |
fi |
2158 |
rm -f conftest.err conftest.$ac_ext |
2159 |
|
2160 |
done |
2161 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2162 |
rm -f conftest.err conftest.$ac_ext |
2163 |
if $ac_preproc_ok; then |
2164 |
break |
2165 |
fi |
2166 |
|
2167 |
done |
2168 |
ac_cv_prog_CXXCPP=$CXXCPP |
2169 |
|
2170 |
fi |
2171 |
CXXCPP=$ac_cv_prog_CXXCPP |
2172 |
else |
2173 |
ac_cv_prog_CXXCPP=$CXXCPP |
2174 |
fi |
2175 |
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
2176 |
echo "${ECHO_T}$CXXCPP" >&6 |
2177 |
ac_preproc_ok=false |
2178 |
for ac_cxx_preproc_warn_flag in '' yes |
2179 |
do |
2180 |
# Use a header file that comes with gcc, so configuring glibc |
2181 |
# with a fresh cross-compiler works. |
2182 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2183 |
# <limits.h> exists even on freestanding compilers. |
2184 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2185 |
# not just through cpp. "Syntax error" is here to catch this case. |
2186 |
cat >conftest.$ac_ext <<_ACEOF |
2187 |
/* confdefs.h. */ |
2188 |
_ACEOF |
2189 |
cat confdefs.h >>conftest.$ac_ext |
2190 |
cat >>conftest.$ac_ext <<_ACEOF |
2191 |
/* end confdefs.h. */ |
2192 |
#ifdef __STDC__ |
2193 |
# include <limits.h> |
2194 |
#else |
2195 |
# include <assert.h> |
2196 |
#endif |
2197 |
Syntax error |
2198 |
_ACEOF |
2199 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2200 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2201 |
ac_status=$? |
2202 |
grep -v '^ *+' conftest.er1 >conftest.err |
2203 |
rm -f conftest.er1 |
2204 |
cat conftest.err >&5 |
2205 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2206 |
(exit $ac_status); } >/dev/null; then |
2207 |
if test -s conftest.err; then |
2208 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
2209 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
2210 |
else |
2211 |
ac_cpp_err= |
2212 |
fi |
2213 |
else |
2214 |
ac_cpp_err=yes |
2215 |
fi |
2216 |
if test -z "$ac_cpp_err"; then |
2217 |
: |
2218 |
else |
2219 |
echo "$as_me: failed program was:" >&5 |
2220 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2221 |
|
2222 |
# Broken: fails on valid input. |
2223 |
continue |
2224 |
fi |
2225 |
rm -f conftest.err conftest.$ac_ext |
2226 |
|
2227 |
# OK, works on sane cases. Now check whether non-existent headers |
2228 |
# can be detected and how. |
2229 |
cat >conftest.$ac_ext <<_ACEOF |
2230 |
/* confdefs.h. */ |
2231 |
_ACEOF |
2232 |
cat confdefs.h >>conftest.$ac_ext |
2233 |
cat >>conftest.$ac_ext <<_ACEOF |
2234 |
/* end confdefs.h. */ |
2235 |
#include <ac_nonexistent.h> |
2236 |
_ACEOF |
2237 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2238 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2239 |
ac_status=$? |
2240 |
grep -v '^ *+' conftest.er1 >conftest.err |
2241 |
rm -f conftest.er1 |
2242 |
cat conftest.err >&5 |
2243 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2244 |
(exit $ac_status); } >/dev/null; then |
2245 |
if test -s conftest.err; then |
2246 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
2247 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
2248 |
else |
2249 |
ac_cpp_err= |
2250 |
fi |
2251 |
else |
2252 |
ac_cpp_err=yes |
2253 |
fi |
2254 |
if test -z "$ac_cpp_err"; then |
2255 |
# Broken: success on invalid input. |
2256 |
continue |
2257 |
else |
2258 |
echo "$as_me: failed program was:" >&5 |
2259 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2260 |
|
2261 |
# Passes both tests. |
2262 |
ac_preproc_ok=: |
2263 |
break |
2264 |
fi |
2265 |
rm -f conftest.err conftest.$ac_ext |
2266 |
|
2267 |
done |
2268 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2269 |
rm -f conftest.err conftest.$ac_ext |
2270 |
if $ac_preproc_ok; then |
2271 |
: |
2272 |
else |
2273 |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
2274 |
See \`config.log' for more details." >&5 |
2275 |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
2276 |
See \`config.log' for more details." >&2;} |
2277 |
{ (exit 1); exit 1; }; } |
2278 |
fi |
2279 |
|
2280 |
ac_ext=cc |
2281 |
ac_cpp='$CXXCPP $CPPFLAGS' |
2282 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2283 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2284 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2285 |
|
2286 |
|
2287 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
2288 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
2289 |
if test "${ac_cv_prog_egrep+set}" = set; then |
2290 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2291 |
else |
2292 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2293 |
then ac_cv_prog_egrep='grep -E' |
2294 |
else ac_cv_prog_egrep='egrep' |
2295 |
fi |
2296 |
fi |
2297 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2298 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
2299 |
EGREP=$ac_cv_prog_egrep |
2300 |
|
2301 |
|
2302 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
2303 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
2304 |
if test "${ac_cv_header_stdc+set}" = set; then |
2305 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2306 |
else |
2307 |
cat >conftest.$ac_ext <<_ACEOF |
2308 |
/* confdefs.h. */ |
2309 |
_ACEOF |
2310 |
cat confdefs.h >>conftest.$ac_ext |
2311 |
cat >>conftest.$ac_ext <<_ACEOF |
2312 |
/* end confdefs.h. */ |
2313 |
#include <stdlib.h> |
2314 |
#include <stdarg.h> |
2315 |
#include <string.h> |
2316 |
#include <float.h> |
2317 |
|
2318 |
int |
2319 |
main () |
2320 |
{ |
2321 |
|
2322 |
; |
2323 |
return 0; |
2324 |
} |
2325 |
_ACEOF |
2326 |
rm -f conftest.$ac_objext |
2327 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2328 |
(eval $ac_compile) 2>conftest.er1 |
2329 |
ac_status=$? |
2330 |
grep -v '^ *+' conftest.er1 >conftest.err |
2331 |
rm -f conftest.er1 |
2332 |
cat conftest.err >&5 |
2333 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2334 |
(exit $ac_status); } && |
2335 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2336 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2337 |
(eval $ac_try) 2>&5 |
2338 |
ac_status=$? |
2339 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2340 |
(exit $ac_status); }; } && |
2341 |
{ ac_try='test -s conftest.$ac_objext' |
2342 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2343 |
(eval $ac_try) 2>&5 |
2344 |
ac_status=$? |
2345 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2346 |
(exit $ac_status); }; }; then |
2347 |
ac_cv_header_stdc=yes |
2348 |
else |
2349 |
echo "$as_me: failed program was:" >&5 |
2350 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2351 |
|
2352 |
ac_cv_header_stdc=no |
2353 |
fi |
2354 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2355 |
|
2356 |
if test $ac_cv_header_stdc = yes; then |
2357 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
2358 |
cat >conftest.$ac_ext <<_ACEOF |
2359 |
/* confdefs.h. */ |
2360 |
_ACEOF |
2361 |
cat confdefs.h >>conftest.$ac_ext |
2362 |
cat >>conftest.$ac_ext <<_ACEOF |
2363 |
/* end confdefs.h. */ |
2364 |
#include <string.h> |
2365 |
|
2366 |
_ACEOF |
2367 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2368 |
$EGREP "memchr" >/dev/null 2>&1; then |
2369 |
: |
2370 |
else |
2371 |
ac_cv_header_stdc=no |
2372 |
fi |
2373 |
rm -f conftest* |
2374 |
|
2375 |
fi |
2376 |
|
2377 |
if test $ac_cv_header_stdc = yes; then |
2378 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
2379 |
cat >conftest.$ac_ext <<_ACEOF |
2380 |
/* confdefs.h. */ |
2381 |
_ACEOF |
2382 |
cat confdefs.h >>conftest.$ac_ext |
2383 |
cat >>conftest.$ac_ext <<_ACEOF |
2384 |
/* end confdefs.h. */ |
2385 |
#include <stdlib.h> |
2386 |
|
2387 |
_ACEOF |
2388 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2389 |
$EGREP "free" >/dev/null 2>&1; then |
2390 |
: |
2391 |
else |
2392 |
ac_cv_header_stdc=no |
2393 |
fi |
2394 |
rm -f conftest* |
2395 |
|
2396 |
fi |
2397 |
|
2398 |
if test $ac_cv_header_stdc = yes; then |
2399 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
2400 |
if test "$cross_compiling" = yes; then |
2401 |
: |
2402 |
else |
2403 |
cat >conftest.$ac_ext <<_ACEOF |
2404 |
/* confdefs.h. */ |
2405 |
_ACEOF |
2406 |
cat confdefs.h >>conftest.$ac_ext |
2407 |
cat >>conftest.$ac_ext <<_ACEOF |
2408 |
/* end confdefs.h. */ |
2409 |
#include <ctype.h> |
2410 |
#if ((' ' & 0x0FF) == 0x020) |
2411 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2412 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2413 |
#else |
2414 |
# define ISLOWER(c) \ |
2415 |
(('a' <= (c) && (c) <= 'i') \ |
2416 |
|| ('j' <= (c) && (c) <= 'r') \ |
2417 |
|| ('s' <= (c) && (c) <= 'z')) |
2418 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
2419 |
#endif |
2420 |
|
2421 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2422 |
int |
2423 |
main () |
2424 |
{ |
2425 |
int i; |
2426 |
for (i = 0; i < 256; i++) |
2427 |
if (XOR (islower (i), ISLOWER (i)) |
2428 |
|| toupper (i) != TOUPPER (i)) |
2429 |
exit(2); |
2430 |
exit (0); |
2431 |
} |
2432 |
_ACEOF |
2433 |
rm -f conftest$ac_exeext |
2434 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2435 |
(eval $ac_link) 2>&5 |
2436 |
ac_status=$? |
2437 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2438 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2439 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2440 |
(eval $ac_try) 2>&5 |
2441 |
ac_status=$? |
2442 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2443 |
(exit $ac_status); }; }; then |
2444 |
: |
2445 |
else |
2446 |
echo "$as_me: program exited with status $ac_status" >&5 |
2447 |
echo "$as_me: failed program was:" >&5 |
2448 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2449 |
|
2450 |
( exit $ac_status ) |
2451 |
ac_cv_header_stdc=no |
2452 |
fi |
2453 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2454 |
fi |
2455 |
fi |
2456 |
fi |
2457 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
2458 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
2459 |
if test $ac_cv_header_stdc = yes; then |
2460 |
|
2461 |
cat >>confdefs.h <<\_ACEOF |
2462 |
#define STDC_HEADERS 1 |
2463 |
_ACEOF |
2464 |
|
2465 |
fi |
2466 |
|
2467 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
2468 |
|
2469 |
|
2470 |
|
2471 |
|
2472 |
|
2473 |
|
2474 |
|
2475 |
|
2476 |
|
2477 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
2478 |
inttypes.h stdint.h unistd.h |
2479 |
do |
2480 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2481 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
2482 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
2483 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
2484 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2485 |
else |
2486 |
cat >conftest.$ac_ext <<_ACEOF |
2487 |
/* confdefs.h. */ |
2488 |
_ACEOF |
2489 |
cat confdefs.h >>conftest.$ac_ext |
2490 |
cat >>conftest.$ac_ext <<_ACEOF |
2491 |
/* end confdefs.h. */ |
2492 |
$ac_includes_default |
2493 |
|
2494 |
#include <$ac_header> |
2495 |
_ACEOF |
2496 |
rm -f conftest.$ac_objext |
2497 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2498 |
(eval $ac_compile) 2>conftest.er1 |
2499 |
ac_status=$? |
2500 |
grep -v '^ *+' conftest.er1 >conftest.err |
2501 |
rm -f conftest.er1 |
2502 |
cat conftest.err >&5 |
2503 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2504 |
(exit $ac_status); } && |
2505 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2506 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2507 |
(eval $ac_try) 2>&5 |
2508 |
ac_status=$? |
2509 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2510 |
(exit $ac_status); }; } && |
2511 |
{ ac_try='test -s conftest.$ac_objext' |
2512 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2513 |
(eval $ac_try) 2>&5 |
2514 |
ac_status=$? |
2515 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2516 |
(exit $ac_status); }; }; then |
2517 |
eval "$as_ac_Header=yes" |
2518 |
else |
2519 |
echo "$as_me: failed program was:" >&5 |
2520 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2521 |
|
2522 |
eval "$as_ac_Header=no" |
2523 |
fi |
2524 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2525 |
fi |
2526 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2527 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
2528 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
2529 |
cat >>confdefs.h <<_ACEOF |
2530 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2531 |
_ACEOF |
2532 |
|
2533 |
fi |
2534 |
|
2535 |
done |
2536 |
|
2537 |
|
2538 |
|
2539 |
|
2540 |
|
2541 |
|
2542 |
|
2543 |
|
2544 |
for ac_header in \ |
2545 |
pty.h \ |
2546 |
util.h \ |
2547 |
libutil.h \ |
2548 |
sys/ioctl.h \ |
2549 |
sys/stropts.h \ |
2550 |
|
2551 |
do |
2552 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2553 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
2554 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
2555 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
2556 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
2557 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2558 |
fi |
2559 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2560 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
2561 |
else |
2562 |
# Is the header compilable? |
2563 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
2564 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
2565 |
cat >conftest.$ac_ext <<_ACEOF |
2566 |
/* confdefs.h. */ |
2567 |
_ACEOF |
2568 |
cat confdefs.h >>conftest.$ac_ext |
2569 |
cat >>conftest.$ac_ext <<_ACEOF |
2570 |
/* end confdefs.h. */ |
2571 |
$ac_includes_default |
2572 |
#include <$ac_header> |
2573 |
_ACEOF |
2574 |
rm -f conftest.$ac_objext |
2575 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2576 |
(eval $ac_compile) 2>conftest.er1 |
2577 |
ac_status=$? |
2578 |
grep -v '^ *+' conftest.er1 >conftest.err |
2579 |
rm -f conftest.er1 |
2580 |
cat conftest.err >&5 |
2581 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2582 |
(exit $ac_status); } && |
2583 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2584 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2585 |
(eval $ac_try) 2>&5 |
2586 |
ac_status=$? |
2587 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2588 |
(exit $ac_status); }; } && |
2589 |
{ ac_try='test -s conftest.$ac_objext' |
2590 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2591 |
(eval $ac_try) 2>&5 |
2592 |
ac_status=$? |
2593 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2594 |
(exit $ac_status); }; }; then |
2595 |
ac_header_compiler=yes |
2596 |
else |
2597 |
echo "$as_me: failed program was:" >&5 |
2598 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2599 |
|
2600 |
ac_header_compiler=no |
2601 |
fi |
2602 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2603 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
2604 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
2605 |
|
2606 |
# Is the header present? |
2607 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
2608 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
2609 |
cat >conftest.$ac_ext <<_ACEOF |
2610 |
/* confdefs.h. */ |
2611 |
_ACEOF |
2612 |
cat confdefs.h >>conftest.$ac_ext |
2613 |
cat >>conftest.$ac_ext <<_ACEOF |
2614 |
/* end confdefs.h. */ |
2615 |
#include <$ac_header> |
2616 |
_ACEOF |
2617 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2618 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2619 |
ac_status=$? |
2620 |
grep -v '^ *+' conftest.er1 >conftest.err |
2621 |
rm -f conftest.er1 |
2622 |
cat conftest.err >&5 |
2623 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2624 |
(exit $ac_status); } >/dev/null; then |
2625 |
if test -s conftest.err; then |
2626 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
2627 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
2628 |
else |
2629 |
ac_cpp_err= |
2630 |
fi |
2631 |
else |
2632 |
ac_cpp_err=yes |
2633 |
fi |
2634 |
if test -z "$ac_cpp_err"; then |
2635 |
ac_header_preproc=yes |
2636 |
else |
2637 |
echo "$as_me: failed program was:" >&5 |
2638 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2639 |
|
2640 |
ac_header_preproc=no |
2641 |
fi |
2642 |
rm -f conftest.err conftest.$ac_ext |
2643 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
2644 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
2645 |
|
2646 |
# So? What about this header? |
2647 |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
2648 |
yes:no: ) |
2649 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
2650 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
2651 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
2652 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
2653 |
ac_header_preproc=yes |
2654 |
;; |
2655 |
no:yes:* ) |
2656 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
2657 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
2658 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
2659 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
2660 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
2661 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
2662 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
2663 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
2664 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
2665 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
2666 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
2667 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
2668 |
( |
2669 |
cat <<\_ASBOX |
2670 |
## ------------------------------------------ ## |
2671 |
## Report this to the AC_PACKAGE_NAME lists. ## |
2672 |
## ------------------------------------------ ## |
2673 |
_ASBOX |
2674 |
) | |
2675 |
sed "s/^/$as_me: WARNING: /" >&2 |
2676 |
;; |
2677 |
esac |
2678 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
2679 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
2680 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
2681 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2682 |
else |
2683 |
eval "$as_ac_Header=\$ac_header_preproc" |
2684 |
fi |
2685 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2686 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
2687 |
|
2688 |
fi |
2689 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
2690 |
cat >>confdefs.h <<_ACEOF |
2691 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2692 |
_ACEOF |
2693 |
|
2694 |
fi |
2695 |
|
2696 |
done |
2697 |
|
2698 |
|
2699 |
|
2700 |
|
2701 |
|
2702 |
|
2703 |
|
2704 |
for ac_func in \ |
2705 |
revoke \ |
2706 |
_getpty \ |
2707 |
getpt \ |
2708 |
posix_openpt \ |
2709 |
isastream \ |
2710 |
|
2711 |
do |
2712 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2713 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
2714 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
2715 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
2716 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2717 |
else |
2718 |
cat >conftest.$ac_ext <<_ACEOF |
2719 |
/* confdefs.h. */ |
2720 |
_ACEOF |
2721 |
cat confdefs.h >>conftest.$ac_ext |
2722 |
cat >>conftest.$ac_ext <<_ACEOF |
2723 |
/* end confdefs.h. */ |
2724 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
2725 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
2726 |
#define $ac_func innocuous_$ac_func |
2727 |
|
2728 |
/* System header to define __stub macros and hopefully few prototypes, |
2729 |
which can conflict with char $ac_func (); below. |
2730 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2731 |
<limits.h> exists even on freestanding compilers. */ |
2732 |
|
2733 |
#ifdef __STDC__ |
2734 |
# include <limits.h> |
2735 |
#else |
2736 |
# include <assert.h> |
2737 |
#endif |
2738 |
|
2739 |
#undef $ac_func |
2740 |
|
2741 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2742 |
#ifdef __cplusplus |
2743 |
extern "C" |
2744 |
{ |
2745 |
#endif |
2746 |
/* We use char because int might match the return type of a gcc2 |
2747 |
builtin and then its argument prototype would still apply. */ |
2748 |
char $ac_func (); |
2749 |
/* The GNU C library defines this for functions which it implements |
2750 |
to always fail with ENOSYS. Some functions are actually named |
2751 |
something starting with __ and the normal name is an alias. */ |
2752 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
2753 |
choke me |
2754 |
#else |
2755 |
char (*f) () = $ac_func; |
2756 |
#endif |
2757 |
#ifdef __cplusplus |
2758 |
} |
2759 |
#endif |
2760 |
|
2761 |
int |
2762 |
main () |
2763 |
{ |
2764 |
return f != $ac_func; |
2765 |
; |
2766 |
return 0; |
2767 |
} |
2768 |
_ACEOF |
2769 |
rm -f conftest.$ac_objext conftest$ac_exeext |
2770 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2771 |
(eval $ac_link) 2>conftest.er1 |
2772 |
ac_status=$? |
2773 |
grep -v '^ *+' conftest.er1 >conftest.err |
2774 |
rm -f conftest.er1 |
2775 |
cat conftest.err >&5 |
2776 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2777 |
(exit $ac_status); } && |
2778 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2779 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2780 |
(eval $ac_try) 2>&5 |
2781 |
ac_status=$? |
2782 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2783 |
(exit $ac_status); }; } && |
2784 |
{ ac_try='test -s conftest$ac_exeext' |
2785 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2786 |
(eval $ac_try) 2>&5 |
2787 |
ac_status=$? |
2788 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2789 |
(exit $ac_status); }; }; then |
2790 |
eval "$as_ac_var=yes" |
2791 |
else |
2792 |
echo "$as_me: failed program was:" >&5 |
2793 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2794 |
|
2795 |
eval "$as_ac_var=no" |
2796 |
fi |
2797 |
rm -f conftest.err conftest.$ac_objext \ |
2798 |
conftest$ac_exeext conftest.$ac_ext |
2799 |
fi |
2800 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
2801 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
2802 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
2803 |
cat >>confdefs.h <<_ACEOF |
2804 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
2805 |
_ACEOF |
2806 |
|
2807 |
fi |
2808 |
done |
2809 |
|
2810 |
|
2811 |
have_clone=no |
2812 |
|
2813 |
echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
2814 |
echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
2815 |
if test -e /dev/ptym/clone; then |
2816 |
echo "$as_me:$LINENO: result: yes" >&5 |
2817 |
echo "${ECHO_T}yes" >&6 |
2818 |
|
2819 |
cat >>confdefs.h <<\_ACEOF |
2820 |
#define HAVE_DEV_CLONE 1 |
2821 |
_ACEOF |
2822 |
|
2823 |
|
2824 |
cat >>confdefs.h <<\_ACEOF |
2825 |
#define CLONE_DEVICE "/dev/ptym/clone" |
2826 |
_ACEOF |
2827 |
|
2828 |
have_clone=yes |
2829 |
else |
2830 |
echo "$as_me:$LINENO: result: no" >&5 |
2831 |
echo "${ECHO_T}no" >&6 |
2832 |
fi |
2833 |
|
2834 |
echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
2835 |
echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
2836 |
if test -e /dev/ptc; then |
2837 |
echo "$as_me:$LINENO: result: yes" >&5 |
2838 |
echo "${ECHO_T}yes" >&6 |
2839 |
|
2840 |
cat >>confdefs.h <<\_ACEOF |
2841 |
#define HAVE_DEV_PTC 1 |
2842 |
_ACEOF |
2843 |
|
2844 |
|
2845 |
cat >>confdefs.h <<\_ACEOF |
2846 |
#define CLONE_DEVICE "/dev/ptc" |
2847 |
_ACEOF |
2848 |
|
2849 |
have_clone=yes |
2850 |
else |
2851 |
echo "$as_me:$LINENO: result: no" >&5 |
2852 |
echo "${ECHO_T}no" >&6 |
2853 |
fi |
2854 |
|
2855 |
case $host in |
2856 |
*-*-cygwin*) |
2857 |
have_clone=yes |
2858 |
|
2859 |
cat >>confdefs.h <<\_ACEOF |
2860 |
#define CLONE_DEVICE "/dev/ptmx" |
2861 |
_ACEOF |
2862 |
|
2863 |
;; |
2864 |
*) |
2865 |
echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
2866 |
echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
2867 |
if test -e /dev/ptmx; then |
2868 |
echo "$as_me:$LINENO: result: yes" >&5 |
2869 |
echo "${ECHO_T}yes" >&6 |
2870 |
|
2871 |
cat >>confdefs.h <<\_ACEOF |
2872 |
#define HAVE_DEV_PTMX 1 |
2873 |
_ACEOF |
2874 |
|
2875 |
|
2876 |
cat >>confdefs.h <<\_ACEOF |
2877 |
#define CLONE_DEVICE "/dev/ptmx" |
2878 |
_ACEOF |
2879 |
|
2880 |
have_clone=yes |
2881 |
else |
2882 |
echo "$as_me:$LINENO: result: no" >&5 |
2883 |
echo "${ECHO_T}no" >&6 |
2884 |
fi |
2885 |
;; |
2886 |
esac |
2887 |
|
2888 |
if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
2889 |
echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
2890 |
echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
2891 |
cat >conftest.$ac_ext <<_ACEOF |
2892 |
/* confdefs.h. */ |
2893 |
_ACEOF |
2894 |
cat confdefs.h >>conftest.$ac_ext |
2895 |
cat >>conftest.$ac_ext <<_ACEOF |
2896 |
/* end confdefs.h. */ |
2897 |
#include <stdlib.h> |
2898 |
int |
2899 |
main () |
2900 |
{ |
2901 |
grantpt(0);unlockpt(0);ptsname(0); |
2902 |
; |
2903 |
return 0; |
2904 |
} |
2905 |
_ACEOF |
2906 |
rm -f conftest.$ac_objext conftest$ac_exeext |
2907 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2908 |
(eval $ac_link) 2>conftest.er1 |
2909 |
ac_status=$? |
2910 |
grep -v '^ *+' conftest.er1 >conftest.err |
2911 |
rm -f conftest.er1 |
2912 |
cat conftest.err >&5 |
2913 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2914 |
(exit $ac_status); } && |
2915 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2916 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2917 |
(eval $ac_try) 2>&5 |
2918 |
ac_status=$? |
2919 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2920 |
(exit $ac_status); }; } && |
2921 |
{ ac_try='test -s conftest$ac_exeext' |
2922 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2923 |
(eval $ac_try) 2>&5 |
2924 |
ac_status=$? |
2925 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2926 |
(exit $ac_status); }; }; then |
2927 |
unix98_pty=yes |
2928 |
|
2929 |
cat >>confdefs.h <<\_ACEOF |
2930 |
#define UNIX98_PTY 1 |
2931 |
_ACEOF |
2932 |
|
2933 |
echo "$as_me:$LINENO: result: yes" >&5 |
2934 |
echo "${ECHO_T}yes" >&6 |
2935 |
else |
2936 |
echo "$as_me: failed program was:" >&5 |
2937 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2938 |
|
2939 |
echo "$as_me:$LINENO: result: no" >&5 |
2940 |
echo "${ECHO_T}no" >&6 |
2941 |
fi |
2942 |
rm -f conftest.err conftest.$ac_objext \ |
2943 |
conftest$ac_exeext conftest.$ac_ext |
2944 |
fi |
2945 |
|
2946 |
if test -z "$unix98_pty"; then |
2947 |
|
2948 |
for ac_func in openpty |
2949 |
do |
2950 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2951 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
2952 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
2953 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
2954 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2955 |
else |
2956 |
cat >conftest.$ac_ext <<_ACEOF |
2957 |
/* confdefs.h. */ |
2958 |
_ACEOF |
2959 |
cat confdefs.h >>conftest.$ac_ext |
2960 |
cat >>conftest.$ac_ext <<_ACEOF |
2961 |
/* end confdefs.h. */ |
2962 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
2963 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
2964 |
#define $ac_func innocuous_$ac_func |
2965 |
|
2966 |
/* System header to define __stub macros and hopefully few prototypes, |
2967 |
which can conflict with char $ac_func (); below. |
2968 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2969 |
<limits.h> exists even on freestanding compilers. */ |
2970 |
|
2971 |
#ifdef __STDC__ |
2972 |
# include <limits.h> |
2973 |
#else |
2974 |
# include <assert.h> |
2975 |
#endif |
2976 |
|
2977 |
#undef $ac_func |
2978 |
|
2979 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2980 |
#ifdef __cplusplus |
2981 |
extern "C" |
2982 |
{ |
2983 |
#endif |
2984 |
/* We use char because int might match the return type of a gcc2 |
2985 |
builtin and then its argument prototype would still apply. */ |
2986 |
char $ac_func (); |
2987 |
/* The GNU C library defines this for functions which it implements |
2988 |
to always fail with ENOSYS. Some functions are actually named |
2989 |
something starting with __ and the normal name is an alias. */ |
2990 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
2991 |
choke me |
2992 |
#else |
2993 |
char (*f) () = $ac_func; |
2994 |
#endif |
2995 |
#ifdef __cplusplus |
2996 |
} |
2997 |
#endif |
2998 |
|
2999 |
int |
3000 |
main () |
3001 |
{ |
3002 |
return f != $ac_func; |
3003 |
; |
3004 |
return 0; |
3005 |
} |
3006 |
_ACEOF |
3007 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3008 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3009 |
(eval $ac_link) 2>conftest.er1 |
3010 |
ac_status=$? |
3011 |
grep -v '^ *+' conftest.er1 >conftest.err |
3012 |
rm -f conftest.er1 |
3013 |
cat conftest.err >&5 |
3014 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3015 |
(exit $ac_status); } && |
3016 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3017 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3018 |
(eval $ac_try) 2>&5 |
3019 |
ac_status=$? |
3020 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3021 |
(exit $ac_status); }; } && |
3022 |
{ ac_try='test -s conftest$ac_exeext' |
3023 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3024 |
(eval $ac_try) 2>&5 |
3025 |
ac_status=$? |
3026 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3027 |
(exit $ac_status); }; }; then |
3028 |
eval "$as_ac_var=yes" |
3029 |
else |
3030 |
echo "$as_me: failed program was:" >&5 |
3031 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3032 |
|
3033 |
eval "$as_ac_var=no" |
3034 |
fi |
3035 |
rm -f conftest.err conftest.$ac_objext \ |
3036 |
conftest$ac_exeext conftest.$ac_ext |
3037 |
fi |
3038 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
3039 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
3040 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
3041 |
cat >>confdefs.h <<_ACEOF |
3042 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3043 |
_ACEOF |
3044 |
|
3045 |
else |
3046 |
echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
3047 |
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
3048 |
if test "${ac_cv_lib_util_openpty+set}" = set; then |
3049 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3050 |
else |
3051 |
ac_check_lib_save_LIBS=$LIBS |
3052 |
LIBS="-lutil $LIBS" |
3053 |
cat >conftest.$ac_ext <<_ACEOF |
3054 |
/* confdefs.h. */ |
3055 |
_ACEOF |
3056 |
cat confdefs.h >>conftest.$ac_ext |
3057 |
cat >>conftest.$ac_ext <<_ACEOF |
3058 |
/* end confdefs.h. */ |
3059 |
|
3060 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3061 |
#ifdef __cplusplus |
3062 |
extern "C" |
3063 |
#endif |
3064 |
/* We use char because int might match the return type of a gcc2 |
3065 |
builtin and then its argument prototype would still apply. */ |
3066 |
char openpty (); |
3067 |
int |
3068 |
main () |
3069 |
{ |
3070 |
openpty (); |
3071 |
; |
3072 |
return 0; |
3073 |
} |
3074 |
_ACEOF |
3075 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3076 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3077 |
(eval $ac_link) 2>conftest.er1 |
3078 |
ac_status=$? |
3079 |
grep -v '^ *+' conftest.er1 >conftest.err |
3080 |
rm -f conftest.er1 |
3081 |
cat conftest.err >&5 |
3082 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3083 |
(exit $ac_status); } && |
3084 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3085 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3086 |
(eval $ac_try) 2>&5 |
3087 |
ac_status=$? |
3088 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3089 |
(exit $ac_status); }; } && |
3090 |
{ ac_try='test -s conftest$ac_exeext' |
3091 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3092 |
(eval $ac_try) 2>&5 |
3093 |
ac_status=$? |
3094 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3095 |
(exit $ac_status); }; }; then |
3096 |
ac_cv_lib_util_openpty=yes |
3097 |
else |
3098 |
echo "$as_me: failed program was:" >&5 |
3099 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3100 |
|
3101 |
ac_cv_lib_util_openpty=no |
3102 |
fi |
3103 |
rm -f conftest.err conftest.$ac_objext \ |
3104 |
conftest$ac_exeext conftest.$ac_ext |
3105 |
LIBS=$ac_check_lib_save_LIBS |
3106 |
fi |
3107 |
echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
3108 |
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
3109 |
if test $ac_cv_lib_util_openpty = yes; then |
3110 |
cat >>confdefs.h <<\_ACEOF |
3111 |
#define HAVE_OPENPTY 1 |
3112 |
_ACEOF |
3113 |
LIBS="$LIBS -lutil" |
3114 |
fi |
3115 |
|
3116 |
fi |
3117 |
done |
3118 |
|
3119 |
fi |
3120 |
|
3121 |
|
3122 |
|
3123 |
|
3124 |
|
3125 |
|
3126 |
for ac_func in \ |
3127 |
ttyslot \ |
3128 |
updwtmp \ |
3129 |
updwtmpx \ |
3130 |
|
3131 |
do |
3132 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
3133 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
3134 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
3135 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
3136 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3137 |
else |
3138 |
cat >conftest.$ac_ext <<_ACEOF |
3139 |
/* confdefs.h. */ |
3140 |
_ACEOF |
3141 |
cat confdefs.h >>conftest.$ac_ext |
3142 |
cat >>conftest.$ac_ext <<_ACEOF |
3143 |
/* end confdefs.h. */ |
3144 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
3145 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
3146 |
#define $ac_func innocuous_$ac_func |
3147 |
|
3148 |
/* System header to define __stub macros and hopefully few prototypes, |
3149 |
which can conflict with char $ac_func (); below. |
3150 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3151 |
<limits.h> exists even on freestanding compilers. */ |
3152 |
|
3153 |
#ifdef __STDC__ |
3154 |
# include <limits.h> |
3155 |
#else |
3156 |
# include <assert.h> |
3157 |
#endif |
3158 |
|
3159 |
#undef $ac_func |
3160 |
|
3161 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3162 |
#ifdef __cplusplus |
3163 |
extern "C" |
3164 |
{ |
3165 |
#endif |
3166 |
/* We use char because int might match the return type of a gcc2 |
3167 |
builtin and then its argument prototype would still apply. */ |
3168 |
char $ac_func (); |
3169 |
/* The GNU C library defines this for functions which it implements |
3170 |
to always fail with ENOSYS. Some functions are actually named |
3171 |
something starting with __ and the normal name is an alias. */ |
3172 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
3173 |
choke me |
3174 |
#else |
3175 |
char (*f) () = $ac_func; |
3176 |
#endif |
3177 |
#ifdef __cplusplus |
3178 |
} |
3179 |
#endif |
3180 |
|
3181 |
int |
3182 |
main () |
3183 |
{ |
3184 |
return f != $ac_func; |
3185 |
; |
3186 |
return 0; |
3187 |
} |
3188 |
_ACEOF |
3189 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3190 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3191 |
(eval $ac_link) 2>conftest.er1 |
3192 |
ac_status=$? |
3193 |
grep -v '^ *+' conftest.er1 >conftest.err |
3194 |
rm -f conftest.er1 |
3195 |
cat conftest.err >&5 |
3196 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3197 |
(exit $ac_status); } && |
3198 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3199 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3200 |
(eval $ac_try) 2>&5 |
3201 |
ac_status=$? |
3202 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3203 |
(exit $ac_status); }; } && |
3204 |
{ ac_try='test -s conftest$ac_exeext' |
3205 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3206 |
(eval $ac_try) 2>&5 |
3207 |
ac_status=$? |
3208 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3209 |
(exit $ac_status); }; }; then |
3210 |
eval "$as_ac_var=yes" |
3211 |
else |
3212 |
echo "$as_me: failed program was:" >&5 |
3213 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3214 |
|
3215 |
eval "$as_ac_var=no" |
3216 |
fi |
3217 |
rm -f conftest.err conftest.$ac_objext \ |
3218 |
conftest$ac_exeext conftest.$ac_ext |
3219 |
fi |
3220 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
3221 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
3222 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
3223 |
cat >>confdefs.h <<_ACEOF |
3224 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3225 |
_ACEOF |
3226 |
|
3227 |
fi |
3228 |
done |
3229 |
|
3230 |
|
3231 |
|
3232 |
|
3233 |
|
3234 |
for ac_header in \ |
3235 |
utmp.h \ |
3236 |
utmpx.h \ |
3237 |
lastlog.h \ |
3238 |
|
3239 |
do |
3240 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3241 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3242 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3243 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3244 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3245 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3246 |
fi |
3247 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3248 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3249 |
else |
3250 |
# Is the header compilable? |
3251 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3252 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
3253 |
cat >conftest.$ac_ext <<_ACEOF |
3254 |
/* confdefs.h. */ |
3255 |
_ACEOF |
3256 |
cat confdefs.h >>conftest.$ac_ext |
3257 |
cat >>conftest.$ac_ext <<_ACEOF |
3258 |
/* end confdefs.h. */ |
3259 |
$ac_includes_default |
3260 |
#include <$ac_header> |
3261 |
_ACEOF |
3262 |
rm -f conftest.$ac_objext |
3263 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3264 |
(eval $ac_compile) 2>conftest.er1 |
3265 |
ac_status=$? |
3266 |
grep -v '^ *+' conftest.er1 >conftest.err |
3267 |
rm -f conftest.er1 |
3268 |
cat conftest.err >&5 |
3269 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3270 |
(exit $ac_status); } && |
3271 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3272 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3273 |
(eval $ac_try) 2>&5 |
3274 |
ac_status=$? |
3275 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3276 |
(exit $ac_status); }; } && |
3277 |
{ ac_try='test -s conftest.$ac_objext' |
3278 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3279 |
(eval $ac_try) 2>&5 |
3280 |
ac_status=$? |
3281 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3282 |
(exit $ac_status); }; }; then |
3283 |
ac_header_compiler=yes |
3284 |
else |
3285 |
echo "$as_me: failed program was:" >&5 |
3286 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3287 |
|
3288 |
ac_header_compiler=no |
3289 |
fi |
3290 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3291 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3292 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3293 |
|
3294 |
# Is the header present? |
3295 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3296 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
3297 |
cat >conftest.$ac_ext <<_ACEOF |
3298 |
/* confdefs.h. */ |
3299 |
_ACEOF |
3300 |
cat confdefs.h >>conftest.$ac_ext |
3301 |
cat >>conftest.$ac_ext <<_ACEOF |
3302 |
/* end confdefs.h. */ |
3303 |
#include <$ac_header> |
3304 |
_ACEOF |
3305 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3306 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3307 |
ac_status=$? |
3308 |
grep -v '^ *+' conftest.er1 >conftest.err |
3309 |
rm -f conftest.er1 |
3310 |
cat conftest.err >&5 |
3311 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3312 |
(exit $ac_status); } >/dev/null; then |
3313 |
if test -s conftest.err; then |
3314 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
3315 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
3316 |
else |
3317 |
ac_cpp_err= |
3318 |
fi |
3319 |
else |
3320 |
ac_cpp_err=yes |
3321 |
fi |
3322 |
if test -z "$ac_cpp_err"; then |
3323 |
ac_header_preproc=yes |
3324 |
else |
3325 |
echo "$as_me: failed program was:" >&5 |
3326 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3327 |
|
3328 |
ac_header_preproc=no |
3329 |
fi |
3330 |
rm -f conftest.err conftest.$ac_ext |
3331 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3332 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3333 |
|
3334 |
# So? What about this header? |
3335 |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
3336 |
yes:no: ) |
3337 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3338 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3339 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3340 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
3341 |
ac_header_preproc=yes |
3342 |
;; |
3343 |
no:yes:* ) |
3344 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3345 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
3346 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3347 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
3348 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
3349 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
3350 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
3351 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
3352 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3353 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
3354 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3355 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
3356 |
( |
3357 |
cat <<\_ASBOX |
3358 |
## ------------------------------------------ ## |
3359 |
## Report this to the AC_PACKAGE_NAME lists. ## |
3360 |
## ------------------------------------------ ## |
3361 |
_ASBOX |
3362 |
) | |
3363 |
sed "s/^/$as_me: WARNING: /" >&2 |
3364 |
;; |
3365 |
esac |
3366 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3367 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3368 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3369 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3370 |
else |
3371 |
eval "$as_ac_Header=\$ac_header_preproc" |
3372 |
fi |
3373 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3374 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3375 |
|
3376 |
fi |
3377 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3378 |
cat >>confdefs.h <<_ACEOF |
3379 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3380 |
_ACEOF |
3381 |
|
3382 |
fi |
3383 |
|
3384 |
done |
3385 |
|
3386 |
|
3387 |
|
3388 |
if test "${ac_cv_header_utmp_h+set}" = set; then |
3389 |
echo "$as_me:$LINENO: checking for utmp.h" >&5 |
3390 |
echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
3391 |
if test "${ac_cv_header_utmp_h+set}" = set; then |
3392 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3393 |
fi |
3394 |
echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
3395 |
echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
3396 |
else |
3397 |
# Is the header compilable? |
3398 |
echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
3399 |
echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6 |
3400 |
cat >conftest.$ac_ext <<_ACEOF |
3401 |
/* confdefs.h. */ |
3402 |
_ACEOF |
3403 |
cat confdefs.h >>conftest.$ac_ext |
3404 |
cat >>conftest.$ac_ext <<_ACEOF |
3405 |
/* end confdefs.h. */ |
3406 |
$ac_includes_default |
3407 |
#include <utmp.h> |
3408 |
_ACEOF |
3409 |
rm -f conftest.$ac_objext |
3410 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3411 |
(eval $ac_compile) 2>conftest.er1 |
3412 |
ac_status=$? |
3413 |
grep -v '^ *+' conftest.er1 >conftest.err |
3414 |
rm -f conftest.er1 |
3415 |
cat conftest.err >&5 |
3416 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3417 |
(exit $ac_status); } && |
3418 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3419 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3420 |
(eval $ac_try) 2>&5 |
3421 |
ac_status=$? |
3422 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3423 |
(exit $ac_status); }; } && |
3424 |
{ ac_try='test -s conftest.$ac_objext' |
3425 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3426 |
(eval $ac_try) 2>&5 |
3427 |
ac_status=$? |
3428 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3429 |
(exit $ac_status); }; }; then |
3430 |
ac_header_compiler=yes |
3431 |
else |
3432 |
echo "$as_me: failed program was:" >&5 |
3433 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3434 |
|
3435 |
ac_header_compiler=no |
3436 |
fi |
3437 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3438 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3439 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3440 |
|
3441 |
# Is the header present? |
3442 |
echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
3443 |
echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6 |
3444 |
cat >conftest.$ac_ext <<_ACEOF |
3445 |
/* confdefs.h. */ |
3446 |
_ACEOF |
3447 |
cat confdefs.h >>conftest.$ac_ext |
3448 |
cat >>conftest.$ac_ext <<_ACEOF |
3449 |
/* end confdefs.h. */ |
3450 |
#include <utmp.h> |
3451 |
_ACEOF |
3452 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3453 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3454 |
ac_status=$? |
3455 |
grep -v '^ *+' conftest.er1 >conftest.err |
3456 |
rm -f conftest.er1 |
3457 |
cat conftest.err >&5 |
3458 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3459 |
(exit $ac_status); } >/dev/null; then |
3460 |
if test -s conftest.err; then |
3461 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
3462 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
3463 |
else |
3464 |
ac_cpp_err= |
3465 |
fi |
3466 |
else |
3467 |
ac_cpp_err=yes |
3468 |
fi |
3469 |
if test -z "$ac_cpp_err"; then |
3470 |
ac_header_preproc=yes |
3471 |
else |
3472 |
echo "$as_me: failed program was:" >&5 |
3473 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3474 |
|
3475 |
ac_header_preproc=no |
3476 |
fi |
3477 |
rm -f conftest.err conftest.$ac_ext |
3478 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3479 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3480 |
|
3481 |
# So? What about this header? |
3482 |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
3483 |
yes:no: ) |
3484 |
{ echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3485 |
echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3486 |
{ echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
3487 |
echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
3488 |
ac_header_preproc=yes |
3489 |
;; |
3490 |
no:yes:* ) |
3491 |
{ echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
3492 |
echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
3493 |
{ echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
3494 |
echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
3495 |
{ echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
3496 |
echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
3497 |
{ echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
3498 |
echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
3499 |
{ echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
3500 |
echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
3501 |
{ echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
3502 |
echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
3503 |
( |
3504 |
cat <<\_ASBOX |
3505 |
## ------------------------------------------ ## |
3506 |
## Report this to the AC_PACKAGE_NAME lists. ## |
3507 |
## ------------------------------------------ ## |
3508 |
_ASBOX |
3509 |
) | |
3510 |
sed "s/^/$as_me: WARNING: /" >&2 |
3511 |
;; |
3512 |
esac |
3513 |
echo "$as_me:$LINENO: checking for utmp.h" >&5 |
3514 |
echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
3515 |
if test "${ac_cv_header_utmp_h+set}" = set; then |
3516 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3517 |
else |
3518 |
ac_cv_header_utmp_h=$ac_header_preproc |
3519 |
fi |
3520 |
echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
3521 |
echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
3522 |
|
3523 |
fi |
3524 |
if test $ac_cv_header_utmp_h = yes; then |
3525 |
echo "$as_me:$LINENO: checking for struct utmp" >&5 |
3526 |
echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
3527 |
if test "${struct_utmp+set}" = set; then |
3528 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3529 |
else |
3530 |
cat >conftest.$ac_ext <<_ACEOF |
3531 |
/* confdefs.h. */ |
3532 |
_ACEOF |
3533 |
cat confdefs.h >>conftest.$ac_ext |
3534 |
cat >>conftest.$ac_ext <<_ACEOF |
3535 |
/* end confdefs.h. */ |
3536 |
#include <sys/types.h> |
3537 |
#include <utmp.h> |
3538 |
int |
3539 |
main () |
3540 |
{ |
3541 |
struct utmp ut; |
3542 |
; |
3543 |
return 0; |
3544 |
} |
3545 |
_ACEOF |
3546 |
rm -f conftest.$ac_objext |
3547 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3548 |
(eval $ac_compile) 2>conftest.er1 |
3549 |
ac_status=$? |
3550 |
grep -v '^ *+' conftest.er1 >conftest.err |
3551 |
rm -f conftest.er1 |
3552 |
cat conftest.err >&5 |
3553 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3554 |
(exit $ac_status); } && |
3555 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3556 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3557 |
(eval $ac_try) 2>&5 |
3558 |
ac_status=$? |
3559 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3560 |
(exit $ac_status); }; } && |
3561 |
{ ac_try='test -s conftest.$ac_objext' |
3562 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3563 |
(eval $ac_try) 2>&5 |
3564 |
ac_status=$? |
3565 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3566 |
(exit $ac_status); }; }; then |
3567 |
struct_utmp=yes |
3568 |
else |
3569 |
echo "$as_me: failed program was:" >&5 |
3570 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3571 |
|
3572 |
struct_utmp=no |
3573 |
fi |
3574 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3575 |
fi |
3576 |
echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
3577 |
echo "${ECHO_T}$struct_utmp" >&6 |
3578 |
if test x$struct_utmp = xyes; then |
3579 |
|
3580 |
cat >>confdefs.h <<\_ACEOF |
3581 |
#define HAVE_STRUCT_UTMP 1 |
3582 |
_ACEOF |
3583 |
|
3584 |
fi |
3585 |
|
3586 |
|
3587 |
echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
3588 |
echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
3589 |
if test "${struct_utmp_host+set}" = set; then |
3590 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3591 |
else |
3592 |
cat >conftest.$ac_ext <<_ACEOF |
3593 |
/* confdefs.h. */ |
3594 |
_ACEOF |
3595 |
cat confdefs.h >>conftest.$ac_ext |
3596 |
cat >>conftest.$ac_ext <<_ACEOF |
3597 |
/* end confdefs.h. */ |
3598 |
#include <sys/types.h> |
3599 |
#include <utmp.h> |
3600 |
int |
3601 |
main () |
3602 |
{ |
3603 |
struct utmp ut; ut.ut_host; |
3604 |
; |
3605 |
return 0; |
3606 |
} |
3607 |
_ACEOF |
3608 |
rm -f conftest.$ac_objext |
3609 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3610 |
(eval $ac_compile) 2>conftest.er1 |
3611 |
ac_status=$? |
3612 |
grep -v '^ *+' conftest.er1 >conftest.err |
3613 |
rm -f conftest.er1 |
3614 |
cat conftest.err >&5 |
3615 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3616 |
(exit $ac_status); } && |
3617 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3618 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3619 |
(eval $ac_try) 2>&5 |
3620 |
ac_status=$? |
3621 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3622 |
(exit $ac_status); }; } && |
3623 |
{ ac_try='test -s conftest.$ac_objext' |
3624 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3625 |
(eval $ac_try) 2>&5 |
3626 |
ac_status=$? |
3627 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3628 |
(exit $ac_status); }; }; then |
3629 |
struct_utmp_host=yes |
3630 |
else |
3631 |
echo "$as_me: failed program was:" >&5 |
3632 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3633 |
|
3634 |
struct_utmp_host=no |
3635 |
fi |
3636 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3637 |
fi |
3638 |
echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
3639 |
echo "${ECHO_T}$struct_utmp_host" >&6 |
3640 |
if test x$struct_utmp_host = xyes; then |
3641 |
|
3642 |
cat >>confdefs.h <<\_ACEOF |
3643 |
#define HAVE_UTMP_HOST 1 |
3644 |
_ACEOF |
3645 |
|
3646 |
fi |
3647 |
|
3648 |
echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
3649 |
echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
3650 |
if test "${struct_utmp_pid+set}" = set; then |
3651 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3652 |
else |
3653 |
cat >conftest.$ac_ext <<_ACEOF |
3654 |
/* confdefs.h. */ |
3655 |
_ACEOF |
3656 |
cat confdefs.h >>conftest.$ac_ext |
3657 |
cat >>conftest.$ac_ext <<_ACEOF |
3658 |
/* end confdefs.h. */ |
3659 |
#include <sys/types.h> |
3660 |
#include <utmp.h> |
3661 |
int |
3662 |
main () |
3663 |
{ |
3664 |
struct utmp ut; ut.ut_pid; |
3665 |
; |
3666 |
return 0; |
3667 |
} |
3668 |
_ACEOF |
3669 |
rm -f conftest.$ac_objext |
3670 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3671 |
(eval $ac_compile) 2>conftest.er1 |
3672 |
ac_status=$? |
3673 |
grep -v '^ *+' conftest.er1 >conftest.err |
3674 |
rm -f conftest.er1 |
3675 |
cat conftest.err >&5 |
3676 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3677 |
(exit $ac_status); } && |
3678 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3679 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3680 |
(eval $ac_try) 2>&5 |
3681 |
ac_status=$? |
3682 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3683 |
(exit $ac_status); }; } && |
3684 |
{ ac_try='test -s conftest.$ac_objext' |
3685 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3686 |
(eval $ac_try) 2>&5 |
3687 |
ac_status=$? |
3688 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3689 |
(exit $ac_status); }; }; then |
3690 |
struct_utmp_pid=yes |
3691 |
else |
3692 |
echo "$as_me: failed program was:" >&5 |
3693 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3694 |
|
3695 |
struct_utmp_pid=no |
3696 |
fi |
3697 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3698 |
fi |
3699 |
echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
3700 |
echo "${ECHO_T}$struct_utmp_pid" >&6 |
3701 |
if test x$struct_utmp_pid = xyes; then |
3702 |
|
3703 |
cat >>confdefs.h <<\_ACEOF |
3704 |
#define HAVE_UTMP_PID 1 |
3705 |
_ACEOF |
3706 |
|
3707 |
fi |
3708 |
|
3709 |
fi |
3710 |
|
3711 |
|
3712 |
|
3713 |
if test "${ac_cv_header_utmpx_h+set}" = set; then |
3714 |
echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
3715 |
echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
3716 |
if test "${ac_cv_header_utmpx_h+set}" = set; then |
3717 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3718 |
fi |
3719 |
echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
3720 |
echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
3721 |
else |
3722 |
# Is the header compilable? |
3723 |
echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
3724 |
echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6 |
3725 |
cat >conftest.$ac_ext <<_ACEOF |
3726 |
/* confdefs.h. */ |
3727 |
_ACEOF |
3728 |
cat confdefs.h >>conftest.$ac_ext |
3729 |
cat >>conftest.$ac_ext <<_ACEOF |
3730 |
/* end confdefs.h. */ |
3731 |
$ac_includes_default |
3732 |
#include <utmpx.h> |
3733 |
_ACEOF |
3734 |
rm -f conftest.$ac_objext |
3735 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3736 |
(eval $ac_compile) 2>conftest.er1 |
3737 |
ac_status=$? |
3738 |
grep -v '^ *+' conftest.er1 >conftest.err |
3739 |
rm -f conftest.er1 |
3740 |
cat conftest.err >&5 |
3741 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3742 |
(exit $ac_status); } && |
3743 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3744 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3745 |
(eval $ac_try) 2>&5 |
3746 |
ac_status=$? |
3747 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3748 |
(exit $ac_status); }; } && |
3749 |
{ ac_try='test -s conftest.$ac_objext' |
3750 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3751 |
(eval $ac_try) 2>&5 |
3752 |
ac_status=$? |
3753 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3754 |
(exit $ac_status); }; }; then |
3755 |
ac_header_compiler=yes |
3756 |
else |
3757 |
echo "$as_me: failed program was:" >&5 |
3758 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3759 |
|
3760 |
ac_header_compiler=no |
3761 |
fi |
3762 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3763 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3764 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3765 |
|
3766 |
# Is the header present? |
3767 |
echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
3768 |
echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6 |
3769 |
cat >conftest.$ac_ext <<_ACEOF |
3770 |
/* confdefs.h. */ |
3771 |
_ACEOF |
3772 |
cat confdefs.h >>conftest.$ac_ext |
3773 |
cat >>conftest.$ac_ext <<_ACEOF |
3774 |
/* end confdefs.h. */ |
3775 |
#include <utmpx.h> |
3776 |
_ACEOF |
3777 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3778 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3779 |
ac_status=$? |
3780 |
grep -v '^ *+' conftest.er1 >conftest.err |
3781 |
rm -f conftest.er1 |
3782 |
cat conftest.err >&5 |
3783 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3784 |
(exit $ac_status); } >/dev/null; then |
3785 |
if test -s conftest.err; then |
3786 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
3787 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
3788 |
else |
3789 |
ac_cpp_err= |
3790 |
fi |
3791 |
else |
3792 |
ac_cpp_err=yes |
3793 |
fi |
3794 |
if test -z "$ac_cpp_err"; then |
3795 |
ac_header_preproc=yes |
3796 |
else |
3797 |
echo "$as_me: failed program was:" >&5 |
3798 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3799 |
|
3800 |
ac_header_preproc=no |
3801 |
fi |
3802 |
rm -f conftest.err conftest.$ac_ext |
3803 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3804 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3805 |
|
3806 |
# So? What about this header? |
3807 |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
3808 |
yes:no: ) |
3809 |
{ echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3810 |
echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3811 |
{ echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
3812 |
echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
3813 |
ac_header_preproc=yes |
3814 |
;; |
3815 |
no:yes:* ) |
3816 |
{ echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
3817 |
echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
3818 |
{ echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
3819 |
echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
3820 |
{ echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
3821 |
echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
3822 |
{ echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
3823 |
echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
3824 |
{ echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
3825 |
echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
3826 |
{ echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
3827 |
echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
3828 |
( |
3829 |
cat <<\_ASBOX |
3830 |
## ------------------------------------------ ## |
3831 |
## Report this to the AC_PACKAGE_NAME lists. ## |
3832 |
## ------------------------------------------ ## |
3833 |
_ASBOX |
3834 |
) | |
3835 |
sed "s/^/$as_me: WARNING: /" >&2 |
3836 |
;; |
3837 |
esac |
3838 |
echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
3839 |
echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
3840 |
if test "${ac_cv_header_utmpx_h+set}" = set; then |
3841 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3842 |
else |
3843 |
ac_cv_header_utmpx_h=$ac_header_preproc |
3844 |
fi |
3845 |
echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
3846 |
echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
3847 |
|
3848 |
fi |
3849 |
if test $ac_cv_header_utmpx_h = yes; then |
3850 |
echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
3851 |
echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
3852 |
if test "${struct_utmpx+set}" = set; then |
3853 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3854 |
else |
3855 |
cat >conftest.$ac_ext <<_ACEOF |
3856 |
/* confdefs.h. */ |
3857 |
_ACEOF |
3858 |
cat confdefs.h >>conftest.$ac_ext |
3859 |
cat >>conftest.$ac_ext <<_ACEOF |
3860 |
/* end confdefs.h. */ |
3861 |
#include <sys/types.h> |
3862 |
#include <utmpx.h> |
3863 |
int |
3864 |
main () |
3865 |
{ |
3866 |
struct utmpx ut; |
3867 |
; |
3868 |
return 0; |
3869 |
} |
3870 |
_ACEOF |
3871 |
rm -f conftest.$ac_objext |
3872 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3873 |
(eval $ac_compile) 2>conftest.er1 |
3874 |
ac_status=$? |
3875 |
grep -v '^ *+' conftest.er1 >conftest.err |
3876 |
rm -f conftest.er1 |
3877 |
cat conftest.err >&5 |
3878 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3879 |
(exit $ac_status); } && |
3880 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3881 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3882 |
(eval $ac_try) 2>&5 |
3883 |
ac_status=$? |
3884 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3885 |
(exit $ac_status); }; } && |
3886 |
{ ac_try='test -s conftest.$ac_objext' |
3887 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3888 |
(eval $ac_try) 2>&5 |
3889 |
ac_status=$? |
3890 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3891 |
(exit $ac_status); }; }; then |
3892 |
struct_utmpx=yes |
3893 |
else |
3894 |
echo "$as_me: failed program was:" >&5 |
3895 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3896 |
|
3897 |
struct_utmpx=no |
3898 |
fi |
3899 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3900 |
fi |
3901 |
echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
3902 |
echo "${ECHO_T}$struct_utmpx" >&6 |
3903 |
if test x$struct_utmpx = xyes; then |
3904 |
|
3905 |
cat >>confdefs.h <<\_ACEOF |
3906 |
#define HAVE_STRUCT_UTMPX 1 |
3907 |
_ACEOF |
3908 |
|
3909 |
fi |
3910 |
|
3911 |
|
3912 |
echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
3913 |
echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
3914 |
if test "${struct_utmpx_host+set}" = set; then |
3915 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3916 |
else |
3917 |
cat >conftest.$ac_ext <<_ACEOF |
3918 |
/* confdefs.h. */ |
3919 |
_ACEOF |
3920 |
cat confdefs.h >>conftest.$ac_ext |
3921 |
cat >>conftest.$ac_ext <<_ACEOF |
3922 |
/* end confdefs.h. */ |
3923 |
#include <sys/types.h> |
3924 |
#include <utmpx.h> |
3925 |
int |
3926 |
main () |
3927 |
{ |
3928 |
struct utmpx utx; utx.ut_host; |
3929 |
; |
3930 |
return 0; |
3931 |
} |
3932 |
_ACEOF |
3933 |
rm -f conftest.$ac_objext |
3934 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3935 |
(eval $ac_compile) 2>conftest.er1 |
3936 |
ac_status=$? |
3937 |
grep -v '^ *+' conftest.er1 >conftest.err |
3938 |
rm -f conftest.er1 |
3939 |
cat conftest.err >&5 |
3940 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3941 |
(exit $ac_status); } && |
3942 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3943 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3944 |
(eval $ac_try) 2>&5 |
3945 |
ac_status=$? |
3946 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3947 |
(exit $ac_status); }; } && |
3948 |
{ ac_try='test -s conftest.$ac_objext' |
3949 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3950 |
(eval $ac_try) 2>&5 |
3951 |
ac_status=$? |
3952 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3953 |
(exit $ac_status); }; }; then |
3954 |
struct_utmpx_host=yes |
3955 |
else |
3956 |
echo "$as_me: failed program was:" >&5 |
3957 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3958 |
|
3959 |
struct_utmpx_host=no |
3960 |
fi |
3961 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3962 |
fi |
3963 |
echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
3964 |
echo "${ECHO_T}$struct_utmpx_host" >&6 |
3965 |
if test x$struct_utmpx_host = xyes; then |
3966 |
|
3967 |
cat >>confdefs.h <<\_ACEOF |
3968 |
#define HAVE_UTMPX_HOST 1 |
3969 |
_ACEOF |
3970 |
|
3971 |
fi |
3972 |
|
3973 |
echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
3974 |
echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
3975 |
if test "${struct_utmpx_session+set}" = set; then |
3976 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3977 |
else |
3978 |
cat >conftest.$ac_ext <<_ACEOF |
3979 |
/* confdefs.h. */ |
3980 |
_ACEOF |
3981 |
cat confdefs.h >>conftest.$ac_ext |
3982 |
cat >>conftest.$ac_ext <<_ACEOF |
3983 |
/* end confdefs.h. */ |
3984 |
#include <sys/types.h> |
3985 |
#include <utmpx.h> |
3986 |
int |
3987 |
main () |
3988 |
{ |
3989 |
struct utmpx utx; utx.ut_session; |
3990 |
; |
3991 |
return 0; |
3992 |
} |
3993 |
_ACEOF |
3994 |
rm -f conftest.$ac_objext |
3995 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3996 |
(eval $ac_compile) 2>conftest.er1 |
3997 |
ac_status=$? |
3998 |
grep -v '^ *+' conftest.er1 >conftest.err |
3999 |
rm -f conftest.er1 |
4000 |
cat conftest.err >&5 |
4001 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4002 |
(exit $ac_status); } && |
4003 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4004 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4005 |
(eval $ac_try) 2>&5 |
4006 |
ac_status=$? |
4007 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4008 |
(exit $ac_status); }; } && |
4009 |
{ ac_try='test -s conftest.$ac_objext' |
4010 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4011 |
(eval $ac_try) 2>&5 |
4012 |
ac_status=$? |
4013 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4014 |
(exit $ac_status); }; }; then |
4015 |
struct_utmpx_session=yes |
4016 |
else |
4017 |
echo "$as_me: failed program was:" >&5 |
4018 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4019 |
|
4020 |
struct_utmpx_session=no |
4021 |
fi |
4022 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4023 |
fi |
4024 |
echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
4025 |
echo "${ECHO_T}$struct_utmpx_session" >&6 |
4026 |
if test x$struct_utmpx_session = xyes; then |
4027 |
|
4028 |
cat >>confdefs.h <<\_ACEOF |
4029 |
#define HAVE_UTMPX_SESSION 1 |
4030 |
_ACEOF |
4031 |
|
4032 |
fi |
4033 |
|
4034 |
fi |
4035 |
|
4036 |
|
4037 |
echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
4038 |
echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
4039 |
if test "${struct_lastlog+set}" = set; then |
4040 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4041 |
else |
4042 |
cat >conftest.$ac_ext <<_ACEOF |
4043 |
/* confdefs.h. */ |
4044 |
_ACEOF |
4045 |
cat confdefs.h >>conftest.$ac_ext |
4046 |
cat >>conftest.$ac_ext <<_ACEOF |
4047 |
/* end confdefs.h. */ |
4048 |
#include <sys/types.h> |
4049 |
#include <utmp.h> |
4050 |
#ifdef HAVE_LASTLOG_H |
4051 |
#include <lastlog.h> |
4052 |
#endif |
4053 |
|
4054 |
int |
4055 |
main () |
4056 |
{ |
4057 |
struct lastlog ll; |
4058 |
; |
4059 |
return 0; |
4060 |
} |
4061 |
_ACEOF |
4062 |
rm -f conftest.$ac_objext |
4063 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4064 |
(eval $ac_compile) 2>conftest.er1 |
4065 |
ac_status=$? |
4066 |
grep -v '^ *+' conftest.er1 >conftest.err |
4067 |
rm -f conftest.er1 |
4068 |
cat conftest.err >&5 |
4069 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4070 |
(exit $ac_status); } && |
4071 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4072 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4073 |
(eval $ac_try) 2>&5 |
4074 |
ac_status=$? |
4075 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4076 |
(exit $ac_status); }; } && |
4077 |
{ ac_try='test -s conftest.$ac_objext' |
4078 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4079 |
(eval $ac_try) 2>&5 |
4080 |
ac_status=$? |
4081 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4082 |
(exit $ac_status); }; }; then |
4083 |
struct_lastlog=yes |
4084 |
else |
4085 |
echo "$as_me: failed program was:" >&5 |
4086 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4087 |
|
4088 |
struct_lastlog=no |
4089 |
fi |
4090 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4091 |
fi |
4092 |
echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
4093 |
echo "${ECHO_T}$struct_lastlog" >&6 |
4094 |
if test x$struct_lastlog = xyes; then |
4095 |
|
4096 |
cat >>confdefs.h <<\_ACEOF |
4097 |
#define HAVE_STRUCT_LASTLOG 1 |
4098 |
_ACEOF |
4099 |
|
4100 |
fi |
4101 |
|
4102 |
echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
4103 |
echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
4104 |
if test "${struct_lastlogx+set}" = set; then |
4105 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4106 |
else |
4107 |
cat >conftest.$ac_ext <<_ACEOF |
4108 |
/* confdefs.h. */ |
4109 |
_ACEOF |
4110 |
cat confdefs.h >>conftest.$ac_ext |
4111 |
cat >>conftest.$ac_ext <<_ACEOF |
4112 |
/* end confdefs.h. */ |
4113 |
#include <sys/types.h> |
4114 |
#include <utmpx.h> |
4115 |
#ifdef HAVE_LASTLOG_H |
4116 |
#include <lastlog.h> |
4117 |
#endif |
4118 |
|
4119 |
int |
4120 |
main () |
4121 |
{ |
4122 |
struct lastlogx ll; |
4123 |
; |
4124 |
return 0; |
4125 |
} |
4126 |
_ACEOF |
4127 |
rm -f conftest.$ac_objext |
4128 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4129 |
(eval $ac_compile) 2>conftest.er1 |
4130 |
ac_status=$? |
4131 |
grep -v '^ *+' conftest.er1 >conftest.err |
4132 |
rm -f conftest.er1 |
4133 |
cat conftest.err >&5 |
4134 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4135 |
(exit $ac_status); } && |
4136 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4137 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4138 |
(eval $ac_try) 2>&5 |
4139 |
ac_status=$? |
4140 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4141 |
(exit $ac_status); }; } && |
4142 |
{ ac_try='test -s conftest.$ac_objext' |
4143 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4144 |
(eval $ac_try) 2>&5 |
4145 |
ac_status=$? |
4146 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4147 |
(exit $ac_status); }; }; then |
4148 |
struct_lastlogx=yes |
4149 |
else |
4150 |
echo "$as_me: failed program was:" >&5 |
4151 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4152 |
|
4153 |
struct_lastlogx=no |
4154 |
fi |
4155 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4156 |
fi |
4157 |
echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
4158 |
echo "${ECHO_T}$struct_lastlogx" >&6 |
4159 |
if test x$struct_lastlogx = xyes; then |
4160 |
|
4161 |
cat >>confdefs.h <<\_ACEOF |
4162 |
#define HAVE_STRUCT_LASTLOGX 1 |
4163 |
_ACEOF |
4164 |
|
4165 |
fi |
4166 |
|
4167 |
|
4168 |
echo "$as_me:$LINENO: checking where utmp is located" >&5 |
4169 |
echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
4170 |
if test "${path_utmp+set}" = set; then |
4171 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4172 |
else |
4173 |
if test "$cross_compiling" = yes; then |
4174 |
{ echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
4175 |
echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
4176 |
else |
4177 |
cat >conftest.$ac_ext <<_ACEOF |
4178 |
/* confdefs.h. */ |
4179 |
_ACEOF |
4180 |
cat confdefs.h >>conftest.$ac_ext |
4181 |
cat >>conftest.$ac_ext <<_ACEOF |
4182 |
/* end confdefs.h. */ |
4183 |
#include <stdio.h> |
4184 |
#include <sys/types.h> |
4185 |
#include <utmp.h> |
4186 |
#include <errno.h> |
4187 |
main() |
4188 |
{ |
4189 |
char **u, *utmplist[] = { |
4190 |
"/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
4191 |
FILE *a, *f=fopen("conftestval", "w"); |
4192 |
if (!f) exit(1); |
4193 |
#ifdef UTMP_FILE |
4194 |
fprintf(f, "%s\n", UTMP_FILE); |
4195 |
exit(0); |
4196 |
#endif |
4197 |
#ifdef _PATH_UTMP |
4198 |
fprintf(f, "%s\n", _PATH_UTMP); |
4199 |
exit(0); |
4200 |
#endif |
4201 |
for (u = utmplist; *u; u++) { |
4202 |
if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
4203 |
fprintf(f, "%s\n", *u); |
4204 |
exit(0); |
4205 |
} |
4206 |
} |
4207 |
exit(0); |
4208 |
} |
4209 |
_ACEOF |
4210 |
rm -f conftest$ac_exeext |
4211 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4212 |
(eval $ac_link) 2>&5 |
4213 |
ac_status=$? |
4214 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4215 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4216 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4217 |
(eval $ac_try) 2>&5 |
4218 |
ac_status=$? |
4219 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4220 |
(exit $ac_status); }; }; then |
4221 |
path_utmp=`cat conftestval` |
4222 |
else |
4223 |
echo "$as_me: program exited with status $ac_status" >&5 |
4224 |
echo "$as_me: failed program was:" >&5 |
4225 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4226 |
|
4227 |
( exit $ac_status ) |
4228 |
path_utmp= |
4229 |
fi |
4230 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4231 |
fi |
4232 |
fi |
4233 |
echo "$as_me:$LINENO: result: $path_utmp" >&5 |
4234 |
echo "${ECHO_T}$path_utmp" >&6 |
4235 |
if test x$path_utmp != x; then |
4236 |
|
4237 |
cat >>confdefs.h <<_ACEOF |
4238 |
#define UTMP_FILE "$path_utmp" |
4239 |
_ACEOF |
4240 |
|
4241 |
fi |
4242 |
|
4243 |
|
4244 |
echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
4245 |
echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
4246 |
if test "${path_utmpx+set}" = set; then |
4247 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4248 |
else |
4249 |
if test "$cross_compiling" = yes; then |
4250 |
{ echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
4251 |
echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
4252 |
else |
4253 |
cat >conftest.$ac_ext <<_ACEOF |
4254 |
/* confdefs.h. */ |
4255 |
_ACEOF |
4256 |
cat confdefs.h >>conftest.$ac_ext |
4257 |
cat >>conftest.$ac_ext <<_ACEOF |
4258 |
/* end confdefs.h. */ |
4259 |
#include <stdio.h> |
4260 |
#include <sys/types.h> |
4261 |
#include <utmpx.h> |
4262 |
#include <errno.h> |
4263 |
#include <sys/stat.h> |
4264 |
#ifdef HAVE_STRING_H |
4265 |
#include <string.h> |
4266 |
#endif |
4267 |
main() |
4268 |
{ |
4269 |
char **u, *p, *utmplist[] = { |
4270 |
#ifdef UTMPX_FILE |
4271 |
UTMPX_FILE, |
4272 |
#endif |
4273 |
#ifdef _PATH_UTMPX |
4274 |
_PATH_UTMPX, |
4275 |
#endif |
4276 |
"/var/adm/utmpx", "/etc/utmpx", NULL }; |
4277 |
FILE *a, *f=fopen("conftestval", "w"); |
4278 |
struct stat statu, statux; |
4279 |
if (!f) exit(1); |
4280 |
for (u = utmplist; *u; u++) { |
4281 |
if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
4282 |
if (stat(*u, &statux) < 0) |
4283 |
continue; |
4284 |
p = strdup(*u); |
4285 |
p[strlen(p) - 1] = '\0'; |
4286 |
if (stat(p, &statu) >= 0 |
4287 |
&& (statu.st_mtime - statux.st_mtime > 86400)) |
4288 |
continue; |
4289 |
fprintf(f, "%s\n", *u); |
4290 |
exit(0); |
4291 |
} |
4292 |
} |
4293 |
exit(0); |
4294 |
} |
4295 |
_ACEOF |
4296 |
rm -f conftest$ac_exeext |
4297 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4298 |
(eval $ac_link) 2>&5 |
4299 |
ac_status=$? |
4300 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4301 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4302 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4303 |
(eval $ac_try) 2>&5 |
4304 |
ac_status=$? |
4305 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4306 |
(exit $ac_status); }; }; then |
4307 |
path_utmpx=`cat conftestval` |
4308 |
else |
4309 |
echo "$as_me: program exited with status $ac_status" >&5 |
4310 |
echo "$as_me: failed program was:" >&5 |
4311 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4312 |
|
4313 |
( exit $ac_status ) |
4314 |
path_utmpx= |
4315 |
fi |
4316 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4317 |
fi |
4318 |
fi |
4319 |
echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
4320 |
echo "${ECHO_T}$path_utmpx" >&6 |
4321 |
if test x$path_utmpx != x; then |
4322 |
|
4323 |
cat >>confdefs.h <<_ACEOF |
4324 |
#define UTMPX_FILE "$path_utmpx" |
4325 |
_ACEOF |
4326 |
|
4327 |
fi |
4328 |
|
4329 |
|
4330 |
echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
4331 |
echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
4332 |
if test "${path_wtmp+set}" = set; then |
4333 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4334 |
else |
4335 |
if test "$cross_compiling" = yes; then |
4336 |
{ echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
4337 |
echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
4338 |
else |
4339 |
cat >conftest.$ac_ext <<_ACEOF |
4340 |
/* confdefs.h. */ |
4341 |
_ACEOF |
4342 |
cat confdefs.h >>conftest.$ac_ext |
4343 |
cat >>conftest.$ac_ext <<_ACEOF |
4344 |
/* end confdefs.h. */ |
4345 |
#include <stdio.h> |
4346 |
#include <sys/types.h> |
4347 |
#ifdef HAVE_UTMP_H |
4348 |
#include <utmp.h> |
4349 |
#endif |
4350 |
#include <errno.h> |
4351 |
main() |
4352 |
{ |
4353 |
char **w, *wtmplist[] = { |
4354 |
"/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
4355 |
FILE *a, *f=fopen("conftestval", "w"); |
4356 |
if (!f) exit(1); |
4357 |
#ifdef WTMP_FILE |
4358 |
fprintf(f, "%s\n", WTMP_FILE); |
4359 |
exit(0); |
4360 |
#endif |
4361 |
#ifdef _PATH_WTMP |
4362 |
fprintf(f, "%s\n", _PATH_WTMP); |
4363 |
exit(0); |
4364 |
#endif |
4365 |
for (w = wtmplist; *w; w++) { |
4366 |
if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
4367 |
fprintf(f, "%s\n", *w); |
4368 |
exit(0); |
4369 |
} |
4370 |
} |
4371 |
exit(0); |
4372 |
} |
4373 |
_ACEOF |
4374 |
rm -f conftest$ac_exeext |
4375 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4376 |
(eval $ac_link) 2>&5 |
4377 |
ac_status=$? |
4378 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4379 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4380 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4381 |
(eval $ac_try) 2>&5 |
4382 |
ac_status=$? |
4383 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4384 |
(exit $ac_status); }; }; then |
4385 |
path_wtmp=`cat conftestval` |
4386 |
else |
4387 |
echo "$as_me: program exited with status $ac_status" >&5 |
4388 |
echo "$as_me: failed program was:" >&5 |
4389 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4390 |
|
4391 |
( exit $ac_status ) |
4392 |
path_wtmp= |
4393 |
fi |
4394 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4395 |
fi |
4396 |
fi |
4397 |
echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
4398 |
echo "${ECHO_T}$path_wtmp" >&6 |
4399 |
if test x$path_wtmp != x; then |
4400 |
|
4401 |
cat >>confdefs.h <<_ACEOF |
4402 |
#define WTMP_FILE "$path_wtmp" |
4403 |
_ACEOF |
4404 |
|
4405 |
fi |
4406 |
|
4407 |
echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
4408 |
echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
4409 |
if test "${path_wtmpx+set}" = set; then |
4410 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4411 |
else |
4412 |
if test "$cross_compiling" = yes; then |
4413 |
{ echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
4414 |
echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
4415 |
else |
4416 |
cat >conftest.$ac_ext <<_ACEOF |
4417 |
/* confdefs.h. */ |
4418 |
_ACEOF |
4419 |
cat confdefs.h >>conftest.$ac_ext |
4420 |
cat >>conftest.$ac_ext <<_ACEOF |
4421 |
/* end confdefs.h. */ |
4422 |
#include <stdio.h> |
4423 |
#ifdef HAVE_UTMPX_H |
4424 |
#include <utmpx.h> |
4425 |
#endif |
4426 |
#include <errno.h> |
4427 |
main() |
4428 |
{ |
4429 |
char **w, *wtmplist[] = { |
4430 |
"/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
4431 |
FILE *a, *f=fopen("conftestval", "w"); |
4432 |
if (!f) exit(1); |
4433 |
#ifdef WTMPX_FILE |
4434 |
fprintf(f, "%s\n", WTMPX_FILE); |
4435 |
exit(0); |
4436 |
#endif |
4437 |
#ifdef _PATH_WTMPX |
4438 |
fprintf(f, "%s\n", _PATH_WTMPX); |
4439 |
exit(0); |
4440 |
#endif |
4441 |
for (w = wtmplist; *w; w++) { |
4442 |
if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
4443 |
fprintf(f, "%s\n", *w); |
4444 |
exit(0); |
4445 |
} |
4446 |
} |
4447 |
exit(0); |
4448 |
} |
4449 |
_ACEOF |
4450 |
rm -f conftest$ac_exeext |
4451 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4452 |
(eval $ac_link) 2>&5 |
4453 |
ac_status=$? |
4454 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4455 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4456 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4457 |
(eval $ac_try) 2>&5 |
4458 |
ac_status=$? |
4459 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4460 |
(exit $ac_status); }; }; then |
4461 |
path_wtmpx=`cat conftestval` |
4462 |
else |
4463 |
echo "$as_me: program exited with status $ac_status" >&5 |
4464 |
echo "$as_me: failed program was:" >&5 |
4465 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4466 |
|
4467 |
( exit $ac_status ) |
4468 |
path_wtmpx= |
4469 |
fi |
4470 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4471 |
fi |
4472 |
fi |
4473 |
echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
4474 |
echo "${ECHO_T}$path_wtmpx" >&6 |
4475 |
if test x$path_wtmpx != x; then |
4476 |
|
4477 |
cat >>confdefs.h <<_ACEOF |
4478 |
#define WTMPX_FILE "$path_wtmpx" |
4479 |
_ACEOF |
4480 |
|
4481 |
fi |
4482 |
|
4483 |
echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
4484 |
echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
4485 |
if test "${path_lastlog+set}" = set; then |
4486 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4487 |
else |
4488 |
if test "$cross_compiling" = yes; then |
4489 |
{ echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
4490 |
echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
4491 |
else |
4492 |
cat >conftest.$ac_ext <<_ACEOF |
4493 |
/* confdefs.h. */ |
4494 |
_ACEOF |
4495 |
cat confdefs.h >>conftest.$ac_ext |
4496 |
cat >>conftest.$ac_ext <<_ACEOF |
4497 |
/* end confdefs.h. */ |
4498 |
#include <stdio.h> |
4499 |
#include <sys/types.h> |
4500 |
#ifdef HAVE_UTMPX_H |
4501 |
#include <utmpx.h> |
4502 |
#elif defined(HAVE_UTMP_H) |
4503 |
#include <utmp.h> |
4504 |
#endif |
4505 |
#ifdef HAVE_LASTLOG_H |
4506 |
#include <lastlog.h> |
4507 |
#endif |
4508 |
#include <errno.h> |
4509 |
main() |
4510 |
{ |
4511 |
char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
4512 |
FILE *a, *f=fopen("conftestval", "w"); |
4513 |
if (!f) exit(1); |
4514 |
#ifdef LASTLOG_FILE |
4515 |
fprintf(f, "%s\n", LASTLOG_FILE); |
4516 |
exit(0); |
4517 |
#endif |
4518 |
#ifdef _PATH_LASTLOG |
4519 |
fprintf(f, "%s\n", _PATH_LASTLOG); |
4520 |
exit(0); |
4521 |
#endif |
4522 |
for (w = lastloglist; *w; w++) { |
4523 |
if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
4524 |
fprintf(f, "%s\n", *w); |
4525 |
exit(0); |
4526 |
} |
4527 |
} |
4528 |
exit(0); |
4529 |
} |
4530 |
_ACEOF |
4531 |
rm -f conftest$ac_exeext |
4532 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4533 |
(eval $ac_link) 2>&5 |
4534 |
ac_status=$? |
4535 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4536 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4537 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4538 |
(eval $ac_try) 2>&5 |
4539 |
ac_status=$? |
4540 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4541 |
(exit $ac_status); }; }; then |
4542 |
path_lastlog=`cat conftestval` |
4543 |
else |
4544 |
echo "$as_me: program exited with status $ac_status" >&5 |
4545 |
echo "$as_me: failed program was:" >&5 |
4546 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4547 |
|
4548 |
( exit $ac_status ) |
4549 |
path_lastlog= |
4550 |
fi |
4551 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4552 |
fi |
4553 |
fi |
4554 |
echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
4555 |
echo "${ECHO_T}$path_lastlog" >&6 |
4556 |
if test x$path_lastlog != x; then |
4557 |
|
4558 |
cat >>confdefs.h <<_ACEOF |
4559 |
#define LASTLOG_FILE "$path_lastlog" |
4560 |
_ACEOF |
4561 |
|
4562 |
if test -d "$path_lastlog"; then |
4563 |
|
4564 |
cat >>confdefs.h <<\_ACEOF |
4565 |
#define LASTLOG_IS_DIR 1 |
4566 |
_ACEOF |
4567 |
|
4568 |
fi |
4569 |
fi |
4570 |
|
4571 |
echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
4572 |
echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
4573 |
if test "${path_lastlogx+set}" = set; then |
4574 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4575 |
else |
4576 |
if test "$cross_compiling" = yes; then |
4577 |
{ echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
4578 |
echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
4579 |
else |
4580 |
cat >conftest.$ac_ext <<_ACEOF |
4581 |
/* confdefs.h. */ |
4582 |
_ACEOF |
4583 |
cat confdefs.h >>conftest.$ac_ext |
4584 |
cat >>conftest.$ac_ext <<_ACEOF |
4585 |
/* end confdefs.h. */ |
4586 |
#include <stdio.h> |
4587 |
#ifdef HAVE_UTMPX_H |
4588 |
#include <utmpx.h> |
4589 |
#endif |
4590 |
#include <errno.h> |
4591 |
main() |
4592 |
{ |
4593 |
char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
4594 |
FILE *a, *f=fopen("conftestval", "w"); |
4595 |
if (!f) exit(1); |
4596 |
#ifdef LASTLOGX_FILE |
4597 |
fprintf(f, "%s\n", LASTLOGX_FILE); |
4598 |
exit(0); |
4599 |
#endif |
4600 |
#ifdef _PATH_LASTLOGX |
4601 |
fprintf(f, "%s\n", _PATH_LASTLOGX); |
4602 |
exit(0); |
4603 |
#endif |
4604 |
for (w = wtmplist; *w; w++) { |
4605 |
if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
4606 |
fprintf(f, "%s\n", *w); |
4607 |
exit(0); |
4608 |
} |
4609 |
} |
4610 |
exit(0); |
4611 |
} |
4612 |
_ACEOF |
4613 |
rm -f conftest$ac_exeext |
4614 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4615 |
(eval $ac_link) 2>&5 |
4616 |
ac_status=$? |
4617 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4618 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4619 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4620 |
(eval $ac_try) 2>&5 |
4621 |
ac_status=$? |
4622 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4623 |
(exit $ac_status); }; }; then |
4624 |
path_lastlogx=`cat conftestval` |
4625 |
else |
4626 |
echo "$as_me: program exited with status $ac_status" >&5 |
4627 |
echo "$as_me: failed program was:" >&5 |
4628 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4629 |
|
4630 |
( exit $ac_status ) |
4631 |
path_lastlogx= |
4632 |
fi |
4633 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4634 |
fi |
4635 |
fi |
4636 |
echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
4637 |
echo "${ECHO_T}$path_lastlogx" >&6 |
4638 |
if test x$path_lastlogx != x; then |
4639 |
|
4640 |
cat >>confdefs.h <<_ACEOF |
4641 |
#define LASTLOGX_FILE "$path_lastlogx" |
4642 |
_ACEOF |
4643 |
|
4644 |
fi |
4645 |
|
4646 |
|
4647 |
|
4648 |
echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
4649 |
echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
4650 |
if test "${can_pass_fds+set}" = set; then |
4651 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4652 |
else |
4653 |
cat >conftest.$ac_ext <<_ACEOF |
4654 |
/* confdefs.h. */ |
4655 |
_ACEOF |
4656 |
cat confdefs.h >>conftest.$ac_ext |
4657 |
cat >>conftest.$ac_ext <<_ACEOF |
4658 |
/* end confdefs.h. */ |
4659 |
|
4660 |
#include <cstddef> // broken bsds (is that redundant) need this |
4661 |
#include <sys/types.h> |
4662 |
#include <sys/socket.h> |
4663 |
#include <sys/uio.h> |
4664 |
|
4665 |
int |
4666 |
main () |
4667 |
{ |
4668 |
|
4669 |
{ |
4670 |
msghdr msg; |
4671 |
iovec iov; |
4672 |
char buf [100]; |
4673 |
char data = 0; |
4674 |
|
4675 |
iov.iov_base = &data; |
4676 |
iov.iov_len = 1; |
4677 |
|
4678 |
msg.msg_iov = &iov; |
4679 |
msg.msg_iovlen = 1; |
4680 |
msg.msg_control = buf; |
4681 |
msg.msg_controllen = sizeof buf; |
4682 |
|
4683 |
cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
4684 |
cmsg->cmsg_level = SOL_SOCKET; |
4685 |
cmsg->cmsg_type = SCM_RIGHTS; |
4686 |
cmsg->cmsg_len = 100; |
4687 |
|
4688 |
*(int *)CMSG_DATA (cmsg) = 5; |
4689 |
|
4690 |
return sendmsg (3, &msg, 0); |
4691 |
} |
4692 |
|
4693 |
; |
4694 |
return 0; |
4695 |
} |
4696 |
_ACEOF |
4697 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4698 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4699 |
(eval $ac_link) 2>conftest.er1 |
4700 |
ac_status=$? |
4701 |
grep -v '^ *+' conftest.er1 >conftest.err |
4702 |
rm -f conftest.er1 |
4703 |
cat conftest.err >&5 |
4704 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4705 |
(exit $ac_status); } && |
4706 |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4707 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4708 |
(eval $ac_try) 2>&5 |
4709 |
ac_status=$? |
4710 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4711 |
(exit $ac_status); }; } && |
4712 |
{ ac_try='test -s conftest$ac_exeext' |
4713 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4714 |
(eval $ac_try) 2>&5 |
4715 |
ac_status=$? |
4716 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4717 |
(exit $ac_status); }; }; then |
4718 |
can_pass_fds=yes |
4719 |
else |
4720 |
echo "$as_me: failed program was:" >&5 |
4721 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4722 |
|
4723 |
can_pass_fds=no |
4724 |
fi |
4725 |
rm -f conftest.err conftest.$ac_objext \ |
4726 |
conftest$ac_exeext conftest.$ac_ext |
4727 |
fi |
4728 |
echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
4729 |
echo "${ECHO_T}$can_pass_fds" >&6 |
4730 |
if test x$can_pass_fds = xyes; then |
4731 |
|
4732 |
cat >>confdefs.h <<\_ACEOF |
4733 |
#define HAVE_UNIX_FDPASS 1 |
4734 |
_ACEOF |
4735 |
|
4736 |
else |
4737 |
{ { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
4738 |
echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
4739 |
{ (exit 1); exit 1; }; } |
4740 |
fi |
4741 |
|
4742 |
|
4743 |
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
4744 |
|
4745 |
cat >confcache <<\_ACEOF |
4746 |
# This file is a shell script that caches the results of configure |
4747 |
# tests run on this system so they can be shared between configure |
4748 |
# scripts and configure runs, see configure's option --config-cache. |
4749 |
# It is not useful on other systems. If it contains results you don't |
4750 |
# want to keep, you may remove or edit it. |
4751 |
# |
4752 |
# config.status only pays attention to the cache file if you give it |
4753 |
# the --recheck option to rerun configure. |
4754 |
# |
4755 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
4756 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
4757 |
# following values. |
4758 |
|
4759 |
_ACEOF |
4760 |
|
4761 |
# The following way of writing the cache mishandles newlines in values, |
4762 |
# but we know of no workaround that is simple, portable, and efficient. |
4763 |
# So, don't put newlines in cache variables' values. |
4764 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
4765 |
# and sets the high bit in the cache file unless we assign to the vars. |
4766 |
{ |
4767 |
(set) 2>&1 | |
4768 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
4769 |
*ac_space=\ *) |
4770 |
# `set' does not quote correctly, so add quotes (double-quote |
4771 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
4772 |
sed -n \ |
4773 |
"s/'/'\\\\''/g; |
4774 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
4775 |
;; |
4776 |
*) |
4777 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
4778 |
sed -n \ |
4779 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
4780 |
;; |
4781 |
esac; |
4782 |
} | |
4783 |
sed ' |
4784 |
t clear |
4785 |
: clear |
4786 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4787 |
t end |
4788 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4789 |
: end' >>confcache |
4790 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
4791 |
if test -w $cache_file; then |
4792 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4793 |
cat confcache >$cache_file |
4794 |
else |
4795 |
echo "not updating unwritable cache $cache_file" |
4796 |
fi |
4797 |
fi |
4798 |
rm -f confcache |
4799 |
|
4800 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
4801 |
# Let make expand exec_prefix. |
4802 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
4803 |
|
4804 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
4805 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
4806 |
# trailing colons and then remove the whole line if VPATH becomes empty |
4807 |
# (actually we leave an empty line to preserve line numbers). |
4808 |
if test "x$srcdir" = x.; then |
4809 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
4810 |
s/:*\$(srcdir):*/:/; |
4811 |
s/:*\${srcdir}:*/:/; |
4812 |
s/:*@srcdir@:*/:/; |
4813 |
s/^\([^=]*=[ ]*\):*/\1/; |
4814 |
s/:*$//; |
4815 |
s/^[^=]*=[ ]*$//; |
4816 |
}' |
4817 |
fi |
4818 |
|
4819 |
DEFS=-DHAVE_CONFIG_H |
4820 |
|
4821 |
ac_libobjs= |
4822 |
ac_ltlibobjs= |
4823 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
4824 |
# 1. Remove the extension, and $U if already installed. |
4825 |
ac_i=`echo "$ac_i" | |
4826 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
4827 |
# 2. Add them. |
4828 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
4829 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
4830 |
done |
4831 |
LIBOBJS=$ac_libobjs |
4832 |
|
4833 |
LTLIBOBJS=$ac_ltlibobjs |
4834 |
|
4835 |
|
4836 |
|
4837 |
: ${CONFIG_STATUS=./config.status} |
4838 |
ac_clean_files_save=$ac_clean_files |
4839 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
4840 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
4841 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
4842 |
cat >$CONFIG_STATUS <<_ACEOF |
4843 |
#! $SHELL |
4844 |
# Generated by $as_me. |
4845 |
# Run this file to recreate the current configuration. |
4846 |
# Compiler output produced by configure, useful for debugging |
4847 |
# configure, is in config.log if it exists. |
4848 |
|
4849 |
debug=false |
4850 |
ac_cs_recheck=false |
4851 |
ac_cs_silent=false |
4852 |
SHELL=\${CONFIG_SHELL-$SHELL} |
4853 |
_ACEOF |
4854 |
|
4855 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4856 |
## --------------------- ## |
4857 |
## M4sh Initialization. ## |
4858 |
## --------------------- ## |
4859 |
|
4860 |
# Be Bourne compatible |
4861 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
4862 |
emulate sh |
4863 |
NULLCMD=: |
4864 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
4865 |
# is contrary to our usage. Disable this feature. |
4866 |
alias -g '${1+"$@"}'='"$@"' |
4867 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
4868 |
set -o posix |
4869 |
fi |
4870 |
DUALCASE=1; export DUALCASE # for MKS sh |
4871 |
|
4872 |
# Support unset when possible. |
4873 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4874 |
as_unset=unset |
4875 |
else |
4876 |
as_unset=false |
4877 |
fi |
4878 |
|
4879 |
|
4880 |
# Work around bugs in pre-3.0 UWIN ksh. |
4881 |
$as_unset ENV MAIL MAILPATH |
4882 |
PS1='$ ' |
4883 |
PS2='> ' |
4884 |
PS4='+ ' |
4885 |
|
4886 |
# NLS nuisances. |
4887 |
for as_var in \ |
4888 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
4889 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
4890 |
LC_TELEPHONE LC_TIME |
4891 |
do |
4892 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
4893 |
eval $as_var=C; export $as_var |
4894 |
else |
4895 |
$as_unset $as_var |
4896 |
fi |
4897 |
done |
4898 |
|
4899 |
# Required to use basename. |
4900 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
4901 |
as_expr=expr |
4902 |
else |
4903 |
as_expr=false |
4904 |
fi |
4905 |
|
4906 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
4907 |
as_basename=basename |
4908 |
else |
4909 |
as_basename=false |
4910 |
fi |
4911 |
|
4912 |
|
4913 |
# Name of the executable. |
4914 |
as_me=`$as_basename "$0" || |
4915 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4916 |
X"$0" : 'X\(//\)$' \| \ |
4917 |
X"$0" : 'X\(/\)$' \| \ |
4918 |
. : '\(.\)' 2>/dev/null || |
4919 |
echo X/"$0" | |
4920 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
4921 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
4922 |
/^X\/\(\/\).*/{ s//\1/; q; } |
4923 |
s/.*/./; q'` |
4924 |
|
4925 |
|
4926 |
# PATH needs CR, and LINENO needs CR and PATH. |
4927 |
# Avoid depending upon Character Ranges. |
4928 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
4929 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
4930 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
4931 |
as_cr_digits='0123456789' |
4932 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
4933 |
|
4934 |
# The user is always right. |
4935 |
if test "${PATH_SEPARATOR+set}" != set; then |
4936 |
echo "#! /bin/sh" >conf$$.sh |
4937 |
echo "exit 0" >>conf$$.sh |
4938 |
chmod +x conf$$.sh |
4939 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
4940 |
PATH_SEPARATOR=';' |
4941 |
else |
4942 |
PATH_SEPARATOR=: |
4943 |
fi |
4944 |
rm -f conf$$.sh |
4945 |
fi |
4946 |
|
4947 |
|
4948 |
as_lineno_1=$LINENO |
4949 |
as_lineno_2=$LINENO |
4950 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4951 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
4952 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
4953 |
# Find who we are. Look in the path if we contain no path at all |
4954 |
# relative or not. |
4955 |
case $0 in |
4956 |
*[\\/]* ) as_myself=$0 ;; |
4957 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4958 |
for as_dir in $PATH |
4959 |
do |
4960 |
IFS=$as_save_IFS |
4961 |
test -z "$as_dir" && as_dir=. |
4962 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
4963 |
done |
4964 |
|
4965 |
;; |
4966 |
esac |
4967 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
4968 |
# in which case we are not to be found in the path. |
4969 |
if test "x$as_myself" = x; then |
4970 |
as_myself=$0 |
4971 |
fi |
4972 |
if test ! -f "$as_myself"; then |
4973 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
4974 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
4975 |
{ (exit 1); exit 1; }; } |
4976 |
fi |
4977 |
case $CONFIG_SHELL in |
4978 |
'') |
4979 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4980 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
4981 |
do |
4982 |
IFS=$as_save_IFS |
4983 |
test -z "$as_dir" && as_dir=. |
4984 |
for as_base in sh bash ksh sh5; do |
4985 |
case $as_dir in |
4986 |
/*) |
4987 |
if ("$as_dir/$as_base" -c ' |
4988 |
as_lineno_1=$LINENO |
4989 |
as_lineno_2=$LINENO |
4990 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4991 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
4992 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
4993 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
4994 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
4995 |
CONFIG_SHELL=$as_dir/$as_base |
4996 |
export CONFIG_SHELL |
4997 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
4998 |
fi;; |
4999 |
esac |
5000 |
done |
5001 |
done |
5002 |
;; |
5003 |
esac |
5004 |
|
5005 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
5006 |
# uniformly replaced by the line number. The first 'sed' inserts a |
5007 |
# line-number line before each line; the second 'sed' does the real |
5008 |
# work. The second script uses 'N' to pair each line-number line |
5009 |
# with the numbered line, and appends trailing '-' during |
5010 |
# substitution so that $LINENO is not a special case at line end. |
5011 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
5012 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
5013 |
sed '=' <$as_myself | |
5014 |
sed ' |
5015 |
N |
5016 |
s,$,-, |
5017 |
: loop |
5018 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
5019 |
t loop |
5020 |
s,-$,, |
5021 |
s,^['$as_cr_digits']*\n,, |
5022 |
' >$as_me.lineno && |
5023 |
chmod +x $as_me.lineno || |
5024 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
5025 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
5026 |
{ (exit 1); exit 1; }; } |
5027 |
|
5028 |
# Don't try to exec as it changes $[0], causing all sort of problems |
5029 |
# (the dirname of $[0] is not the place where we might find the |
5030 |
# original and so on. Autoconf is especially sensible to this). |
5031 |
. ./$as_me.lineno |
5032 |
# Exit status is that of the last command. |
5033 |
exit |
5034 |
} |
5035 |
|
5036 |
|
5037 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
5038 |
*c*,-n*) ECHO_N= ECHO_C=' |
5039 |
' ECHO_T=' ' ;; |
5040 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
5041 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
5042 |
esac |
5043 |
|
5044 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
5045 |
as_expr=expr |
5046 |
else |
5047 |
as_expr=false |
5048 |
fi |
5049 |
|
5050 |
rm -f conf$$ conf$$.exe conf$$.file |
5051 |
echo >conf$$.file |
5052 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
5053 |
# We could just check for DJGPP; but this test a) works b) is more generic |
5054 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
5055 |
if test -f conf$$.exe; then |
5056 |
# Don't use ln at all; we don't have any links |
5057 |
as_ln_s='cp -p' |
5058 |
else |
5059 |
as_ln_s='ln -s' |
5060 |
fi |
5061 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
5062 |
as_ln_s=ln |
5063 |
else |
5064 |
as_ln_s='cp -p' |
5065 |
fi |
5066 |
rm -f conf$$ conf$$.exe conf$$.file |
5067 |
|
5068 |
if mkdir -p . 2>/dev/null; then |
5069 |
as_mkdir_p=: |
5070 |
else |
5071 |
test -d ./-p && rmdir ./-p |
5072 |
as_mkdir_p=false |
5073 |
fi |
5074 |
|
5075 |
as_executable_p="test -f" |
5076 |
|
5077 |
# Sed expression to map a string onto a valid CPP name. |
5078 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
5079 |
|
5080 |
# Sed expression to map a string onto a valid variable name. |
5081 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
5082 |
|
5083 |
|
5084 |
# IFS |
5085 |
# We need space, tab and new line, in precisely that order. |
5086 |
as_nl=' |
5087 |
' |
5088 |
IFS=" $as_nl" |
5089 |
|
5090 |
# CDPATH. |
5091 |
$as_unset CDPATH |
5092 |
|
5093 |
exec 6>&1 |
5094 |
|
5095 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
5096 |
# report actual input values of CONFIG_FILES etc. instead of their |
5097 |
# values after options handling. Logging --version etc. is OK. |
5098 |
exec 5>>config.log |
5099 |
{ |
5100 |
echo |
5101 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
5102 |
## Running $as_me. ## |
5103 |
_ASBOX |
5104 |
} >&5 |
5105 |
cat >&5 <<_CSEOF |
5106 |
|
5107 |
This file was extended by $as_me, which was |
5108 |
generated by GNU Autoconf 2.59. Invocation command line was |
5109 |
|
5110 |
CONFIG_FILES = $CONFIG_FILES |
5111 |
CONFIG_HEADERS = $CONFIG_HEADERS |
5112 |
CONFIG_LINKS = $CONFIG_LINKS |
5113 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
5114 |
$ $0 $@ |
5115 |
|
5116 |
_CSEOF |
5117 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
5118 |
echo >&5 |
5119 |
_ACEOF |
5120 |
|
5121 |
# Files that config.status was made for. |
5122 |
if test -n "$ac_config_files"; then |
5123 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
5124 |
fi |
5125 |
|
5126 |
if test -n "$ac_config_headers"; then |
5127 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
5128 |
fi |
5129 |
|
5130 |
if test -n "$ac_config_links"; then |
5131 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
5132 |
fi |
5133 |
|
5134 |
if test -n "$ac_config_commands"; then |
5135 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
5136 |
fi |
5137 |
|
5138 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5139 |
|
5140 |
ac_cs_usage="\ |
5141 |
\`$as_me' instantiates files from templates according to the |
5142 |
current configuration. |
5143 |
|
5144 |
Usage: $0 [OPTIONS] [FILE]... |
5145 |
|
5146 |
-h, --help print this help, then exit |
5147 |
-V, --version print version number, then exit |
5148 |
-q, --quiet do not print progress messages |
5149 |
-d, --debug don't remove temporary files |
5150 |
--recheck update $as_me by reconfiguring in the same conditions |
5151 |
--file=FILE[:TEMPLATE] |
5152 |
instantiate the configuration file FILE |
5153 |
--header=FILE[:TEMPLATE] |
5154 |
instantiate the configuration header FILE |
5155 |
|
5156 |
Configuration files: |
5157 |
$config_files |
5158 |
|
5159 |
Configuration headers: |
5160 |
$config_headers |
5161 |
|
5162 |
Report bugs to <bug-autoconf@gnu.org>." |
5163 |
_ACEOF |
5164 |
|
5165 |
cat >>$CONFIG_STATUS <<_ACEOF |
5166 |
ac_cs_version="\\ |
5167 |
config.status |
5168 |
configured by $0, generated by GNU Autoconf 2.59, |
5169 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
5170 |
|
5171 |
Copyright (C) 2003 Free Software Foundation, Inc. |
5172 |
This config.status script is free software; the Free Software Foundation |
5173 |
gives unlimited permission to copy, distribute and modify it." |
5174 |
srcdir=$srcdir |
5175 |
INSTALL="$INSTALL" |
5176 |
_ACEOF |
5177 |
|
5178 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5179 |
# If no file are specified by the user, then we need to provide default |
5180 |
# value. By we need to know if files were specified by the user. |
5181 |
ac_need_defaults=: |
5182 |
while test $# != 0 |
5183 |
do |
5184 |
case $1 in |
5185 |
--*=*) |
5186 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
5187 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
5188 |
ac_shift=: |
5189 |
;; |
5190 |
-*) |
5191 |
ac_option=$1 |
5192 |
ac_optarg=$2 |
5193 |
ac_shift=shift |
5194 |
;; |
5195 |
*) # This is not an option, so the user has probably given explicit |
5196 |
# arguments. |
5197 |
ac_option=$1 |
5198 |
ac_need_defaults=false;; |
5199 |
esac |
5200 |
|
5201 |
case $ac_option in |
5202 |
# Handling of the options. |
5203 |
_ACEOF |
5204 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5205 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
5206 |
ac_cs_recheck=: ;; |
5207 |
--version | --vers* | -V ) |
5208 |
echo "$ac_cs_version"; exit 0 ;; |
5209 |
--he | --h) |
5210 |
# Conflict between --help and --header |
5211 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
5212 |
Try \`$0 --help' for more information." >&5 |
5213 |
echo "$as_me: error: ambiguous option: $1 |
5214 |
Try \`$0 --help' for more information." >&2;} |
5215 |
{ (exit 1); exit 1; }; };; |
5216 |
--help | --hel | -h ) |
5217 |
echo "$ac_cs_usage"; exit 0 ;; |
5218 |
--debug | --d* | -d ) |
5219 |
debug=: ;; |
5220 |
--file | --fil | --fi | --f ) |
5221 |
$ac_shift |
5222 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
5223 |
ac_need_defaults=false;; |
5224 |
--header | --heade | --head | --hea ) |
5225 |
$ac_shift |
5226 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
5227 |
ac_need_defaults=false;; |
5228 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
5229 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
5230 |
ac_cs_silent=: ;; |
5231 |
|
5232 |
# This is an error. |
5233 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
5234 |
Try \`$0 --help' for more information." >&5 |
5235 |
echo "$as_me: error: unrecognized option: $1 |
5236 |
Try \`$0 --help' for more information." >&2;} |
5237 |
{ (exit 1); exit 1; }; } ;; |
5238 |
|
5239 |
*) ac_config_targets="$ac_config_targets $1" ;; |
5240 |
|
5241 |
esac |
5242 |
shift |
5243 |
done |
5244 |
|
5245 |
ac_configure_extra_args= |
5246 |
|
5247 |
if $ac_cs_silent; then |
5248 |
exec 6>/dev/null |
5249 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
5250 |
fi |
5251 |
|
5252 |
_ACEOF |
5253 |
cat >>$CONFIG_STATUS <<_ACEOF |
5254 |
if \$ac_cs_recheck; then |
5255 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
5256 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5257 |
fi |
5258 |
|
5259 |
_ACEOF |
5260 |
|
5261 |
|
5262 |
|
5263 |
|
5264 |
|
5265 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5266 |
for ac_config_target in $ac_config_targets |
5267 |
do |
5268 |
case "$ac_config_target" in |
5269 |
# Handling of arguments. |
5270 |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
5271 |
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
5272 |
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
5273 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
5274 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
5275 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
5276 |
{ (exit 1); exit 1; }; };; |
5277 |
esac |
5278 |
done |
5279 |
|
5280 |
# If the user did not use the arguments to specify the items to instantiate, |
5281 |
# then the envvar interface is used. Set only those that are not. |
5282 |
# We use the long form for the default assignment because of an extremely |
5283 |
# bizarre bug on SunOS 4.1.3. |
5284 |
if $ac_need_defaults; then |
5285 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
5286 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
5287 |
fi |
5288 |
|
5289 |
# Have a temporary directory for convenience. Make it in the build tree |
5290 |
# simply because there is no reason to put it here, and in addition, |
5291 |
# creating and moving files from /tmp can sometimes cause problems. |
5292 |
# Create a temporary directory, and hook for its removal unless debugging. |
5293 |
$debug || |
5294 |
{ |
5295 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
5296 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
5297 |
} |
5298 |
|
5299 |
# Create a (secure) tmp directory for tmp files. |
5300 |
|
5301 |
{ |
5302 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
5303 |
test -n "$tmp" && test -d "$tmp" |
5304 |
} || |
5305 |
{ |
5306 |
tmp=./confstat$$-$RANDOM |
5307 |
(umask 077 && mkdir $tmp) |
5308 |
} || |
5309 |
{ |
5310 |
echo "$me: cannot create a temporary directory in ." >&2 |
5311 |
{ (exit 1); exit 1; } |
5312 |
} |
5313 |
|
5314 |
_ACEOF |
5315 |
|
5316 |
cat >>$CONFIG_STATUS <<_ACEOF |
5317 |
|
5318 |
# |
5319 |
# CONFIG_FILES section. |
5320 |
# |
5321 |
|
5322 |
# No need to generate the scripts if there are no CONFIG_FILES. |
5323 |
# This happens for instance when ./config.status config.h |
5324 |
if test -n "\$CONFIG_FILES"; then |
5325 |
# Protect against being on the right side of a sed subst in config.status. |
5326 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
5327 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
5328 |
s,@SHELL@,$SHELL,;t t |
5329 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
5330 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
5331 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
5332 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
5333 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
5334 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
5335 |
s,@exec_prefix@,$exec_prefix,;t t |
5336 |
s,@prefix@,$prefix,;t t |
5337 |
s,@program_transform_name@,$program_transform_name,;t t |
5338 |
s,@bindir@,$bindir,;t t |
5339 |
s,@sbindir@,$sbindir,;t t |
5340 |
s,@libexecdir@,$libexecdir,;t t |
5341 |
s,@datadir@,$datadir,;t t |
5342 |
s,@sysconfdir@,$sysconfdir,;t t |
5343 |
s,@sharedstatedir@,$sharedstatedir,;t t |
5344 |
s,@localstatedir@,$localstatedir,;t t |
5345 |
s,@libdir@,$libdir,;t t |
5346 |
s,@includedir@,$includedir,;t t |
5347 |
s,@oldincludedir@,$oldincludedir,;t t |
5348 |
s,@infodir@,$infodir,;t t |
5349 |
s,@mandir@,$mandir,;t t |
5350 |
s,@build_alias@,$build_alias,;t t |
5351 |
s,@host_alias@,$host_alias,;t t |
5352 |
s,@target_alias@,$target_alias,;t t |
5353 |
s,@DEFS@,$DEFS,;t t |
5354 |
s,@ECHO_C@,$ECHO_C,;t t |
5355 |
s,@ECHO_N@,$ECHO_N,;t t |
5356 |
s,@ECHO_T@,$ECHO_T,;t t |
5357 |
s,@LIBS@,$LIBS,;t t |
5358 |
s,@build@,$build,;t t |
5359 |
s,@build_cpu@,$build_cpu,;t t |
5360 |
s,@build_vendor@,$build_vendor,;t t |
5361 |
s,@build_os@,$build_os,;t t |
5362 |
s,@host@,$host,;t t |
5363 |
s,@host_cpu@,$host_cpu,;t t |
5364 |
s,@host_vendor@,$host_vendor,;t t |
5365 |
s,@host_os@,$host_os,;t t |
5366 |
s,@CXX@,$CXX,;t t |
5367 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
5368 |
s,@LDFLAGS@,$LDFLAGS,;t t |
5369 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
5370 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
5371 |
s,@EXEEXT@,$EXEEXT,;t t |
5372 |
s,@OBJEXT@,$OBJEXT,;t t |
5373 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
5374 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
5375 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
5376 |
s,@RM@,$RM,;t t |
5377 |
s,@CXXCPP@,$CXXCPP,;t t |
5378 |
s,@EGREP@,$EGREP,;t t |
5379 |
s,@LIBOBJS@,$LIBOBJS,;t t |
5380 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
5381 |
CEOF |
5382 |
|
5383 |
_ACEOF |
5384 |
|
5385 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5386 |
# Split the substitutions into bite-sized pieces for seds with |
5387 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
5388 |
ac_max_sed_lines=48 |
5389 |
ac_sed_frag=1 # Number of current file. |
5390 |
ac_beg=1 # First line for current file. |
5391 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
5392 |
ac_more_lines=: |
5393 |
ac_sed_cmds= |
5394 |
while $ac_more_lines; do |
5395 |
if test $ac_beg -gt 1; then |
5396 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
5397 |
else |
5398 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
5399 |
fi |
5400 |
if test ! -s $tmp/subs.frag; then |
5401 |
ac_more_lines=false |
5402 |
else |
5403 |
# The purpose of the label and of the branching condition is to |
5404 |
# speed up the sed processing (if there are no `@' at all, there |
5405 |
# is no need to browse any of the substitutions). |
5406 |
# These are the two extra sed commands mentioned above. |
5407 |
(echo ':t |
5408 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
5409 |
if test -z "$ac_sed_cmds"; then |
5410 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
5411 |
else |
5412 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
5413 |
fi |
5414 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
5415 |
ac_beg=$ac_end |
5416 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
5417 |
fi |
5418 |
done |
5419 |
if test -z "$ac_sed_cmds"; then |
5420 |
ac_sed_cmds=cat |
5421 |
fi |
5422 |
fi # test -n "$CONFIG_FILES" |
5423 |
|
5424 |
_ACEOF |
5425 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5426 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
5427 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5428 |
case $ac_file in |
5429 |
- | *:- | *:-:* ) # input from stdin |
5430 |
cat >$tmp/stdin |
5431 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5432 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5433 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5434 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5435 |
* ) ac_file_in=$ac_file.in ;; |
5436 |
esac |
5437 |
|
5438 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
5439 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
5440 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5441 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
5442 |
X"$ac_file" : 'X\(//\)$' \| \ |
5443 |
X"$ac_file" : 'X\(/\)' \| \ |
5444 |
. : '\(.\)' 2>/dev/null || |
5445 |
echo X"$ac_file" | |
5446 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5447 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5448 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5449 |
/^X\(\/\).*/{ s//\1/; q; } |
5450 |
s/.*/./; q'` |
5451 |
{ if $as_mkdir_p; then |
5452 |
mkdir -p "$ac_dir" |
5453 |
else |
5454 |
as_dir="$ac_dir" |
5455 |
as_dirs= |
5456 |
while test ! -d "$as_dir"; do |
5457 |
as_dirs="$as_dir $as_dirs" |
5458 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
5459 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5460 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
5461 |
X"$as_dir" : 'X\(//\)$' \| \ |
5462 |
X"$as_dir" : 'X\(/\)' \| \ |
5463 |
. : '\(.\)' 2>/dev/null || |
5464 |
echo X"$as_dir" | |
5465 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5466 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5467 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5468 |
/^X\(\/\).*/{ s//\1/; q; } |
5469 |
s/.*/./; q'` |
5470 |
done |
5471 |
test ! -n "$as_dirs" || mkdir $as_dirs |
5472 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
5473 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
5474 |
{ (exit 1); exit 1; }; }; } |
5475 |
|
5476 |
ac_builddir=. |
5477 |
|
5478 |
if test "$ac_dir" != .; then |
5479 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
5480 |
# A "../" for each directory in $ac_dir_suffix. |
5481 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
5482 |
else |
5483 |
ac_dir_suffix= ac_top_builddir= |
5484 |
fi |
5485 |
|
5486 |
case $srcdir in |
5487 |
.) # No --srcdir option. We are building in place. |
5488 |
ac_srcdir=. |
5489 |
if test -z "$ac_top_builddir"; then |
5490 |
ac_top_srcdir=. |
5491 |
else |
5492 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
5493 |
fi ;; |
5494 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
5495 |
ac_srcdir=$srcdir$ac_dir_suffix; |
5496 |
ac_top_srcdir=$srcdir ;; |
5497 |
*) # Relative path. |
5498 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
5499 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
5500 |
esac |
5501 |
|
5502 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
5503 |
# the directories may not exist. |
5504 |
case `pwd` in |
5505 |
.) ac_abs_builddir="$ac_dir";; |
5506 |
*) |
5507 |
case "$ac_dir" in |
5508 |
.) ac_abs_builddir=`pwd`;; |
5509 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
5510 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
5511 |
esac;; |
5512 |
esac |
5513 |
case $ac_abs_builddir in |
5514 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
5515 |
*) |
5516 |
case ${ac_top_builddir}. in |
5517 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
5518 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
5519 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
5520 |
esac;; |
5521 |
esac |
5522 |
case $ac_abs_builddir in |
5523 |
.) ac_abs_srcdir=$ac_srcdir;; |
5524 |
*) |
5525 |
case $ac_srcdir in |
5526 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
5527 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
5528 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
5529 |
esac;; |
5530 |
esac |
5531 |
case $ac_abs_builddir in |
5532 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
5533 |
*) |
5534 |
case $ac_top_srcdir in |
5535 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
5536 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
5537 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
5538 |
esac;; |
5539 |
esac |
5540 |
|
5541 |
|
5542 |
case $INSTALL in |
5543 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
5544 |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
5545 |
esac |
5546 |
|
5547 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
5548 |
# use $as_me), people would be surprised to read: |
5549 |
# /* config.h. Generated by config.status. */ |
5550 |
if test x"$ac_file" = x-; then |
5551 |
configure_input= |
5552 |
else |
5553 |
configure_input="$ac_file. " |
5554 |
fi |
5555 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
5556 |
sed 's,.*/,,'` by configure." |
5557 |
|
5558 |
# First look for the input files in the build tree, otherwise in the |
5559 |
# src tree. |
5560 |
ac_file_inputs=`IFS=: |
5561 |
for f in $ac_file_in; do |
5562 |
case $f in |
5563 |
-) echo $tmp/stdin ;; |
5564 |
[\\/$]*) |
5565 |
# Absolute (can't be DOS-style, as IFS=:) |
5566 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5567 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5568 |
{ (exit 1); exit 1; }; } |
5569 |
echo "$f";; |
5570 |
*) # Relative |
5571 |
if test -f "$f"; then |
5572 |
# Build tree |
5573 |
echo "$f" |
5574 |
elif test -f "$srcdir/$f"; then |
5575 |
# Source tree |
5576 |
echo "$srcdir/$f" |
5577 |
else |
5578 |
# /dev/null tree |
5579 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5580 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5581 |
{ (exit 1); exit 1; }; } |
5582 |
fi;; |
5583 |
esac |
5584 |
done` || { (exit 1); exit 1; } |
5585 |
|
5586 |
if test x"$ac_file" != x-; then |
5587 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
5588 |
echo "$as_me: creating $ac_file" >&6;} |
5589 |
rm -f "$ac_file" |
5590 |
fi |
5591 |
_ACEOF |
5592 |
cat >>$CONFIG_STATUS <<_ACEOF |
5593 |
sed "$ac_vpsub |
5594 |
$extrasub |
5595 |
_ACEOF |
5596 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5597 |
:t |
5598 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
5599 |
s,@configure_input@,$configure_input,;t t |
5600 |
s,@srcdir@,$ac_srcdir,;t t |
5601 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
5602 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
5603 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
5604 |
s,@builddir@,$ac_builddir,;t t |
5605 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
5606 |
s,@top_builddir@,$ac_top_builddir,;t t |
5607 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
5608 |
s,@INSTALL@,$ac_INSTALL,;t t |
5609 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
5610 |
rm -f $tmp/stdin |
5611 |
if test x"$ac_file" != x-; then |
5612 |
mv $tmp/out $ac_file |
5613 |
else |
5614 |
cat $tmp/out |
5615 |
rm -f $tmp/out |
5616 |
fi |
5617 |
|
5618 |
done |
5619 |
_ACEOF |
5620 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5621 |
|
5622 |
# |
5623 |
# CONFIG_HEADER section. |
5624 |
# |
5625 |
|
5626 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
5627 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
5628 |
# |
5629 |
# ac_d sets the value in "#define NAME VALUE" lines. |
5630 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
5631 |
ac_dB='[ ].*$,\1#\2' |
5632 |
ac_dC=' ' |
5633 |
ac_dD=',;t' |
5634 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
5635 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
5636 |
ac_uB='$,\1#\2define\3' |
5637 |
ac_uC=' ' |
5638 |
ac_uD=',;t' |
5639 |
|
5640 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
5641 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5642 |
case $ac_file in |
5643 |
- | *:- | *:-:* ) # input from stdin |
5644 |
cat >$tmp/stdin |
5645 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5646 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5647 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5648 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5649 |
* ) ac_file_in=$ac_file.in ;; |
5650 |
esac |
5651 |
|
5652 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
5653 |
echo "$as_me: creating $ac_file" >&6;} |
5654 |
|
5655 |
# First look for the input files in the build tree, otherwise in the |
5656 |
# src tree. |
5657 |
ac_file_inputs=`IFS=: |
5658 |
for f in $ac_file_in; do |
5659 |
case $f in |
5660 |
-) echo $tmp/stdin ;; |
5661 |
[\\/$]*) |
5662 |
# Absolute (can't be DOS-style, as IFS=:) |
5663 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5664 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5665 |
{ (exit 1); exit 1; }; } |
5666 |
# Do quote $f, to prevent DOS paths from being IFS'd. |
5667 |
echo "$f";; |
5668 |
*) # Relative |
5669 |
if test -f "$f"; then |
5670 |
# Build tree |
5671 |
echo "$f" |
5672 |
elif test -f "$srcdir/$f"; then |
5673 |
# Source tree |
5674 |
echo "$srcdir/$f" |
5675 |
else |
5676 |
# /dev/null tree |
5677 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5678 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5679 |
{ (exit 1); exit 1; }; } |
5680 |
fi;; |
5681 |
esac |
5682 |
done` || { (exit 1); exit 1; } |
5683 |
# Remove the trailing spaces. |
5684 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
5685 |
|
5686 |
_ACEOF |
5687 |
|
5688 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
5689 |
# `conftest.undefs', that substitutes the proper values into |
5690 |
# config.h.in to produce config.h. The first handles `#define' |
5691 |
# templates, and the second `#undef' templates. |
5692 |
# And first: Protect against being on the right side of a sed subst in |
5693 |
# config.status. Protect against being in an unquoted here document |
5694 |
# in config.status. |
5695 |
rm -f conftest.defines conftest.undefs |
5696 |
# Using a here document instead of a string reduces the quoting nightmare. |
5697 |
# Putting comments in sed scripts is not portable. |
5698 |
# |
5699 |
# `end' is used to avoid that the second main sed command (meant for |
5700 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
5701 |
# See the Autoconf documentation for `clear'. |
5702 |
cat >confdef2sed.sed <<\_ACEOF |
5703 |
s/[\\&,]/\\&/g |
5704 |
s,[\\$`],\\&,g |
5705 |
t clear |
5706 |
: clear |
5707 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
5708 |
t end |
5709 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
5710 |
: end |
5711 |
_ACEOF |
5712 |
# If some macros were called several times there might be several times |
5713 |
# the same #defines, which is useless. Nevertheless, we may not want to |
5714 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
5715 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
5716 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
5717 |
rm -f confdef2sed.sed |
5718 |
|
5719 |
# This sed command replaces #undef with comments. This is necessary, for |
5720 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
5721 |
# on some systems where configure will not decide to define it. |
5722 |
cat >>conftest.undefs <<\_ACEOF |
5723 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
5724 |
_ACEOF |
5725 |
|
5726 |
# Break up conftest.defines because some shells have a limit on the size |
5727 |
# of here documents, and old seds have small limits too (100 cmds). |
5728 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
5729 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
5730 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
5731 |
echo ' :' >>$CONFIG_STATUS |
5732 |
rm -f conftest.tail |
5733 |
while grep . conftest.defines >/dev/null |
5734 |
do |
5735 |
# Write a limited-size here document to $tmp/defines.sed. |
5736 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
5737 |
# Speed up: don't consider the non `#define' lines. |
5738 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
5739 |
# Work around the forget-to-reset-the-flag bug. |
5740 |
echo 't clr' >>$CONFIG_STATUS |
5741 |
echo ': clr' >>$CONFIG_STATUS |
5742 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
5743 |
echo 'CEOF |
5744 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
5745 |
rm -f $tmp/in |
5746 |
mv $tmp/out $tmp/in |
5747 |
' >>$CONFIG_STATUS |
5748 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
5749 |
rm -f conftest.defines |
5750 |
mv conftest.tail conftest.defines |
5751 |
done |
5752 |
rm -f conftest.defines |
5753 |
echo ' fi # grep' >>$CONFIG_STATUS |
5754 |
echo >>$CONFIG_STATUS |
5755 |
|
5756 |
# Break up conftest.undefs because some shells have a limit on the size |
5757 |
# of here documents, and old seds have small limits too (100 cmds). |
5758 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
5759 |
rm -f conftest.tail |
5760 |
while grep . conftest.undefs >/dev/null |
5761 |
do |
5762 |
# Write a limited-size here document to $tmp/undefs.sed. |
5763 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
5764 |
# Speed up: don't consider the non `#undef' |
5765 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
5766 |
# Work around the forget-to-reset-the-flag bug. |
5767 |
echo 't clr' >>$CONFIG_STATUS |
5768 |
echo ': clr' >>$CONFIG_STATUS |
5769 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
5770 |
echo 'CEOF |
5771 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
5772 |
rm -f $tmp/in |
5773 |
mv $tmp/out $tmp/in |
5774 |
' >>$CONFIG_STATUS |
5775 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
5776 |
rm -f conftest.undefs |
5777 |
mv conftest.tail conftest.undefs |
5778 |
done |
5779 |
rm -f conftest.undefs |
5780 |
|
5781 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5782 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
5783 |
# use $as_me), people would be surprised to read: |
5784 |
# /* config.h. Generated by config.status. */ |
5785 |
if test x"$ac_file" = x-; then |
5786 |
echo "/* Generated by configure. */" >$tmp/config.h |
5787 |
else |
5788 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
5789 |
fi |
5790 |
cat $tmp/in >>$tmp/config.h |
5791 |
rm -f $tmp/in |
5792 |
if test x"$ac_file" != x-; then |
5793 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
5794 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
5795 |
echo "$as_me: $ac_file is unchanged" >&6;} |
5796 |
else |
5797 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
5798 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5799 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
5800 |
X"$ac_file" : 'X\(//\)$' \| \ |
5801 |
X"$ac_file" : 'X\(/\)' \| \ |
5802 |
. : '\(.\)' 2>/dev/null || |
5803 |
echo X"$ac_file" | |
5804 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5805 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5806 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5807 |
/^X\(\/\).*/{ s//\1/; q; } |
5808 |
s/.*/./; q'` |
5809 |
{ if $as_mkdir_p; then |
5810 |
mkdir -p "$ac_dir" |
5811 |
else |
5812 |
as_dir="$ac_dir" |
5813 |
as_dirs= |
5814 |
while test ! -d "$as_dir"; do |
5815 |
as_dirs="$as_dir $as_dirs" |
5816 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
5817 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5818 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
5819 |
X"$as_dir" : 'X\(//\)$' \| \ |
5820 |
X"$as_dir" : 'X\(/\)' \| \ |
5821 |
. : '\(.\)' 2>/dev/null || |
5822 |
echo X"$as_dir" | |
5823 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5824 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5825 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5826 |
/^X\(\/\).*/{ s//\1/; q; } |
5827 |
s/.*/./; q'` |
5828 |
done |
5829 |
test ! -n "$as_dirs" || mkdir $as_dirs |
5830 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
5831 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
5832 |
{ (exit 1); exit 1; }; }; } |
5833 |
|
5834 |
rm -f $ac_file |
5835 |
mv $tmp/config.h $ac_file |
5836 |
fi |
5837 |
else |
5838 |
cat $tmp/config.h |
5839 |
rm -f $tmp/config.h |
5840 |
fi |
5841 |
done |
5842 |
_ACEOF |
5843 |
|
5844 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5845 |
|
5846 |
{ (exit 0); exit 0; } |
5847 |
_ACEOF |
5848 |
chmod +x $CONFIG_STATUS |
5849 |
ac_clean_files=$ac_clean_files_save |
5850 |
|
5851 |
|
5852 |
# configure is writing to config.log, and then calls config.status. |
5853 |
# config.status does its own redirection, appending to config.log. |
5854 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
5855 |
# by configure, so config.status won't be able to write to it; its |
5856 |
# output is simply discarded. So we exec the FD to /dev/null, |
5857 |
# effectively closing config.log, so it can be properly (re)opened and |
5858 |
# appended to by config.status. When coming back to configure, we |
5859 |
# need to make the FD available again. |
5860 |
if test "$no_create" != yes; then |
5861 |
ac_cs_success=: |
5862 |
ac_config_status_args= |
5863 |
test "$silent" = yes && |
5864 |
ac_config_status_args="$ac_config_status_args --quiet" |
5865 |
exec 5>/dev/null |
5866 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
5867 |
exec 5>>config.log |
5868 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
5869 |
# would make configure fail if this is the last instruction. |
5870 |
$ac_cs_success || { (exit 1); exit 1; } |
5871 |
fi |
5872 |
|