Lines 1-53
Link Here
|
1 |
#! /bin/sh |
1 |
#! /bin/sh |
2 |
|
|
|
3 |
# Guess values for system-dependent variables and create Makefiles. |
2 |
# Guess values for system-dependent variables and create Makefiles. |
4 |
# Generated automatically using autoconf version 2.13 |
3 |
# Generated by GNU Autoconf 2.59. |
5 |
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
|
|
6 |
# |
4 |
# |
|
|
5 |
# Copyright (C) 2003 Free Software Foundation, Inc. |
7 |
# This configure script is free software; the Free Software Foundation |
6 |
# This configure script is free software; the Free Software Foundation |
8 |
# gives unlimited permission to copy, distribute and modify it. |
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 |
|
9 |
|
243 |
|
10 |
# Defaults: |
244 |
# Name of the host. |
11 |
ac_help= |
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 |
# |
12 |
ac_default_prefix=/usr/local |
254 |
ac_default_prefix=/usr/local |
13 |
# Any additions from configure.in: |
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="saveme.c" |
14 |
ac_default_prefix=/usr |
275 |
ac_default_prefix=/usr |
15 |
ac_help="$ac_help |
276 |
# Factoring default headers for most tests. |
16 |
--enable-socksdns force dns lookups to use tcp " |
277 |
ac_includes_default="\ |
17 |
ac_help="$ac_help |
278 |
#include <stdio.h> |
18 |
--disable-debug disable ALL error messages from tsocks " |
279 |
#if HAVE_SYS_TYPES_H |
19 |
ac_help="$ac_help |
280 |
# include <sys/types.h> |
20 |
--enable-oldmethod use the old method to override connect " |
281 |
#endif |
21 |
ac_help="$ac_help |
282 |
#if HAVE_SYS_STAT_H |
22 |
--disable-hostnames disable hostname lookups for socks servers " |
283 |
# include <sys/stat.h> |
23 |
ac_help="$ac_help |
284 |
#endif |
24 |
--disable-envconf do not allow TSOCKS_CONF_FILE to specify configuration file " |
285 |
#if STDC_HEADERS |
25 |
ac_help="$ac_help |
286 |
# include <stdlib.h> |
26 |
--with-conf=<file> location of configuration file (/etc/tsocks.conf default)" |
287 |
# include <stddef.h> |
|
|
288 |
#else |
289 |
# if HAVE_STDLIB_H |
290 |
# include <stdlib.h> |
291 |
# endif |
292 |
#endif |
293 |
#if HAVE_STRING_H |
294 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
295 |
# include <memory.h> |
296 |
# endif |
297 |
# include <string.h> |
298 |
#endif |
299 |
#if HAVE_STRINGS_H |
300 |
# include <strings.h> |
301 |
#endif |
302 |
#if HAVE_INTTYPES_H |
303 |
# include <inttypes.h> |
304 |
#else |
305 |
# if HAVE_STDINT_H |
306 |
# include <stdint.h> |
307 |
# endif |
308 |
#endif |
309 |
#if HAVE_UNISTD_H |
310 |
# include <unistd.h> |
311 |
#endif" |
312 |
|
313 |
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CPP EGREP DEADPOOL_O FIND TAIL SPECIALLIBS LIBOBJS LTLIBOBJS' |
314 |
ac_subst_files='' |
27 |
|
315 |
|
28 |
# Initialize some variables set by options. |
316 |
# Initialize some variables set by options. |
|
|
317 |
ac_init_help= |
318 |
ac_init_version=false |
29 |
# The variables have the same names as the options, with |
319 |
# The variables have the same names as the options, with |
30 |
# dashes changed to underlines. |
320 |
# dashes changed to underlines. |
31 |
build=NONE |
321 |
cache_file=/dev/null |
32 |
cache_file=./config.cache |
|
|
33 |
exec_prefix=NONE |
322 |
exec_prefix=NONE |
34 |
host=NONE |
|
|
35 |
no_create= |
323 |
no_create= |
36 |
nonopt=NONE |
|
|
37 |
no_recursion= |
324 |
no_recursion= |
38 |
prefix=NONE |
325 |
prefix=NONE |
39 |
program_prefix=NONE |
326 |
program_prefix=NONE |
40 |
program_suffix=NONE |
327 |
program_suffix=NONE |
41 |
program_transform_name=s,x,x, |
328 |
program_transform_name=s,x,x, |
42 |
silent= |
329 |
silent= |
43 |
site= |
330 |
site= |
44 |
srcdir= |
331 |
srcdir= |
45 |
target=NONE |
|
|
46 |
verbose= |
332 |
verbose= |
47 |
x_includes=NONE |
333 |
x_includes=NONE |
48 |
x_libraries=NONE |
334 |
x_libraries=NONE |
|
|
335 |
|
336 |
# Installation directory options. |
337 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
338 |
# and all the variables that are supposed to be based on exec_prefix |
339 |
# by default will actually change. |
340 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
49 |
bindir='${exec_prefix}/bin' |
341 |
bindir='${exec_prefix}/bin' |
50 |
sbindir='${exec_prefix}/sbin' |
342 |
sbindir='${exec_prefix}/sbin' |
51 |
libexecdir='${exec_prefix}/libexec' |
343 |
libexecdir='${exec_prefix}/libexec' |
52 |
datadir='${prefix}/share' |
344 |
datadir='${prefix}/share' |
53 |
sysconfdir='${prefix}/etc' |
345 |
sysconfdir='${prefix}/etc' |
Lines 57-255
Link Here
|
57 |
includedir='${prefix}/include' |
349 |
includedir='${prefix}/include' |
58 |
oldincludedir='/usr/include' |
350 |
oldincludedir='/usr/include' |
59 |
infodir='${prefix}/info' |
351 |
infodir='${prefix}/info' |
60 |
mandir='${prefix}/man' |
352 |
mandir='${prefix}/man' |
61 |
|
353 |
|
62 |
# Initialize some other variables. |
|
|
63 |
subdirs= |
64 |
MFLAGS= MAKEFLAGS= |
65 |
SHELL=${CONFIG_SHELL-/bin/sh} |
66 |
# Maximum number of lines to put in a shell here document. |
67 |
ac_max_here_lines=12 |
68 |
|
69 |
ac_prev= |
354 |
ac_prev= |
70 |
for ac_option |
355 |
for ac_option |
71 |
do |
356 |
do |
72 |
|
|
|
73 |
# If the previous option needs an argument, assign it. |
357 |
# If the previous option needs an argument, assign it. |
74 |
if test -n "$ac_prev"; then |
358 |
if test -n "$ac_prev"; then |
75 |
eval "$ac_prev=\$ac_option" |
359 |
eval "$ac_prev=\$ac_option" |
76 |
ac_prev= |
360 |
ac_prev= |
77 |
continue |
361 |
continue |
78 |
fi |
362 |
fi |
79 |
|
363 |
|
80 |
case "$ac_option" in |
364 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
81 |
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
|
|
82 |
*) ac_optarg= ;; |
83 |
esac |
84 |
|
365 |
|
85 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
366 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
86 |
|
367 |
|
87 |
case "$ac_option" in |
368 |
case $ac_option in |
88 |
|
369 |
|
89 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
370 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
90 |
ac_prev=bindir ;; |
371 |
ac_prev=bindir ;; |
91 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
372 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
92 |
bindir="$ac_optarg" ;; |
373 |
bindir=$ac_optarg ;; |
93 |
|
374 |
|
94 |
-build | --build | --buil | --bui | --bu) |
375 |
-build | --build | --buil | --bui | --bu) |
95 |
ac_prev=build ;; |
376 |
ac_prev=build_alias ;; |
96 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
377 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
97 |
build="$ac_optarg" ;; |
378 |
build_alias=$ac_optarg ;; |
98 |
|
379 |
|
99 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
380 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
100 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
381 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
101 |
ac_prev=cache_file ;; |
382 |
ac_prev=cache_file ;; |
102 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
383 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
103 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
384 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
104 |
cache_file="$ac_optarg" ;; |
385 |
cache_file=$ac_optarg ;; |
|
|
386 |
|
387 |
--config-cache | -C) |
388 |
cache_file=config.cache ;; |
105 |
|
389 |
|
106 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
390 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
107 |
ac_prev=datadir ;; |
391 |
ac_prev=datadir ;; |
108 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
392 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
109 |
| --da=*) |
393 |
| --da=*) |
110 |
datadir="$ac_optarg" ;; |
394 |
datadir=$ac_optarg ;; |
111 |
|
395 |
|
112 |
-disable-* | --disable-*) |
396 |
-disable-* | --disable-*) |
113 |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
397 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
114 |
# Reject names that are not valid shell variable names. |
398 |
# Reject names that are not valid shell variable names. |
115 |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
399 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
116 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
400 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
117 |
fi |
401 |
{ (exit 1); exit 1; }; } |
118 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
402 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
119 |
eval "enable_${ac_feature}=no" ;; |
403 |
eval "enable_$ac_feature=no" ;; |
120 |
|
404 |
|
121 |
-enable-* | --enable-*) |
405 |
-enable-* | --enable-*) |
122 |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
406 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
123 |
# Reject names that are not valid shell variable names. |
407 |
# Reject names that are not valid shell variable names. |
124 |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
408 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
125 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
409 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
126 |
fi |
410 |
{ (exit 1); exit 1; }; } |
127 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
411 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
128 |
case "$ac_option" in |
412 |
case $ac_option in |
129 |
*=*) ;; |
413 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
130 |
*) ac_optarg=yes ;; |
414 |
*) ac_optarg=yes ;; |
131 |
esac |
415 |
esac |
132 |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
416 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
133 |
|
417 |
|
134 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
418 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
135 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
419 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
136 |
| --exec | --exe | --ex) |
420 |
| --exec | --exe | --ex) |
137 |
ac_prev=exec_prefix ;; |
421 |
ac_prev=exec_prefix ;; |
138 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
422 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
139 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
423 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
140 |
| --exec=* | --exe=* | --ex=*) |
424 |
| --exec=* | --exe=* | --ex=*) |
141 |
exec_prefix="$ac_optarg" ;; |
425 |
exec_prefix=$ac_optarg ;; |
142 |
|
426 |
|
143 |
-gas | --gas | --ga | --g) |
427 |
-gas | --gas | --ga | --g) |
144 |
# Obsolete; use --with-gas. |
428 |
# Obsolete; use --with-gas. |
145 |
with_gas=yes ;; |
429 |
with_gas=yes ;; |
146 |
|
430 |
|
147 |
-help | --help | --hel | --he) |
431 |
-help | --help | --hel | --he | -h) |
148 |
# Omit some internal or obsolete options to make the list less imposing. |
432 |
ac_init_help=long ;; |
149 |
# This message is too long to be a string in the A/UX 3.1 sh. |
433 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
150 |
cat << EOF |
434 |
ac_init_help=recursive ;; |
151 |
Usage: configure [options] [host] |
435 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
152 |
Options: [defaults in brackets after descriptions] |
436 |
ac_init_help=short ;; |
153 |
Configuration: |
|
|
154 |
--cache-file=FILE cache test results in FILE |
155 |
--help print this message |
156 |
--no-create do not create output files |
157 |
--quiet, --silent do not print \`checking...' messages |
158 |
--version print the version of autoconf that created configure |
159 |
Directory and file names: |
160 |
--prefix=PREFIX install architecture-independent files in PREFIX |
161 |
[$ac_default_prefix] |
162 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
163 |
[same as prefix] |
164 |
--bindir=DIR user executables in DIR [EPREFIX/bin] |
165 |
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
166 |
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
167 |
--datadir=DIR read-only architecture-independent data in DIR |
168 |
[PREFIX/share] |
169 |
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
170 |
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
171 |
[PREFIX/com] |
172 |
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
173 |
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
174 |
--includedir=DIR C header files in DIR [PREFIX/include] |
175 |
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
176 |
--infodir=DIR info documentation in DIR [PREFIX/info] |
177 |
--mandir=DIR man documentation in DIR [PREFIX/man] |
178 |
--srcdir=DIR find the sources in DIR [configure dir or ..] |
179 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
180 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
181 |
--program-transform-name=PROGRAM |
182 |
run sed PROGRAM on installed program names |
183 |
EOF |
184 |
cat << EOF |
185 |
Host type: |
186 |
--build=BUILD configure for building on BUILD [BUILD=HOST] |
187 |
--host=HOST configure for HOST [guessed] |
188 |
--target=TARGET configure for TARGET [TARGET=HOST] |
189 |
Features and packages: |
190 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
191 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
192 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
193 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
194 |
--x-includes=DIR X include files are in DIR |
195 |
--x-libraries=DIR X library files are in DIR |
196 |
EOF |
197 |
if test -n "$ac_help"; then |
198 |
echo "--enable and --with options recognized:$ac_help" |
199 |
fi |
200 |
exit 0 ;; |
201 |
|
437 |
|
202 |
-host | --host | --hos | --ho) |
438 |
-host | --host | --hos | --ho) |
203 |
ac_prev=host ;; |
439 |
ac_prev=host_alias ;; |
204 |
-host=* | --host=* | --hos=* | --ho=*) |
440 |
-host=* | --host=* | --hos=* | --ho=*) |
205 |
host="$ac_optarg" ;; |
441 |
host_alias=$ac_optarg ;; |
206 |
|
442 |
|
207 |
-includedir | --includedir | --includedi | --included | --include \ |
443 |
-includedir | --includedir | --includedi | --included | --include \ |
208 |
| --includ | --inclu | --incl | --inc) |
444 |
| --includ | --inclu | --incl | --inc) |
209 |
ac_prev=includedir ;; |
445 |
ac_prev=includedir ;; |
210 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
446 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
211 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
447 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
212 |
includedir="$ac_optarg" ;; |
448 |
includedir=$ac_optarg ;; |
213 |
|
449 |
|
214 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
450 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
215 |
ac_prev=infodir ;; |
451 |
ac_prev=infodir ;; |
216 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
452 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
217 |
infodir="$ac_optarg" ;; |
453 |
infodir=$ac_optarg ;; |
218 |
|
454 |
|
219 |
-libdir | --libdir | --libdi | --libd) |
455 |
-libdir | --libdir | --libdi | --libd) |
220 |
ac_prev=libdir ;; |
456 |
ac_prev=libdir ;; |
221 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
457 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
222 |
libdir="$ac_optarg" ;; |
458 |
libdir=$ac_optarg ;; |
223 |
|
459 |
|
224 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
460 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
225 |
| --libexe | --libex | --libe) |
461 |
| --libexe | --libex | --libe) |
226 |
ac_prev=libexecdir ;; |
462 |
ac_prev=libexecdir ;; |
227 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
463 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
228 |
| --libexe=* | --libex=* | --libe=*) |
464 |
| --libexe=* | --libex=* | --libe=*) |
229 |
libexecdir="$ac_optarg" ;; |
465 |
libexecdir=$ac_optarg ;; |
230 |
|
466 |
|
231 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
467 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
232 |
| --localstate | --localstat | --localsta | --localst \ |
468 |
| --localstate | --localstat | --localsta | --localst \ |
233 |
| --locals | --local | --loca | --loc | --lo) |
469 |
| --locals | --local | --loca | --loc | --lo) |
234 |
ac_prev=localstatedir ;; |
470 |
ac_prev=localstatedir ;; |
235 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
471 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
236 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
472 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
237 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
473 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
238 |
localstatedir="$ac_optarg" ;; |
474 |
localstatedir=$ac_optarg ;; |
239 |
|
475 |
|
240 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
476 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
241 |
ac_prev=mandir ;; |
477 |
ac_prev=mandir ;; |
242 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
478 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
243 |
mandir="$ac_optarg" ;; |
479 |
mandir=$ac_optarg ;; |
244 |
|
480 |
|
245 |
-nfp | --nfp | --nf) |
481 |
-nfp | --nfp | --nf) |
246 |
# Obsolete; use --without-fp. |
482 |
# Obsolete; use --without-fp. |
247 |
with_fp=no ;; |
483 |
with_fp=no ;; |
248 |
|
484 |
|
249 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
485 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
250 |
| --no-cr | --no-c) |
486 |
| --no-cr | --no-c | -n) |
251 |
no_create=yes ;; |
487 |
no_create=yes ;; |
252 |
|
488 |
|
253 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
489 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
254 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
490 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
255 |
no_recursion=yes ;; |
491 |
no_recursion=yes ;; |
Lines 259-288
Link Here
|
259 |
| --oldin | --oldi | --old | --ol | --o) |
495 |
| --oldin | --oldi | --old | --ol | --o) |
260 |
ac_prev=oldincludedir ;; |
496 |
ac_prev=oldincludedir ;; |
261 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
497 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
262 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
498 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
263 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
499 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
264 |
oldincludedir="$ac_optarg" ;; |
500 |
oldincludedir=$ac_optarg ;; |
265 |
|
501 |
|
266 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
502 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
267 |
ac_prev=prefix ;; |
503 |
ac_prev=prefix ;; |
268 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
504 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
269 |
prefix="$ac_optarg" ;; |
505 |
prefix=$ac_optarg ;; |
270 |
|
506 |
|
271 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
507 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
272 |
| --program-pre | --program-pr | --program-p) |
508 |
| --program-pre | --program-pr | --program-p) |
273 |
ac_prev=program_prefix ;; |
509 |
ac_prev=program_prefix ;; |
274 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
510 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
275 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
511 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
276 |
program_prefix="$ac_optarg" ;; |
512 |
program_prefix=$ac_optarg ;; |
277 |
|
513 |
|
278 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
514 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
279 |
| --program-suf | --program-su | --program-s) |
515 |
| --program-suf | --program-su | --program-s) |
280 |
ac_prev=program_suffix ;; |
516 |
ac_prev=program_suffix ;; |
281 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
517 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
282 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
518 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
283 |
program_suffix="$ac_optarg" ;; |
519 |
program_suffix=$ac_optarg ;; |
284 |
|
520 |
|
285 |
-program-transform-name | --program-transform-name \ |
521 |
-program-transform-name | --program-transform-name \ |
286 |
| --program-transform-nam | --program-transform-na \ |
522 |
| --program-transform-nam | --program-transform-na \ |
287 |
| --program-transform-n | --program-transform- \ |
523 |
| --program-transform-n | --program-transform- \ |
288 |
| --program-transform | --program-transfor \ |
524 |
| --program-transform | --program-transfor \ |
Lines 295-599
Link Here
|
295 |
| --program-transform-n=* | --program-transform-=* \ |
531 |
| --program-transform-n=* | --program-transform-=* \ |
296 |
| --program-transform=* | --program-transfor=* \ |
532 |
| --program-transform=* | --program-transfor=* \ |
297 |
| --program-transfo=* | --program-transf=* \ |
533 |
| --program-transfo=* | --program-transf=* \ |
298 |
| --program-trans=* | --program-tran=* \ |
534 |
| --program-trans=* | --program-tran=* \ |
299 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
535 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
300 |
program_transform_name="$ac_optarg" ;; |
536 |
program_transform_name=$ac_optarg ;; |
301 |
|
537 |
|
302 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
538 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
303 |
| -silent | --silent | --silen | --sile | --sil) |
539 |
| -silent | --silent | --silen | --sile | --sil) |
304 |
silent=yes ;; |
540 |
silent=yes ;; |
305 |
|
541 |
|
306 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
542 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
307 |
ac_prev=sbindir ;; |
543 |
ac_prev=sbindir ;; |
308 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
544 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
309 |
| --sbi=* | --sb=*) |
545 |
| --sbi=* | --sb=*) |
310 |
sbindir="$ac_optarg" ;; |
546 |
sbindir=$ac_optarg ;; |
311 |
|
547 |
|
312 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
548 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
313 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
549 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
314 |
| --sharedst | --shareds | --shared | --share | --shar \ |
550 |
| --sharedst | --shareds | --shared | --share | --shar \ |
315 |
| --sha | --sh) |
551 |
| --sha | --sh) |
316 |
ac_prev=sharedstatedir ;; |
552 |
ac_prev=sharedstatedir ;; |
317 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
553 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
318 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
554 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
319 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
555 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
320 |
| --sha=* | --sh=*) |
556 |
| --sha=* | --sh=*) |
321 |
sharedstatedir="$ac_optarg" ;; |
557 |
sharedstatedir=$ac_optarg ;; |
322 |
|
558 |
|
323 |
-site | --site | --sit) |
559 |
-site | --site | --sit) |
324 |
ac_prev=site ;; |
560 |
ac_prev=site ;; |
325 |
-site=* | --site=* | --sit=*) |
561 |
-site=* | --site=* | --sit=*) |
326 |
site="$ac_optarg" ;; |
562 |
site=$ac_optarg ;; |
327 |
|
563 |
|
328 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
329 |
ac_prev=srcdir ;; |
565 |
ac_prev=srcdir ;; |
330 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
566 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
331 |
srcdir="$ac_optarg" ;; |
567 |
srcdir=$ac_optarg ;; |
332 |
|
568 |
|
333 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
569 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
334 |
| --syscon | --sysco | --sysc | --sys | --sy) |
570 |
| --syscon | --sysco | --sysc | --sys | --sy) |
335 |
ac_prev=sysconfdir ;; |
571 |
ac_prev=sysconfdir ;; |
336 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
572 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
337 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
573 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
338 |
sysconfdir="$ac_optarg" ;; |
574 |
sysconfdir=$ac_optarg ;; |
339 |
|
575 |
|
340 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
576 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
341 |
ac_prev=target ;; |
577 |
ac_prev=target_alias ;; |
342 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
578 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
343 |
target="$ac_optarg" ;; |
579 |
target_alias=$ac_optarg ;; |
344 |
|
580 |
|
345 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
581 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
346 |
verbose=yes ;; |
582 |
verbose=yes ;; |
347 |
|
583 |
|
348 |
-version | --version | --versio | --versi | --vers) |
584 |
-version | --version | --versio | --versi | --vers | -V) |
349 |
echo "configure generated by autoconf version 2.13" |
585 |
ac_init_version=: ;; |
350 |
exit 0 ;; |
|
|
351 |
|
586 |
|
352 |
-with-* | --with-*) |
587 |
-with-* | --with-*) |
353 |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
588 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
354 |
# Reject names that are not valid shell variable names. |
589 |
# Reject names that are not valid shell variable names. |
355 |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
590 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
356 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
591 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
357 |
fi |
592 |
{ (exit 1); exit 1; }; } |
358 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
593 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
359 |
case "$ac_option" in |
594 |
case $ac_option in |
360 |
*=*) ;; |
595 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
361 |
*) ac_optarg=yes ;; |
596 |
*) ac_optarg=yes ;; |
362 |
esac |
597 |
esac |
363 |
eval "with_${ac_package}='$ac_optarg'" ;; |
598 |
eval "with_$ac_package='$ac_optarg'" ;; |
364 |
|
599 |
|
365 |
-without-* | --without-*) |
600 |
-without-* | --without-*) |
366 |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
601 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
367 |
# Reject names that are not valid shell variable names. |
602 |
# Reject names that are not valid shell variable names. |
368 |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
603 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
369 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
604 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
370 |
fi |
605 |
{ (exit 1); exit 1; }; } |
371 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
606 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
372 |
eval "with_${ac_package}=no" ;; |
607 |
eval "with_$ac_package=no" ;; |
373 |
|
608 |
|
374 |
--x) |
609 |
--x) |
375 |
# Obsolete; use --with-x. |
610 |
# Obsolete; use --with-x. |
376 |
with_x=yes ;; |
611 |
with_x=yes ;; |
377 |
|
612 |
|
378 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
613 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
379 |
| --x-incl | --x-inc | --x-in | --x-i) |
614 |
| --x-incl | --x-inc | --x-in | --x-i) |
380 |
ac_prev=x_includes ;; |
615 |
ac_prev=x_includes ;; |
381 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
616 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
382 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
617 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
383 |
x_includes="$ac_optarg" ;; |
618 |
x_includes=$ac_optarg ;; |
384 |
|
619 |
|
385 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
620 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
386 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
621 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
387 |
ac_prev=x_libraries ;; |
622 |
ac_prev=x_libraries ;; |
388 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
623 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
389 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
624 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
390 |
x_libraries="$ac_optarg" ;; |
625 |
x_libraries=$ac_optarg ;; |
391 |
|
626 |
|
392 |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
627 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
|
|
628 |
Try \`$0 --help' for more information." >&2 |
629 |
{ (exit 1); exit 1; }; } |
393 |
;; |
630 |
;; |
394 |
|
631 |
|
|
|
632 |
*=*) |
633 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
634 |
# Reject names that are not valid shell variable names. |
635 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
636 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
637 |
{ (exit 1); exit 1; }; } |
638 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
639 |
eval "$ac_envvar='$ac_optarg'" |
640 |
export $ac_envvar ;; |
641 |
|
395 |
*) |
642 |
*) |
396 |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
643 |
# FIXME: should be removed in autoconf 3.0. |
397 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
644 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
398 |
fi |
645 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
399 |
if test "x$nonopt" != xNONE; then |
646 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
400 |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
647 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
401 |
fi |
|
|
402 |
nonopt="$ac_option" |
403 |
;; |
648 |
;; |
404 |
|
649 |
|
405 |
esac |
650 |
esac |
406 |
done |
651 |
done |
407 |
|
652 |
|
408 |
if test -n "$ac_prev"; then |
653 |
if test -n "$ac_prev"; then |
409 |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
654 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
410 |
fi |
655 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
411 |
|
656 |
{ (exit 1); exit 1; }; } |
412 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
|
|
413 |
|
414 |
# File descriptor usage: |
415 |
# 0 standard input |
416 |
# 1 file creation |
417 |
# 2 errors and warnings |
418 |
# 3 some systems may open it to /dev/tty |
419 |
# 4 used on the Kubota Titan |
420 |
# 6 checking for... messages and results |
421 |
# 5 compiler messages saved in config.log |
422 |
if test "$silent" = yes; then |
423 |
exec 6>/dev/null |
424 |
else |
425 |
exec 6>&1 |
426 |
fi |
657 |
fi |
427 |
exec 5>./config.log |
|
|
428 |
|
658 |
|
429 |
echo "\ |
659 |
# Be sure to have absolute paths. |
430 |
This file contains any messages produced by compilers while |
660 |
for ac_var in exec_prefix prefix |
431 |
running configure, to aid debugging if configure makes a mistake. |
661 |
do |
432 |
" 1>&5 |
662 |
eval ac_val=$`echo $ac_var` |
|
|
663 |
case $ac_val in |
664 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
665 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
666 |
{ (exit 1); exit 1; }; };; |
667 |
esac |
668 |
done |
433 |
|
669 |
|
434 |
# Strip out --no-create and --no-recursion so they do not pile up. |
670 |
# Be sure to have absolute paths. |
435 |
# Also quote any args containing shell metacharacters. |
671 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
436 |
ac_configure_args= |
672 |
localstatedir libdir includedir oldincludedir infodir mandir |
437 |
for ac_arg |
|
|
438 |
do |
673 |
do |
439 |
case "$ac_arg" in |
674 |
eval ac_val=$`echo $ac_var` |
440 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
675 |
case $ac_val in |
441 |
| --no-cr | --no-c) ;; |
676 |
[\\/$]* | ?:[\\/]* ) ;; |
442 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
677 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
443 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
678 |
{ (exit 1); exit 1; }; };; |
444 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
|
|
445 |
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
446 |
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
447 |
esac |
679 |
esac |
448 |
done |
680 |
done |
449 |
|
681 |
|
450 |
# NLS nuisances. |
682 |
# There might be people who depend on the old broken behavior: `$host' |
451 |
# Only set these to C if already set. These must not be set unconditionally |
683 |
# used to hold the argument of --host etc. |
452 |
# because not all systems understand e.g. LANG=C (notably SCO). |
684 |
# FIXME: To remove some day. |
453 |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
685 |
build=$build_alias |
454 |
# Non-C LC_CTYPE values break the ctype check. |
686 |
host=$host_alias |
455 |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
687 |
target=$target_alias |
456 |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
688 |
|
457 |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
689 |
# FIXME: To remove some day. |
458 |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
690 |
if test "x$host_alias" != x; then |
|
|
691 |
if test "x$build_alias" = x; then |
692 |
cross_compiling=maybe |
693 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
694 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
695 |
elif test "x$build_alias" != "x$host_alias"; then |
696 |
cross_compiling=yes |
697 |
fi |
698 |
fi |
459 |
|
699 |
|
460 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
700 |
ac_tool_prefix= |
461 |
rm -rf conftest* confdefs.h |
701 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
462 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
702 |
|
463 |
echo > confdefs.h |
703 |
test "$silent" = yes && exec 6>/dev/null |
464 |
|
704 |
|
465 |
# A filename unique to this package, relative to the directory that |
|
|
466 |
# configure is in, which we can look for to find out if srcdir is correct. |
467 |
ac_unique_file=saveme.c |
468 |
|
705 |
|
469 |
# Find the source files, if location was not specified. |
706 |
# Find the source files, if location was not specified. |
470 |
if test -z "$srcdir"; then |
707 |
if test -z "$srcdir"; then |
471 |
ac_srcdir_defaulted=yes |
708 |
ac_srcdir_defaulted=yes |
472 |
# Try the directory containing this script, then its parent. |
709 |
# Try the directory containing this script, then its parent. |
473 |
ac_prog=$0 |
710 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
474 |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
711 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
475 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
712 |
X"$0" : 'X\(//\)[^/]' \| \ |
|
|
713 |
X"$0" : 'X\(//\)$' \| \ |
714 |
X"$0" : 'X\(/\)' \| \ |
715 |
. : '\(.\)' 2>/dev/null || |
716 |
echo X"$0" | |
717 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
718 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
719 |
/^X\(\/\/\)$/{ s//\1/; q; } |
720 |
/^X\(\/\).*/{ s//\1/; q; } |
721 |
s/.*/./; q'` |
476 |
srcdir=$ac_confdir |
722 |
srcdir=$ac_confdir |
477 |
if test ! -r $srcdir/$ac_unique_file; then |
723 |
if test ! -r $srcdir/$ac_unique_file; then |
478 |
srcdir=.. |
724 |
srcdir=.. |
479 |
fi |
725 |
fi |
480 |
else |
726 |
else |
481 |
ac_srcdir_defaulted=no |
727 |
ac_srcdir_defaulted=no |
482 |
fi |
728 |
fi |
483 |
if test ! -r $srcdir/$ac_unique_file; then |
729 |
if test ! -r $srcdir/$ac_unique_file; then |
484 |
if test "$ac_srcdir_defaulted" = yes; then |
730 |
if test "$ac_srcdir_defaulted" = yes; then |
485 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
731 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
|
|
732 |
{ (exit 1); exit 1; }; } |
486 |
else |
733 |
else |
487 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
734 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
|
|
735 |
{ (exit 1); exit 1; }; } |
488 |
fi |
736 |
fi |
489 |
fi |
737 |
fi |
490 |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
738 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
|
|
739 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
740 |
{ (exit 1); exit 1; }; } |
741 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
742 |
ac_env_build_alias_set=${build_alias+set} |
743 |
ac_env_build_alias_value=$build_alias |
744 |
ac_cv_env_build_alias_set=${build_alias+set} |
745 |
ac_cv_env_build_alias_value=$build_alias |
746 |
ac_env_host_alias_set=${host_alias+set} |
747 |
ac_env_host_alias_value=$host_alias |
748 |
ac_cv_env_host_alias_set=${host_alias+set} |
749 |
ac_cv_env_host_alias_value=$host_alias |
750 |
ac_env_target_alias_set=${target_alias+set} |
751 |
ac_env_target_alias_value=$target_alias |
752 |
ac_cv_env_target_alias_set=${target_alias+set} |
753 |
ac_cv_env_target_alias_value=$target_alias |
754 |
ac_env_CC_set=${CC+set} |
755 |
ac_env_CC_value=$CC |
756 |
ac_cv_env_CC_set=${CC+set} |
757 |
ac_cv_env_CC_value=$CC |
758 |
ac_env_CFLAGS_set=${CFLAGS+set} |
759 |
ac_env_CFLAGS_value=$CFLAGS |
760 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
761 |
ac_cv_env_CFLAGS_value=$CFLAGS |
762 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
763 |
ac_env_LDFLAGS_value=$LDFLAGS |
764 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
765 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
766 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
767 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
768 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
769 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
770 |
ac_env_CPP_set=${CPP+set} |
771 |
ac_env_CPP_value=$CPP |
772 |
ac_cv_env_CPP_set=${CPP+set} |
773 |
ac_cv_env_CPP_value=$CPP |
774 |
|
775 |
# |
776 |
# Report the --help message. |
777 |
# |
778 |
if test "$ac_init_help" = "long"; then |
779 |
# Omit some internal or obsolete options to make the list less imposing. |
780 |
# This message is too long to be a string in the A/UX 3.1 sh. |
781 |
cat <<_ACEOF |
782 |
\`configure' configures this package to adapt to many kinds of systems. |
783 |
|
784 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
785 |
|
786 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
787 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
788 |
|
789 |
Defaults for the options are specified in brackets. |
790 |
|
791 |
Configuration: |
792 |
-h, --help display this help and exit |
793 |
--help=short display options specific to this package |
794 |
--help=recursive display the short help of all the included packages |
795 |
-V, --version display version information and exit |
796 |
-q, --quiet, --silent do not print \`checking...' messages |
797 |
--cache-file=FILE cache test results in FILE [disabled] |
798 |
-C, --config-cache alias for \`--cache-file=config.cache' |
799 |
-n, --no-create do not create output files |
800 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
801 |
|
802 |
_ACEOF |
803 |
|
804 |
cat <<_ACEOF |
805 |
Installation directories: |
806 |
--prefix=PREFIX install architecture-independent files in PREFIX |
807 |
[$ac_default_prefix] |
808 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
809 |
[PREFIX] |
810 |
|
811 |
By default, \`make install' will install all the files in |
812 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
813 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
814 |
for instance \`--prefix=\$HOME'. |
815 |
|
816 |
For better control, use the options below. |
817 |
|
818 |
Fine tuning of the installation directories: |
819 |
--bindir=DIR user executables [EPREFIX/bin] |
820 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
821 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
822 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
823 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
824 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
825 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
826 |
--libdir=DIR object code libraries [EPREFIX/lib] |
827 |
--includedir=DIR C header files [PREFIX/include] |
828 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
829 |
--infodir=DIR info documentation [PREFIX/info] |
830 |
--mandir=DIR man documentation [PREFIX/man] |
831 |
_ACEOF |
832 |
|
833 |
cat <<\_ACEOF |
834 |
|
835 |
System types: |
836 |
--build=BUILD configure for building on BUILD [guessed] |
837 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
838 |
_ACEOF |
839 |
fi |
840 |
|
841 |
if test -n "$ac_init_help"; then |
842 |
|
843 |
cat <<\_ACEOF |
844 |
|
845 |
Optional Features: |
846 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
847 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
848 |
--enable-socksdns force dns lookups to use tcp |
849 |
--disable-tordns don't override name lookup calls to use SOCKS |
850 |
--disable-debug disable ALL error messages from tsocks |
851 |
--enable-oldmethod use the old method to override connect |
852 |
--enable-hostnames enable hostname lookups for socks servers |
853 |
--disable-envconf do not allow TSOCKS_CONF_FILE to specify configuration file |
854 |
|
855 |
Optional Packages: |
856 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
857 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
858 |
--with-conf=<file> location of configuration file (/etc/tsocks.conf default) |
859 |
|
860 |
Some influential environment variables: |
861 |
CC C compiler command |
862 |
CFLAGS C compiler flags |
863 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
864 |
nonstandard directory <lib dir> |
865 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
866 |
headers in a nonstandard directory <include dir> |
867 |
CPP C preprocessor |
868 |
|
869 |
Use these variables to override the choices made by `configure' or to help |
870 |
it to find libraries and programs with nonstandard names/locations. |
871 |
|
872 |
_ACEOF |
873 |
fi |
874 |
|
875 |
if test "$ac_init_help" = "recursive"; then |
876 |
# If there are subdirs, report their specific --help. |
877 |
ac_popdir=`pwd` |
878 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
879 |
test -d $ac_dir || continue |
880 |
ac_builddir=. |
881 |
|
882 |
if test "$ac_dir" != .; then |
883 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
884 |
# A "../" for each directory in $ac_dir_suffix. |
885 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
886 |
else |
887 |
ac_dir_suffix= ac_top_builddir= |
888 |
fi |
889 |
|
890 |
case $srcdir in |
891 |
.) # No --srcdir option. We are building in place. |
892 |
ac_srcdir=. |
893 |
if test -z "$ac_top_builddir"; then |
894 |
ac_top_srcdir=. |
895 |
else |
896 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
897 |
fi ;; |
898 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
899 |
ac_srcdir=$srcdir$ac_dir_suffix; |
900 |
ac_top_srcdir=$srcdir ;; |
901 |
*) # Relative path. |
902 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
903 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
904 |
esac |
905 |
|
906 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
907 |
# the directories may not exist. |
908 |
case `pwd` in |
909 |
.) ac_abs_builddir="$ac_dir";; |
910 |
*) |
911 |
case "$ac_dir" in |
912 |
.) ac_abs_builddir=`pwd`;; |
913 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
914 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
915 |
esac;; |
916 |
esac |
917 |
case $ac_abs_builddir in |
918 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
919 |
*) |
920 |
case ${ac_top_builddir}. in |
921 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
922 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
923 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
924 |
esac;; |
925 |
esac |
926 |
case $ac_abs_builddir in |
927 |
.) ac_abs_srcdir=$ac_srcdir;; |
928 |
*) |
929 |
case $ac_srcdir in |
930 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
931 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
932 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
933 |
esac;; |
934 |
esac |
935 |
case $ac_abs_builddir in |
936 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
937 |
*) |
938 |
case $ac_top_srcdir in |
939 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
940 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
941 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
942 |
esac;; |
943 |
esac |
944 |
|
945 |
cd $ac_dir |
946 |
# Check for guested configure; otherwise get Cygnus style configure. |
947 |
if test -f $ac_srcdir/configure.gnu; then |
948 |
echo |
949 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
950 |
elif test -f $ac_srcdir/configure; then |
951 |
echo |
952 |
$SHELL $ac_srcdir/configure --help=recursive |
953 |
elif test -f $ac_srcdir/configure.ac || |
954 |
test -f $ac_srcdir/configure.in; then |
955 |
echo |
956 |
$ac_configure --help |
957 |
else |
958 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
959 |
fi |
960 |
cd "$ac_popdir" |
961 |
done |
962 |
fi |
963 |
|
964 |
test -n "$ac_init_help" && exit 0 |
965 |
if $ac_init_version; then |
966 |
cat <<\_ACEOF |
967 |
|
968 |
Copyright (C) 2003 Free Software Foundation, Inc. |
969 |
This configure script is free software; the Free Software Foundation |
970 |
gives unlimited permission to copy, distribute and modify it. |
971 |
_ACEOF |
972 |
exit 0 |
973 |
fi |
974 |
exec 5>config.log |
975 |
cat >&5 <<_ACEOF |
976 |
This file contains any messages produced by compilers while |
977 |
running configure, to aid debugging if configure makes a mistake. |
978 |
|
979 |
It was created by $as_me, which was |
980 |
generated by GNU Autoconf 2.59. Invocation command line was |
981 |
|
982 |
$ $0 $@ |
983 |
|
984 |
_ACEOF |
985 |
{ |
986 |
cat <<_ASUNAME |
987 |
## --------- ## |
988 |
## Platform. ## |
989 |
## --------- ## |
990 |
|
991 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
992 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
993 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
994 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
995 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
996 |
|
997 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
998 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
999 |
|
1000 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1001 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1002 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1003 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1004 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1005 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1006 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1007 |
|
1008 |
_ASUNAME |
1009 |
|
1010 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1011 |
for as_dir in $PATH |
1012 |
do |
1013 |
IFS=$as_save_IFS |
1014 |
test -z "$as_dir" && as_dir=. |
1015 |
echo "PATH: $as_dir" |
1016 |
done |
1017 |
|
1018 |
} >&5 |
1019 |
|
1020 |
cat >&5 <<_ACEOF |
1021 |
|
1022 |
|
1023 |
## ----------- ## |
1024 |
## Core tests. ## |
1025 |
## ----------- ## |
1026 |
|
1027 |
_ACEOF |
1028 |
|
1029 |
|
1030 |
# Keep a trace of the command line. |
1031 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1032 |
# Strip out --silent because we don't want to record it for future runs. |
1033 |
# Also quote any args containing shell meta-characters. |
1034 |
# Make two passes to allow for proper duplicate-argument suppression. |
1035 |
ac_configure_args= |
1036 |
ac_configure_args0= |
1037 |
ac_configure_args1= |
1038 |
ac_sep= |
1039 |
ac_must_keep_next=false |
1040 |
for ac_pass in 1 2 |
1041 |
do |
1042 |
for ac_arg |
1043 |
do |
1044 |
case $ac_arg in |
1045 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1046 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1047 |
| -silent | --silent | --silen | --sile | --sil) |
1048 |
continue ;; |
1049 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1050 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1051 |
esac |
1052 |
case $ac_pass in |
1053 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1054 |
2) |
1055 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1056 |
if test $ac_must_keep_next = true; then |
1057 |
ac_must_keep_next=false # Got value, back to normal. |
1058 |
else |
1059 |
case $ac_arg in |
1060 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1061 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1062 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1063 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1064 |
case "$ac_configure_args0 " in |
1065 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1066 |
esac |
1067 |
;; |
1068 |
-* ) ac_must_keep_next=true ;; |
1069 |
esac |
1070 |
fi |
1071 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1072 |
# Get rid of the leading space. |
1073 |
ac_sep=" " |
1074 |
;; |
1075 |
esac |
1076 |
done |
1077 |
done |
1078 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1079 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1080 |
|
1081 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1082 |
# config.log. We remove comments because anyway the quotes in there |
1083 |
# would cause problems or look ugly. |
1084 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
1085 |
# such as our DU 5.0 friend, will then `close' the trap. |
1086 |
trap 'exit_status=$? |
1087 |
# Save into config.log some information that might help in debugging. |
1088 |
{ |
1089 |
echo |
1090 |
|
1091 |
cat <<\_ASBOX |
1092 |
## ---------------- ## |
1093 |
## Cache variables. ## |
1094 |
## ---------------- ## |
1095 |
_ASBOX |
1096 |
echo |
1097 |
# The following way of writing the cache mishandles newlines in values, |
1098 |
{ |
1099 |
(set) 2>&1 | |
1100 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1101 |
*ac_space=\ *) |
1102 |
sed -n \ |
1103 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1104 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1105 |
;; |
1106 |
*) |
1107 |
sed -n \ |
1108 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1109 |
;; |
1110 |
esac; |
1111 |
} |
1112 |
echo |
1113 |
|
1114 |
cat <<\_ASBOX |
1115 |
## ----------------- ## |
1116 |
## Output variables. ## |
1117 |
## ----------------- ## |
1118 |
_ASBOX |
1119 |
echo |
1120 |
for ac_var in $ac_subst_vars |
1121 |
do |
1122 |
eval ac_val=$`echo $ac_var` |
1123 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1124 |
done | sort |
1125 |
echo |
1126 |
|
1127 |
if test -n "$ac_subst_files"; then |
1128 |
cat <<\_ASBOX |
1129 |
## ------------- ## |
1130 |
## Output files. ## |
1131 |
## ------------- ## |
1132 |
_ASBOX |
1133 |
echo |
1134 |
for ac_var in $ac_subst_files |
1135 |
do |
1136 |
eval ac_val=$`echo $ac_var` |
1137 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1138 |
done | sort |
1139 |
echo |
1140 |
fi |
1141 |
|
1142 |
if test -s confdefs.h; then |
1143 |
cat <<\_ASBOX |
1144 |
## ----------- ## |
1145 |
## confdefs.h. ## |
1146 |
## ----------- ## |
1147 |
_ASBOX |
1148 |
echo |
1149 |
sed "/^$/d" confdefs.h | sort |
1150 |
echo |
1151 |
fi |
1152 |
test "$ac_signal" != 0 && |
1153 |
echo "$as_me: caught signal $ac_signal" |
1154 |
echo "$as_me: exit $exit_status" |
1155 |
} >&5 |
1156 |
rm -f core *.core && |
1157 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1158 |
exit $exit_status |
1159 |
' 0 |
1160 |
for ac_signal in 1 2 13 15; do |
1161 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1162 |
done |
1163 |
ac_signal=0 |
1164 |
|
1165 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1166 |
rm -rf conftest* confdefs.h |
1167 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1168 |
echo >confdefs.h |
1169 |
|
1170 |
# Predefined preprocessor variables. |
1171 |
|
1172 |
cat >>confdefs.h <<_ACEOF |
1173 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1174 |
_ACEOF |
1175 |
|
1176 |
|
1177 |
cat >>confdefs.h <<_ACEOF |
1178 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1179 |
_ACEOF |
491 |
|
1180 |
|
|
|
1181 |
|
1182 |
cat >>confdefs.h <<_ACEOF |
1183 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1184 |
_ACEOF |
1185 |
|
1186 |
|
1187 |
cat >>confdefs.h <<_ACEOF |
1188 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1189 |
_ACEOF |
1190 |
|
1191 |
|
1192 |
cat >>confdefs.h <<_ACEOF |
1193 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1194 |
_ACEOF |
1195 |
|
1196 |
|
1197 |
# Let the site file select an alternate cache file if it wants to. |
492 |
# Prefer explicitly selected file to automatically selected ones. |
1198 |
# Prefer explicitly selected file to automatically selected ones. |
493 |
if test -z "$CONFIG_SITE"; then |
1199 |
if test -z "$CONFIG_SITE"; then |
494 |
if test "x$prefix" != xNONE; then |
1200 |
if test "x$prefix" != xNONE; then |
495 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1201 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
496 |
else |
1202 |
else |
497 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1203 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
498 |
fi |
1204 |
fi |
499 |
fi |
1205 |
fi |
500 |
for ac_site_file in $CONFIG_SITE; do |
1206 |
for ac_site_file in $CONFIG_SITE; do |
501 |
if test -r "$ac_site_file"; then |
1207 |
if test -r "$ac_site_file"; then |
502 |
echo "loading site script $ac_site_file" |
1208 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
|
|
1209 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
1210 |
sed 's/^/| /' "$ac_site_file" >&5 |
503 |
. "$ac_site_file" |
1211 |
. "$ac_site_file" |
504 |
fi |
1212 |
fi |
505 |
done |
1213 |
done |
506 |
|
1214 |
|
507 |
if test -r "$cache_file"; then |
1215 |
if test -r "$cache_file"; then |
508 |
echo "loading cache $cache_file" |
1216 |
# Some versions of bash will fail to source /dev/null (special |
509 |
. $cache_file |
1217 |
# files actually), so we avoid doing that. |
|
|
1218 |
if test -f "$cache_file"; then |
1219 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1220 |
echo "$as_me: loading cache $cache_file" >&6;} |
1221 |
case $cache_file in |
1222 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1223 |
*) . ./$cache_file;; |
1224 |
esac |
1225 |
fi |
510 |
else |
1226 |
else |
511 |
echo "creating cache $cache_file" |
1227 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
512 |
> $cache_file |
1228 |
echo "$as_me: creating cache $cache_file" >&6;} |
|
|
1229 |
>$cache_file |
1230 |
fi |
1231 |
|
1232 |
# Check that the precious variables saved in the cache have kept the same |
1233 |
# value. |
1234 |
ac_cache_corrupted=false |
1235 |
for ac_var in `(set) 2>&1 | |
1236 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1237 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1238 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1239 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1240 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
1241 |
case $ac_old_set,$ac_new_set in |
1242 |
set,) |
1243 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1244 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1245 |
ac_cache_corrupted=: ;; |
1246 |
,set) |
1247 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1248 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1249 |
ac_cache_corrupted=: ;; |
1250 |
,);; |
1251 |
*) |
1252 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1253 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1254 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1255 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1256 |
echo "$as_me: former value: $ac_old_val" >&2;} |
1257 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1258 |
echo "$as_me: current value: $ac_new_val" >&2;} |
1259 |
ac_cache_corrupted=: |
1260 |
fi;; |
1261 |
esac |
1262 |
# Pass precious variables to config.status. |
1263 |
if test "$ac_new_set" = set; then |
1264 |
case $ac_new_val in |
1265 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1266 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1267 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1268 |
esac |
1269 |
case " $ac_configure_args " in |
1270 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1271 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1272 |
esac |
1273 |
fi |
1274 |
done |
1275 |
if $ac_cache_corrupted; then |
1276 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1277 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1278 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1279 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1280 |
{ (exit 1); exit 1; }; } |
513 |
fi |
1281 |
fi |
514 |
|
1282 |
|
515 |
ac_ext=c |
1283 |
ac_ext=c |
516 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|
|
517 |
ac_cpp='$CPP $CPPFLAGS' |
1284 |
ac_cpp='$CPP $CPPFLAGS' |
518 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1285 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
519 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1286 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
520 |
cross_compiling=$ac_cv_prog_cc_cross |
1287 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
521 |
|
1288 |
|
522 |
ac_exeext= |
1289 |
|
523 |
ac_objext=o |
1290 |
|
524 |
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
1291 |
|
525 |
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
1292 |
|
526 |
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
1293 |
|
527 |
ac_n= ac_c=' |
1294 |
|
528 |
' ac_t=' ' |
1295 |
|
529 |
else |
1296 |
|
530 |
ac_n=-n ac_c= ac_t= |
1297 |
|
531 |
fi |
1298 |
|
532 |
else |
1299 |
|
533 |
ac_n= ac_c='\c' ac_t= |
1300 |
|
534 |
fi |
|
|
535 |
|
1301 |
|
536 |
|
1302 |
|
537 |
|
1303 |
|
538 |
|
1304 |
|
539 |
|
1305 |
|
540 |
|
1306 |
|
|
|
1307 |
ac_config_headers="$ac_config_headers config.h" |
1308 |
|
1309 |
|
1310 |
|
1311 |
|
541 |
test "$libdir" = "\${exec_prefix}/lib" && libdir="/lib" |
1312 |
test "$libdir" = "\${exec_prefix}/lib" && libdir="/lib" |
542 |
|
1313 |
|
543 |
# Check whether --enable-socksdns or --disable-socksdns was given. |
1314 |
# Check whether --enable-socksdns or --disable-socksdns was given. |
544 |
if test "${enable_socksdns+set}" = set; then |
1315 |
if test "${enable_socksdns+set}" = set; then |
545 |
enableval="$enable_socksdns" |
1316 |
enableval="$enable_socksdns" |
546 |
: |
|
|
547 |
fi |
548 |
|
1317 |
|
|
|
1318 |
fi; |
1319 |
# Check whether --enable-tordns or --disable-tordns was given. |
1320 |
if test "${enable_tordns+set}" = set; then |
1321 |
enableval="$enable_tordns" |
1322 |
|
1323 |
fi; |
549 |
# Check whether --enable-debug or --disable-debug was given. |
1324 |
# Check whether --enable-debug or --disable-debug was given. |
550 |
if test "${enable_debug+set}" = set; then |
1325 |
if test "${enable_debug+set}" = set; then |
551 |
enableval="$enable_debug" |
1326 |
enableval="$enable_debug" |
552 |
: |
|
|
553 |
fi |
554 |
|
1327 |
|
|
|
1328 |
fi; |
555 |
# Check whether --enable-oldmethod or --disable-oldmethod was given. |
1329 |
# Check whether --enable-oldmethod or --disable-oldmethod was given. |
556 |
if test "${enable_oldmethod+set}" = set; then |
1330 |
if test "${enable_oldmethod+set}" = set; then |
557 |
enableval="$enable_oldmethod" |
1331 |
enableval="$enable_oldmethod" |
558 |
: |
|
|
559 |
fi |
560 |
|
1332 |
|
|
|
1333 |
fi; |
561 |
# Check whether --enable-hostnames or --disable-hostnames was given. |
1334 |
# Check whether --enable-hostnames or --disable-hostnames was given. |
562 |
if test "${enable_hostnames+set}" = set; then |
1335 |
if test "${enable_hostnames+set}" = set; then |
563 |
enableval="$enable_hostnames" |
1336 |
enableval="$enable_hostnames" |
564 |
: |
|
|
565 |
fi |
566 |
|
1337 |
|
|
|
1338 |
fi; |
567 |
# Check whether --enable-envconf or --disable-envconf was given. |
1339 |
# Check whether --enable-envconf or --disable-envconf was given. |
568 |
if test "${enable_envconf+set}" = set; then |
1340 |
if test "${enable_envconf+set}" = set; then |
569 |
enableval="$enable_envconf" |
1341 |
enableval="$enable_envconf" |
570 |
: |
1342 |
|
571 |
fi |
1343 |
fi; |
572 |
|
1344 |
|
573 |
# Check whether --with-conf or --without-conf was given. |
1345 |
# Check whether --with-conf or --without-conf was given. |
574 |
if test "${with_conf+set}" = set; then |
1346 |
if test "${with_conf+set}" = set; then |
575 |
withval="$with_conf" |
1347 |
withval="$with_conf" |
576 |
|
1348 |
|
577 |
if test "${withval}" = "yes" ; then |
1349 |
if test "${withval}" = "yes" ; then |
578 |
{ echo "configure: error: "--with-conf requires the location of the configuration file as an argument"" 1>&2; exit 1; } |
1350 |
{ { echo "$as_me:$LINENO: error: \"--with-conf requires the location of the configuration file as an argument\"" >&5 |
|
|
1351 |
echo "$as_me: error: \"--with-conf requires the location of the configuration file as an argument\"" >&2;} |
1352 |
{ (exit 1); exit 1; }; } |
579 |
else |
1353 |
else |
580 |
cat >> confdefs.h <<EOF |
1354 |
cat >>confdefs.h <<_ACEOF |
581 |
#define CONF_FILE "${withval}" |
1355 |
#define CONF_FILE "${withval}" |
582 |
EOF |
1356 |
_ACEOF |
583 |
|
1357 |
|
584 |
fi |
1358 |
fi |
585 |
|
1359 |
|
586 |
else |
1360 |
else |
587 |
|
|
|
588 |
cat >> confdefs.h <<EOF |
589 |
#define CONF_FILE "/etc/tsocks.conf" |
590 |
EOF |
591 |
|
1361 |
|
|
|
1362 |
cat >>confdefs.h <<_ACEOF |
1363 |
#define CONF_FILE "/etc/tsocks.conf" |
1364 |
_ACEOF |
592 |
|
1365 |
|
593 |
fi |
|
|
594 |
|
1366 |
|
|
|
1367 |
fi; |
595 |
|
1368 |
|
596 |
|
1369 |
|
597 |
ac_aux_dir= |
1370 |
ac_aux_dir= |
598 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1371 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
599 |
if test -f $ac_dir/install-sh; then |
1372 |
if test -f $ac_dir/install-sh; then |
Lines 602-856
Link Here
|
602 |
break |
1375 |
break |
603 |
elif test -f $ac_dir/install.sh; then |
1376 |
elif test -f $ac_dir/install.sh; then |
604 |
ac_aux_dir=$ac_dir |
1377 |
ac_aux_dir=$ac_dir |
605 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
1378 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
606 |
break |
1379 |
break |
|
|
1380 |
elif test -f $ac_dir/shtool; then |
1381 |
ac_aux_dir=$ac_dir |
1382 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
1383 |
break |
607 |
fi |
1384 |
fi |
608 |
done |
1385 |
done |
609 |
if test -z "$ac_aux_dir"; then |
1386 |
if test -z "$ac_aux_dir"; then |
610 |
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
1387 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
611 |
fi |
1388 |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
612 |
ac_config_guess=$ac_aux_dir/config.guess |
1389 |
{ (exit 1); exit 1; }; } |
613 |
ac_config_sub=$ac_aux_dir/config.sub |
1390 |
fi |
614 |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
1391 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
615 |
|
1392 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
|
|
1393 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
616 |
|
1394 |
|
617 |
# Make sure we can run config.sub. |
1395 |
# Make sure we can run config.sub. |
618 |
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
1396 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
619 |
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
1397 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
620 |
fi |
1398 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
621 |
|
1399 |
{ (exit 1); exit 1; }; } |
622 |
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
1400 |
|
623 |
echo "configure:624: checking host system type" >&5 |
1401 |
echo "$as_me:$LINENO: checking build system type" >&5 |
624 |
|
1402 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
625 |
host_alias=$host |
1403 |
if test "${ac_cv_build+set}" = set; then |
626 |
case "$host_alias" in |
1404 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
627 |
NONE) |
1405 |
else |
628 |
case $nonopt in |
1406 |
ac_cv_build_alias=$build_alias |
629 |
NONE) |
1407 |
test -z "$ac_cv_build_alias" && |
630 |
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
1408 |
ac_cv_build_alias=`$ac_config_guess` |
631 |
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
1409 |
test -z "$ac_cv_build_alias" && |
632 |
fi ;; |
1410 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
633 |
*) host_alias=$nonopt ;; |
1411 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
634 |
esac ;; |
1412 |
{ (exit 1); exit 1; }; } |
635 |
esac |
1413 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
1414 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1415 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
1416 |
{ (exit 1); exit 1; }; } |
1417 |
|
1418 |
fi |
1419 |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1420 |
echo "${ECHO_T}$ac_cv_build" >&6 |
1421 |
build=$ac_cv_build |
1422 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1423 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1424 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1425 |
|
1426 |
|
1427 |
echo "$as_me:$LINENO: checking host system type" >&5 |
1428 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1429 |
if test "${ac_cv_host+set}" = set; then |
1430 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1431 |
else |
1432 |
ac_cv_host_alias=$host_alias |
1433 |
test -z "$ac_cv_host_alias" && |
1434 |
ac_cv_host_alias=$ac_cv_build_alias |
1435 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
1436 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1437 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1438 |
{ (exit 1); exit 1; }; } |
1439 |
|
1440 |
fi |
1441 |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1442 |
echo "${ECHO_T}$ac_cv_host" >&6 |
1443 |
host=$ac_cv_host |
1444 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1445 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1446 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
636 |
|
1447 |
|
637 |
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
|
|
638 |
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
639 |
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
640 |
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
641 |
echo "$ac_t""$host" 1>&6 |
642 |
|
1448 |
|
643 |
|
1449 |
|
644 |
# Extract the first word of "gcc", so it can be a program name with args. |
1450 |
ac_ext=c |
645 |
set dummy gcc; ac_word=$2 |
1451 |
ac_cpp='$CPP $CPPFLAGS' |
646 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1452 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
647 |
echo "configure:648: checking for $ac_word" >&5 |
1453 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
648 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1454 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
649 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1455 |
if test -n "$ac_tool_prefix"; then |
|
|
1456 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1457 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1458 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1459 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1460 |
if test "${ac_cv_prog_CC+set}" = set; then |
1461 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
650 |
else |
1462 |
else |
651 |
if test -n "$CC"; then |
1463 |
if test -n "$CC"; then |
652 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1464 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
653 |
else |
1465 |
else |
654 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1466 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
655 |
ac_dummy="$PATH" |
1467 |
for as_dir in $PATH |
656 |
for ac_dir in $ac_dummy; do |
1468 |
do |
657 |
test -z "$ac_dir" && ac_dir=. |
1469 |
IFS=$as_save_IFS |
658 |
if test -f $ac_dir/$ac_word; then |
1470 |
test -z "$as_dir" && as_dir=. |
659 |
ac_cv_prog_CC="gcc" |
1471 |
for ac_exec_ext in '' $ac_executable_extensions; do |
660 |
break |
1472 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
661 |
fi |
1473 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
662 |
done |
1474 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
663 |
IFS="$ac_save_ifs" |
1475 |
break 2 |
|
|
1476 |
fi |
1477 |
done |
1478 |
done |
1479 |
|
1480 |
fi |
1481 |
fi |
1482 |
CC=$ac_cv_prog_CC |
1483 |
if test -n "$CC"; then |
1484 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1485 |
echo "${ECHO_T}$CC" >&6 |
1486 |
else |
1487 |
echo "$as_me:$LINENO: result: no" >&5 |
1488 |
echo "${ECHO_T}no" >&6 |
1489 |
fi |
1490 |
|
1491 |
fi |
1492 |
if test -z "$ac_cv_prog_CC"; then |
1493 |
ac_ct_CC=$CC |
1494 |
# Extract the first word of "gcc", so it can be a program name with args. |
1495 |
set dummy gcc; ac_word=$2 |
1496 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1497 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1498 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1499 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1500 |
else |
1501 |
if test -n "$ac_ct_CC"; then |
1502 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1503 |
else |
1504 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1505 |
for as_dir in $PATH |
1506 |
do |
1507 |
IFS=$as_save_IFS |
1508 |
test -z "$as_dir" && as_dir=. |
1509 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1510 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1511 |
ac_cv_prog_ac_ct_CC="gcc" |
1512 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1513 |
break 2 |
1514 |
fi |
1515 |
done |
1516 |
done |
1517 |
|
1518 |
fi |
1519 |
fi |
1520 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1521 |
if test -n "$ac_ct_CC"; then |
1522 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1523 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1524 |
else |
1525 |
echo "$as_me:$LINENO: result: no" >&5 |
1526 |
echo "${ECHO_T}no" >&6 |
1527 |
fi |
1528 |
|
1529 |
CC=$ac_ct_CC |
1530 |
else |
1531 |
CC="$ac_cv_prog_CC" |
1532 |
fi |
1533 |
|
1534 |
if test -z "$CC"; then |
1535 |
if test -n "$ac_tool_prefix"; then |
1536 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1537 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1538 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1539 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1540 |
if test "${ac_cv_prog_CC+set}" = set; then |
1541 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1542 |
else |
1543 |
if test -n "$CC"; then |
1544 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1545 |
else |
1546 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1547 |
for as_dir in $PATH |
1548 |
do |
1549 |
IFS=$as_save_IFS |
1550 |
test -z "$as_dir" && as_dir=. |
1551 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1552 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1553 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
1554 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1555 |
break 2 |
1556 |
fi |
1557 |
done |
1558 |
done |
1559 |
|
664 |
fi |
1560 |
fi |
665 |
fi |
1561 |
fi |
666 |
CC="$ac_cv_prog_CC" |
1562 |
CC=$ac_cv_prog_CC |
667 |
if test -n "$CC"; then |
1563 |
if test -n "$CC"; then |
668 |
echo "$ac_t""$CC" 1>&6 |
1564 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
1565 |
echo "${ECHO_T}$CC" >&6 |
1566 |
else |
1567 |
echo "$as_me:$LINENO: result: no" >&5 |
1568 |
echo "${ECHO_T}no" >&6 |
1569 |
fi |
1570 |
|
1571 |
fi |
1572 |
if test -z "$ac_cv_prog_CC"; then |
1573 |
ac_ct_CC=$CC |
1574 |
# Extract the first word of "cc", so it can be a program name with args. |
1575 |
set dummy cc; ac_word=$2 |
1576 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1577 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1578 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1579 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1580 |
else |
1581 |
if test -n "$ac_ct_CC"; then |
1582 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1583 |
else |
1584 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1585 |
for as_dir in $PATH |
1586 |
do |
1587 |
IFS=$as_save_IFS |
1588 |
test -z "$as_dir" && as_dir=. |
1589 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1590 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1591 |
ac_cv_prog_ac_ct_CC="cc" |
1592 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1593 |
break 2 |
1594 |
fi |
1595 |
done |
1596 |
done |
1597 |
|
1598 |
fi |
1599 |
fi |
1600 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1601 |
if test -n "$ac_ct_CC"; then |
1602 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1603 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1604 |
else |
1605 |
echo "$as_me:$LINENO: result: no" >&5 |
1606 |
echo "${ECHO_T}no" >&6 |
1607 |
fi |
1608 |
|
1609 |
CC=$ac_ct_CC |
669 |
else |
1610 |
else |
670 |
echo "$ac_t""no" 1>&6 |
1611 |
CC="$ac_cv_prog_CC" |
671 |
fi |
1612 |
fi |
672 |
|
1613 |
|
|
|
1614 |
fi |
673 |
if test -z "$CC"; then |
1615 |
if test -z "$CC"; then |
674 |
# Extract the first word of "cc", so it can be a program name with args. |
1616 |
# Extract the first word of "cc", so it can be a program name with args. |
675 |
set dummy cc; ac_word=$2 |
1617 |
set dummy cc; ac_word=$2 |
676 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1618 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
677 |
echo "configure:678: checking for $ac_word" >&5 |
1619 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
678 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1620 |
if test "${ac_cv_prog_CC+set}" = set; then |
679 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1621 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
680 |
else |
1622 |
else |
681 |
if test -n "$CC"; then |
1623 |
if test -n "$CC"; then |
682 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1624 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
683 |
else |
1625 |
else |
684 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
685 |
ac_prog_rejected=no |
1626 |
ac_prog_rejected=no |
686 |
ac_dummy="$PATH" |
1627 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
687 |
for ac_dir in $ac_dummy; do |
1628 |
for as_dir in $PATH |
688 |
test -z "$ac_dir" && ac_dir=. |
1629 |
do |
689 |
if test -f $ac_dir/$ac_word; then |
1630 |
IFS=$as_save_IFS |
690 |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
1631 |
test -z "$as_dir" && as_dir=. |
691 |
ac_prog_rejected=yes |
1632 |
for ac_exec_ext in '' $ac_executable_extensions; do |
692 |
continue |
1633 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
693 |
fi |
1634 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
694 |
ac_cv_prog_CC="cc" |
1635 |
ac_prog_rejected=yes |
695 |
break |
1636 |
continue |
696 |
fi |
1637 |
fi |
697 |
done |
1638 |
ac_cv_prog_CC="cc" |
698 |
IFS="$ac_save_ifs" |
1639 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
1640 |
break 2 |
1641 |
fi |
1642 |
done |
1643 |
done |
1644 |
|
699 |
if test $ac_prog_rejected = yes; then |
1645 |
if test $ac_prog_rejected = yes; then |
700 |
# We found a bogon in the path, so make sure we never use it. |
1646 |
# We found a bogon in the path, so make sure we never use it. |
701 |
set dummy $ac_cv_prog_CC |
1647 |
set dummy $ac_cv_prog_CC |
702 |
shift |
1648 |
shift |
703 |
if test $# -gt 0; then |
1649 |
if test $# != 0; then |
704 |
# We chose a different compiler from the bogus one. |
1650 |
# We chose a different compiler from the bogus one. |
705 |
# However, it has the same basename, so the bogon will be chosen |
1651 |
# However, it has the same basename, so the bogon will be chosen |
706 |
# first if we set CC to just the basename; use the full file name. |
1652 |
# first if we set CC to just the basename; use the full file name. |
707 |
shift |
1653 |
shift |
708 |
set dummy "$ac_dir/$ac_word" "$@" |
1654 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
709 |
shift |
|
|
710 |
ac_cv_prog_CC="$@" |
711 |
fi |
1655 |
fi |
712 |
fi |
1656 |
fi |
713 |
fi |
1657 |
fi |
714 |
fi |
1658 |
fi |
715 |
CC="$ac_cv_prog_CC" |
1659 |
CC=$ac_cv_prog_CC |
716 |
if test -n "$CC"; then |
1660 |
if test -n "$CC"; then |
717 |
echo "$ac_t""$CC" 1>&6 |
1661 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
1662 |
echo "${ECHO_T}$CC" >&6 |
718 |
else |
1663 |
else |
719 |
echo "$ac_t""no" 1>&6 |
1664 |
echo "$as_me:$LINENO: result: no" >&5 |
|
|
1665 |
echo "${ECHO_T}no" >&6 |
720 |
fi |
1666 |
fi |
721 |
|
1667 |
|
722 |
if test -z "$CC"; then |
1668 |
fi |
723 |
case "`uname -s`" in |
1669 |
if test -z "$CC"; then |
724 |
*win32* | *WIN32*) |
1670 |
if test -n "$ac_tool_prefix"; then |
725 |
# Extract the first word of "cl", so it can be a program name with args. |
1671 |
for ac_prog in cl |
726 |
set dummy cl; ac_word=$2 |
1672 |
do |
727 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1673 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
728 |
echo "configure:729: checking for $ac_word" >&5 |
1674 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
729 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1675 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
730 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1676 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
1677 |
if test "${ac_cv_prog_CC+set}" = set; then |
1678 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
731 |
else |
1679 |
else |
732 |
if test -n "$CC"; then |
1680 |
if test -n "$CC"; then |
733 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1681 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
734 |
else |
1682 |
else |
735 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1683 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
736 |
ac_dummy="$PATH" |
1684 |
for as_dir in $PATH |
737 |
for ac_dir in $ac_dummy; do |
1685 |
do |
738 |
test -z "$ac_dir" && ac_dir=. |
1686 |
IFS=$as_save_IFS |
739 |
if test -f $ac_dir/$ac_word; then |
1687 |
test -z "$as_dir" && as_dir=. |
740 |
ac_cv_prog_CC="cl" |
1688 |
for ac_exec_ext in '' $ac_executable_extensions; do |
741 |
break |
1689 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
742 |
fi |
1690 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
743 |
done |
1691 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
744 |
IFS="$ac_save_ifs" |
1692 |
break 2 |
|
|
1693 |
fi |
1694 |
done |
1695 |
done |
1696 |
|
745 |
fi |
1697 |
fi |
746 |
fi |
1698 |
fi |
747 |
CC="$ac_cv_prog_CC" |
1699 |
CC=$ac_cv_prog_CC |
748 |
if test -n "$CC"; then |
1700 |
if test -n "$CC"; then |
749 |
echo "$ac_t""$CC" 1>&6 |
1701 |
echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
1702 |
echo "${ECHO_T}$CC" >&6 |
750 |
else |
1703 |
else |
751 |
echo "$ac_t""no" 1>&6 |
1704 |
echo "$as_me:$LINENO: result: no" >&5 |
|
|
1705 |
echo "${ECHO_T}no" >&6 |
752 |
fi |
1706 |
fi |
753 |
;; |
1707 |
|
754 |
esac |
1708 |
test -n "$CC" && break |
|
|
1709 |
done |
1710 |
fi |
1711 |
if test -z "$CC"; then |
1712 |
ac_ct_CC=$CC |
1713 |
for ac_prog in cl |
1714 |
do |
1715 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1716 |
set dummy $ac_prog; ac_word=$2 |
1717 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1718 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1719 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1720 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1721 |
else |
1722 |
if test -n "$ac_ct_CC"; then |
1723 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1724 |
else |
1725 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1726 |
for as_dir in $PATH |
1727 |
do |
1728 |
IFS=$as_save_IFS |
1729 |
test -z "$as_dir" && as_dir=. |
1730 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1731 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1732 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
1733 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1734 |
break 2 |
755 |
fi |
1735 |
fi |
756 |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1736 |
done |
|
|
1737 |
done |
1738 |
|
1739 |
fi |
1740 |
fi |
1741 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1742 |
if test -n "$ac_ct_CC"; then |
1743 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1744 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1745 |
else |
1746 |
echo "$as_me:$LINENO: result: no" >&5 |
1747 |
echo "${ECHO_T}no" >&6 |
757 |
fi |
1748 |
fi |
758 |
|
1749 |
|
759 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1750 |
test -n "$ac_ct_CC" && break |
760 |
echo "configure:761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1751 |
done |
761 |
|
1752 |
|
762 |
ac_ext=c |
1753 |
CC=$ac_ct_CC |
763 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1754 |
fi |
764 |
ac_cpp='$CPP $CPPFLAGS' |
|
|
765 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
766 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
767 |
cross_compiling=$ac_cv_prog_cc_cross |
768 |
|
1755 |
|
769 |
cat > conftest.$ac_ext << EOF |
1756 |
fi |
770 |
|
1757 |
|
771 |
#line 772 "configure" |
|
|
772 |
#include "confdefs.h" |
773 |
|
1758 |
|
774 |
main(){return(0);} |
1759 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
775 |
EOF |
1760 |
See \`config.log' for more details." >&5 |
776 |
if { (eval echo configure:777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1761 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
777 |
ac_cv_prog_cc_works=yes |
1762 |
See \`config.log' for more details." >&2;} |
778 |
# If we can't run a trivial program, we are probably using a cross compiler. |
1763 |
{ (exit 1); exit 1; }; } |
779 |
if (./conftest; exit) 2>/dev/null; then |
1764 |
|
780 |
ac_cv_prog_cc_cross=no |
1765 |
# Provide some information about the compiler. |
781 |
else |
1766 |
echo "$as_me:$LINENO:" \ |
782 |
ac_cv_prog_cc_cross=yes |
1767 |
"checking for C compiler version" >&5 |
783 |
fi |
1768 |
ac_compiler=`set X $ac_compile; echo $2` |
|
|
1769 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1770 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
1771 |
ac_status=$? |
1772 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1773 |
(exit $ac_status); } |
1774 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1775 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
1776 |
ac_status=$? |
1777 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1778 |
(exit $ac_status); } |
1779 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1780 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
1781 |
ac_status=$? |
1782 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1783 |
(exit $ac_status); } |
1784 |
|
1785 |
cat >conftest.$ac_ext <<_ACEOF |
1786 |
/* confdefs.h. */ |
1787 |
_ACEOF |
1788 |
cat confdefs.h >>conftest.$ac_ext |
1789 |
cat >>conftest.$ac_ext <<_ACEOF |
1790 |
/* end confdefs.h. */ |
1791 |
|
1792 |
int |
1793 |
main () |
1794 |
{ |
1795 |
|
1796 |
; |
1797 |
return 0; |
1798 |
} |
1799 |
_ACEOF |
1800 |
ac_clean_files_save=$ac_clean_files |
1801 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1802 |
# Try to create an executable without -o first, disregard a.out. |
1803 |
# It will help us diagnose broken compilers, and finding out an intuition |
1804 |
# of exeext. |
1805 |
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1806 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
1807 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1808 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1809 |
(eval $ac_link_default) 2>&5 |
1810 |
ac_status=$? |
1811 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1812 |
(exit $ac_status); }; then |
1813 |
# Find the output, starting from the most likely. This scheme is |
1814 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
1815 |
# resort. |
1816 |
|
1817 |
# Be careful to initialize this variable, since it used to be cached. |
1818 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
1819 |
ac_cv_exeext= |
1820 |
# b.out is created by i960 compilers. |
1821 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
1822 |
do |
1823 |
test -f "$ac_file" || continue |
1824 |
case $ac_file in |
1825 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1826 |
;; |
1827 |
conftest.$ac_ext ) |
1828 |
# This is the source file. |
1829 |
;; |
1830 |
[ab].out ) |
1831 |
# We found the default executable, but exeext='' is most |
1832 |
# certainly right. |
1833 |
break;; |
1834 |
*.* ) |
1835 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1836 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
1837 |
# but it would be cool to find out if it's true. Does anybody |
1838 |
# maintain Libtool? --akim. |
1839 |
export ac_cv_exeext |
1840 |
break;; |
1841 |
* ) |
1842 |
break;; |
1843 |
esac |
1844 |
done |
784 |
else |
1845 |
else |
785 |
echo "configure: failed program was:" >&5 |
1846 |
echo "$as_me: failed program was:" >&5 |
786 |
cat conftest.$ac_ext >&5 |
1847 |
sed 's/^/| /' conftest.$ac_ext >&5 |
787 |
ac_cv_prog_cc_works=no |
|
|
788 |
fi |
789 |
rm -fr conftest* |
790 |
ac_ext=c |
791 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
792 |
ac_cpp='$CPP $CPPFLAGS' |
793 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
794 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
795 |
cross_compiling=$ac_cv_prog_cc_cross |
796 |
|
1848 |
|
797 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1849 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
798 |
if test $ac_cv_prog_cc_works = no; then |
1850 |
See \`config.log' for more details." >&5 |
799 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1851 |
echo "$as_me: error: C compiler cannot create executables |
|
|
1852 |
See \`config.log' for more details." >&2;} |
1853 |
{ (exit 77); exit 77; }; } |
1854 |
fi |
1855 |
|
1856 |
ac_exeext=$ac_cv_exeext |
1857 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
1858 |
echo "${ECHO_T}$ac_file" >&6 |
1859 |
|
1860 |
# Check the compiler produces executables we can run. If not, either |
1861 |
# the compiler is broken, or we cross compile. |
1862 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1863 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1864 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1865 |
# If not cross compiling, check that we can run a simple program. |
1866 |
if test "$cross_compiling" != yes; then |
1867 |
if { ac_try='./$ac_file' |
1868 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1869 |
(eval $ac_try) 2>&5 |
1870 |
ac_status=$? |
1871 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1872 |
(exit $ac_status); }; }; then |
1873 |
cross_compiling=no |
1874 |
else |
1875 |
if test "$cross_compiling" = maybe; then |
1876 |
cross_compiling=yes |
1877 |
else |
1878 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
1879 |
If you meant to cross compile, use \`--host'. |
1880 |
See \`config.log' for more details." >&5 |
1881 |
echo "$as_me: error: cannot run C compiled programs. |
1882 |
If you meant to cross compile, use \`--host'. |
1883 |
See \`config.log' for more details." >&2;} |
1884 |
{ (exit 1); exit 1; }; } |
1885 |
fi |
1886 |
fi |
800 |
fi |
1887 |
fi |
801 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1888 |
echo "$as_me:$LINENO: result: yes" >&5 |
802 |
echo "configure:803: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1889 |
echo "${ECHO_T}yes" >&6 |
803 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
|
|
804 |
cross_compiling=$ac_cv_prog_cc_cross |
805 |
|
1890 |
|
806 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1891 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
807 |
echo "configure:808: checking whether we are using GNU C" >&5 |
1892 |
ac_clean_files=$ac_clean_files_save |
808 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1893 |
# Check the compiler produces executables we can run. If not, either |
809 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1894 |
# the compiler is broken, or we cross compile. |
|
|
1895 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1896 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
1897 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
1898 |
echo "${ECHO_T}$cross_compiling" >&6 |
1899 |
|
1900 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1901 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
1902 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1903 |
(eval $ac_link) 2>&5 |
1904 |
ac_status=$? |
1905 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1906 |
(exit $ac_status); }; then |
1907 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
1908 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
1909 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
1910 |
# `rm'. |
1911 |
for ac_file in conftest.exe conftest conftest.*; do |
1912 |
test -f "$ac_file" || continue |
1913 |
case $ac_file in |
1914 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
1915 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1916 |
export ac_cv_exeext |
1917 |
break;; |
1918 |
* ) break;; |
1919 |
esac |
1920 |
done |
810 |
else |
1921 |
else |
811 |
cat > conftest.c <<EOF |
1922 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
812 |
#ifdef __GNUC__ |
1923 |
See \`config.log' for more details." >&5 |
813 |
yes; |
1924 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
814 |
#endif |
1925 |
See \`config.log' for more details." >&2;} |
815 |
EOF |
1926 |
{ (exit 1); exit 1; }; } |
816 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1927 |
fi |
817 |
ac_cv_prog_gcc=yes |
1928 |
|
|
|
1929 |
rm -f conftest$ac_cv_exeext |
1930 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1931 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
1932 |
|
1933 |
rm -f conftest.$ac_ext |
1934 |
EXEEXT=$ac_cv_exeext |
1935 |
ac_exeext=$EXEEXT |
1936 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1937 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
1938 |
if test "${ac_cv_objext+set}" = set; then |
1939 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1940 |
else |
1941 |
cat >conftest.$ac_ext <<_ACEOF |
1942 |
/* confdefs.h. */ |
1943 |
_ACEOF |
1944 |
cat confdefs.h >>conftest.$ac_ext |
1945 |
cat >>conftest.$ac_ext <<_ACEOF |
1946 |
/* end confdefs.h. */ |
1947 |
|
1948 |
int |
1949 |
main () |
1950 |
{ |
1951 |
|
1952 |
; |
1953 |
return 0; |
1954 |
} |
1955 |
_ACEOF |
1956 |
rm -f conftest.o conftest.obj |
1957 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1958 |
(eval $ac_compile) 2>&5 |
1959 |
ac_status=$? |
1960 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1961 |
(exit $ac_status); }; then |
1962 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
1963 |
case $ac_file in |
1964 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
1965 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1966 |
break;; |
1967 |
esac |
1968 |
done |
818 |
else |
1969 |
else |
819 |
ac_cv_prog_gcc=no |
1970 |
echo "$as_me: failed program was:" >&5 |
820 |
fi |
1971 |
sed 's/^/| /' conftest.$ac_ext >&5 |
821 |
fi |
|
|
822 |
|
1972 |
|
823 |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1973 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
824 |
|
1974 |
See \`config.log' for more details." >&5 |
825 |
if test $ac_cv_prog_gcc = yes; then |
1975 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
826 |
GCC=yes |
1976 |
See \`config.log' for more details." >&2;} |
827 |
else |
1977 |
{ (exit 1); exit 1; }; } |
828 |
GCC= |
1978 |
fi |
829 |
fi |
1979 |
|
|
|
1980 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1981 |
fi |
1982 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1983 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
1984 |
OBJEXT=$ac_cv_objext |
1985 |
ac_objext=$OBJEXT |
1986 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1987 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1988 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1989 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1990 |
else |
1991 |
cat >conftest.$ac_ext <<_ACEOF |
1992 |
/* confdefs.h. */ |
1993 |
_ACEOF |
1994 |
cat confdefs.h >>conftest.$ac_ext |
1995 |
cat >>conftest.$ac_ext <<_ACEOF |
1996 |
/* end confdefs.h. */ |
1997 |
|
1998 |
int |
1999 |
main () |
2000 |
{ |
2001 |
#ifndef __GNUC__ |
2002 |
choke me |
2003 |
#endif |
830 |
|
2004 |
|
831 |
ac_test_CFLAGS="${CFLAGS+set}" |
2005 |
; |
832 |
ac_save_CFLAGS="$CFLAGS" |
2006 |
return 0; |
833 |
CFLAGS= |
2007 |
} |
834 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
2008 |
_ACEOF |
835 |
echo "configure:836: checking whether ${CC-cc} accepts -g" >&5 |
2009 |
rm -f conftest.$ac_objext |
836 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
2010 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
837 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2011 |
(eval $ac_compile) 2>conftest.er1 |
838 |
else |
2012 |
ac_status=$? |
839 |
echo 'void f(){}' > conftest.c |
2013 |
grep -v '^ *+' conftest.er1 >conftest.err |
840 |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
2014 |
rm -f conftest.er1 |
|
|
2015 |
cat conftest.err >&5 |
2016 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2017 |
(exit $ac_status); } && |
2018 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2019 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2020 |
(eval $ac_try) 2>&5 |
2021 |
ac_status=$? |
2022 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2023 |
(exit $ac_status); }; } && |
2024 |
{ ac_try='test -s conftest.$ac_objext' |
2025 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2026 |
(eval $ac_try) 2>&5 |
2027 |
ac_status=$? |
2028 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2029 |
(exit $ac_status); }; }; then |
2030 |
ac_compiler_gnu=yes |
2031 |
else |
2032 |
echo "$as_me: failed program was:" >&5 |
2033 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2034 |
|
2035 |
ac_compiler_gnu=no |
2036 |
fi |
2037 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2038 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2039 |
|
2040 |
fi |
2041 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2042 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2043 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2044 |
ac_test_CFLAGS=${CFLAGS+set} |
2045 |
ac_save_CFLAGS=$CFLAGS |
2046 |
CFLAGS="-g" |
2047 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2048 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2049 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2050 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2051 |
else |
2052 |
cat >conftest.$ac_ext <<_ACEOF |
2053 |
/* confdefs.h. */ |
2054 |
_ACEOF |
2055 |
cat confdefs.h >>conftest.$ac_ext |
2056 |
cat >>conftest.$ac_ext <<_ACEOF |
2057 |
/* end confdefs.h. */ |
2058 |
|
2059 |
int |
2060 |
main () |
2061 |
{ |
2062 |
|
2063 |
; |
2064 |
return 0; |
2065 |
} |
2066 |
_ACEOF |
2067 |
rm -f conftest.$ac_objext |
2068 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2069 |
(eval $ac_compile) 2>conftest.er1 |
2070 |
ac_status=$? |
2071 |
grep -v '^ *+' conftest.er1 >conftest.err |
2072 |
rm -f conftest.er1 |
2073 |
cat conftest.err >&5 |
2074 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2075 |
(exit $ac_status); } && |
2076 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2077 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2078 |
(eval $ac_try) 2>&5 |
2079 |
ac_status=$? |
2080 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2081 |
(exit $ac_status); }; } && |
2082 |
{ ac_try='test -s conftest.$ac_objext' |
2083 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2084 |
(eval $ac_try) 2>&5 |
2085 |
ac_status=$? |
2086 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2087 |
(exit $ac_status); }; }; then |
841 |
ac_cv_prog_cc_g=yes |
2088 |
ac_cv_prog_cc_g=yes |
842 |
else |
2089 |
else |
843 |
ac_cv_prog_cc_g=no |
2090 |
echo "$as_me: failed program was:" >&5 |
844 |
fi |
2091 |
sed 's/^/| /' conftest.$ac_ext >&5 |
845 |
rm -f conftest* |
|
|
846 |
|
2092 |
|
|
|
2093 |
ac_cv_prog_cc_g=no |
847 |
fi |
2094 |
fi |
848 |
|
2095 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
849 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
2096 |
fi |
|
|
2097 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2098 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
850 |
if test "$ac_test_CFLAGS" = set; then |
2099 |
if test "$ac_test_CFLAGS" = set; then |
851 |
CFLAGS="$ac_save_CFLAGS" |
2100 |
CFLAGS=$ac_save_CFLAGS |
852 |
elif test $ac_cv_prog_cc_g = yes; then |
2101 |
elif test $ac_cv_prog_cc_g = yes; then |
853 |
if test "$GCC" = yes; then |
2102 |
if test "$GCC" = yes; then |
854 |
CFLAGS="-g -O2" |
2103 |
CFLAGS="-g -O2" |
855 |
else |
2104 |
else |
856 |
CFLAGS="-g" |
2105 |
CFLAGS="-g" |
Lines 860-2633
Link Here
|
860 |
CFLAGS="-O2" |
2109 |
CFLAGS="-O2" |
861 |
else |
2110 |
else |
862 |
CFLAGS= |
2111 |
CFLAGS= |
863 |
fi |
2112 |
fi |
864 |
fi |
2113 |
fi |
|
|
2114 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2115 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2116 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2117 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2118 |
else |
2119 |
ac_cv_prog_cc_stdc=no |
2120 |
ac_save_CC=$CC |
2121 |
cat >conftest.$ac_ext <<_ACEOF |
2122 |
/* confdefs.h. */ |
2123 |
_ACEOF |
2124 |
cat confdefs.h >>conftest.$ac_ext |
2125 |
cat >>conftest.$ac_ext <<_ACEOF |
2126 |
/* end confdefs.h. */ |
2127 |
#include <stdarg.h> |
2128 |
#include <stdio.h> |
2129 |
#include <sys/types.h> |
2130 |
#include <sys/stat.h> |
2131 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2132 |
struct buf { int x; }; |
2133 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2134 |
static char *e (p, i) |
2135 |
char **p; |
2136 |
int i; |
2137 |
{ |
2138 |
return p[i]; |
2139 |
} |
2140 |
static char *f (char * (*g) (char **, int), char **p, ...) |
2141 |
{ |
2142 |
char *s; |
2143 |
va_list v; |
2144 |
va_start (v,p); |
2145 |
s = g (p, va_arg (v,int)); |
2146 |
va_end (v); |
2147 |
return s; |
2148 |
} |
2149 |
|
2150 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2151 |
function prototypes and stuff, but not '\xHH' hex character constants. |
2152 |
These don't provoke an error unfortunately, instead are silently treated |
2153 |
as 'x'. The following induces an error, until -std1 is added to get |
2154 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2155 |
array size at least. It's necessary to write '\x00'==0 to get something |
2156 |
that's true only with -std1. */ |
2157 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2158 |
|
2159 |
int test (int i, double x); |
2160 |
struct s1 {int (*f) (int a);}; |
2161 |
struct s2 {int (*f) (double a);}; |
2162 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2163 |
int argc; |
2164 |
char **argv; |
2165 |
int |
2166 |
main () |
2167 |
{ |
2168 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2169 |
; |
2170 |
return 0; |
2171 |
} |
2172 |
_ACEOF |
2173 |
# Don't try gcc -ansi; that turns off useful extensions and |
2174 |
# breaks some systems' header files. |
2175 |
# AIX -qlanglvl=ansi |
2176 |
# Ultrix and OSF/1 -std1 |
2177 |
# HP-UX 10.20 and later -Ae |
2178 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
2179 |
# SVR4 -Xc -D__EXTENSIONS__ |
2180 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2181 |
do |
2182 |
CC="$ac_save_CC $ac_arg" |
2183 |
rm -f conftest.$ac_objext |
2184 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2185 |
(eval $ac_compile) 2>conftest.er1 |
2186 |
ac_status=$? |
2187 |
grep -v '^ *+' conftest.er1 >conftest.err |
2188 |
rm -f conftest.er1 |
2189 |
cat conftest.err >&5 |
2190 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2191 |
(exit $ac_status); } && |
2192 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2193 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2194 |
(eval $ac_try) 2>&5 |
2195 |
ac_status=$? |
2196 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2197 |
(exit $ac_status); }; } && |
2198 |
{ ac_try='test -s conftest.$ac_objext' |
2199 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2200 |
(eval $ac_try) 2>&5 |
2201 |
ac_status=$? |
2202 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2203 |
(exit $ac_status); }; }; then |
2204 |
ac_cv_prog_cc_stdc=$ac_arg |
2205 |
break |
2206 |
else |
2207 |
echo "$as_me: failed program was:" >&5 |
2208 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2209 |
|
2210 |
fi |
2211 |
rm -f conftest.err conftest.$ac_objext |
2212 |
done |
2213 |
rm -f conftest.$ac_ext conftest.$ac_objext |
2214 |
CC=$ac_save_CC |
2215 |
|
2216 |
fi |
2217 |
|
2218 |
case "x$ac_cv_prog_cc_stdc" in |
2219 |
x|xno) |
2220 |
echo "$as_me:$LINENO: result: none needed" >&5 |
2221 |
echo "${ECHO_T}none needed" >&6 ;; |
2222 |
*) |
2223 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2224 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2225 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
2226 |
esac |
2227 |
|
2228 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
2229 |
# in C++ we need to declare it. In case someone uses the same compiler |
2230 |
# for both compiling C and C++ we need to have the C++ compiler decide |
2231 |
# the declaration of exit, since it's the most demanding environment. |
2232 |
cat >conftest.$ac_ext <<_ACEOF |
2233 |
#ifndef __cplusplus |
2234 |
choke me |
2235 |
#endif |
2236 |
_ACEOF |
2237 |
rm -f conftest.$ac_objext |
2238 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2239 |
(eval $ac_compile) 2>conftest.er1 |
2240 |
ac_status=$? |
2241 |
grep -v '^ *+' conftest.er1 >conftest.err |
2242 |
rm -f conftest.er1 |
2243 |
cat conftest.err >&5 |
2244 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2245 |
(exit $ac_status); } && |
2246 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2247 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2248 |
(eval $ac_try) 2>&5 |
2249 |
ac_status=$? |
2250 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2251 |
(exit $ac_status); }; } && |
2252 |
{ ac_try='test -s conftest.$ac_objext' |
2253 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2254 |
(eval $ac_try) 2>&5 |
2255 |
ac_status=$? |
2256 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2257 |
(exit $ac_status); }; }; then |
2258 |
for ac_declaration in \ |
2259 |
'' \ |
2260 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2261 |
'extern "C" void std::exit (int); using std::exit;' \ |
2262 |
'extern "C" void exit (int) throw ();' \ |
2263 |
'extern "C" void exit (int);' \ |
2264 |
'void exit (int);' |
2265 |
do |
2266 |
cat >conftest.$ac_ext <<_ACEOF |
2267 |
/* confdefs.h. */ |
2268 |
_ACEOF |
2269 |
cat confdefs.h >>conftest.$ac_ext |
2270 |
cat >>conftest.$ac_ext <<_ACEOF |
2271 |
/* end confdefs.h. */ |
2272 |
$ac_declaration |
2273 |
#include <stdlib.h> |
2274 |
int |
2275 |
main () |
2276 |
{ |
2277 |
exit (42); |
2278 |
; |
2279 |
return 0; |
2280 |
} |
2281 |
_ACEOF |
2282 |
rm -f conftest.$ac_objext |
2283 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2284 |
(eval $ac_compile) 2>conftest.er1 |
2285 |
ac_status=$? |
2286 |
grep -v '^ *+' conftest.er1 >conftest.err |
2287 |
rm -f conftest.er1 |
2288 |
cat conftest.err >&5 |
2289 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2290 |
(exit $ac_status); } && |
2291 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2292 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2293 |
(eval $ac_try) 2>&5 |
2294 |
ac_status=$? |
2295 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2296 |
(exit $ac_status); }; } && |
2297 |
{ ac_try='test -s conftest.$ac_objext' |
2298 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2299 |
(eval $ac_try) 2>&5 |
2300 |
ac_status=$? |
2301 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2302 |
(exit $ac_status); }; }; then |
2303 |
: |
2304 |
else |
2305 |
echo "$as_me: failed program was:" >&5 |
2306 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2307 |
|
2308 |
continue |
2309 |
fi |
2310 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2311 |
cat >conftest.$ac_ext <<_ACEOF |
2312 |
/* confdefs.h. */ |
2313 |
_ACEOF |
2314 |
cat confdefs.h >>conftest.$ac_ext |
2315 |
cat >>conftest.$ac_ext <<_ACEOF |
2316 |
/* end confdefs.h. */ |
2317 |
$ac_declaration |
2318 |
int |
2319 |
main () |
2320 |
{ |
2321 |
exit (42); |
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_c_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 |
break |
2348 |
else |
2349 |
echo "$as_me: failed program was:" >&5 |
2350 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2351 |
|
2352 |
fi |
2353 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2354 |
done |
2355 |
rm -f conftest* |
2356 |
if test -n "$ac_declaration"; then |
2357 |
echo '#ifdef __cplusplus' >>confdefs.h |
2358 |
echo $ac_declaration >>confdefs.h |
2359 |
echo '#endif' >>confdefs.h |
2360 |
fi |
2361 |
|
2362 |
else |
2363 |
echo "$as_me: failed program was:" >&5 |
2364 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2365 |
|
2366 |
fi |
2367 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2368 |
ac_ext=c |
2369 |
ac_cpp='$CPP $CPPFLAGS' |
2370 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2371 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2372 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
865 |
|
2373 |
|
866 |
# Find a good install program. We prefer a C program (faster), |
2374 |
# Find a good install program. We prefer a C program (faster), |
867 |
# so one script is as good as another. But avoid the broken or |
2375 |
# so one script is as good as another. But avoid the broken or |
868 |
# incompatible versions: |
2376 |
# incompatible versions: |
869 |
# SysV /etc/install, /usr/sbin/install |
2377 |
# SysV /etc/install, /usr/sbin/install |
870 |
# SunOS /usr/etc/install |
2378 |
# SunOS /usr/etc/install |
871 |
# IRIX /sbin/install |
2379 |
# IRIX /sbin/install |
872 |
# AIX /bin/install |
2380 |
# AIX /bin/install |
|
|
2381 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
873 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2382 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
874 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2383 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
875 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2384 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
|
2385 |
# OS/2's system install, which has a completely different semantic |
876 |
# ./install, which can be erroneously created by make from ./install.sh. |
2386 |
# ./install, which can be erroneously created by make from ./install.sh. |
877 |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2387 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
878 |
echo "configure:879: checking for a BSD compatible install" >&5 |
2388 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
879 |
if test -z "$INSTALL"; then |
2389 |
if test -z "$INSTALL"; then |
880 |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
2390 |
if test "${ac_cv_path_install+set}" = set; then |
881 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2391 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
882 |
else |
2392 |
else |
883 |
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
2393 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
884 |
for ac_dir in $PATH; do |
2394 |
for as_dir in $PATH |
885 |
# Account for people who put trailing slashes in PATH elements. |
2395 |
do |
886 |
case "$ac_dir/" in |
2396 |
IFS=$as_save_IFS |
887 |
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
2397 |
test -z "$as_dir" && as_dir=. |
888 |
*) |
2398 |
# Account for people who put trailing slashes in PATH elements. |
889 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2399 |
case $as_dir/ in |
890 |
# Don't use installbsd from OSF since it installs stuff as root |
2400 |
./ | .// | /cC/* | \ |
891 |
# by default. |
2401 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
892 |
for ac_prog in ginstall scoinst install; do |
2402 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
893 |
if test -f $ac_dir/$ac_prog; then |
2403 |
/usr/ucb/* ) ;; |
|
|
2404 |
*) |
2405 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2406 |
# Don't use installbsd from OSF since it installs stuff as root |
2407 |
# by default. |
2408 |
for ac_prog in ginstall scoinst install; do |
2409 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2410 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
894 |
if test $ac_prog = install && |
2411 |
if test $ac_prog = install && |
895 |
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
2412 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
896 |
# AIX install. It has an incompatible calling convention. |
2413 |
# AIX install. It has an incompatible calling convention. |
897 |
: |
2414 |
: |
|
|
2415 |
elif test $ac_prog = install && |
2416 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2417 |
# program-specific install script used by HP pwplus--don't use. |
2418 |
: |
898 |
else |
2419 |
else |
899 |
ac_cv_path_install="$ac_dir/$ac_prog -c" |
2420 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
900 |
break 2 |
2421 |
break 3 |
901 |
fi |
2422 |
fi |
902 |
fi |
2423 |
fi |
903 |
done |
2424 |
done |
904 |
;; |
2425 |
done |
905 |
esac |
2426 |
;; |
906 |
done |
2427 |
esac |
907 |
IFS="$ac_save_IFS" |
2428 |
done |
|
|
2429 |
|
908 |
|
2430 |
|
909 |
fi |
2431 |
fi |
910 |
if test "${ac_cv_path_install+set}" = set; then |
2432 |
if test "${ac_cv_path_install+set}" = set; then |
911 |
INSTALL="$ac_cv_path_install" |
2433 |
INSTALL=$ac_cv_path_install |
912 |
else |
2434 |
else |
913 |
# As a last resort, use the slow shell script. We don't cache a |
2435 |
# As a last resort, use the slow shell script. We don't cache a |
914 |
# path for INSTALL within a source directory, because that will |
2436 |
# path for INSTALL within a source directory, because that will |
915 |
# break other packages using the cache if that directory is |
2437 |
# break other packages using the cache if that directory is |
916 |
# removed, or if the path is relative. |
2438 |
# removed, or if the path is relative. |
917 |
INSTALL="$ac_install_sh" |
2439 |
INSTALL=$ac_install_sh |
918 |
fi |
2440 |
fi |
919 |
fi |
2441 |
fi |
920 |
echo "$ac_t""$INSTALL" 1>&6 |
2442 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
|
|
2443 |
echo "${ECHO_T}$INSTALL" >&6 |
921 |
|
2444 |
|
922 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2445 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
923 |
# It thinks the first close brace ends the variable substitution. |
2446 |
# It thinks the first close brace ends the variable substitution. |
924 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2447 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
925 |
|
2448 |
|
926 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
2449 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
927 |
|
2450 |
|
928 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2451 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
929 |
|
2452 |
|
930 |
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
2453 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
931 |
echo "configure:932: checking whether ln -s works" >&5 |
2454 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
932 |
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
2455 |
LN_S=$as_ln_s |
933 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2456 |
if test "$LN_S" = "ln -s"; then |
934 |
else |
2457 |
echo "$as_me:$LINENO: result: yes" >&5 |
935 |
rm -f conftestdata |
2458 |
echo "${ECHO_T}yes" >&6 |
936 |
if ln -s X conftestdata 2>/dev/null |
|
|
937 |
then |
938 |
rm -f conftestdata |
939 |
ac_cv_prog_LN_S="ln -s" |
940 |
else |
2459 |
else |
941 |
ac_cv_prog_LN_S=ln |
2460 |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
942 |
fi |
2461 |
echo "${ECHO_T}no, using $LN_S" >&6 |
943 |
fi |
|
|
944 |
LN_S="$ac_cv_prog_LN_S" |
945 |
if test "$ac_cv_prog_LN_S" = "ln -s"; then |
946 |
echo "$ac_t""yes" 1>&6 |
947 |
else |
948 |
echo "$ac_t""no" 1>&6 |
949 |
fi |
2462 |
fi |
950 |
|
2463 |
|
951 |
|
2464 |
|
952 |
echo $ac_n "checking "if the C compiler accepts -Wall"""... $ac_c" 1>&6 |
2465 |
echo "$as_me:$LINENO: checking if the C compiler accepts -Wall" >&5 |
953 |
echo "configure:954: checking "if the C compiler accepts -Wall"" >&5 |
2466 |
echo $ECHO_N "checking if the C compiler accepts -Wall... $ECHO_C" >&6 |
954 |
OLDCFLAGS="$CFLAGS" |
2467 |
OLDCFLAGS="$CFLAGS" |
955 |
CFLAGS="$CFLAGS -Wall" |
2468 |
CFLAGS="$CFLAGS -Wall" |
956 |
cat > conftest.$ac_ext <<EOF |
2469 |
|
957 |
#line 958 "configure" |
2470 |
cat >conftest.$ac_ext <<_ACEOF |
958 |
#include "confdefs.h" |
2471 |
/* confdefs.h. */ |
959 |
|
2472 |
_ACEOF |
960 |
int main() { |
2473 |
cat confdefs.h >>conftest.$ac_ext |
961 |
|
2474 |
cat >>conftest.$ac_ext <<_ACEOF |
962 |
; return 0; } |
2475 |
/* end confdefs.h. */ |
963 |
EOF |
2476 |
|
964 |
if { (eval echo configure:965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2477 |
int |
965 |
rm -rf conftest* |
2478 |
main () |
966 |
echo "$ac_t""yes" 1>&6 |
2479 |
{ |
967 |
else |
2480 |
|
968 |
echo "configure: failed program was:" >&5 |
2481 |
; |
969 |
cat conftest.$ac_ext >&5 |
2482 |
return 0; |
970 |
rm -rf conftest* |
2483 |
} |
971 |
|
2484 |
_ACEOF |
|
|
2485 |
rm -f conftest.$ac_objext |
2486 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2487 |
(eval $ac_compile) 2>conftest.er1 |
2488 |
ac_status=$? |
2489 |
grep -v '^ *+' conftest.er1 >conftest.err |
2490 |
rm -f conftest.er1 |
2491 |
cat conftest.err >&5 |
2492 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2493 |
(exit $ac_status); } && |
2494 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2495 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2496 |
(eval $ac_try) 2>&5 |
2497 |
ac_status=$? |
2498 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2499 |
(exit $ac_status); }; } && |
2500 |
{ ac_try='test -s conftest.$ac_objext' |
2501 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2502 |
(eval $ac_try) 2>&5 |
2503 |
ac_status=$? |
2504 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2505 |
(exit $ac_status); }; }; then |
2506 |
echo "$as_me:$LINENO: result: yes" >&5 |
2507 |
echo "${ECHO_T}yes" >&6 |
2508 |
else |
2509 |
echo "$as_me: failed program was:" >&5 |
2510 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2511 |
|
2512 |
|
972 |
CFLAGS="$OLDCFLAGS" |
2513 |
CFLAGS="$OLDCFLAGS" |
973 |
echo "$ac_t""no" 1>&6 |
2514 |
echo "$as_me:$LINENO: result: no" >&5 |
|
|
2515 |
echo "${ECHO_T}no" >&6 |
974 |
fi |
2516 |
fi |
975 |
rm -f conftest* |
2517 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
976 |
|
2518 |
|
977 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
2519 |
ac_ext=c |
978 |
echo "configure:979: checking how to run the C preprocessor" >&5 |
2520 |
ac_cpp='$CPP $CPPFLAGS' |
|
|
2521 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2522 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2523 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2524 |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2525 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
979 |
# On Suns, sometimes $CPP names a directory. |
2526 |
# On Suns, sometimes $CPP names a directory. |
980 |
if test -n "$CPP" && test -d "$CPP"; then |
2527 |
if test -n "$CPP" && test -d "$CPP"; then |
981 |
CPP= |
2528 |
CPP= |
982 |
fi |
2529 |
fi |
983 |
if test -z "$CPP"; then |
2530 |
if test -z "$CPP"; then |
984 |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
2531 |
if test "${ac_cv_prog_CPP+set}" = set; then |
985 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2532 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
986 |
else |
2533 |
else |
987 |
# This must be in double quotes, not single quotes, because CPP may get |
2534 |
# Double quotes because CPP needs to be expanded |
988 |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
2535 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
989 |
CPP="${CC-cc} -E" |
2536 |
do |
|
|
2537 |
ac_preproc_ok=false |
2538 |
for ac_c_preproc_warn_flag in '' yes |
2539 |
do |
2540 |
# Use a header file that comes with gcc, so configuring glibc |
2541 |
# with a fresh cross-compiler works. |
2542 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2543 |
# <limits.h> exists even on freestanding compilers. |
990 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2544 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
991 |
# not just through cpp. |
2545 |
# not just through cpp. "Syntax error" is here to catch this case. |
992 |
cat > conftest.$ac_ext <<EOF |
2546 |
cat >conftest.$ac_ext <<_ACEOF |
993 |
#line 994 "configure" |
2547 |
/* confdefs.h. */ |
994 |
#include "confdefs.h" |
2548 |
_ACEOF |
995 |
#include <assert.h> |
2549 |
cat confdefs.h >>conftest.$ac_ext |
996 |
Syntax Error |
2550 |
cat >>conftest.$ac_ext <<_ACEOF |
997 |
EOF |
2551 |
/* end confdefs.h. */ |
998 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2552 |
#ifdef __STDC__ |
999 |
{ (eval echo configure:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2553 |
# include <limits.h> |
1000 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2554 |
#else |
1001 |
if test -z "$ac_err"; then |
2555 |
# include <assert.h> |
1002 |
: |
2556 |
#endif |
|
|
2557 |
Syntax error |
2558 |
_ACEOF |
2559 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2560 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2561 |
ac_status=$? |
2562 |
grep -v '^ *+' conftest.er1 >conftest.err |
2563 |
rm -f conftest.er1 |
2564 |
cat conftest.err >&5 |
2565 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2566 |
(exit $ac_status); } >/dev/null; then |
2567 |
if test -s conftest.err; then |
2568 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2569 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2570 |
else |
2571 |
ac_cpp_err= |
2572 |
fi |
1003 |
else |
2573 |
else |
1004 |
echo "$ac_err" >&5 |
2574 |
ac_cpp_err=yes |
1005 |
echo "configure: failed program was:" >&5 |
2575 |
fi |
1006 |
cat conftest.$ac_ext >&5 |
2576 |
if test -z "$ac_cpp_err"; then |
1007 |
rm -rf conftest* |
|
|
1008 |
CPP="${CC-cc} -E -traditional-cpp" |
1009 |
cat > conftest.$ac_ext <<EOF |
1010 |
#line 1011 "configure" |
1011 |
#include "confdefs.h" |
1012 |
#include <assert.h> |
1013 |
Syntax Error |
1014 |
EOF |
1015 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1016 |
{ (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1017 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1018 |
if test -z "$ac_err"; then |
1019 |
: |
2577 |
: |
1020 |
else |
2578 |
else |
1021 |
echo "$ac_err" >&5 |
2579 |
echo "$as_me: failed program was:" >&5 |
1022 |
echo "configure: failed program was:" >&5 |
2580 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1023 |
cat conftest.$ac_ext >&5 |
2581 |
|
1024 |
rm -rf conftest* |
2582 |
# Broken: fails on valid input. |
1025 |
CPP="${CC-cc} -nologo -E" |
2583 |
continue |
1026 |
cat > conftest.$ac_ext <<EOF |
2584 |
fi |
1027 |
#line 1028 "configure" |
2585 |
rm -f conftest.err conftest.$ac_ext |
1028 |
#include "confdefs.h" |
2586 |
|
1029 |
#include <assert.h> |
2587 |
# OK, works on sane cases. Now check whether non-existent headers |
1030 |
Syntax Error |
2588 |
# can be detected and how. |
1031 |
EOF |
2589 |
cat >conftest.$ac_ext <<_ACEOF |
1032 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2590 |
/* confdefs.h. */ |
1033 |
{ (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2591 |
_ACEOF |
1034 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2592 |
cat confdefs.h >>conftest.$ac_ext |
1035 |
if test -z "$ac_err"; then |
2593 |
cat >>conftest.$ac_ext <<_ACEOF |
1036 |
: |
2594 |
/* end confdefs.h. */ |
|
|
2595 |
#include <ac_nonexistent.h> |
2596 |
_ACEOF |
2597 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2598 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2599 |
ac_status=$? |
2600 |
grep -v '^ *+' conftest.er1 >conftest.err |
2601 |
rm -f conftest.er1 |
2602 |
cat conftest.err >&5 |
2603 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2604 |
(exit $ac_status); } >/dev/null; then |
2605 |
if test -s conftest.err; then |
2606 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2607 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2608 |
else |
2609 |
ac_cpp_err= |
2610 |
fi |
1037 |
else |
2611 |
else |
1038 |
echo "$ac_err" >&5 |
2612 |
ac_cpp_err=yes |
1039 |
echo "configure: failed program was:" >&5 |
|
|
1040 |
cat conftest.$ac_ext >&5 |
1041 |
rm -rf conftest* |
1042 |
CPP=/lib/cpp |
1043 |
fi |
2613 |
fi |
1044 |
rm -f conftest* |
2614 |
if test -z "$ac_cpp_err"; then |
|
|
2615 |
# Broken: success on invalid input. |
2616 |
continue |
2617 |
else |
2618 |
echo "$as_me: failed program was:" >&5 |
2619 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2620 |
|
2621 |
# Passes both tests. |
2622 |
ac_preproc_ok=: |
2623 |
break |
1045 |
fi |
2624 |
fi |
1046 |
rm -f conftest* |
2625 |
rm -f conftest.err conftest.$ac_ext |
|
|
2626 |
|
2627 |
done |
2628 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2629 |
rm -f conftest.err conftest.$ac_ext |
2630 |
if $ac_preproc_ok; then |
2631 |
break |
1047 |
fi |
2632 |
fi |
1048 |
rm -f conftest* |
2633 |
|
1049 |
ac_cv_prog_CPP="$CPP" |
2634 |
done |
|
|
2635 |
ac_cv_prog_CPP=$CPP |
2636 |
|
2637 |
fi |
2638 |
CPP=$ac_cv_prog_CPP |
2639 |
else |
2640 |
ac_cv_prog_CPP=$CPP |
2641 |
fi |
2642 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
2643 |
echo "${ECHO_T}$CPP" >&6 |
2644 |
ac_preproc_ok=false |
2645 |
for ac_c_preproc_warn_flag in '' yes |
2646 |
do |
2647 |
# Use a header file that comes with gcc, so configuring glibc |
2648 |
# with a fresh cross-compiler works. |
2649 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2650 |
# <limits.h> exists even on freestanding compilers. |
2651 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2652 |
# not just through cpp. "Syntax error" is here to catch this case. |
2653 |
cat >conftest.$ac_ext <<_ACEOF |
2654 |
/* confdefs.h. */ |
2655 |
_ACEOF |
2656 |
cat confdefs.h >>conftest.$ac_ext |
2657 |
cat >>conftest.$ac_ext <<_ACEOF |
2658 |
/* end confdefs.h. */ |
2659 |
#ifdef __STDC__ |
2660 |
# include <limits.h> |
2661 |
#else |
2662 |
# include <assert.h> |
2663 |
#endif |
2664 |
Syntax error |
2665 |
_ACEOF |
2666 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2667 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2668 |
ac_status=$? |
2669 |
grep -v '^ *+' conftest.er1 >conftest.err |
2670 |
rm -f conftest.er1 |
2671 |
cat conftest.err >&5 |
2672 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2673 |
(exit $ac_status); } >/dev/null; then |
2674 |
if test -s conftest.err; then |
2675 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2676 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2677 |
else |
2678 |
ac_cpp_err= |
2679 |
fi |
2680 |
else |
2681 |
ac_cpp_err=yes |
2682 |
fi |
2683 |
if test -z "$ac_cpp_err"; then |
2684 |
: |
2685 |
else |
2686 |
echo "$as_me: failed program was:" >&5 |
2687 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2688 |
|
2689 |
# Broken: fails on valid input. |
2690 |
continue |
2691 |
fi |
2692 |
rm -f conftest.err conftest.$ac_ext |
2693 |
|
2694 |
# OK, works on sane cases. Now check whether non-existent headers |
2695 |
# can be detected and how. |
2696 |
cat >conftest.$ac_ext <<_ACEOF |
2697 |
/* confdefs.h. */ |
2698 |
_ACEOF |
2699 |
cat confdefs.h >>conftest.$ac_ext |
2700 |
cat >>conftest.$ac_ext <<_ACEOF |
2701 |
/* end confdefs.h. */ |
2702 |
#include <ac_nonexistent.h> |
2703 |
_ACEOF |
2704 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2705 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2706 |
ac_status=$? |
2707 |
grep -v '^ *+' conftest.er1 >conftest.err |
2708 |
rm -f conftest.er1 |
2709 |
cat conftest.err >&5 |
2710 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2711 |
(exit $ac_status); } >/dev/null; then |
2712 |
if test -s conftest.err; then |
2713 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2714 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2715 |
else |
2716 |
ac_cpp_err= |
2717 |
fi |
2718 |
else |
2719 |
ac_cpp_err=yes |
1050 |
fi |
2720 |
fi |
1051 |
CPP="$ac_cv_prog_CPP" |
2721 |
if test -z "$ac_cpp_err"; then |
|
|
2722 |
# Broken: success on invalid input. |
2723 |
continue |
1052 |
else |
2724 |
else |
1053 |
ac_cv_prog_CPP="$CPP" |
2725 |
echo "$as_me: failed program was:" >&5 |
|
|
2726 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2727 |
|
2728 |
# Passes both tests. |
2729 |
ac_preproc_ok=: |
2730 |
break |
1054 |
fi |
2731 |
fi |
1055 |
echo "$ac_t""$CPP" 1>&6 |
2732 |
rm -f conftest.err conftest.$ac_ext |
1056 |
|
2733 |
|
1057 |
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
2734 |
done |
1058 |
echo "configure:1059: checking for ANSI C header files" >&5 |
2735 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
1059 |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2736 |
rm -f conftest.err conftest.$ac_ext |
1060 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2737 |
if $ac_preproc_ok; then |
|
|
2738 |
: |
1061 |
else |
2739 |
else |
1062 |
cat > conftest.$ac_ext <<EOF |
2740 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
1063 |
#line 1064 "configure" |
2741 |
See \`config.log' for more details." >&5 |
1064 |
#include "confdefs.h" |
2742 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
|
2743 |
See \`config.log' for more details." >&2;} |
2744 |
{ (exit 1); exit 1; }; } |
2745 |
fi |
2746 |
|
2747 |
ac_ext=c |
2748 |
ac_cpp='$CPP $CPPFLAGS' |
2749 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2750 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2751 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2752 |
|
2753 |
|
2754 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
2755 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
2756 |
if test "${ac_cv_prog_egrep+set}" = set; then |
2757 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2758 |
else |
2759 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2760 |
then ac_cv_prog_egrep='grep -E' |
2761 |
else ac_cv_prog_egrep='egrep' |
2762 |
fi |
2763 |
fi |
2764 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2765 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
2766 |
EGREP=$ac_cv_prog_egrep |
2767 |
|
2768 |
|
2769 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
2770 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
2771 |
if test "${ac_cv_header_stdc+set}" = set; then |
2772 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2773 |
else |
2774 |
cat >conftest.$ac_ext <<_ACEOF |
2775 |
/* confdefs.h. */ |
2776 |
_ACEOF |
2777 |
cat confdefs.h >>conftest.$ac_ext |
2778 |
cat >>conftest.$ac_ext <<_ACEOF |
2779 |
/* end confdefs.h. */ |
1065 |
#include <stdlib.h> |
2780 |
#include <stdlib.h> |
1066 |
#include <stdarg.h> |
2781 |
#include <stdarg.h> |
1067 |
#include <string.h> |
2782 |
#include <string.h> |
1068 |
#include <float.h> |
2783 |
#include <float.h> |
1069 |
EOF |
2784 |
|
1070 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2785 |
int |
1071 |
{ (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2786 |
main () |
1072 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2787 |
{ |
1073 |
if test -z "$ac_err"; then |
2788 |
|
1074 |
rm -rf conftest* |
2789 |
; |
|
|
2790 |
return 0; |
2791 |
} |
2792 |
_ACEOF |
2793 |
rm -f conftest.$ac_objext |
2794 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2795 |
(eval $ac_compile) 2>conftest.er1 |
2796 |
ac_status=$? |
2797 |
grep -v '^ *+' conftest.er1 >conftest.err |
2798 |
rm -f conftest.er1 |
2799 |
cat conftest.err >&5 |
2800 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2801 |
(exit $ac_status); } && |
2802 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2803 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2804 |
(eval $ac_try) 2>&5 |
2805 |
ac_status=$? |
2806 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2807 |
(exit $ac_status); }; } && |
2808 |
{ ac_try='test -s conftest.$ac_objext' |
2809 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2810 |
(eval $ac_try) 2>&5 |
2811 |
ac_status=$? |
2812 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2813 |
(exit $ac_status); }; }; then |
1075 |
ac_cv_header_stdc=yes |
2814 |
ac_cv_header_stdc=yes |
1076 |
else |
2815 |
else |
1077 |
echo "$ac_err" >&5 |
2816 |
echo "$as_me: failed program was:" >&5 |
1078 |
echo "configure: failed program was:" >&5 |
2817 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1079 |
cat conftest.$ac_ext >&5 |
2818 |
|
1080 |
rm -rf conftest* |
2819 |
ac_cv_header_stdc=no |
1081 |
ac_cv_header_stdc=no |
|
|
1082 |
fi |
2820 |
fi |
1083 |
rm -f conftest* |
2821 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1084 |
|
2822 |
|
1085 |
if test $ac_cv_header_stdc = yes; then |
2823 |
if test $ac_cv_header_stdc = yes; then |
1086 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
2824 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1087 |
cat > conftest.$ac_ext <<EOF |
2825 |
cat >conftest.$ac_ext <<_ACEOF |
1088 |
#line 1089 "configure" |
2826 |
/* confdefs.h. */ |
1089 |
#include "confdefs.h" |
2827 |
_ACEOF |
|
|
2828 |
cat confdefs.h >>conftest.$ac_ext |
2829 |
cat >>conftest.$ac_ext <<_ACEOF |
2830 |
/* end confdefs.h. */ |
1090 |
#include <string.h> |
2831 |
#include <string.h> |
1091 |
EOF |
2832 |
|
|
|
2833 |
_ACEOF |
1092 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2834 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1093 |
egrep "memchr" >/dev/null 2>&1; then |
2835 |
$EGREP "memchr" >/dev/null 2>&1; then |
1094 |
: |
2836 |
: |
1095 |
else |
2837 |
else |
1096 |
rm -rf conftest* |
|
|
1097 |
ac_cv_header_stdc=no |
2838 |
ac_cv_header_stdc=no |
1098 |
fi |
2839 |
fi |
1099 |
rm -f conftest* |
2840 |
rm -f conftest* |
1100 |
|
2841 |
|
1101 |
fi |
2842 |
fi |
1102 |
|
2843 |
|
1103 |
if test $ac_cv_header_stdc = yes; then |
2844 |
if test $ac_cv_header_stdc = yes; then |
1104 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
2845 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1105 |
cat > conftest.$ac_ext <<EOF |
2846 |
cat >conftest.$ac_ext <<_ACEOF |
1106 |
#line 1107 "configure" |
2847 |
/* confdefs.h. */ |
1107 |
#include "confdefs.h" |
2848 |
_ACEOF |
|
|
2849 |
cat confdefs.h >>conftest.$ac_ext |
2850 |
cat >>conftest.$ac_ext <<_ACEOF |
2851 |
/* end confdefs.h. */ |
1108 |
#include <stdlib.h> |
2852 |
#include <stdlib.h> |
1109 |
EOF |
2853 |
|
|
|
2854 |
_ACEOF |
1110 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2855 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1111 |
egrep "free" >/dev/null 2>&1; then |
2856 |
$EGREP "free" >/dev/null 2>&1; then |
1112 |
: |
2857 |
: |
1113 |
else |
2858 |
else |
1114 |
rm -rf conftest* |
|
|
1115 |
ac_cv_header_stdc=no |
2859 |
ac_cv_header_stdc=no |
1116 |
fi |
2860 |
fi |
1117 |
rm -f conftest* |
2861 |
rm -f conftest* |
1118 |
|
2862 |
|
1119 |
fi |
2863 |
fi |
1120 |
|
2864 |
|
1121 |
if test $ac_cv_header_stdc = yes; then |
2865 |
if test $ac_cv_header_stdc = yes; then |
1122 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
2866 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1123 |
if test "$cross_compiling" = yes; then |
2867 |
if test "$cross_compiling" = yes; then |
1124 |
: |
2868 |
: |
1125 |
else |
2869 |
else |
1126 |
cat > conftest.$ac_ext <<EOF |
2870 |
cat >conftest.$ac_ext <<_ACEOF |
1127 |
#line 1128 "configure" |
2871 |
/* confdefs.h. */ |
1128 |
#include "confdefs.h" |
2872 |
_ACEOF |
|
|
2873 |
cat confdefs.h >>conftest.$ac_ext |
2874 |
cat >>conftest.$ac_ext <<_ACEOF |
2875 |
/* end confdefs.h. */ |
1129 |
#include <ctype.h> |
2876 |
#include <ctype.h> |
1130 |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2877 |
#if ((' ' & 0x0FF) == 0x020) |
1131 |
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2878 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
2879 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2880 |
#else |
2881 |
# define ISLOWER(c) \ |
2882 |
(('a' <= (c) && (c) <= 'i') \ |
2883 |
|| ('j' <= (c) && (c) <= 'r') \ |
2884 |
|| ('s' <= (c) && (c) <= 'z')) |
2885 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
2886 |
#endif |
2887 |
|
1132 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2888 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1133 |
int main () { int i; for (i = 0; i < 256; i++) |
2889 |
int |
1134 |
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
2890 |
main () |
1135 |
exit (0); } |
2891 |
{ |
1136 |
|
2892 |
int i; |
1137 |
EOF |
2893 |
for (i = 0; i < 256; i++) |
1138 |
if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2894 |
if (XOR (islower (i), ISLOWER (i)) |
1139 |
then |
2895 |
|| toupper (i) != TOUPPER (i)) |
|
|
2896 |
exit(2); |
2897 |
exit (0); |
2898 |
} |
2899 |
_ACEOF |
2900 |
rm -f conftest$ac_exeext |
2901 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2902 |
(eval $ac_link) 2>&5 |
2903 |
ac_status=$? |
2904 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2905 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2906 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2907 |
(eval $ac_try) 2>&5 |
2908 |
ac_status=$? |
2909 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2910 |
(exit $ac_status); }; }; then |
1140 |
: |
2911 |
: |
1141 |
else |
2912 |
else |
1142 |
echo "configure: failed program was:" >&5 |
2913 |
echo "$as_me: program exited with status $ac_status" >&5 |
1143 |
cat conftest.$ac_ext >&5 |
2914 |
echo "$as_me: failed program was:" >&5 |
1144 |
rm -fr conftest* |
2915 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1145 |
ac_cv_header_stdc=no |
2916 |
|
|
|
2917 |
( exit $ac_status ) |
2918 |
ac_cv_header_stdc=no |
1146 |
fi |
2919 |
fi |
1147 |
rm -fr conftest* |
2920 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
1148 |
fi |
2921 |
fi |
1149 |
|
|
|
1150 |
fi |
2922 |
fi |
1151 |
fi |
2923 |
fi |
1152 |
|
2924 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
1153 |
echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
2925 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
1154 |
if test $ac_cv_header_stdc = yes; then |
2926 |
if test $ac_cv_header_stdc = yes; then |
1155 |
cat >> confdefs.h <<\EOF |
2927 |
|
|
|
2928 |
cat >>confdefs.h <<\_ACEOF |
1156 |
#define STDC_HEADERS 1 |
2929 |
#define STDC_HEADERS 1 |
1157 |
EOF |
2930 |
_ACEOF |
1158 |
|
2931 |
|
1159 |
fi |
2932 |
fi |
1160 |
|
2933 |
|
1161 |
|
2934 |
|
1162 |
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` |
2935 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
1163 |
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 |
|
|
1164 |
echo "configure:1165: checking for dlfcn.h" >&5 |
1165 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1166 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1167 |
else |
1168 |
cat > conftest.$ac_ext <<EOF |
1169 |
#line 1170 "configure" |
1170 |
#include "confdefs.h" |
1171 |
#include <dlfcn.h> |
1172 |
EOF |
1173 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1174 |
{ (eval echo configure:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1175 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1176 |
if test -z "$ac_err"; then |
1177 |
rm -rf conftest* |
1178 |
eval "ac_cv_header_$ac_safe=yes" |
1179 |
else |
1180 |
echo "$ac_err" >&5 |
1181 |
echo "configure: failed program was:" >&5 |
1182 |
cat conftest.$ac_ext >&5 |
1183 |
rm -rf conftest* |
1184 |
eval "ac_cv_header_$ac_safe=no" |
1185 |
fi |
1186 |
rm -f conftest* |
1187 |
fi |
1188 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1189 |
echo "$ac_t""yes" 1>&6 |
1190 |
: |
1191 |
else |
1192 |
echo "$ac_t""no" 1>&6 |
1193 |
{ echo "configure: error: "dlfcn.h not found"" 1>&2; exit 1; } |
1194 |
fi |
1195 |
|
2936 |
|
1196 |
|
2937 |
|
1197 |
ac_safe=`echo "sys/socket.h" | sed 'y%./+-%__p_%'` |
2938 |
|
1198 |
echo $ac_n "checking for sys/socket.h""... $ac_c" 1>&6 |
2939 |
|
1199 |
echo "configure:1200: checking for sys/socket.h" >&5 |
2940 |
|
1200 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2941 |
|
1201 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2942 |
|
1202 |
else |
2943 |
|
1203 |
cat > conftest.$ac_ext <<EOF |
2944 |
|
1204 |
#line 1205 "configure" |
2945 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
1205 |
#include "confdefs.h" |
2946 |
inttypes.h stdint.h unistd.h |
1206 |
#include <sys/socket.h> |
2947 |
do |
1207 |
EOF |
2948 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
1208 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2949 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
1209 |
{ (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2950 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
1210 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2951 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
1211 |
if test -z "$ac_err"; then |
2952 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1212 |
rm -rf conftest* |
2953 |
else |
1213 |
eval "ac_cv_header_$ac_safe=yes" |
2954 |
cat >conftest.$ac_ext <<_ACEOF |
1214 |
else |
2955 |
/* confdefs.h. */ |
1215 |
echo "$ac_err" >&5 |
2956 |
_ACEOF |
1216 |
echo "configure: failed program was:" >&5 |
2957 |
cat confdefs.h >>conftest.$ac_ext |
1217 |
cat conftest.$ac_ext >&5 |
2958 |
cat >>conftest.$ac_ext <<_ACEOF |
1218 |
rm -rf conftest* |
2959 |
/* end confdefs.h. */ |
1219 |
eval "ac_cv_header_$ac_safe=no" |
2960 |
$ac_includes_default |
1220 |
fi |
2961 |
|
1221 |
rm -f conftest* |
2962 |
#include <$ac_header> |
|
|
2963 |
_ACEOF |
2964 |
rm -f conftest.$ac_objext |
2965 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2966 |
(eval $ac_compile) 2>conftest.er1 |
2967 |
ac_status=$? |
2968 |
grep -v '^ *+' conftest.er1 >conftest.err |
2969 |
rm -f conftest.er1 |
2970 |
cat conftest.err >&5 |
2971 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2972 |
(exit $ac_status); } && |
2973 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2974 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2975 |
(eval $ac_try) 2>&5 |
2976 |
ac_status=$? |
2977 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2978 |
(exit $ac_status); }; } && |
2979 |
{ ac_try='test -s conftest.$ac_objext' |
2980 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2981 |
(eval $ac_try) 2>&5 |
2982 |
ac_status=$? |
2983 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2984 |
(exit $ac_status); }; }; then |
2985 |
eval "$as_ac_Header=yes" |
2986 |
else |
2987 |
echo "$as_me: failed program was:" >&5 |
2988 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2989 |
|
2990 |
eval "$as_ac_Header=no" |
2991 |
fi |
2992 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2993 |
fi |
2994 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2995 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
2996 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
2997 |
cat >>confdefs.h <<_ACEOF |
2998 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2999 |
_ACEOF |
3000 |
|
3001 |
fi |
3002 |
|
3003 |
done |
3004 |
|
3005 |
|
3006 |
if test "${ac_cv_header_dlfcn_h+set}" = set; then |
3007 |
echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
3008 |
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
3009 |
if test "${ac_cv_header_dlfcn_h+set}" = set; then |
3010 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3011 |
fi |
3012 |
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
3013 |
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
3014 |
else |
3015 |
# Is the header compilable? |
3016 |
echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
3017 |
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 |
3018 |
cat >conftest.$ac_ext <<_ACEOF |
3019 |
/* confdefs.h. */ |
3020 |
_ACEOF |
3021 |
cat confdefs.h >>conftest.$ac_ext |
3022 |
cat >>conftest.$ac_ext <<_ACEOF |
3023 |
/* end confdefs.h. */ |
3024 |
$ac_includes_default |
3025 |
#include <dlfcn.h> |
3026 |
_ACEOF |
3027 |
rm -f conftest.$ac_objext |
3028 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3029 |
(eval $ac_compile) 2>conftest.er1 |
3030 |
ac_status=$? |
3031 |
grep -v '^ *+' conftest.er1 >conftest.err |
3032 |
rm -f conftest.er1 |
3033 |
cat conftest.err >&5 |
3034 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3035 |
(exit $ac_status); } && |
3036 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3037 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3038 |
(eval $ac_try) 2>&5 |
3039 |
ac_status=$? |
3040 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3041 |
(exit $ac_status); }; } && |
3042 |
{ ac_try='test -s conftest.$ac_objext' |
3043 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3044 |
(eval $ac_try) 2>&5 |
3045 |
ac_status=$? |
3046 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3047 |
(exit $ac_status); }; }; then |
3048 |
ac_header_compiler=yes |
3049 |
else |
3050 |
echo "$as_me: failed program was:" >&5 |
3051 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3052 |
|
3053 |
ac_header_compiler=no |
3054 |
fi |
3055 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3056 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3057 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3058 |
|
3059 |
# Is the header present? |
3060 |
echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
3061 |
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 |
3062 |
cat >conftest.$ac_ext <<_ACEOF |
3063 |
/* confdefs.h. */ |
3064 |
_ACEOF |
3065 |
cat confdefs.h >>conftest.$ac_ext |
3066 |
cat >>conftest.$ac_ext <<_ACEOF |
3067 |
/* end confdefs.h. */ |
3068 |
#include <dlfcn.h> |
3069 |
_ACEOF |
3070 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3071 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3072 |
ac_status=$? |
3073 |
grep -v '^ *+' conftest.er1 >conftest.err |
3074 |
rm -f conftest.er1 |
3075 |
cat conftest.err >&5 |
3076 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3077 |
(exit $ac_status); } >/dev/null; then |
3078 |
if test -s conftest.err; then |
3079 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3080 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3081 |
else |
3082 |
ac_cpp_err= |
3083 |
fi |
3084 |
else |
3085 |
ac_cpp_err=yes |
3086 |
fi |
3087 |
if test -z "$ac_cpp_err"; then |
3088 |
ac_header_preproc=yes |
3089 |
else |
3090 |
echo "$as_me: failed program was:" >&5 |
3091 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3092 |
|
3093 |
ac_header_preproc=no |
3094 |
fi |
3095 |
rm -f conftest.err conftest.$ac_ext |
3096 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3097 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3098 |
|
3099 |
# So? What about this header? |
3100 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3101 |
yes:no: ) |
3102 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3103 |
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3104 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
3105 |
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
3106 |
ac_header_preproc=yes |
3107 |
;; |
3108 |
no:yes:* ) |
3109 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
3110 |
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
3111 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
3112 |
echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
3113 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
3114 |
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
3115 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
3116 |
echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
3117 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
3118 |
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
3119 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
3120 |
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
3121 |
( |
3122 |
cat <<\_ASBOX |
3123 |
## ------------------------------------------ ## |
3124 |
## Report this to the AC_PACKAGE_NAME lists. ## |
3125 |
## ------------------------------------------ ## |
3126 |
_ASBOX |
3127 |
) | |
3128 |
sed "s/^/$as_me: WARNING: /" >&2 |
3129 |
;; |
3130 |
esac |
3131 |
echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
3132 |
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
3133 |
if test "${ac_cv_header_dlfcn_h+set}" = set; then |
3134 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3135 |
else |
3136 |
ac_cv_header_dlfcn_h=$ac_header_preproc |
3137 |
fi |
3138 |
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
3139 |
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
3140 |
|
1222 |
fi |
3141 |
fi |
1223 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3142 |
if test $ac_cv_header_dlfcn_h = yes; then |
1224 |
echo "$ac_t""yes" 1>&6 |
|
|
1225 |
: |
3143 |
: |
1226 |
else |
3144 |
else |
1227 |
echo "$ac_t""no" 1>&6 |
3145 |
{ { echo "$as_me:$LINENO: error: \"dlfcn.h not found\"" >&5 |
1228 |
{ echo "configure: error: "sys/socket.h not found"" 1>&2; exit 1; } |
3146 |
echo "$as_me: error: \"dlfcn.h not found\"" >&2;} |
|
|
3147 |
{ (exit 1); exit 1; }; } |
1229 |
fi |
3148 |
fi |
1230 |
|
3149 |
|
1231 |
|
3150 |
|
1232 |
ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
3151 |
|
1233 |
echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
3152 |
if test "${ac_cv_header_sys_socket_h+set}" = set; then |
1234 |
echo "configure:1235: checking for arpa/inet.h" >&5 |
3153 |
echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
1235 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3154 |
echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
1236 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3155 |
if test "${ac_cv_header_sys_socket_h+set}" = set; then |
|
|
3156 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3157 |
fi |
3158 |
echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
3159 |
echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
3160 |
else |
3161 |
# Is the header compilable? |
3162 |
echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
3163 |
echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6 |
3164 |
cat >conftest.$ac_ext <<_ACEOF |
3165 |
/* confdefs.h. */ |
3166 |
_ACEOF |
3167 |
cat confdefs.h >>conftest.$ac_ext |
3168 |
cat >>conftest.$ac_ext <<_ACEOF |
3169 |
/* end confdefs.h. */ |
3170 |
$ac_includes_default |
3171 |
#include <sys/socket.h> |
3172 |
_ACEOF |
3173 |
rm -f conftest.$ac_objext |
3174 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3175 |
(eval $ac_compile) 2>conftest.er1 |
3176 |
ac_status=$? |
3177 |
grep -v '^ *+' conftest.er1 >conftest.err |
3178 |
rm -f conftest.er1 |
3179 |
cat conftest.err >&5 |
3180 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3181 |
(exit $ac_status); } && |
3182 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3183 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3184 |
(eval $ac_try) 2>&5 |
3185 |
ac_status=$? |
3186 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3187 |
(exit $ac_status); }; } && |
3188 |
{ ac_try='test -s conftest.$ac_objext' |
3189 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3190 |
(eval $ac_try) 2>&5 |
3191 |
ac_status=$? |
3192 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3193 |
(exit $ac_status); }; }; then |
3194 |
ac_header_compiler=yes |
3195 |
else |
3196 |
echo "$as_me: failed program was:" >&5 |
3197 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3198 |
|
3199 |
ac_header_compiler=no |
3200 |
fi |
3201 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3202 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3203 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3204 |
|
3205 |
# Is the header present? |
3206 |
echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
3207 |
echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6 |
3208 |
cat >conftest.$ac_ext <<_ACEOF |
3209 |
/* confdefs.h. */ |
3210 |
_ACEOF |
3211 |
cat confdefs.h >>conftest.$ac_ext |
3212 |
cat >>conftest.$ac_ext <<_ACEOF |
3213 |
/* end confdefs.h. */ |
3214 |
#include <sys/socket.h> |
3215 |
_ACEOF |
3216 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3217 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3218 |
ac_status=$? |
3219 |
grep -v '^ *+' conftest.er1 >conftest.err |
3220 |
rm -f conftest.er1 |
3221 |
cat conftest.err >&5 |
3222 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3223 |
(exit $ac_status); } >/dev/null; then |
3224 |
if test -s conftest.err; then |
3225 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3226 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3227 |
else |
3228 |
ac_cpp_err= |
3229 |
fi |
1237 |
else |
3230 |
else |
1238 |
cat > conftest.$ac_ext <<EOF |
3231 |
ac_cpp_err=yes |
1239 |
#line 1240 "configure" |
|
|
1240 |
#include "confdefs.h" |
1241 |
#include <arpa/inet.h> |
1242 |
EOF |
1243 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1244 |
{ (eval echo configure:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1245 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1246 |
if test -z "$ac_err"; then |
1247 |
rm -rf conftest* |
1248 |
eval "ac_cv_header_$ac_safe=yes" |
1249 |
else |
1250 |
echo "$ac_err" >&5 |
1251 |
echo "configure: failed program was:" >&5 |
1252 |
cat conftest.$ac_ext >&5 |
1253 |
rm -rf conftest* |
1254 |
eval "ac_cv_header_$ac_safe=no" |
1255 |
fi |
3232 |
fi |
1256 |
rm -f conftest* |
3233 |
if test -z "$ac_cpp_err"; then |
|
|
3234 |
ac_header_preproc=yes |
3235 |
else |
3236 |
echo "$as_me: failed program was:" >&5 |
3237 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3238 |
|
3239 |
ac_header_preproc=no |
3240 |
fi |
3241 |
rm -f conftest.err conftest.$ac_ext |
3242 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3243 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3244 |
|
3245 |
# So? What about this header? |
3246 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3247 |
yes:no: ) |
3248 |
{ echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3249 |
echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3250 |
{ echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
3251 |
echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
3252 |
ac_header_preproc=yes |
3253 |
;; |
3254 |
no:yes:* ) |
3255 |
{ echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
3256 |
echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
3257 |
{ echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
3258 |
echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
3259 |
{ echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
3260 |
echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
3261 |
{ echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
3262 |
echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
3263 |
{ echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
3264 |
echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
3265 |
{ echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
3266 |
echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
3267 |
( |
3268 |
cat <<\_ASBOX |
3269 |
## ------------------------------------------ ## |
3270 |
## Report this to the AC_PACKAGE_NAME lists. ## |
3271 |
## ------------------------------------------ ## |
3272 |
_ASBOX |
3273 |
) | |
3274 |
sed "s/^/$as_me: WARNING: /" >&2 |
3275 |
;; |
3276 |
esac |
3277 |
echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
3278 |
echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
3279 |
if test "${ac_cv_header_sys_socket_h+set}" = set; then |
3280 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3281 |
else |
3282 |
ac_cv_header_sys_socket_h=$ac_header_preproc |
1257 |
fi |
3283 |
fi |
1258 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3284 |
echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
1259 |
echo "$ac_t""yes" 1>&6 |
3285 |
echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
|
|
3286 |
|
3287 |
fi |
3288 |
if test $ac_cv_header_sys_socket_h = yes; then |
1260 |
: |
3289 |
: |
1261 |
else |
3290 |
else |
1262 |
echo "$ac_t""no" 1>&6 |
3291 |
{ { echo "$as_me:$LINENO: error: \"sys/socket.h not found\"" >&5 |
1263 |
{ echo "configure: error: "arpa/inet.h not found"" 1>&2; exit 1; } |
3292 |
echo "$as_me: error: \"sys/socket.h not found\"" >&2;} |
|
|
3293 |
{ (exit 1); exit 1; }; } |
1264 |
fi |
3294 |
fi |
1265 |
|
3295 |
|
1266 |
|
3296 |
|
1267 |
ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'` |
3297 |
|
1268 |
echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6 |
3298 |
if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
1269 |
echo "configure:1270: checking for fcntl.h" >&5 |
3299 |
echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
1270 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3300 |
echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
1271 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3301 |
if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
|
|
3302 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3303 |
fi |
3304 |
echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
3305 |
echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
3306 |
else |
3307 |
# Is the header compilable? |
3308 |
echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
3309 |
echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 |
3310 |
cat >conftest.$ac_ext <<_ACEOF |
3311 |
/* confdefs.h. */ |
3312 |
_ACEOF |
3313 |
cat confdefs.h >>conftest.$ac_ext |
3314 |
cat >>conftest.$ac_ext <<_ACEOF |
3315 |
/* end confdefs.h. */ |
3316 |
$ac_includes_default |
3317 |
#include <arpa/inet.h> |
3318 |
_ACEOF |
3319 |
rm -f conftest.$ac_objext |
3320 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3321 |
(eval $ac_compile) 2>conftest.er1 |
3322 |
ac_status=$? |
3323 |
grep -v '^ *+' conftest.er1 >conftest.err |
3324 |
rm -f conftest.er1 |
3325 |
cat conftest.err >&5 |
3326 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3327 |
(exit $ac_status); } && |
3328 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3329 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3330 |
(eval $ac_try) 2>&5 |
3331 |
ac_status=$? |
3332 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3333 |
(exit $ac_status); }; } && |
3334 |
{ ac_try='test -s conftest.$ac_objext' |
3335 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3336 |
(eval $ac_try) 2>&5 |
3337 |
ac_status=$? |
3338 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3339 |
(exit $ac_status); }; }; then |
3340 |
ac_header_compiler=yes |
3341 |
else |
3342 |
echo "$as_me: failed program was:" >&5 |
3343 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3344 |
|
3345 |
ac_header_compiler=no |
3346 |
fi |
3347 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3348 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3349 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3350 |
|
3351 |
# Is the header present? |
3352 |
echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
3353 |
echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 |
3354 |
cat >conftest.$ac_ext <<_ACEOF |
3355 |
/* confdefs.h. */ |
3356 |
_ACEOF |
3357 |
cat confdefs.h >>conftest.$ac_ext |
3358 |
cat >>conftest.$ac_ext <<_ACEOF |
3359 |
/* end confdefs.h. */ |
3360 |
#include <arpa/inet.h> |
3361 |
_ACEOF |
3362 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3363 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3364 |
ac_status=$? |
3365 |
grep -v '^ *+' conftest.er1 >conftest.err |
3366 |
rm -f conftest.er1 |
3367 |
cat conftest.err >&5 |
3368 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3369 |
(exit $ac_status); } >/dev/null; then |
3370 |
if test -s conftest.err; then |
3371 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3372 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3373 |
else |
3374 |
ac_cpp_err= |
3375 |
fi |
1272 |
else |
3376 |
else |
1273 |
cat > conftest.$ac_ext <<EOF |
3377 |
ac_cpp_err=yes |
1274 |
#line 1275 "configure" |
|
|
1275 |
#include "confdefs.h" |
1276 |
#include <fcntl.h> |
1277 |
EOF |
1278 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1279 |
{ (eval echo configure:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1280 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1281 |
if test -z "$ac_err"; then |
1282 |
rm -rf conftest* |
1283 |
eval "ac_cv_header_$ac_safe=yes" |
1284 |
else |
1285 |
echo "$ac_err" >&5 |
1286 |
echo "configure: failed program was:" >&5 |
1287 |
cat conftest.$ac_ext >&5 |
1288 |
rm -rf conftest* |
1289 |
eval "ac_cv_header_$ac_safe=no" |
1290 |
fi |
3378 |
fi |
1291 |
rm -f conftest* |
3379 |
if test -z "$ac_cpp_err"; then |
|
|
3380 |
ac_header_preproc=yes |
3381 |
else |
3382 |
echo "$as_me: failed program was:" >&5 |
3383 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3384 |
|
3385 |
ac_header_preproc=no |
3386 |
fi |
3387 |
rm -f conftest.err conftest.$ac_ext |
3388 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3389 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3390 |
|
3391 |
# So? What about this header? |
3392 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3393 |
yes:no: ) |
3394 |
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3395 |
echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3396 |
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
3397 |
echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
3398 |
ac_header_preproc=yes |
3399 |
;; |
3400 |
no:yes:* ) |
3401 |
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
3402 |
echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
3403 |
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
3404 |
echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
3405 |
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
3406 |
echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
3407 |
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
3408 |
echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
3409 |
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
3410 |
echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
3411 |
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
3412 |
echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
3413 |
( |
3414 |
cat <<\_ASBOX |
3415 |
## ------------------------------------------ ## |
3416 |
## Report this to the AC_PACKAGE_NAME lists. ## |
3417 |
## ------------------------------------------ ## |
3418 |
_ASBOX |
3419 |
) | |
3420 |
sed "s/^/$as_me: WARNING: /" >&2 |
3421 |
;; |
3422 |
esac |
3423 |
echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
3424 |
echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
3425 |
if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
3426 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3427 |
else |
3428 |
ac_cv_header_arpa_inet_h=$ac_header_preproc |
1292 |
fi |
3429 |
fi |
1293 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3430 |
echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
1294 |
echo "$ac_t""yes" 1>&6 |
3431 |
echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
|
|
3432 |
|
3433 |
fi |
3434 |
if test $ac_cv_header_arpa_inet_h = yes; then |
1295 |
: |
3435 |
: |
1296 |
else |
3436 |
else |
1297 |
echo "$ac_t""no" 1>&6 |
3437 |
{ { echo "$as_me:$LINENO: error: \"arpa/inet.h not found\"" >&5 |
1298 |
{ echo "configure: error: "fcntl.h not found"" 1>&2; exit 1; } |
3438 |
echo "$as_me: error: \"arpa/inet.h not found\"" >&2;} |
|
|
3439 |
{ (exit 1); exit 1; }; } |
1299 |
fi |
3440 |
fi |
1300 |
|
3441 |
|
1301 |
|
3442 |
|
1302 |
ac_safe=`echo "sys/poll.h" | sed 'y%./+-%__p_%'` |
3443 |
|
1303 |
echo $ac_n "checking for sys/poll.h""... $ac_c" 1>&6 |
3444 |
if test "${ac_cv_header_fcntl_h+set}" = set; then |
1304 |
echo "configure:1305: checking for sys/poll.h" >&5 |
3445 |
echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
1305 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3446 |
echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6 |
1306 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3447 |
if test "${ac_cv_header_fcntl_h+set}" = set; then |
|
|
3448 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3449 |
fi |
3450 |
echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
3451 |
echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6 |
3452 |
else |
3453 |
# Is the header compilable? |
3454 |
echo "$as_me:$LINENO: checking fcntl.h usability" >&5 |
3455 |
echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6 |
3456 |
cat >conftest.$ac_ext <<_ACEOF |
3457 |
/* confdefs.h. */ |
3458 |
_ACEOF |
3459 |
cat confdefs.h >>conftest.$ac_ext |
3460 |
cat >>conftest.$ac_ext <<_ACEOF |
3461 |
/* end confdefs.h. */ |
3462 |
$ac_includes_default |
3463 |
#include <fcntl.h> |
3464 |
_ACEOF |
3465 |
rm -f conftest.$ac_objext |
3466 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3467 |
(eval $ac_compile) 2>conftest.er1 |
3468 |
ac_status=$? |
3469 |
grep -v '^ *+' conftest.er1 >conftest.err |
3470 |
rm -f conftest.er1 |
3471 |
cat conftest.err >&5 |
3472 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3473 |
(exit $ac_status); } && |
3474 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3475 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3476 |
(eval $ac_try) 2>&5 |
3477 |
ac_status=$? |
3478 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3479 |
(exit $ac_status); }; } && |
3480 |
{ ac_try='test -s conftest.$ac_objext' |
3481 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3482 |
(eval $ac_try) 2>&5 |
3483 |
ac_status=$? |
3484 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3485 |
(exit $ac_status); }; }; then |
3486 |
ac_header_compiler=yes |
3487 |
else |
3488 |
echo "$as_me: failed program was:" >&5 |
3489 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3490 |
|
3491 |
ac_header_compiler=no |
3492 |
fi |
3493 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3494 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3495 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3496 |
|
3497 |
# Is the header present? |
3498 |
echo "$as_me:$LINENO: checking fcntl.h presence" >&5 |
3499 |
echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6 |
3500 |
cat >conftest.$ac_ext <<_ACEOF |
3501 |
/* confdefs.h. */ |
3502 |
_ACEOF |
3503 |
cat confdefs.h >>conftest.$ac_ext |
3504 |
cat >>conftest.$ac_ext <<_ACEOF |
3505 |
/* end confdefs.h. */ |
3506 |
#include <fcntl.h> |
3507 |
_ACEOF |
3508 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3509 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3510 |
ac_status=$? |
3511 |
grep -v '^ *+' conftest.er1 >conftest.err |
3512 |
rm -f conftest.er1 |
3513 |
cat conftest.err >&5 |
3514 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3515 |
(exit $ac_status); } >/dev/null; then |
3516 |
if test -s conftest.err; then |
3517 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3518 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3519 |
else |
3520 |
ac_cpp_err= |
3521 |
fi |
1307 |
else |
3522 |
else |
1308 |
cat > conftest.$ac_ext <<EOF |
3523 |
ac_cpp_err=yes |
1309 |
#line 1310 "configure" |
3524 |
fi |
1310 |
#include "confdefs.h" |
3525 |
if test -z "$ac_cpp_err"; then |
|
|
3526 |
ac_header_preproc=yes |
3527 |
else |
3528 |
echo "$as_me: failed program was:" >&5 |
3529 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3530 |
|
3531 |
ac_header_preproc=no |
3532 |
fi |
3533 |
rm -f conftest.err conftest.$ac_ext |
3534 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3535 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3536 |
|
3537 |
# So? What about this header? |
3538 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3539 |
yes:no: ) |
3540 |
{ echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3541 |
echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3542 |
{ echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 |
3543 |
echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} |
3544 |
ac_header_preproc=yes |
3545 |
;; |
3546 |
no:yes:* ) |
3547 |
{ echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 |
3548 |
echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} |
3549 |
{ echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 |
3550 |
echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} |
3551 |
{ echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 |
3552 |
echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} |
3553 |
{ echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 |
3554 |
echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
3555 |
{ echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 |
3556 |
echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} |
3557 |
{ echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 |
3558 |
echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} |
3559 |
( |
3560 |
cat <<\_ASBOX |
3561 |
## ------------------------------------------ ## |
3562 |
## Report this to the AC_PACKAGE_NAME lists. ## |
3563 |
## ------------------------------------------ ## |
3564 |
_ASBOX |
3565 |
) | |
3566 |
sed "s/^/$as_me: WARNING: /" >&2 |
3567 |
;; |
3568 |
esac |
3569 |
echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
3570 |
echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6 |
3571 |
if test "${ac_cv_header_fcntl_h+set}" = set; then |
3572 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3573 |
else |
3574 |
ac_cv_header_fcntl_h=$ac_header_preproc |
3575 |
fi |
3576 |
echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
3577 |
echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6 |
3578 |
|
3579 |
fi |
3580 |
if test $ac_cv_header_fcntl_h = yes; then |
3581 |
: |
3582 |
else |
3583 |
{ { echo "$as_me:$LINENO: error: \"fcntl.h not found\"" >&5 |
3584 |
echo "$as_me: error: \"fcntl.h not found\"" >&2;} |
3585 |
{ (exit 1); exit 1; }; } |
3586 |
fi |
3587 |
|
3588 |
|
3589 |
|
3590 |
if test "${ac_cv_header_sys_poll_h+set}" = set; then |
3591 |
echo "$as_me:$LINENO: checking for sys/poll.h" >&5 |
3592 |
echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6 |
3593 |
if test "${ac_cv_header_sys_poll_h+set}" = set; then |
3594 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3595 |
fi |
3596 |
echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5 |
3597 |
echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6 |
3598 |
else |
3599 |
# Is the header compilable? |
3600 |
echo "$as_me:$LINENO: checking sys/poll.h usability" >&5 |
3601 |
echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6 |
3602 |
cat >conftest.$ac_ext <<_ACEOF |
3603 |
/* confdefs.h. */ |
3604 |
_ACEOF |
3605 |
cat confdefs.h >>conftest.$ac_ext |
3606 |
cat >>conftest.$ac_ext <<_ACEOF |
3607 |
/* end confdefs.h. */ |
3608 |
$ac_includes_default |
3609 |
#include <sys/poll.h> |
3610 |
_ACEOF |
3611 |
rm -f conftest.$ac_objext |
3612 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3613 |
(eval $ac_compile) 2>conftest.er1 |
3614 |
ac_status=$? |
3615 |
grep -v '^ *+' conftest.er1 >conftest.err |
3616 |
rm -f conftest.er1 |
3617 |
cat conftest.err >&5 |
3618 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3619 |
(exit $ac_status); } && |
3620 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3621 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3622 |
(eval $ac_try) 2>&5 |
3623 |
ac_status=$? |
3624 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3625 |
(exit $ac_status); }; } && |
3626 |
{ ac_try='test -s conftest.$ac_objext' |
3627 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3628 |
(eval $ac_try) 2>&5 |
3629 |
ac_status=$? |
3630 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3631 |
(exit $ac_status); }; }; then |
3632 |
ac_header_compiler=yes |
3633 |
else |
3634 |
echo "$as_me: failed program was:" >&5 |
3635 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3636 |
|
3637 |
ac_header_compiler=no |
3638 |
fi |
3639 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3640 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3641 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3642 |
|
3643 |
# Is the header present? |
3644 |
echo "$as_me:$LINENO: checking sys/poll.h presence" >&5 |
3645 |
echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6 |
3646 |
cat >conftest.$ac_ext <<_ACEOF |
3647 |
/* confdefs.h. */ |
3648 |
_ACEOF |
3649 |
cat confdefs.h >>conftest.$ac_ext |
3650 |
cat >>conftest.$ac_ext <<_ACEOF |
3651 |
/* end confdefs.h. */ |
1311 |
#include <sys/poll.h> |
3652 |
#include <sys/poll.h> |
1312 |
EOF |
3653 |
_ACEOF |
1313 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3654 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1314 |
{ (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3655 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
1315 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3656 |
ac_status=$? |
1316 |
if test -z "$ac_err"; then |
3657 |
grep -v '^ *+' conftest.er1 >conftest.err |
1317 |
rm -rf conftest* |
3658 |
rm -f conftest.er1 |
1318 |
eval "ac_cv_header_$ac_safe=yes" |
3659 |
cat conftest.err >&5 |
1319 |
else |
3660 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1320 |
echo "$ac_err" >&5 |
3661 |
(exit $ac_status); } >/dev/null; then |
1321 |
echo "configure: failed program was:" >&5 |
3662 |
if test -s conftest.err; then |
1322 |
cat conftest.$ac_ext >&5 |
3663 |
ac_cpp_err=$ac_c_preproc_warn_flag |
1323 |
rm -rf conftest* |
3664 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
1324 |
eval "ac_cv_header_$ac_safe=no" |
3665 |
else |
|
|
3666 |
ac_cpp_err= |
3667 |
fi |
3668 |
else |
3669 |
ac_cpp_err=yes |
1325 |
fi |
3670 |
fi |
1326 |
rm -f conftest* |
3671 |
if test -z "$ac_cpp_err"; then |
|
|
3672 |
ac_header_preproc=yes |
3673 |
else |
3674 |
echo "$as_me: failed program was:" >&5 |
3675 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3676 |
|
3677 |
ac_header_preproc=no |
3678 |
fi |
3679 |
rm -f conftest.err conftest.$ac_ext |
3680 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3681 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3682 |
|
3683 |
# So? What about this header? |
3684 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3685 |
yes:no: ) |
3686 |
{ echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3687 |
echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3688 |
{ echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5 |
3689 |
echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;} |
3690 |
ac_header_preproc=yes |
3691 |
;; |
3692 |
no:yes:* ) |
3693 |
{ echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5 |
3694 |
echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;} |
3695 |
{ echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5 |
3696 |
echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;} |
3697 |
{ echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5 |
3698 |
echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;} |
3699 |
{ echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5 |
3700 |
echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;} |
3701 |
{ echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5 |
3702 |
echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;} |
3703 |
{ echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5 |
3704 |
echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;} |
3705 |
( |
3706 |
cat <<\_ASBOX |
3707 |
## ------------------------------------------ ## |
3708 |
## Report this to the AC_PACKAGE_NAME lists. ## |
3709 |
## ------------------------------------------ ## |
3710 |
_ASBOX |
3711 |
) | |
3712 |
sed "s/^/$as_me: WARNING: /" >&2 |
3713 |
;; |
3714 |
esac |
3715 |
echo "$as_me:$LINENO: checking for sys/poll.h" >&5 |
3716 |
echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6 |
3717 |
if test "${ac_cv_header_sys_poll_h+set}" = set; then |
3718 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3719 |
else |
3720 |
ac_cv_header_sys_poll_h=$ac_header_preproc |
3721 |
fi |
3722 |
echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5 |
3723 |
echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6 |
3724 |
|
1327 |
fi |
3725 |
fi |
1328 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3726 |
if test $ac_cv_header_sys_poll_h = yes; then |
1329 |
echo "$ac_t""yes" 1>&6 |
|
|
1330 |
: |
3727 |
: |
1331 |
else |
3728 |
else |
1332 |
echo "$ac_t""no" 1>&6 |
3729 |
{ { echo "$as_me:$LINENO: error: \"sys/poll.h not found\"" >&5 |
1333 |
{ echo "configure: error: "sys/poll.h not found"" 1>&2; exit 1; } |
3730 |
echo "$as_me: error: \"sys/poll.h not found\"" >&2;} |
|
|
3731 |
{ (exit 1); exit 1; }; } |
3732 |
fi |
3733 |
|
3734 |
|
3735 |
|
3736 |
if test "${ac_cv_header_sys_mman_h+set}" = set; then |
3737 |
echo "$as_me:$LINENO: checking for sys/mman.h" >&5 |
3738 |
echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6 |
3739 |
if test "${ac_cv_header_sys_mman_h+set}" = set; then |
3740 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3741 |
fi |
3742 |
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5 |
3743 |
echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6 |
3744 |
else |
3745 |
# Is the header compilable? |
3746 |
echo "$as_me:$LINENO: checking sys/mman.h usability" >&5 |
3747 |
echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6 |
3748 |
cat >conftest.$ac_ext <<_ACEOF |
3749 |
/* confdefs.h. */ |
3750 |
_ACEOF |
3751 |
cat confdefs.h >>conftest.$ac_ext |
3752 |
cat >>conftest.$ac_ext <<_ACEOF |
3753 |
/* end confdefs.h. */ |
3754 |
$ac_includes_default |
3755 |
#include <sys/mman.h> |
3756 |
_ACEOF |
3757 |
rm -f conftest.$ac_objext |
3758 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3759 |
(eval $ac_compile) 2>conftest.er1 |
3760 |
ac_status=$? |
3761 |
grep -v '^ *+' conftest.er1 >conftest.err |
3762 |
rm -f conftest.er1 |
3763 |
cat conftest.err >&5 |
3764 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3765 |
(exit $ac_status); } && |
3766 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3767 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3768 |
(eval $ac_try) 2>&5 |
3769 |
ac_status=$? |
3770 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3771 |
(exit $ac_status); }; } && |
3772 |
{ ac_try='test -s conftest.$ac_objext' |
3773 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3774 |
(eval $ac_try) 2>&5 |
3775 |
ac_status=$? |
3776 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3777 |
(exit $ac_status); }; }; then |
3778 |
ac_header_compiler=yes |
3779 |
else |
3780 |
echo "$as_me: failed program was:" >&5 |
3781 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3782 |
|
3783 |
ac_header_compiler=no |
3784 |
fi |
3785 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3786 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3787 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3788 |
|
3789 |
# Is the header present? |
3790 |
echo "$as_me:$LINENO: checking sys/mman.h presence" >&5 |
3791 |
echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6 |
3792 |
cat >conftest.$ac_ext <<_ACEOF |
3793 |
/* confdefs.h. */ |
3794 |
_ACEOF |
3795 |
cat confdefs.h >>conftest.$ac_ext |
3796 |
cat >>conftest.$ac_ext <<_ACEOF |
3797 |
/* end confdefs.h. */ |
3798 |
#include <sys/mman.h> |
3799 |
_ACEOF |
3800 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3801 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3802 |
ac_status=$? |
3803 |
grep -v '^ *+' conftest.er1 >conftest.err |
3804 |
rm -f conftest.er1 |
3805 |
cat conftest.err >&5 |
3806 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3807 |
(exit $ac_status); } >/dev/null; then |
3808 |
if test -s conftest.err; then |
3809 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3810 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3811 |
else |
3812 |
ac_cpp_err= |
3813 |
fi |
3814 |
else |
3815 |
ac_cpp_err=yes |
1334 |
fi |
3816 |
fi |
|
|
3817 |
if test -z "$ac_cpp_err"; then |
3818 |
ac_header_preproc=yes |
3819 |
else |
3820 |
echo "$as_me: failed program was:" >&5 |
3821 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1335 |
|
3822 |
|
|
|
3823 |
ac_header_preproc=no |
3824 |
fi |
3825 |
rm -f conftest.err conftest.$ac_ext |
3826 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3827 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3828 |
|
3829 |
# So? What about this header? |
3830 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3831 |
yes:no: ) |
3832 |
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3833 |
echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3834 |
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5 |
3835 |
echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;} |
3836 |
ac_header_preproc=yes |
3837 |
;; |
3838 |
no:yes:* ) |
3839 |
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5 |
3840 |
echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;} |
3841 |
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5 |
3842 |
echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;} |
3843 |
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5 |
3844 |
echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;} |
3845 |
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5 |
3846 |
echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;} |
3847 |
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5 |
3848 |
echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;} |
3849 |
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5 |
3850 |
echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;} |
3851 |
( |
3852 |
cat <<\_ASBOX |
3853 |
## ------------------------------------------ ## |
3854 |
## Report this to the AC_PACKAGE_NAME lists. ## |
3855 |
## ------------------------------------------ ## |
3856 |
_ASBOX |
3857 |
) | |
3858 |
sed "s/^/$as_me: WARNING: /" >&2 |
3859 |
;; |
3860 |
esac |
3861 |
echo "$as_me:$LINENO: checking for sys/mman.h" >&5 |
3862 |
echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6 |
3863 |
if test "${ac_cv_header_sys_mman_h+set}" = set; then |
3864 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3865 |
else |
3866 |
ac_cv_header_sys_mman_h=$ac_header_preproc |
3867 |
fi |
3868 |
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5 |
3869 |
echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6 |
1336 |
|
3870 |
|
1337 |
for ac_hdr in unistd.h |
|
|
1338 |
do |
1339 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1340 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1341 |
echo "configure:1342: checking for $ac_hdr" >&5 |
1342 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1343 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1344 |
else |
1345 |
cat > conftest.$ac_ext <<EOF |
1346 |
#line 1347 "configure" |
1347 |
#include "confdefs.h" |
1348 |
#include <$ac_hdr> |
1349 |
EOF |
1350 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1351 |
{ (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1352 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1353 |
if test -z "$ac_err"; then |
1354 |
rm -rf conftest* |
1355 |
eval "ac_cv_header_$ac_safe=yes" |
1356 |
else |
1357 |
echo "$ac_err" >&5 |
1358 |
echo "configure: failed program was:" >&5 |
1359 |
cat conftest.$ac_ext >&5 |
1360 |
rm -rf conftest* |
1361 |
eval "ac_cv_header_$ac_safe=no" |
1362 |
fi |
3871 |
fi |
1363 |
rm -f conftest* |
3872 |
if test $ac_cv_header_sys_mman_h = yes; then |
|
|
3873 |
: |
3874 |
else |
3875 |
{ { echo "$as_me:$LINENO: error: \"sys/mman.h not found\"" >&5 |
3876 |
echo "$as_me: error: \"sys/mman.h not found\"" >&2;} |
3877 |
{ (exit 1); exit 1; }; } |
3878 |
fi |
3879 |
|
3880 |
|
3881 |
|
3882 |
|
3883 |
for ac_header in unistd.h |
3884 |
do |
3885 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3886 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3887 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3888 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3889 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3890 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3891 |
fi |
3892 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3893 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3894 |
else |
3895 |
# Is the header compilable? |
3896 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3897 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
3898 |
cat >conftest.$ac_ext <<_ACEOF |
3899 |
/* confdefs.h. */ |
3900 |
_ACEOF |
3901 |
cat confdefs.h >>conftest.$ac_ext |
3902 |
cat >>conftest.$ac_ext <<_ACEOF |
3903 |
/* end confdefs.h. */ |
3904 |
$ac_includes_default |
3905 |
#include <$ac_header> |
3906 |
_ACEOF |
3907 |
rm -f conftest.$ac_objext |
3908 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3909 |
(eval $ac_compile) 2>conftest.er1 |
3910 |
ac_status=$? |
3911 |
grep -v '^ *+' conftest.er1 >conftest.err |
3912 |
rm -f conftest.er1 |
3913 |
cat conftest.err >&5 |
3914 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3915 |
(exit $ac_status); } && |
3916 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3917 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3918 |
(eval $ac_try) 2>&5 |
3919 |
ac_status=$? |
3920 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3921 |
(exit $ac_status); }; } && |
3922 |
{ ac_try='test -s conftest.$ac_objext' |
3923 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3924 |
(eval $ac_try) 2>&5 |
3925 |
ac_status=$? |
3926 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3927 |
(exit $ac_status); }; }; then |
3928 |
ac_header_compiler=yes |
3929 |
else |
3930 |
echo "$as_me: failed program was:" >&5 |
3931 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3932 |
|
3933 |
ac_header_compiler=no |
3934 |
fi |
3935 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3936 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3937 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3938 |
|
3939 |
# Is the header present? |
3940 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3941 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
3942 |
cat >conftest.$ac_ext <<_ACEOF |
3943 |
/* confdefs.h. */ |
3944 |
_ACEOF |
3945 |
cat confdefs.h >>conftest.$ac_ext |
3946 |
cat >>conftest.$ac_ext <<_ACEOF |
3947 |
/* end confdefs.h. */ |
3948 |
#include <$ac_header> |
3949 |
_ACEOF |
3950 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3951 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3952 |
ac_status=$? |
3953 |
grep -v '^ *+' conftest.er1 >conftest.err |
3954 |
rm -f conftest.er1 |
3955 |
cat conftest.err >&5 |
3956 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3957 |
(exit $ac_status); } >/dev/null; then |
3958 |
if test -s conftest.err; then |
3959 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3960 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3961 |
else |
3962 |
ac_cpp_err= |
3963 |
fi |
3964 |
else |
3965 |
ac_cpp_err=yes |
1364 |
fi |
3966 |
fi |
1365 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3967 |
if test -z "$ac_cpp_err"; then |
1366 |
echo "$ac_t""yes" 1>&6 |
3968 |
ac_header_preproc=yes |
1367 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3969 |
else |
1368 |
cat >> confdefs.h <<EOF |
3970 |
echo "$as_me: failed program was:" >&5 |
1369 |
#define $ac_tr_hdr 1 |
3971 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1370 |
EOF |
3972 |
|
1371 |
|
3973 |
ac_header_preproc=no |
|
|
3974 |
fi |
3975 |
rm -f conftest.err conftest.$ac_ext |
3976 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3977 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3978 |
|
3979 |
# So? What about this header? |
3980 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3981 |
yes:no: ) |
3982 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3983 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3984 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3985 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
3986 |
ac_header_preproc=yes |
3987 |
;; |
3988 |
no:yes:* ) |
3989 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3990 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
3991 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3992 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
3993 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
3994 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
3995 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
3996 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
3997 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3998 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
3999 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4000 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4001 |
( |
4002 |
cat <<\_ASBOX |
4003 |
## ------------------------------------------ ## |
4004 |
## Report this to the AC_PACKAGE_NAME lists. ## |
4005 |
## ------------------------------------------ ## |
4006 |
_ASBOX |
4007 |
) | |
4008 |
sed "s/^/$as_me: WARNING: /" >&2 |
4009 |
;; |
4010 |
esac |
4011 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4012 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4013 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4014 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1372 |
else |
4015 |
else |
1373 |
echo "$ac_t""no" 1>&6 |
4016 |
eval "$as_ac_Header=\$ac_header_preproc" |
1374 |
fi |
4017 |
fi |
|
|
4018 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4019 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4020 |
|
4021 |
fi |
4022 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4023 |
cat >>confdefs.h <<_ACEOF |
4024 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4025 |
_ACEOF |
4026 |
|
4027 |
fi |
4028 |
|
1375 |
done |
4029 |
done |
1376 |
|
4030 |
|
1377 |
|
4031 |
|
1378 |
for ac_func in strcspn strdup strerror strspn strtol |
4032 |
|
|
|
4033 |
|
4034 |
|
4035 |
|
4036 |
|
4037 |
|
4038 |
|
4039 |
|
4040 |
|
4041 |
for ac_func in strcspn strdup strerror strspn strtol mmap strcasecmp \ |
4042 |
strncasecmp strtol |
1379 |
do |
4043 |
do |
1380 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4044 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
1381 |
echo "configure:1382: checking for $ac_func" >&5 |
4045 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
1382 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4046 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
1383 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4047 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
1384 |
else |
4048 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1385 |
cat > conftest.$ac_ext <<EOF |
4049 |
else |
1386 |
#line 1387 "configure" |
4050 |
cat >conftest.$ac_ext <<_ACEOF |
1387 |
#include "confdefs.h" |
4051 |
/* confdefs.h. */ |
|
|
4052 |
_ACEOF |
4053 |
cat confdefs.h >>conftest.$ac_ext |
4054 |
cat >>conftest.$ac_ext <<_ACEOF |
4055 |
/* end confdefs.h. */ |
4056 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4057 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
4058 |
#define $ac_func innocuous_$ac_func |
4059 |
|
1388 |
/* System header to define __stub macros and hopefully few prototypes, |
4060 |
/* System header to define __stub macros and hopefully few prototypes, |
1389 |
which can conflict with char $ac_func(); below. */ |
4061 |
which can conflict with char $ac_func (); below. |
1390 |
#include <assert.h> |
4062 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1391 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4063 |
<limits.h> exists even on freestanding compilers. */ |
1392 |
/* We use char because int might match the return type of a gcc2 |
|
|
1393 |
builtin and then its argument prototype would still apply. */ |
1394 |
char $ac_func(); |
1395 |
|
4064 |
|
1396 |
int main() { |
4065 |
#ifdef __STDC__ |
|
|
4066 |
# include <limits.h> |
4067 |
#else |
4068 |
# include <assert.h> |
4069 |
#endif |
1397 |
|
4070 |
|
|
|
4071 |
#undef $ac_func |
4072 |
|
4073 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4074 |
#ifdef __cplusplus |
4075 |
extern "C" |
4076 |
{ |
4077 |
#endif |
4078 |
/* We use char because int might match the return type of a gcc2 |
4079 |
builtin and then its argument prototype would still apply. */ |
4080 |
char $ac_func (); |
1398 |
/* The GNU C library defines this for functions which it implements |
4081 |
/* The GNU C library defines this for functions which it implements |
1399 |
to always fail with ENOSYS. Some functions are actually named |
4082 |
to always fail with ENOSYS. Some functions are actually named |
1400 |
something starting with __ and the normal name is an alias. */ |
4083 |
something starting with __ and the normal name is an alias. */ |
1401 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4084 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
1402 |
choke me |
4085 |
choke me |
1403 |
#else |
4086 |
#else |
1404 |
$ac_func(); |
4087 |
char (*f) () = $ac_func; |
|
|
4088 |
#endif |
4089 |
#ifdef __cplusplus |
4090 |
} |
1405 |
#endif |
4091 |
#endif |
1406 |
|
4092 |
|
1407 |
; return 0; } |
4093 |
int |
1408 |
EOF |
4094 |
main () |
1409 |
if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4095 |
{ |
1410 |
rm -rf conftest* |
4096 |
return f != $ac_func; |
1411 |
eval "ac_cv_func_$ac_func=yes" |
4097 |
; |
1412 |
else |
4098 |
return 0; |
1413 |
echo "configure: failed program was:" >&5 |
4099 |
} |
1414 |
cat conftest.$ac_ext >&5 |
4100 |
_ACEOF |
1415 |
rm -rf conftest* |
4101 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1416 |
eval "ac_cv_func_$ac_func=no" |
4102 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4103 |
(eval $ac_link) 2>conftest.er1 |
4104 |
ac_status=$? |
4105 |
grep -v '^ *+' conftest.er1 >conftest.err |
4106 |
rm -f conftest.er1 |
4107 |
cat conftest.err >&5 |
4108 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4109 |
(exit $ac_status); } && |
4110 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4111 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4112 |
(eval $ac_try) 2>&5 |
4113 |
ac_status=$? |
4114 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4115 |
(exit $ac_status); }; } && |
4116 |
{ ac_try='test -s conftest$ac_exeext' |
4117 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4118 |
(eval $ac_try) 2>&5 |
4119 |
ac_status=$? |
4120 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4121 |
(exit $ac_status); }; }; then |
4122 |
eval "$as_ac_var=yes" |
4123 |
else |
4124 |
echo "$as_me: failed program was:" >&5 |
4125 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4126 |
|
4127 |
eval "$as_ac_var=no" |
4128 |
fi |
4129 |
rm -f conftest.err conftest.$ac_objext \ |
4130 |
conftest$ac_exeext conftest.$ac_ext |
4131 |
fi |
4132 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4133 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4134 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
4135 |
cat >>confdefs.h <<_ACEOF |
4136 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
4137 |
_ACEOF |
4138 |
|
4139 |
else |
4140 |
{ { echo "$as_me:$LINENO: error: \"Required function not found\"" >&5 |
4141 |
echo "$as_me: error: \"Required function not found\"" >&2;} |
4142 |
{ (exit 1); exit 1; }; } |
1417 |
fi |
4143 |
fi |
1418 |
rm -f conftest* |
4144 |
done |
|
|
4145 |
|
4146 |
|
4147 |
|
4148 |
|
4149 |
ac_ext=c |
4150 |
ac_cpp='$CPP $CPPFLAGS' |
4151 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4152 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4153 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4154 |
|
4155 |
echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 |
4156 |
echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 |
4157 |
|
4158 |
if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then |
4159 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4160 |
else |
4161 |
|
4162 |
|
4163 |
|
4164 |
ac_cv_func_which_gethostbyname_r=unknown |
4165 |
|
4166 |
# |
4167 |
# ONE ARGUMENT (sanity check) |
4168 |
# |
4169 |
|
4170 |
# This should fail, as there is no variant of gethostbyname_r() that takes |
4171 |
# a single argument. If it actually compiles, then we can assume that |
4172 |
# netdb.h is not declaring the function, and the compiler is thereby |
4173 |
# assuming an implicit prototype. In which case, we're out of luck. |
4174 |
# |
4175 |
cat >conftest.$ac_ext <<_ACEOF |
4176 |
/* confdefs.h. */ |
4177 |
_ACEOF |
4178 |
cat confdefs.h >>conftest.$ac_ext |
4179 |
cat >>conftest.$ac_ext <<_ACEOF |
4180 |
/* end confdefs.h. */ |
4181 |
#include <netdb.h> |
4182 |
int |
4183 |
main () |
4184 |
{ |
4185 |
|
4186 |
char *name = "www.gnu.org"; |
4187 |
(void)gethostbyname_r(name) /* ; */ |
4188 |
|
4189 |
; |
4190 |
return 0; |
4191 |
} |
4192 |
_ACEOF |
4193 |
rm -f conftest.$ac_objext |
4194 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4195 |
(eval $ac_compile) 2>conftest.er1 |
4196 |
ac_status=$? |
4197 |
grep -v '^ *+' conftest.er1 >conftest.err |
4198 |
rm -f conftest.er1 |
4199 |
cat conftest.err >&5 |
4200 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4201 |
(exit $ac_status); } && |
4202 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4203 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4204 |
(eval $ac_try) 2>&5 |
4205 |
ac_status=$? |
4206 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4207 |
(exit $ac_status); }; } && |
4208 |
{ ac_try='test -s conftest.$ac_objext' |
4209 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4210 |
(eval $ac_try) 2>&5 |
4211 |
ac_status=$? |
4212 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4213 |
(exit $ac_status); }; }; then |
4214 |
ac_cv_func_which_gethostbyname_r=no |
4215 |
else |
4216 |
echo "$as_me: failed program was:" >&5 |
4217 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4218 |
|
1419 |
fi |
4219 |
fi |
|
|
4220 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4221 |
|
4222 |
# |
4223 |
# SIX ARGUMENTS |
4224 |
# (e.g. Linux) |
4225 |
# |
4226 |
|
4227 |
if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then |
1420 |
|
4228 |
|
1421 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
4229 |
cat >conftest.$ac_ext <<_ACEOF |
1422 |
echo "$ac_t""yes" 1>&6 |
4230 |
/* confdefs.h. */ |
1423 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
4231 |
_ACEOF |
1424 |
cat >> confdefs.h <<EOF |
4232 |
cat confdefs.h >>conftest.$ac_ext |
1425 |
#define $ac_tr_func 1 |
4233 |
cat >>conftest.$ac_ext <<_ACEOF |
1426 |
EOF |
4234 |
/* end confdefs.h. */ |
1427 |
|
4235 |
#include <netdb.h> |
|
|
4236 |
int |
4237 |
main () |
4238 |
{ |
4239 |
|
4240 |
char *name = "www.gnu.org"; |
4241 |
struct hostent ret, *retp; |
4242 |
char buf[1024]; |
4243 |
int buflen = 1024; |
4244 |
int my_h_errno; |
4245 |
(void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ |
4246 |
|
4247 |
; |
4248 |
return 0; |
4249 |
} |
4250 |
_ACEOF |
4251 |
rm -f conftest.$ac_objext |
4252 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4253 |
(eval $ac_compile) 2>conftest.er1 |
4254 |
ac_status=$? |
4255 |
grep -v '^ *+' conftest.er1 >conftest.err |
4256 |
rm -f conftest.er1 |
4257 |
cat conftest.err >&5 |
4258 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4259 |
(exit $ac_status); } && |
4260 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4261 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4262 |
(eval $ac_try) 2>&5 |
4263 |
ac_status=$? |
4264 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4265 |
(exit $ac_status); }; } && |
4266 |
{ ac_try='test -s conftest.$ac_objext' |
4267 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4268 |
(eval $ac_try) 2>&5 |
4269 |
ac_status=$? |
4270 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4271 |
(exit $ac_status); }; }; then |
4272 |
ac_cv_func_which_gethostbyname_r=six |
1428 |
else |
4273 |
else |
1429 |
echo "$ac_t""no" 1>&6 |
4274 |
echo "$as_me: failed program was:" >&5 |
1430 |
{ echo "configure: error: "Required function not found"" 1>&2; exit 1; } |
4275 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4276 |
|
1431 |
fi |
4277 |
fi |
1432 |
done |
4278 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4279 |
|
4280 |
fi |
4281 |
|
4282 |
# |
4283 |
# FIVE ARGUMENTS |
4284 |
# (e.g. Solaris) |
4285 |
# |
4286 |
|
4287 |
if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then |
4288 |
|
4289 |
cat >conftest.$ac_ext <<_ACEOF |
4290 |
/* confdefs.h. */ |
4291 |
_ACEOF |
4292 |
cat confdefs.h >>conftest.$ac_ext |
4293 |
cat >>conftest.$ac_ext <<_ACEOF |
4294 |
/* end confdefs.h. */ |
4295 |
#include <netdb.h> |
4296 |
int |
4297 |
main () |
4298 |
{ |
4299 |
|
4300 |
char *name = "www.gnu.org"; |
4301 |
struct hostent ret; |
4302 |
char buf[1024]; |
4303 |
int buflen = 1024; |
4304 |
int my_h_errno; |
4305 |
(void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ |
4306 |
|
4307 |
; |
4308 |
return 0; |
4309 |
} |
4310 |
_ACEOF |
4311 |
rm -f conftest.$ac_objext |
4312 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4313 |
(eval $ac_compile) 2>conftest.er1 |
4314 |
ac_status=$? |
4315 |
grep -v '^ *+' conftest.er1 >conftest.err |
4316 |
rm -f conftest.er1 |
4317 |
cat conftest.err >&5 |
4318 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4319 |
(exit $ac_status); } && |
4320 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4321 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4322 |
(eval $ac_try) 2>&5 |
4323 |
ac_status=$? |
4324 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4325 |
(exit $ac_status); }; } && |
4326 |
{ ac_try='test -s conftest.$ac_objext' |
4327 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4328 |
(eval $ac_try) 2>&5 |
4329 |
ac_status=$? |
4330 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4331 |
(exit $ac_status); }; }; then |
4332 |
ac_cv_func_which_gethostbyname_r=five |
4333 |
else |
4334 |
echo "$as_me: failed program was:" >&5 |
4335 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4336 |
|
4337 |
fi |
4338 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4339 |
|
4340 |
fi |
4341 |
|
4342 |
# |
4343 |
# THREE ARGUMENTS |
4344 |
# (e.g. AIX, HP-UX, Tru64) |
4345 |
# |
4346 |
|
4347 |
if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then |
4348 |
|
4349 |
cat >conftest.$ac_ext <<_ACEOF |
4350 |
/* confdefs.h. */ |
4351 |
_ACEOF |
4352 |
cat confdefs.h >>conftest.$ac_ext |
4353 |
cat >>conftest.$ac_ext <<_ACEOF |
4354 |
/* end confdefs.h. */ |
4355 |
#include <netdb.h> |
4356 |
int |
4357 |
main () |
4358 |
{ |
4359 |
|
4360 |
char *name = "www.gnu.org"; |
4361 |
struct hostent ret; |
4362 |
struct hostent_data data; |
4363 |
(void)gethostbyname_r(name, &ret, &data) /* ; */ |
4364 |
|
4365 |
; |
4366 |
return 0; |
4367 |
} |
4368 |
_ACEOF |
4369 |
rm -f conftest.$ac_objext |
4370 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4371 |
(eval $ac_compile) 2>conftest.er1 |
4372 |
ac_status=$? |
4373 |
grep -v '^ *+' conftest.er1 >conftest.err |
4374 |
rm -f conftest.er1 |
4375 |
cat conftest.err >&5 |
4376 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4377 |
(exit $ac_status); } && |
4378 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4379 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4380 |
(eval $ac_try) 2>&5 |
4381 |
ac_status=$? |
4382 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4383 |
(exit $ac_status); }; } && |
4384 |
{ ac_try='test -s conftest.$ac_objext' |
4385 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4386 |
(eval $ac_try) 2>&5 |
4387 |
ac_status=$? |
4388 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4389 |
(exit $ac_status); }; }; then |
4390 |
ac_cv_func_which_gethostbyname_r=three |
4391 |
else |
4392 |
echo "$as_me: failed program was:" >&5 |
4393 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4394 |
|
4395 |
fi |
4396 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4397 |
|
4398 |
fi |
4399 |
|
4400 |
|
4401 |
|
4402 |
fi |
4403 |
|
4404 |
case "$ac_cv_func_which_gethostbyname_r" in |
4405 |
three) |
4406 |
echo "$as_me:$LINENO: result: three" >&5 |
4407 |
echo "${ECHO_T}three" >&6 |
4408 |
cat >>confdefs.h <<\_ACEOF |
4409 |
#define HAVE_FUNC_GETHOSTBYNAME_R_3 1 |
4410 |
_ACEOF |
4411 |
|
4412 |
;; |
4413 |
|
4414 |
five) |
4415 |
echo "$as_me:$LINENO: result: five" >&5 |
4416 |
echo "${ECHO_T}five" >&6 |
4417 |
cat >>confdefs.h <<\_ACEOF |
4418 |
#define HAVE_FUNC_GETHOSTBYNAME_R_5 1 |
4419 |
_ACEOF |
4420 |
|
4421 |
;; |
4422 |
|
4423 |
six) |
4424 |
echo "$as_me:$LINENO: result: six" >&5 |
4425 |
echo "${ECHO_T}six" >&6 |
4426 |
cat >>confdefs.h <<\_ACEOF |
4427 |
#define HAVE_FUNC_GETHOSTBYNAME_R_6 1 |
4428 |
_ACEOF |
4429 |
|
4430 |
;; |
4431 |
|
4432 |
no) |
4433 |
echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 |
4434 |
echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 |
4435 |
;; |
4436 |
|
4437 |
unknown) |
4438 |
echo "$as_me:$LINENO: result: can't tell" >&5 |
4439 |
echo "${ECHO_T}can't tell" >&6 |
4440 |
;; |
4441 |
|
4442 |
*) |
4443 |
{ { echo "$as_me:$LINENO: error: internal error" >&5 |
4444 |
echo "$as_me: error: internal error" >&2;} |
4445 |
{ (exit 1); exit 1; }; } |
4446 |
;; |
4447 |
esac |
4448 |
|
4449 |
ac_ext=c |
4450 |
ac_cpp='$CPP $CPPFLAGS' |
4451 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4452 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4453 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4454 |
|
4455 |
|
1433 |
|
4456 |
|
1434 |
|
4457 |
|
1435 |
OLDLIBS="${LIBS}" |
4458 |
OLDLIBS="${LIBS}" |
1436 |
LIBS= |
4459 |
LIBS= |
1437 |
CONNECTLIB= |
4460 |
CONNECTLIB= |
1438 |
for LIB in c socket; do |
4461 |
for LIB in c socket; do |
1439 |
echo $ac_n "checking for connect in -l"${LIB}"""... $ac_c" 1>&6 |
4462 |
as_ac_Lib=`echo "ac_cv_lib_"${LIB}"''_connect" | $as_tr_sh` |
1440 |
echo "configure:1441: checking for connect in -l"${LIB}"" >&5 |
4463 |
echo "$as_me:$LINENO: checking for connect in -l\"${LIB}\"" >&5 |
1441 |
ac_lib_var=`echo "${LIB}"'_'connect | sed 'y%./+-%__p_%'` |
4464 |
echo $ECHO_N "checking for connect in -l\"${LIB}\"... $ECHO_C" >&6 |
1442 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4465 |
if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
1443 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4466 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1444 |
else |
4467 |
else |
1445 |
ac_save_LIBS="$LIBS" |
4468 |
ac_check_lib_save_LIBS=$LIBS |
1446 |
LIBS="-l"${LIB}" $LIBS" |
4469 |
LIBS="-l"${LIB}" $LIBS" |
1447 |
cat > conftest.$ac_ext <<EOF |
4470 |
cat >conftest.$ac_ext <<_ACEOF |
1448 |
#line 1449 "configure" |
4471 |
/* confdefs.h. */ |
1449 |
#include "confdefs.h" |
4472 |
_ACEOF |
|
|
4473 |
cat confdefs.h >>conftest.$ac_ext |
4474 |
cat >>conftest.$ac_ext <<_ACEOF |
4475 |
/* end confdefs.h. */ |
4476 |
|
1450 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4477 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
4478 |
#ifdef __cplusplus |
4479 |
extern "C" |
4480 |
#endif |
1451 |
/* We use char because int might match the return type of a gcc2 |
4481 |
/* We use char because int might match the return type of a gcc2 |
1452 |
builtin and then its argument prototype would still apply. */ |
4482 |
builtin and then its argument prototype would still apply. */ |
1453 |
char connect(); |
4483 |
char connect (); |
1454 |
|
4484 |
int |
1455 |
int main() { |
4485 |
main () |
1456 |
connect() |
4486 |
{ |
1457 |
; return 0; } |
4487 |
connect (); |
1458 |
EOF |
4488 |
; |
1459 |
if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4489 |
return 0; |
1460 |
rm -rf conftest* |
4490 |
} |
1461 |
eval "ac_cv_lib_$ac_lib_var=yes" |
4491 |
_ACEOF |
1462 |
else |
4492 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1463 |
echo "configure: failed program was:" >&5 |
4493 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1464 |
cat conftest.$ac_ext >&5 |
4494 |
(eval $ac_link) 2>conftest.er1 |
1465 |
rm -rf conftest* |
4495 |
ac_status=$? |
1466 |
eval "ac_cv_lib_$ac_lib_var=no" |
4496 |
grep -v '^ *+' conftest.er1 >conftest.err |
1467 |
fi |
4497 |
rm -f conftest.er1 |
1468 |
rm -f conftest* |
4498 |
cat conftest.err >&5 |
1469 |
LIBS="$ac_save_LIBS" |
4499 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4500 |
(exit $ac_status); } && |
4501 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4502 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4503 |
(eval $ac_try) 2>&5 |
4504 |
ac_status=$? |
4505 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4506 |
(exit $ac_status); }; } && |
4507 |
{ ac_try='test -s conftest$ac_exeext' |
4508 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4509 |
(eval $ac_try) 2>&5 |
4510 |
ac_status=$? |
4511 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4512 |
(exit $ac_status); }; }; then |
4513 |
eval "$as_ac_Lib=yes" |
4514 |
else |
4515 |
echo "$as_me: failed program was:" >&5 |
4516 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4517 |
|
4518 |
eval "$as_ac_Lib=no" |
4519 |
fi |
4520 |
rm -f conftest.err conftest.$ac_objext \ |
4521 |
conftest$ac_exeext conftest.$ac_ext |
4522 |
LIBS=$ac_check_lib_save_LIBS |
4523 |
fi |
4524 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
4525 |
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
4526 |
if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
1470 |
|
4527 |
|
1471 |
fi |
|
|
1472 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1473 |
echo "$ac_t""yes" 1>&6 |
1474 |
|
1475 |
CONNECTLIB="${LIB}" |
4528 |
CONNECTLIB="${LIB}" |
1476 |
break |
4529 |
break |
1477 |
|
4530 |
|
1478 |
else |
|
|
1479 |
echo "$ac_t""no" 1>&6 |
1480 |
fi |
4531 |
fi |
1481 |
|
4532 |
|
1482 |
done |
4533 |
done |
1483 |
LIBS="${OLDLIBS} -l${CONNECTLIB}" |
4534 |
LIBS="${OLDLIBS} -l${CONNECTLIB}" |
1484 |
if test "${CONNECTLIB}" = ""; then |
4535 |
if test "${CONNECTLIB}" = ""; then |
1485 |
{ echo "configure: error: 'Could not find library containing connect()'" 1>&2; exit 1; } |
4536 |
{ { echo "$as_me:$LINENO: error: 'Could not find library containing connect()'" >&5 |
1486 |
fi |
4537 |
echo "$as_me: error: 'Could not find library containing connect()'" >&2;} |
|
|
4538 |
{ (exit 1); exit 1; }; } |
4539 |
fi |
4540 |
|
4541 |
echo "$as_me:$LINENO: checking for socket" >&5 |
4542 |
echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
4543 |
if test "${ac_cv_func_socket+set}" = set; then |
4544 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4545 |
else |
4546 |
cat >conftest.$ac_ext <<_ACEOF |
4547 |
/* confdefs.h. */ |
4548 |
_ACEOF |
4549 |
cat confdefs.h >>conftest.$ac_ext |
4550 |
cat >>conftest.$ac_ext <<_ACEOF |
4551 |
/* end confdefs.h. */ |
4552 |
/* Define socket to an innocuous variant, in case <limits.h> declares socket. |
4553 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
4554 |
#define socket innocuous_socket |
1487 |
|
4555 |
|
1488 |
echo $ac_n "checking for socket""... $ac_c" 1>&6 |
|
|
1489 |
echo "configure:1490: checking for socket" >&5 |
1490 |
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
1491 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1492 |
else |
1493 |
cat > conftest.$ac_ext <<EOF |
1494 |
#line 1495 "configure" |
1495 |
#include "confdefs.h" |
1496 |
/* System header to define __stub macros and hopefully few prototypes, |
4556 |
/* System header to define __stub macros and hopefully few prototypes, |
1497 |
which can conflict with char socket(); below. */ |
4557 |
which can conflict with char socket (); below. |
1498 |
#include <assert.h> |
4558 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1499 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4559 |
<limits.h> exists even on freestanding compilers. */ |
1500 |
/* We use char because int might match the return type of a gcc2 |
|
|
1501 |
builtin and then its argument prototype would still apply. */ |
1502 |
char socket(); |
1503 |
|
4560 |
|
1504 |
int main() { |
4561 |
#ifdef __STDC__ |
|
|
4562 |
# include <limits.h> |
4563 |
#else |
4564 |
# include <assert.h> |
4565 |
#endif |
1505 |
|
4566 |
|
|
|
4567 |
#undef socket |
4568 |
|
4569 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4570 |
#ifdef __cplusplus |
4571 |
extern "C" |
4572 |
{ |
4573 |
#endif |
4574 |
/* We use char because int might match the return type of a gcc2 |
4575 |
builtin and then its argument prototype would still apply. */ |
4576 |
char socket (); |
1506 |
/* The GNU C library defines this for functions which it implements |
4577 |
/* The GNU C library defines this for functions which it implements |
1507 |
to always fail with ENOSYS. Some functions are actually named |
4578 |
to always fail with ENOSYS. Some functions are actually named |
1508 |
something starting with __ and the normal name is an alias. */ |
4579 |
something starting with __ and the normal name is an alias. */ |
1509 |
#if defined (__stub_socket) || defined (__stub___socket) |
4580 |
#if defined (__stub_socket) || defined (__stub___socket) |
1510 |
choke me |
4581 |
choke me |
1511 |
#else |
4582 |
#else |
1512 |
socket(); |
4583 |
char (*f) () = socket; |
|
|
4584 |
#endif |
4585 |
#ifdef __cplusplus |
4586 |
} |
1513 |
#endif |
4587 |
#endif |
1514 |
|
4588 |
|
1515 |
; return 0; } |
4589 |
int |
1516 |
EOF |
4590 |
main () |
1517 |
if { (eval echo configure:1518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4591 |
{ |
1518 |
rm -rf conftest* |
4592 |
return f != socket; |
1519 |
eval "ac_cv_func_socket=yes" |
4593 |
; |
1520 |
else |
4594 |
return 0; |
1521 |
echo "configure: failed program was:" >&5 |
4595 |
} |
1522 |
cat conftest.$ac_ext >&5 |
4596 |
_ACEOF |
1523 |
rm -rf conftest* |
4597 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1524 |
eval "ac_cv_func_socket=no" |
4598 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1525 |
fi |
4599 |
(eval $ac_link) 2>conftest.er1 |
1526 |
rm -f conftest* |
4600 |
ac_status=$? |
1527 |
fi |
4601 |
grep -v '^ *+' conftest.er1 >conftest.err |
1528 |
|
4602 |
rm -f conftest.er1 |
1529 |
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then |
4603 |
cat conftest.err >&5 |
1530 |
echo "$ac_t""yes" 1>&6 |
4604 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4605 |
(exit $ac_status); } && |
4606 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4607 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4608 |
(eval $ac_try) 2>&5 |
4609 |
ac_status=$? |
4610 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4611 |
(exit $ac_status); }; } && |
4612 |
{ ac_try='test -s conftest$ac_exeext' |
4613 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4614 |
(eval $ac_try) 2>&5 |
4615 |
ac_status=$? |
4616 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4617 |
(exit $ac_status); }; }; then |
4618 |
ac_cv_func_socket=yes |
4619 |
else |
4620 |
echo "$as_me: failed program was:" >&5 |
4621 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4622 |
|
4623 |
ac_cv_func_socket=no |
4624 |
fi |
4625 |
rm -f conftest.err conftest.$ac_objext \ |
4626 |
conftest$ac_exeext conftest.$ac_ext |
4627 |
fi |
4628 |
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
4629 |
echo "${ECHO_T}$ac_cv_func_socket" >&6 |
4630 |
if test $ac_cv_func_socket = yes; then |
1531 |
: |
4631 |
: |
1532 |
else |
4632 |
else |
1533 |
echo "$ac_t""no" 1>&6 |
|
|
1534 |
|
4633 |
|
1535 |
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
4634 |
|
1536 |
echo "configure:1537: checking for socket in -lsocket" >&5 |
4635 |
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
1537 |
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
4636 |
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
1538 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4637 |
if test "${ac_cv_lib_socket_socket+set}" = set; then |
1539 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4638 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1540 |
else |
4639 |
else |
1541 |
ac_save_LIBS="$LIBS" |
4640 |
ac_check_lib_save_LIBS=$LIBS |
1542 |
LIBS="-lsocket $LIBS" |
4641 |
LIBS="-lsocket $LIBS" |
1543 |
cat > conftest.$ac_ext <<EOF |
4642 |
cat >conftest.$ac_ext <<_ACEOF |
1544 |
#line 1545 "configure" |
4643 |
/* confdefs.h. */ |
1545 |
#include "confdefs.h" |
4644 |
_ACEOF |
|
|
4645 |
cat confdefs.h >>conftest.$ac_ext |
4646 |
cat >>conftest.$ac_ext <<_ACEOF |
4647 |
/* end confdefs.h. */ |
4648 |
|
1546 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4649 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
4650 |
#ifdef __cplusplus |
4651 |
extern "C" |
4652 |
#endif |
1547 |
/* We use char because int might match the return type of a gcc2 |
4653 |
/* We use char because int might match the return type of a gcc2 |
1548 |
builtin and then its argument prototype would still apply. */ |
4654 |
builtin and then its argument prototype would still apply. */ |
1549 |
char socket(); |
4655 |
char socket (); |
1550 |
|
4656 |
int |
1551 |
int main() { |
4657 |
main () |
1552 |
socket() |
4658 |
{ |
1553 |
; return 0; } |
4659 |
socket (); |
1554 |
EOF |
4660 |
; |
1555 |
if { (eval echo configure:1556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4661 |
return 0; |
1556 |
rm -rf conftest* |
4662 |
} |
1557 |
eval "ac_cv_lib_$ac_lib_var=yes" |
4663 |
_ACEOF |
1558 |
else |
4664 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1559 |
echo "configure: failed program was:" >&5 |
4665 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1560 |
cat conftest.$ac_ext >&5 |
4666 |
(eval $ac_link) 2>conftest.er1 |
1561 |
rm -rf conftest* |
4667 |
ac_status=$? |
1562 |
eval "ac_cv_lib_$ac_lib_var=no" |
4668 |
grep -v '^ *+' conftest.er1 >conftest.err |
1563 |
fi |
4669 |
rm -f conftest.er1 |
1564 |
rm -f conftest* |
4670 |
cat conftest.err >&5 |
1565 |
LIBS="$ac_save_LIBS" |
4671 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1566 |
|
4672 |
(exit $ac_status); } && |
1567 |
fi |
4673 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1568 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4674 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1569 |
echo "$ac_t""yes" 1>&6 |
4675 |
(eval $ac_try) 2>&5 |
1570 |
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
4676 |
ac_status=$? |
1571 |
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
4677 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1572 |
cat >> confdefs.h <<EOF |
4678 |
(exit $ac_status); }; } && |
1573 |
#define $ac_tr_lib 1 |
4679 |
{ ac_try='test -s conftest$ac_exeext' |
1574 |
EOF |
4680 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4681 |
(eval $ac_try) 2>&5 |
4682 |
ac_status=$? |
4683 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4684 |
(exit $ac_status); }; }; then |
4685 |
ac_cv_lib_socket_socket=yes |
4686 |
else |
4687 |
echo "$as_me: failed program was:" >&5 |
4688 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4689 |
|
4690 |
ac_cv_lib_socket_socket=no |
4691 |
fi |
4692 |
rm -f conftest.err conftest.$ac_objext \ |
4693 |
conftest$ac_exeext conftest.$ac_ext |
4694 |
LIBS=$ac_check_lib_save_LIBS |
4695 |
fi |
4696 |
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
4697 |
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
4698 |
if test $ac_cv_lib_socket_socket = yes; then |
4699 |
cat >>confdefs.h <<_ACEOF |
4700 |
#define HAVE_LIBSOCKET 1 |
4701 |
_ACEOF |
1575 |
|
4702 |
|
1576 |
LIBS="-lsocket $LIBS" |
4703 |
LIBS="-lsocket $LIBS" |
1577 |
|
4704 |
|
1578 |
else |
4705 |
else |
1579 |
echo "$ac_t""no" 1>&6 |
4706 |
{ { echo "$as_me:$LINENO: error: \"socket function not found\"" >&5 |
1580 |
{ echo "configure: error: "socket function not found"" 1>&2; exit 1; } |
4707 |
echo "$as_me: error: \"socket function not found\"" >&2;} |
|
|
4708 |
{ (exit 1); exit 1; }; } |
1581 |
fi |
4709 |
fi |
1582 |
|
4710 |
|
1583 |
fi |
4711 |
fi |
1584 |
|
4712 |
|
1585 |
|
4713 |
|
1586 |
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 |
4714 |
echo "$as_me:$LINENO: checking for inet_aton" >&5 |
1587 |
echo "configure:1588: checking for inet_aton" >&5 |
4715 |
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
1588 |
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then |
4716 |
if test "${ac_cv_func_inet_aton+set}" = set; then |
1589 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4717 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1590 |
else |
4718 |
else |
1591 |
cat > conftest.$ac_ext <<EOF |
4719 |
cat >conftest.$ac_ext <<_ACEOF |
1592 |
#line 1593 "configure" |
4720 |
/* confdefs.h. */ |
1593 |
#include "confdefs.h" |
4721 |
_ACEOF |
|
|
4722 |
cat confdefs.h >>conftest.$ac_ext |
4723 |
cat >>conftest.$ac_ext <<_ACEOF |
4724 |
/* end confdefs.h. */ |
4725 |
/* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton. |
4726 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
4727 |
#define inet_aton innocuous_inet_aton |
4728 |
|
1594 |
/* System header to define __stub macros and hopefully few prototypes, |
4729 |
/* System header to define __stub macros and hopefully few prototypes, |
1595 |
which can conflict with char inet_aton(); below. */ |
4730 |
which can conflict with char inet_aton (); below. |
1596 |
#include <assert.h> |
4731 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1597 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4732 |
<limits.h> exists even on freestanding compilers. */ |
1598 |
/* We use char because int might match the return type of a gcc2 |
|
|
1599 |
builtin and then its argument prototype would still apply. */ |
1600 |
char inet_aton(); |
1601 |
|
4733 |
|
1602 |
int main() { |
4734 |
#ifdef __STDC__ |
|
|
4735 |
# include <limits.h> |
4736 |
#else |
4737 |
# include <assert.h> |
4738 |
#endif |
1603 |
|
4739 |
|
|
|
4740 |
#undef inet_aton |
4741 |
|
4742 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4743 |
#ifdef __cplusplus |
4744 |
extern "C" |
4745 |
{ |
4746 |
#endif |
4747 |
/* We use char because int might match the return type of a gcc2 |
4748 |
builtin and then its argument prototype would still apply. */ |
4749 |
char inet_aton (); |
1604 |
/* The GNU C library defines this for functions which it implements |
4750 |
/* The GNU C library defines this for functions which it implements |
1605 |
to always fail with ENOSYS. Some functions are actually named |
4751 |
to always fail with ENOSYS. Some functions are actually named |
1606 |
something starting with __ and the normal name is an alias. */ |
4752 |
something starting with __ and the normal name is an alias. */ |
1607 |
#if defined (__stub_inet_aton) || defined (__stub___inet_aton) |
4753 |
#if defined (__stub_inet_aton) || defined (__stub___inet_aton) |
1608 |
choke me |
4754 |
choke me |
1609 |
#else |
4755 |
#else |
1610 |
inet_aton(); |
4756 |
char (*f) () = inet_aton; |
|
|
4757 |
#endif |
4758 |
#ifdef __cplusplus |
4759 |
} |
1611 |
#endif |
4760 |
#endif |
1612 |
|
4761 |
|
1613 |
; return 0; } |
4762 |
int |
1614 |
EOF |
4763 |
main () |
1615 |
if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4764 |
{ |
1616 |
rm -rf conftest* |
4765 |
return f != inet_aton; |
1617 |
eval "ac_cv_func_inet_aton=yes" |
4766 |
; |
1618 |
else |
4767 |
return 0; |
1619 |
echo "configure: failed program was:" >&5 |
4768 |
} |
1620 |
cat conftest.$ac_ext >&5 |
4769 |
_ACEOF |
1621 |
rm -rf conftest* |
4770 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1622 |
eval "ac_cv_func_inet_aton=no" |
4771 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1623 |
fi |
4772 |
(eval $ac_link) 2>conftest.er1 |
1624 |
rm -f conftest* |
4773 |
ac_status=$? |
1625 |
fi |
4774 |
grep -v '^ *+' conftest.er1 >conftest.err |
1626 |
|
4775 |
rm -f conftest.er1 |
1627 |
if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then |
4776 |
cat conftest.err >&5 |
1628 |
echo "$ac_t""yes" 1>&6 |
4777 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1629 |
cat >> confdefs.h <<\EOF |
4778 |
(exit $ac_status); } && |
|
|
4779 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4780 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4781 |
(eval $ac_try) 2>&5 |
4782 |
ac_status=$? |
4783 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4784 |
(exit $ac_status); }; } && |
4785 |
{ ac_try='test -s conftest$ac_exeext' |
4786 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4787 |
(eval $ac_try) 2>&5 |
4788 |
ac_status=$? |
4789 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4790 |
(exit $ac_status); }; }; then |
4791 |
ac_cv_func_inet_aton=yes |
4792 |
else |
4793 |
echo "$as_me: failed program was:" >&5 |
4794 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4795 |
|
4796 |
ac_cv_func_inet_aton=no |
4797 |
fi |
4798 |
rm -f conftest.err conftest.$ac_objext \ |
4799 |
conftest$ac_exeext conftest.$ac_ext |
4800 |
fi |
4801 |
echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5 |
4802 |
echo "${ECHO_T}$ac_cv_func_inet_aton" >&6 |
4803 |
if test $ac_cv_func_inet_aton = yes; then |
4804 |
cat >>confdefs.h <<\_ACEOF |
1630 |
#define HAVE_INET_ATON 1 |
4805 |
#define HAVE_INET_ATON 1 |
1631 |
EOF |
4806 |
_ACEOF |
1632 |
|
4807 |
|
1633 |
else |
4808 |
else |
1634 |
echo "$ac_t""no" 1>&6 |
|
|
1635 |
|
4809 |
|
1636 |
echo $ac_n "checking for inet_addr""... $ac_c" 1>&6 |
4810 |
echo "$as_me:$LINENO: checking for inet_addr" >&5 |
1637 |
echo "configure:1638: checking for inet_addr" >&5 |
4811 |
echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6 |
1638 |
if eval "test \"`echo '$''{'ac_cv_func_inet_addr'+set}'`\" = set"; then |
4812 |
if test "${ac_cv_func_inet_addr+set}" = set; then |
1639 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4813 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1640 |
else |
4814 |
else |
1641 |
cat > conftest.$ac_ext <<EOF |
4815 |
cat >conftest.$ac_ext <<_ACEOF |
1642 |
#line 1643 "configure" |
4816 |
/* confdefs.h. */ |
1643 |
#include "confdefs.h" |
4817 |
_ACEOF |
|
|
4818 |
cat confdefs.h >>conftest.$ac_ext |
4819 |
cat >>conftest.$ac_ext <<_ACEOF |
4820 |
/* end confdefs.h. */ |
4821 |
/* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr. |
4822 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
4823 |
#define inet_addr innocuous_inet_addr |
4824 |
|
1644 |
/* System header to define __stub macros and hopefully few prototypes, |
4825 |
/* System header to define __stub macros and hopefully few prototypes, |
1645 |
which can conflict with char inet_addr(); below. */ |
4826 |
which can conflict with char inet_addr (); below. |
1646 |
#include <assert.h> |
4827 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1647 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4828 |
<limits.h> exists even on freestanding compilers. */ |
1648 |
/* We use char because int might match the return type of a gcc2 |
|
|
1649 |
builtin and then its argument prototype would still apply. */ |
1650 |
char inet_addr(); |
1651 |
|
4829 |
|
1652 |
int main() { |
4830 |
#ifdef __STDC__ |
|
|
4831 |
# include <limits.h> |
4832 |
#else |
4833 |
# include <assert.h> |
4834 |
#endif |
4835 |
|
4836 |
#undef inet_addr |
1653 |
|
4837 |
|
|
|
4838 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4839 |
#ifdef __cplusplus |
4840 |
extern "C" |
4841 |
{ |
4842 |
#endif |
4843 |
/* We use char because int might match the return type of a gcc2 |
4844 |
builtin and then its argument prototype would still apply. */ |
4845 |
char inet_addr (); |
1654 |
/* The GNU C library defines this for functions which it implements |
4846 |
/* The GNU C library defines this for functions which it implements |
1655 |
to always fail with ENOSYS. Some functions are actually named |
4847 |
to always fail with ENOSYS. Some functions are actually named |
1656 |
something starting with __ and the normal name is an alias. */ |
4848 |
something starting with __ and the normal name is an alias. */ |
1657 |
#if defined (__stub_inet_addr) || defined (__stub___inet_addr) |
4849 |
#if defined (__stub_inet_addr) || defined (__stub___inet_addr) |
1658 |
choke me |
4850 |
choke me |
1659 |
#else |
4851 |
#else |
1660 |
inet_addr(); |
4852 |
char (*f) () = inet_addr; |
|
|
4853 |
#endif |
4854 |
#ifdef __cplusplus |
4855 |
} |
1661 |
#endif |
4856 |
#endif |
1662 |
|
4857 |
|
1663 |
; return 0; } |
4858 |
int |
1664 |
EOF |
4859 |
main () |
1665 |
if { (eval echo configure:1666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4860 |
{ |
1666 |
rm -rf conftest* |
4861 |
return f != inet_addr; |
1667 |
eval "ac_cv_func_inet_addr=yes" |
4862 |
; |
1668 |
else |
4863 |
return 0; |
1669 |
echo "configure: failed program was:" >&5 |
4864 |
} |
1670 |
cat conftest.$ac_ext >&5 |
4865 |
_ACEOF |
1671 |
rm -rf conftest* |
4866 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1672 |
eval "ac_cv_func_inet_addr=no" |
4867 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1673 |
fi |
4868 |
(eval $ac_link) 2>conftest.er1 |
1674 |
rm -f conftest* |
4869 |
ac_status=$? |
1675 |
fi |
4870 |
grep -v '^ *+' conftest.er1 >conftest.err |
1676 |
|
4871 |
rm -f conftest.er1 |
1677 |
if eval "test \"`echo '$ac_cv_func_'inet_addr`\" = yes"; then |
4872 |
cat conftest.err >&5 |
1678 |
echo "$ac_t""yes" 1>&6 |
4873 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1679 |
cat >> confdefs.h <<\EOF |
4874 |
(exit $ac_status); } && |
|
|
4875 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4876 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4877 |
(eval $ac_try) 2>&5 |
4878 |
ac_status=$? |
4879 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4880 |
(exit $ac_status); }; } && |
4881 |
{ ac_try='test -s conftest$ac_exeext' |
4882 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4883 |
(eval $ac_try) 2>&5 |
4884 |
ac_status=$? |
4885 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4886 |
(exit $ac_status); }; }; then |
4887 |
ac_cv_func_inet_addr=yes |
4888 |
else |
4889 |
echo "$as_me: failed program was:" >&5 |
4890 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4891 |
|
4892 |
ac_cv_func_inet_addr=no |
4893 |
fi |
4894 |
rm -f conftest.err conftest.$ac_objext \ |
4895 |
conftest$ac_exeext conftest.$ac_ext |
4896 |
fi |
4897 |
echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5 |
4898 |
echo "${ECHO_T}$ac_cv_func_inet_addr" >&6 |
4899 |
if test $ac_cv_func_inet_addr = yes; then |
4900 |
cat >>confdefs.h <<\_ACEOF |
1680 |
#define HAVE_INET_ADDR 1 |
4901 |
#define HAVE_INET_ADDR 1 |
1681 |
EOF |
4902 |
_ACEOF |
1682 |
|
4903 |
|
1683 |
else |
4904 |
else |
1684 |
echo "$ac_t""no" 1>&6 |
|
|
1685 |
|
4905 |
|
1686 |
echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
4906 |
echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 |
1687 |
echo "configure:1688: checking for inet_addr in -lnsl" >&5 |
4907 |
echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 |
1688 |
ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
4908 |
if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then |
1689 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4909 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1690 |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1691 |
else |
4910 |
else |
1692 |
ac_save_LIBS="$LIBS" |
4911 |
ac_check_lib_save_LIBS=$LIBS |
1693 |
LIBS="-lnsl $LIBS" |
4912 |
LIBS="-lnsl $LIBS" |
1694 |
cat > conftest.$ac_ext <<EOF |
4913 |
cat >conftest.$ac_ext <<_ACEOF |
1695 |
#line 1696 "configure" |
4914 |
/* confdefs.h. */ |
1696 |
#include "confdefs.h" |
4915 |
_ACEOF |
1697 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4916 |
cat confdefs.h >>conftest.$ac_ext |
1698 |
/* We use char because int might match the return type of a gcc2 |
4917 |
cat >>conftest.$ac_ext <<_ACEOF |
1699 |
builtin and then its argument prototype would still apply. */ |
4918 |
/* end confdefs.h. */ |
1700 |
char inet_addr(); |
|
|
1701 |
|
1702 |
int main() { |
1703 |
inet_addr() |
1704 |
; return 0; } |
1705 |
EOF |
1706 |
if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1707 |
rm -rf conftest* |
1708 |
eval "ac_cv_lib_$ac_lib_var=yes" |
1709 |
else |
1710 |
echo "configure: failed program was:" >&5 |
1711 |
cat conftest.$ac_ext >&5 |
1712 |
rm -rf conftest* |
1713 |
eval "ac_cv_lib_$ac_lib_var=no" |
1714 |
fi |
1715 |
rm -f conftest* |
1716 |
LIBS="$ac_save_LIBS" |
1717 |
|
4919 |
|
1718 |
fi |
4920 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1719 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4921 |
#ifdef __cplusplus |
1720 |
echo "$ac_t""yes" 1>&6 |
4922 |
extern "C" |
1721 |
cat >> confdefs.h <<\EOF |
4923 |
#endif |
|
|
4924 |
/* We use char because int might match the return type of a gcc2 |
4925 |
builtin and then its argument prototype would still apply. */ |
4926 |
char inet_addr (); |
4927 |
int |
4928 |
main () |
4929 |
{ |
4930 |
inet_addr (); |
4931 |
; |
4932 |
return 0; |
4933 |
} |
4934 |
_ACEOF |
4935 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4936 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4937 |
(eval $ac_link) 2>conftest.er1 |
4938 |
ac_status=$? |
4939 |
grep -v '^ *+' conftest.er1 >conftest.err |
4940 |
rm -f conftest.er1 |
4941 |
cat conftest.err >&5 |
4942 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4943 |
(exit $ac_status); } && |
4944 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4945 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4946 |
(eval $ac_try) 2>&5 |
4947 |
ac_status=$? |
4948 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4949 |
(exit $ac_status); }; } && |
4950 |
{ ac_try='test -s conftest$ac_exeext' |
4951 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4952 |
(eval $ac_try) 2>&5 |
4953 |
ac_status=$? |
4954 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4955 |
(exit $ac_status); }; }; then |
4956 |
ac_cv_lib_nsl_inet_addr=yes |
4957 |
else |
4958 |
echo "$as_me: failed program was:" >&5 |
4959 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4960 |
|
4961 |
ac_cv_lib_nsl_inet_addr=no |
4962 |
fi |
4963 |
rm -f conftest.err conftest.$ac_objext \ |
4964 |
conftest$ac_exeext conftest.$ac_ext |
4965 |
LIBS=$ac_check_lib_save_LIBS |
4966 |
fi |
4967 |
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 |
4968 |
echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 |
4969 |
if test $ac_cv_lib_nsl_inet_addr = yes; then |
4970 |
cat >>confdefs.h <<\_ACEOF |
1722 |
#define HAVE_INET_ADDR 1 |
4971 |
#define HAVE_INET_ADDR 1 |
1723 |
EOF |
4972 |
_ACEOF |
1724 |
|
4973 |
|
1725 |
LIBS="${LIBS} -lnsl" |
4974 |
LIBS="${LIBS} -lnsl" |
1726 |
else |
4975 |
else |
1727 |
echo "$ac_t""no" 1>&6 |
|
|
1728 |
|
4976 |
|
1729 |
{ echo "configure: error: "Neither inet_aton or inet_addr present"" 1>&2; exit 1; } |
4977 |
{ { echo "$as_me:$LINENO: error: \"Neither inet_aton or inet_addr present\"" >&5 |
|
|
4978 |
echo "$as_me: error: \"Neither inet_aton or inet_addr present\"" >&2;} |
4979 |
{ (exit 1); exit 1; }; } |
1730 |
fi |
4980 |
fi |
1731 |
|
4981 |
|
1732 |
fi |
4982 |
fi |
1733 |
|
4983 |
|
1734 |
fi |
4984 |
fi |
1735 |
|
4985 |
|
1736 |
|
4986 |
|
1737 |
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
4987 |
echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
1738 |
echo "configure:1739: checking for gethostbyname" >&5 |
4988 |
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
1739 |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
4989 |
if test "${ac_cv_func_gethostbyname+set}" = set; then |
1740 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4990 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1741 |
else |
4991 |
else |
1742 |
cat > conftest.$ac_ext <<EOF |
4992 |
cat >conftest.$ac_ext <<_ACEOF |
1743 |
#line 1744 "configure" |
4993 |
/* confdefs.h. */ |
1744 |
#include "confdefs.h" |
4994 |
_ACEOF |
|
|
4995 |
cat confdefs.h >>conftest.$ac_ext |
4996 |
cat >>conftest.$ac_ext <<_ACEOF |
4997 |
/* end confdefs.h. */ |
4998 |
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
4999 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
5000 |
#define gethostbyname innocuous_gethostbyname |
5001 |
|
1745 |
/* System header to define __stub macros and hopefully few prototypes, |
5002 |
/* System header to define __stub macros and hopefully few prototypes, |
1746 |
which can conflict with char gethostbyname(); below. */ |
5003 |
which can conflict with char gethostbyname (); below. |
1747 |
#include <assert.h> |
5004 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1748 |
/* Override any gcc2 internal prototype to avoid an error. */ |
5005 |
<limits.h> exists even on freestanding compilers. */ |
1749 |
/* We use char because int might match the return type of a gcc2 |
|
|
1750 |
builtin and then its argument prototype would still apply. */ |
1751 |
char gethostbyname(); |
1752 |
|
5006 |
|
1753 |
int main() { |
5007 |
#ifdef __STDC__ |
|
|
5008 |
# include <limits.h> |
5009 |
#else |
5010 |
# include <assert.h> |
5011 |
#endif |
1754 |
|
5012 |
|
|
|
5013 |
#undef gethostbyname |
5014 |
|
5015 |
/* Override any gcc2 internal prototype to avoid an error. */ |
5016 |
#ifdef __cplusplus |
5017 |
extern "C" |
5018 |
{ |
5019 |
#endif |
5020 |
/* We use char because int might match the return type of a gcc2 |
5021 |
builtin and then its argument prototype would still apply. */ |
5022 |
char gethostbyname (); |
1755 |
/* The GNU C library defines this for functions which it implements |
5023 |
/* The GNU C library defines this for functions which it implements |
1756 |
to always fail with ENOSYS. Some functions are actually named |
5024 |
to always fail with ENOSYS. Some functions are actually named |
1757 |
something starting with __ and the normal name is an alias. */ |
5025 |
something starting with __ and the normal name is an alias. */ |
1758 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
5026 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
1759 |
choke me |
5027 |
choke me |
1760 |
#else |
5028 |
#else |
1761 |
gethostbyname(); |
5029 |
char (*f) () = gethostbyname; |
|
|
5030 |
#endif |
5031 |
#ifdef __cplusplus |
5032 |
} |
1762 |
#endif |
5033 |
#endif |
1763 |
|
5034 |
|
1764 |
; return 0; } |
5035 |
int |
1765 |
EOF |
5036 |
main () |
1766 |
if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5037 |
{ |
1767 |
rm -rf conftest* |
5038 |
return f != gethostbyname; |
1768 |
eval "ac_cv_func_gethostbyname=yes" |
5039 |
; |
1769 |
else |
5040 |
return 0; |
1770 |
echo "configure: failed program was:" >&5 |
5041 |
} |
1771 |
cat conftest.$ac_ext >&5 |
5042 |
_ACEOF |
1772 |
rm -rf conftest* |
5043 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1773 |
eval "ac_cv_func_gethostbyname=no" |
5044 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1774 |
fi |
5045 |
(eval $ac_link) 2>conftest.er1 |
1775 |
rm -f conftest* |
5046 |
ac_status=$? |
1776 |
fi |
5047 |
grep -v '^ *+' conftest.er1 >conftest.err |
1777 |
|
5048 |
rm -f conftest.er1 |
1778 |
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
5049 |
cat conftest.err >&5 |
1779 |
echo "$ac_t""yes" 1>&6 |
5050 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1780 |
cat >> confdefs.h <<\EOF |
5051 |
(exit $ac_status); } && |
|
|
5052 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5053 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5054 |
(eval $ac_try) 2>&5 |
5055 |
ac_status=$? |
5056 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5057 |
(exit $ac_status); }; } && |
5058 |
{ ac_try='test -s conftest$ac_exeext' |
5059 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5060 |
(eval $ac_try) 2>&5 |
5061 |
ac_status=$? |
5062 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5063 |
(exit $ac_status); }; }; then |
5064 |
ac_cv_func_gethostbyname=yes |
5065 |
else |
5066 |
echo "$as_me: failed program was:" >&5 |
5067 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5068 |
|
5069 |
ac_cv_func_gethostbyname=no |
5070 |
fi |
5071 |
rm -f conftest.err conftest.$ac_objext \ |
5072 |
conftest$ac_exeext conftest.$ac_ext |
5073 |
fi |
5074 |
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
5075 |
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
5076 |
if test $ac_cv_func_gethostbyname = yes; then |
5077 |
cat >>confdefs.h <<\_ACEOF |
1781 |
#define HAVE_GETHOSTBYNAME 1 |
5078 |
#define HAVE_GETHOSTBYNAME 1 |
1782 |
EOF |
5079 |
_ACEOF |
1783 |
|
5080 |
|
1784 |
else |
5081 |
else |
1785 |
echo "$ac_t""no" 1>&6 |
|
|
1786 |
|
5082 |
|
1787 |
echo $ac_n "checking for gethostbyname in -lxnet""... $ac_c" 1>&6 |
5083 |
echo "$as_me:$LINENO: checking for gethostbyname in -lxnet" >&5 |
1788 |
echo "configure:1789: checking for gethostbyname in -lxnet" >&5 |
5084 |
echo $ECHO_N "checking for gethostbyname in -lxnet... $ECHO_C" >&6 |
1789 |
ac_lib_var=`echo xnet'_'gethostbyname | sed 'y%./+-%__p_%'` |
5085 |
if test "${ac_cv_lib_xnet_gethostbyname+set}" = set; then |
1790 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5086 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1791 |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1792 |
else |
5087 |
else |
1793 |
ac_save_LIBS="$LIBS" |
5088 |
ac_check_lib_save_LIBS=$LIBS |
1794 |
LIBS="-lxnet $LIBS" |
5089 |
LIBS="-lxnet $LIBS" |
1795 |
cat > conftest.$ac_ext <<EOF |
5090 |
cat >conftest.$ac_ext <<_ACEOF |
1796 |
#line 1797 "configure" |
5091 |
/* confdefs.h. */ |
1797 |
#include "confdefs.h" |
5092 |
_ACEOF |
|
|
5093 |
cat confdefs.h >>conftest.$ac_ext |
5094 |
cat >>conftest.$ac_ext <<_ACEOF |
5095 |
/* end confdefs.h. */ |
5096 |
|
1798 |
/* Override any gcc2 internal prototype to avoid an error. */ |
5097 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
5098 |
#ifdef __cplusplus |
5099 |
extern "C" |
5100 |
#endif |
1799 |
/* We use char because int might match the return type of a gcc2 |
5101 |
/* We use char because int might match the return type of a gcc2 |
1800 |
builtin and then its argument prototype would still apply. */ |
5102 |
builtin and then its argument prototype would still apply. */ |
1801 |
char gethostbyname(); |
5103 |
char gethostbyname (); |
1802 |
|
5104 |
int |
1803 |
int main() { |
5105 |
main () |
1804 |
gethostbyname() |
5106 |
{ |
1805 |
; return 0; } |
5107 |
gethostbyname (); |
1806 |
EOF |
5108 |
; |
1807 |
if { (eval echo configure:1808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5109 |
return 0; |
1808 |
rm -rf conftest* |
5110 |
} |
1809 |
eval "ac_cv_lib_$ac_lib_var=yes" |
5111 |
_ACEOF |
1810 |
else |
5112 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1811 |
echo "configure: failed program was:" >&5 |
5113 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1812 |
cat conftest.$ac_ext >&5 |
5114 |
(eval $ac_link) 2>conftest.er1 |
1813 |
rm -rf conftest* |
5115 |
ac_status=$? |
1814 |
eval "ac_cv_lib_$ac_lib_var=no" |
5116 |
grep -v '^ *+' conftest.er1 >conftest.err |
1815 |
fi |
5117 |
rm -f conftest.er1 |
1816 |
rm -f conftest* |
5118 |
cat conftest.err >&5 |
1817 |
LIBS="$ac_save_LIBS" |
5119 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1818 |
|
5120 |
(exit $ac_status); } && |
1819 |
fi |
5121 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1820 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5122 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1821 |
echo "$ac_t""yes" 1>&6 |
5123 |
(eval $ac_try) 2>&5 |
1822 |
cat >> confdefs.h <<\EOF |
5124 |
ac_status=$? |
|
|
5125 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5126 |
(exit $ac_status); }; } && |
5127 |
{ ac_try='test -s conftest$ac_exeext' |
5128 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5129 |
(eval $ac_try) 2>&5 |
5130 |
ac_status=$? |
5131 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5132 |
(exit $ac_status); }; }; then |
5133 |
ac_cv_lib_xnet_gethostbyname=yes |
5134 |
else |
5135 |
echo "$as_me: failed program was:" >&5 |
5136 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5137 |
|
5138 |
ac_cv_lib_xnet_gethostbyname=no |
5139 |
fi |
5140 |
rm -f conftest.err conftest.$ac_objext \ |
5141 |
conftest$ac_exeext conftest.$ac_ext |
5142 |
LIBS=$ac_check_lib_save_LIBS |
5143 |
fi |
5144 |
echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_gethostbyname" >&5 |
5145 |
echo "${ECHO_T}$ac_cv_lib_xnet_gethostbyname" >&6 |
5146 |
if test $ac_cv_lib_xnet_gethostbyname = yes; then |
5147 |
cat >>confdefs.h <<\_ACEOF |
1823 |
#define HAVE_GETHOSTBYNAME 1 |
5148 |
#define HAVE_GETHOSTBYNAME 1 |
1824 |
EOF |
5149 |
_ACEOF |
1825 |
|
5150 |
|
1826 |
else |
5151 |
else |
1827 |
echo "$ac_t""no" 1>&6 |
|
|
1828 |
|
5152 |
|
1829 |
{ echo "configure: error: "gethostbyname not found, name lookups in " \ |
5153 |
{ { echo "$as_me:$LINENO: error: \"gethostbyname not found, name lookups in \" \ |
1830 |
"tsocks and inspectsocks disabled"" 1>&2; exit 1; } |
5154 |
\"tsocks and inspectsocks disabled\"" >&5 |
|
|
5155 |
echo "$as_me: error: \"gethostbyname not found, name lookups in \" \ |
5156 |
\"tsocks and inspectsocks disabled\"" >&2;} |
5157 |
{ (exit 1); exit 1; }; } |
1831 |
fi |
5158 |
fi |
1832 |
|
5159 |
|
1833 |
fi |
5160 |
fi |
1834 |
|
5161 |
|
1835 |
|
5162 |
|
1836 |
SIMPLELIBS=${LIBS} |
5163 |
SIMPLELIBS=${LIBS} |
1837 |
LIBS= |
5164 |
LIBS= |
1838 |
|
5165 |
|
1839 |
echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6 |
5166 |
|
1840 |
echo "configure:1841: checking for dlsym in -ldl" >&5 |
5167 |
echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
1841 |
ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'` |
5168 |
echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 |
1842 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5169 |
if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
1843 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5170 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1844 |
else |
5171 |
else |
1845 |
ac_save_LIBS="$LIBS" |
5172 |
ac_check_lib_save_LIBS=$LIBS |
1846 |
LIBS="-ldl $LIBS" |
5173 |
LIBS="-ldl $LIBS" |
1847 |
cat > conftest.$ac_ext <<EOF |
5174 |
cat >conftest.$ac_ext <<_ACEOF |
1848 |
#line 1849 "configure" |
5175 |
/* confdefs.h. */ |
1849 |
#include "confdefs.h" |
5176 |
_ACEOF |
|
|
5177 |
cat confdefs.h >>conftest.$ac_ext |
5178 |
cat >>conftest.$ac_ext <<_ACEOF |
5179 |
/* end confdefs.h. */ |
5180 |
|
1850 |
/* Override any gcc2 internal prototype to avoid an error. */ |
5181 |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
5182 |
#ifdef __cplusplus |
5183 |
extern "C" |
5184 |
#endif |
1851 |
/* We use char because int might match the return type of a gcc2 |
5185 |
/* We use char because int might match the return type of a gcc2 |
1852 |
builtin and then its argument prototype would still apply. */ |
5186 |
builtin and then its argument prototype would still apply. */ |
1853 |
char dlsym(); |
5187 |
char dlsym (); |
1854 |
|
5188 |
int |
1855 |
int main() { |
5189 |
main () |
1856 |
dlsym() |
5190 |
{ |
1857 |
; return 0; } |
5191 |
dlsym (); |
1858 |
EOF |
5192 |
; |
1859 |
if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5193 |
return 0; |
1860 |
rm -rf conftest* |
5194 |
} |
1861 |
eval "ac_cv_lib_$ac_lib_var=yes" |
5195 |
_ACEOF |
1862 |
else |
5196 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1863 |
echo "configure: failed program was:" >&5 |
5197 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1864 |
cat conftest.$ac_ext >&5 |
5198 |
(eval $ac_link) 2>conftest.er1 |
1865 |
rm -rf conftest* |
5199 |
ac_status=$? |
1866 |
eval "ac_cv_lib_$ac_lib_var=no" |
5200 |
grep -v '^ *+' conftest.er1 >conftest.err |
1867 |
fi |
5201 |
rm -f conftest.er1 |
1868 |
rm -f conftest* |
5202 |
cat conftest.err >&5 |
1869 |
LIBS="$ac_save_LIBS" |
5203 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1870 |
|
5204 |
(exit $ac_status); } && |
1871 |
fi |
5205 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1872 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5206 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1873 |
echo "$ac_t""yes" 1>&6 |
5207 |
(eval $ac_try) 2>&5 |
1874 |
ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
5208 |
ac_status=$? |
1875 |
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
5209 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1876 |
cat >> confdefs.h <<EOF |
5210 |
(exit $ac_status); }; } && |
1877 |
#define $ac_tr_lib 1 |
5211 |
{ ac_try='test -s conftest$ac_exeext' |
1878 |
EOF |
5212 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5213 |
(eval $ac_try) 2>&5 |
5214 |
ac_status=$? |
5215 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5216 |
(exit $ac_status); }; }; then |
5217 |
ac_cv_lib_dl_dlsym=yes |
5218 |
else |
5219 |
echo "$as_me: failed program was:" >&5 |
5220 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5221 |
|
5222 |
ac_cv_lib_dl_dlsym=no |
5223 |
fi |
5224 |
rm -f conftest.err conftest.$ac_objext \ |
5225 |
conftest$ac_exeext conftest.$ac_ext |
5226 |
LIBS=$ac_check_lib_save_LIBS |
5227 |
fi |
5228 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
5229 |
echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 |
5230 |
if test $ac_cv_lib_dl_dlsym = yes; then |
5231 |
cat >>confdefs.h <<_ACEOF |
5232 |
#define HAVE_LIBDL 1 |
5233 |
_ACEOF |
1879 |
|
5234 |
|
1880 |
LIBS="-ldl $LIBS" |
5235 |
LIBS="-ldl $LIBS" |
1881 |
|
5236 |
|
1882 |
else |
5237 |
else |
1883 |
echo "$ac_t""no" 1>&6 |
5238 |
{ { echo "$as_me:$LINENO: error: \"libdl is required\"" >&5 |
1884 |
{ echo "configure: error: "libdl is required"" 1>&2; exit 1; } |
5239 |
echo "$as_me: error: \"libdl is required\"" >&2;} |
|
|
5240 |
{ (exit 1); exit 1; }; } |
1885 |
fi |
5241 |
fi |
1886 |
|
5242 |
|
1887 |
|
5243 |
|
1888 |
echo $ac_n "checking "for RTLD_NEXT from dlfcn.h"""... $ac_c" 1>&6 |
5244 |
echo "$as_me:$LINENO: checking for RTLD_NEXT from dlfcn.h" >&5 |
1889 |
echo "configure:1890: checking "for RTLD_NEXT from dlfcn.h"" >&5 |
5245 |
echo $ECHO_N "checking for RTLD_NEXT from dlfcn.h... $ECHO_C" >&6 |
1890 |
cat > conftest.$ac_ext <<EOF |
5246 |
cat >conftest.$ac_ext <<_ACEOF |
1891 |
#line 1892 "configure" |
5247 |
/* confdefs.h. */ |
1892 |
#include "confdefs.h" |
5248 |
_ACEOF |
|
|
5249 |
cat confdefs.h >>conftest.$ac_ext |
5250 |
cat >>conftest.$ac_ext <<_ACEOF |
5251 |
/* end confdefs.h. */ |
1893 |
|
5252 |
|
1894 |
#include <dlfcn.h> |
5253 |
#include <dlfcn.h> |
1895 |
#ifdef RTLD_NEXT |
5254 |
#ifdef RTLD_NEXT |
1896 |
yes |
5255 |
yes |
1897 |
#endif |
5256 |
#endif |
1898 |
|
5257 |
|
1899 |
EOF |
5258 |
_ACEOF |
1900 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5259 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1901 |
egrep "yes" >/dev/null 2>&1; then |
5260 |
$EGREP "yes" >/dev/null 2>&1; then |
1902 |
rm -rf conftest* |
5261 |
|
1903 |
|
5262 |
echo "$as_me:$LINENO: result: yes" >&5 |
1904 |
echo "$ac_t""yes" 1>&6 |
5263 |
echo "${ECHO_T}yes" >&6 |
1905 |
|
5264 |
|
1906 |
else |
5265 |
else |
1907 |
rm -rf conftest* |
5266 |
|
1908 |
|
5267 |
echo "$as_me:$LINENO: result: no" >&5 |
1909 |
echo "$ac_t""no" 1>&6 |
5268 |
echo "${ECHO_T}no" >&6 |
1910 |
echo $ac_n "checking "for RTLD_NEXT from dlfcn.h with _GNU_SOURCE"""... $ac_c" 1>&6 |
5269 |
echo "$as_me:$LINENO: checking for RTLD_NEXT from dlfcn.h with _GNU_SOURCE" >&5 |
1911 |
echo "configure:1912: checking "for RTLD_NEXT from dlfcn.h with _GNU_SOURCE"" >&5 |
5270 |
echo $ECHO_N "checking for RTLD_NEXT from dlfcn.h with _GNU_SOURCE... $ECHO_C" >&6 |
1912 |
cat > conftest.$ac_ext <<EOF |
5271 |
cat >conftest.$ac_ext <<_ACEOF |
1913 |
#line 1914 "configure" |
5272 |
/* confdefs.h. */ |
1914 |
#include "confdefs.h" |
5273 |
_ACEOF |
|
|
5274 |
cat confdefs.h >>conftest.$ac_ext |
5275 |
cat >>conftest.$ac_ext <<_ACEOF |
5276 |
/* end confdefs.h. */ |
1915 |
|
5277 |
|
1916 |
#define _GNU_SOURCE |
5278 |
#define _GNU_SOURCE |
1917 |
#include <dlfcn.h> |
5279 |
#include <dlfcn.h> |
1918 |
#ifdef RTLD_NEXT |
5280 |
#ifdef RTLD_NEXT |
1919 |
yes |
5281 |
yes |
1920 |
#endif |
5282 |
#endif |
1921 |
|
5283 |
|
1922 |
EOF |
5284 |
_ACEOF |
1923 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5285 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1924 |
egrep "yes" >/dev/null 2>&1; then |
5286 |
$EGREP "yes" >/dev/null 2>&1; then |
1925 |
rm -rf conftest* |
5287 |
|
1926 |
|
5288 |
echo "$as_me:$LINENO: result: yes" >&5 |
1927 |
echo "$ac_t""yes" 1>&6 |
5289 |
echo "${ECHO_T}yes" >&6 |
1928 |
cat >> confdefs.h <<\EOF |
5290 |
cat >>confdefs.h <<\_ACEOF |
1929 |
#define USE_GNU_SOURCE 1 |
5291 |
#define USE_GNU_SOURCE 1 |
1930 |
EOF |
5292 |
_ACEOF |
|
|
5293 |
|
1931 |
|
5294 |
|
1932 |
|
|
|
1933 |
else |
5295 |
else |
1934 |
rm -rf conftest* |
5296 |
|
1935 |
|
5297 |
echo "$as_me:$LINENO: result: no" >&5 |
1936 |
echo "$ac_t""no" 1>&6 |
5298 |
echo "${ECHO_T}no" >&6 |
1937 |
cat >> confdefs.h <<\EOF |
5299 |
cat >>confdefs.h <<\_ACEOF |
1938 |
#define USE_OLD_DLSYM 1 |
5300 |
#define USE_OLD_DLSYM 1 |
1939 |
EOF |
5301 |
_ACEOF |
1940 |
|
5302 |
|
1941 |
oldmethod="yes" |
5303 |
oldmethod="yes" |
1942 |
|
5304 |
|
1943 |
fi |
5305 |
fi |
1944 |
rm -f conftest* |
5306 |
rm -f conftest* |
1945 |
|
5307 |
|
1946 |
|
5308 |
|
1947 |
fi |
5309 |
fi |
1948 |
rm -f conftest* |
5310 |
rm -f conftest* |
1949 |
|
5311 |
|
1950 |
|
5312 |
|
1951 |
if test "${enable_socksdns}" = "yes"; then |
5313 |
if test "${enable_socksdns}" = "yes"; then |
1952 |
cat >> confdefs.h <<\EOF |
5314 |
cat >>confdefs.h <<\_ACEOF |
1953 |
#define USE_SOCKS_DNS 1 |
5315 |
#define USE_SOCKS_DNS 1 |
1954 |
EOF |
5316 |
_ACEOF |
|
|
5317 |
|
5318 |
fi |
1955 |
|
5319 |
|
|
|
5320 |
echo "$as_me:$LINENO: checking whether to enable tordns" >&5 |
5321 |
echo $ECHO_N "checking whether to enable tordns... $ECHO_C" >&6 |
5322 |
if test "x${enable_tordns}" = "x"; then |
5323 |
cat >>confdefs.h <<\_ACEOF |
5324 |
#define USE_TOR_DNS 1 |
5325 |
_ACEOF |
5326 |
|
5327 |
DEADPOOL_O="\${DEADPOOL}.o" |
5328 |
echo "$as_me:$LINENO: result: yes" >&5 |
5329 |
echo "${ECHO_T}yes" >&6 |
5330 |
else |
5331 |
DEADPOOL_O="" |
5332 |
echo "$as_me:$LINENO: result: no" >&5 |
5333 |
echo "${ECHO_T}no" >&6 |
1956 |
fi |
5334 |
fi |
1957 |
|
5335 |
|
|
|
5336 |
|
1958 |
if test "x${enable_envconf}" = "x"; then |
5337 |
if test "x${enable_envconf}" = "x"; then |
1959 |
cat >> confdefs.h <<\EOF |
5338 |
cat >>confdefs.h <<\_ACEOF |
1960 |
#define ALLOW_ENV_CONFIG 1 |
5339 |
#define ALLOW_ENV_CONFIG 1 |
1961 |
EOF |
5340 |
_ACEOF |
1962 |
|
5341 |
|
1963 |
fi |
5342 |
fi |
1964 |
|
5343 |
|
1965 |
if test "${enable_oldmethod}" = "yes"; then |
5344 |
if test "${enable_oldmethod}" = "yes"; then |
1966 |
cat >> confdefs.h <<\EOF |
5345 |
cat >>confdefs.h <<\_ACEOF |
1967 |
#define USE_OLD_DLSYM 1 |
5346 |
#define USE_OLD_DLSYM 1 |
1968 |
EOF |
5347 |
_ACEOF |
1969 |
|
5348 |
|
1970 |
oldmethod="yes" |
5349 |
oldmethod="yes" |
1971 |
fi |
5350 |
fi |
1972 |
|
5351 |
|
1973 |
if test "x${enable_debug}" = "x"; then |
5352 |
if test "x${enable_debug}" = "x"; then |
1974 |
cat >> confdefs.h <<\EOF |
5353 |
cat >>confdefs.h <<\_ACEOF |
1975 |
#define ALLOW_MSG_OUTPUT 1 |
5354 |
#define ALLOW_MSG_OUTPUT 1 |
1976 |
EOF |
5355 |
_ACEOF |
1977 |
|
5356 |
|
1978 |
fi |
5357 |
fi |
1979 |
|
5358 |
|
1980 |
if test "x${enable_hostnames}" = "x"; then |
5359 |
if test "x${enable_hostnames}" = "xyes"; then |
1981 |
cat >> confdefs.h <<\EOF |
5360 |
cat >>confdefs.h <<\_ACEOF |
1982 |
#define HOSTNAMES 1 |
5361 |
#define HOSTNAMES 1 |
1983 |
EOF |
5362 |
_ACEOF |
1984 |
|
5363 |
|
1985 |
fi |
5364 |
fi |
1986 |
|
5365 |
|
1987 |
if test "${enable_socksdns}" = "yes" -a \ |
5366 |
if test "${enable_socksdns}" = "yes" -a \ |
1988 |
"x${enable_hostnames}" = "x" ; then |
5367 |
"x${enable_hostnames}" = "xyes" ; then |
1989 |
{ echo "configure: error: "--enable-socksdns is not valid without --disable-hostnames"" 1>&2; exit 1; } |
5368 |
{ { echo "$as_me:$LINENO: error: \"--enable-socksdns is not valid with --enable-hostnames\"" >&5 |
|
|
5369 |
echo "$as_me: error: \"--enable-socksdns is not valid with --enable-hostnames\"" >&2;} |
5370 |
{ (exit 1); exit 1; }; } |
5371 |
fi |
5372 |
|
5373 |
if test "x${enable_tordns}" = "x" -a \ |
5374 |
"x${enable_hostnames}" = "xyes" ; then |
5375 |
{ { echo "$as_me:$LINENO: error: \"--enable-tordns is not valid with --enable-hostnames\"" >&5 |
5376 |
echo "$as_me: error: \"--enable-tordns is not valid with --enable-hostnames\"" >&2;} |
5377 |
{ (exit 1); exit 1; }; } |
1990 |
fi |
5378 |
fi |
1991 |
|
5379 |
|
1992 |
if test "${oldmethod}" = "yes"; then |
5380 |
if test "${oldmethod}" = "yes"; then |
1993 |
|
5381 |
|
1994 |
# Extract the first word of "find", so it can be a program name with args. |
5382 |
# Extract the first word of "find", so it can be a program name with args. |
1995 |
set dummy find; ac_word=$2 |
5383 |
set dummy find; ac_word=$2 |
1996 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5384 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1997 |
echo "configure:1998: checking for $ac_word" >&5 |
5385 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1998 |
if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then |
5386 |
if test "${ac_cv_prog_FIND+set}" = set; then |
1999 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5387 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2000 |
else |
5388 |
else |
2001 |
if test -n "$FIND"; then |
5389 |
if test -n "$FIND"; then |
2002 |
ac_cv_prog_FIND="$FIND" # Let the user override the test. |
5390 |
ac_cv_prog_FIND="$FIND" # Let the user override the test. |
2003 |
else |
5391 |
else |
2004 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5392 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2005 |
ac_dummy="$PATH" |
5393 |
for as_dir in $PATH |
2006 |
for ac_dir in $ac_dummy; do |
5394 |
do |
2007 |
test -z "$ac_dir" && ac_dir=. |
5395 |
IFS=$as_save_IFS |
2008 |
if test -f $ac_dir/$ac_word; then |
5396 |
test -z "$as_dir" && as_dir=. |
2009 |
ac_cv_prog_FIND="find" |
5397 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2010 |
break |
5398 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2011 |
fi |
5399 |
ac_cv_prog_FIND="find" |
2012 |
done |
5400 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2013 |
IFS="$ac_save_ifs" |
5401 |
break 2 |
|
|
5402 |
fi |
5403 |
done |
5404 |
done |
5405 |
|
2014 |
fi |
5406 |
fi |
2015 |
fi |
5407 |
fi |
2016 |
FIND="$ac_cv_prog_FIND" |
5408 |
FIND=$ac_cv_prog_FIND |
2017 |
if test -n "$FIND"; then |
5409 |
if test -n "$FIND"; then |
2018 |
echo "$ac_t""$FIND" 1>&6 |
5410 |
echo "$as_me:$LINENO: result: $FIND" >&5 |
|
|
5411 |
echo "${ECHO_T}$FIND" >&6 |
2019 |
else |
5412 |
else |
2020 |
echo "$ac_t""no" 1>&6 |
5413 |
echo "$as_me:$LINENO: result: no" >&5 |
|
|
5414 |
echo "${ECHO_T}no" >&6 |
2021 |
fi |
5415 |
fi |
2022 |
|
5416 |
|
2023 |
if test "${FIND}" = ""; then |
5417 |
if test "${FIND}" = ""; then |
2024 |
{ echo "configure: error: 'find not found in path'" 1>&2; exit 1; } |
5418 |
{ { echo "$as_me:$LINENO: error: 'find not found in path'" >&5 |
|
|
5419 |
echo "$as_me: error: 'find not found in path'" >&2;} |
5420 |
{ (exit 1); exit 1; }; } |
2025 |
fi |
5421 |
fi |
2026 |
|
5422 |
|
2027 |
# Extract the first word of "tail", so it can be a program name with args. |
5423 |
# Extract the first word of "tail", so it can be a program name with args. |
2028 |
set dummy tail; ac_word=$2 |
5424 |
set dummy tail; ac_word=$2 |
2029 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5425 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2030 |
echo "configure:2031: checking for $ac_word" >&5 |
5426 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2031 |
if eval "test \"`echo '$''{'ac_cv_prog_TAIL'+set}'`\" = set"; then |
5427 |
if test "${ac_cv_prog_TAIL+set}" = set; then |
2032 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5428 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2033 |
else |
5429 |
else |
2034 |
if test -n "$TAIL"; then |
5430 |
if test -n "$TAIL"; then |
2035 |
ac_cv_prog_TAIL="$TAIL" # Let the user override the test. |
5431 |
ac_cv_prog_TAIL="$TAIL" # Let the user override the test. |
2036 |
else |
5432 |
else |
2037 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5433 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2038 |
ac_dummy="$PATH" |
5434 |
for as_dir in $PATH |
2039 |
for ac_dir in $ac_dummy; do |
5435 |
do |
2040 |
test -z "$ac_dir" && ac_dir=. |
5436 |
IFS=$as_save_IFS |
2041 |
if test -f $ac_dir/$ac_word; then |
5437 |
test -z "$as_dir" && as_dir=. |
2042 |
ac_cv_prog_TAIL="tail" |
5438 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2043 |
break |
5439 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2044 |
fi |
5440 |
ac_cv_prog_TAIL="tail" |
2045 |
done |
5441 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2046 |
IFS="$ac_save_ifs" |
5442 |
break 2 |
|
|
5443 |
fi |
5444 |
done |
5445 |
done |
5446 |
|
2047 |
fi |
5447 |
fi |
2048 |
fi |
5448 |
fi |
2049 |
TAIL="$ac_cv_prog_TAIL" |
5449 |
TAIL=$ac_cv_prog_TAIL |
2050 |
if test -n "$TAIL"; then |
5450 |
if test -n "$TAIL"; then |
2051 |
echo "$ac_t""$TAIL" 1>&6 |
5451 |
echo "$as_me:$LINENO: result: $TAIL" >&5 |
|
|
5452 |
echo "${ECHO_T}$TAIL" >&6 |
2052 |
else |
5453 |
else |
2053 |
echo "$ac_t""no" 1>&6 |
5454 |
echo "$as_me:$LINENO: result: no" >&5 |
|
|
5455 |
echo "${ECHO_T}no" >&6 |
2054 |
fi |
5456 |
fi |
2055 |
|
5457 |
|
2056 |
if test "${TAIL}" = ""; then |
5458 |
if test "${TAIL}" = ""; then |
2057 |
{ echo "configure: error: 'tail not found in path'" 1>&2; exit 1; } |
5459 |
{ { echo "$as_me:$LINENO: error: 'tail not found in path'" >&5 |
|
|
5460 |
echo "$as_me: error: 'tail not found in path'" >&2;} |
5461 |
{ (exit 1); exit 1; }; } |
2058 |
fi |
5462 |
fi |
2059 |
|
5463 |
|
2060 |
echo $ac_n "checking "location of lib${CONNECTLIB}.so"""... $ac_c" 1>&6 |
5464 |
echo "$as_me:$LINENO: checking location of lib${CONNECTLIB}.so" >&5 |
2061 |
echo "configure:2062: checking "location of lib${CONNECTLIB}.so"" >&5 |
5465 |
echo $ECHO_N "checking location of lib${CONNECTLIB}.so... $ECHO_C" >&6 |
2062 |
LIBCONNECT= |
5466 |
LIBCONNECT= |
2063 |
for DIR in '/lib' '/usr/lib'; do |
5467 |
for DIR in '/lib' '/usr/lib'; do |
2064 |
if test "${LIBCONNECT}" = ""; then |
5468 |
if test "${LIBCONNECT}" = ""; then |
2065 |
LIBCONNECT=`$FIND $DIR -name "lib${CONNECTLIB}.so.?" 2>/dev/null | $TAIL -1` |
5469 |
LIBCONNECT=`$FIND $DIR -name "lib${CONNECTLIB}.so.?" 2>/dev/null | $TAIL -1` |
2066 |
fi |
5470 |
fi |
2067 |
done |
5471 |
done |
2068 |
|
5472 |
|
2069 |
cat >> confdefs.h <<EOF |
5473 |
cat >>confdefs.h <<_ACEOF |
2070 |
#define LIBCONNECT "${LIBCONNECT}" |
5474 |
#define LIBCONNECT "${LIBCONNECT}" |
2071 |
EOF |
5475 |
_ACEOF |
2072 |
|
5476 |
|
2073 |
if test "${LIBCONNECT}" = ""; then |
5477 |
if test "${LIBCONNECT}" = ""; then |
2074 |
{ echo "configure: error: "not found!"" 1>&2; exit 1; } |
5478 |
{ { echo "$as_me:$LINENO: error: \"not found!\"" >&5 |
|
|
5479 |
echo "$as_me: error: \"not found!\"" >&2;} |
5480 |
{ (exit 1); exit 1; }; } |
2075 |
fi |
5481 |
fi |
2076 |
|
5482 |
|
2077 |
echo "$ac_t""$LIBCONNECT" 1>&6 |
5483 |
echo "$as_me:$LINENO: result: $LIBCONNECT" >&5 |
|
|
5484 |
echo "${ECHO_T}$LIBCONNECT" >&6 |
2078 |
|
5485 |
|
2079 |
echo $ac_n "checking "location of libc.so"""... $ac_c" 1>&6 |
5486 |
echo "$as_me:$LINENO: checking location of libc.so" >&5 |
2080 |
echo "configure:2081: checking "location of libc.so"" >&5 |
5487 |
echo $ECHO_N "checking location of libc.so... $ECHO_C" >&6 |
2081 |
LIBC= |
5488 |
LIBC= |
2082 |
for DIR in '/lib' '/usr/lib'; do |
5489 |
for DIR in '/lib' '/usr/lib'; do |
2083 |
if test "${LIBC}" = ""; then |
5490 |
if test "${LIBC}" = ""; then |
2084 |
LIBC=`$FIND $DIR -name "libc.so.?" 2>/dev/null | $TAIL -1` |
5491 |
LIBC=`$FIND $DIR -name "libc.so.?" 2>/dev/null | $TAIL -1` |
2085 |
fi |
5492 |
fi |
2086 |
done |
5493 |
done |
2087 |
|
5494 |
|
2088 |
cat >> confdefs.h <<EOF |
5495 |
cat >>confdefs.h <<_ACEOF |
2089 |
#define LIBC "${LIBC}" |
5496 |
#define LIBC "${LIBC}" |
2090 |
EOF |
5497 |
_ACEOF |
2091 |
|
5498 |
|
2092 |
if test "${LIBC}" = ""; then |
5499 |
if test "${LIBC}" = ""; then |
2093 |
{ echo "configure: error: "not found!"" 1>&2; exit 1; } |
5500 |
{ { echo "$as_me:$LINENO: error: \"not found!\"" >&5 |
|
|
5501 |
echo "$as_me: error: \"not found!\"" >&2;} |
5502 |
{ (exit 1); exit 1; }; } |
2094 |
fi |
5503 |
fi |
2095 |
|
5504 |
|
2096 |
echo "$ac_t""$LIBC" 1>&6 |
5505 |
echo "$as_me:$LINENO: result: $LIBC" >&5 |
|
|
5506 |
echo "${ECHO_T}$LIBC" >&6 |
2097 |
fi |
5507 |
fi |
2098 |
|
5508 |
|
2099 |
echo $ac_n "checking for correct select prototype""... $ac_c" 1>&6 |
5509 |
echo "$as_me:$LINENO: checking for correct select prototype" >&5 |
2100 |
echo "configure:2101: checking for correct select prototype" >&5 |
5510 |
echo $ECHO_N "checking for correct select prototype... $ECHO_C" >&6 |
2101 |
PROTO= |
5511 |
PROTO= |
2102 |
for testproto in 'int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout' |
5512 |
for testproto in 'int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout' |
2103 |
do |
5513 |
do |
2104 |
if test "${PROTO}" = ""; then |
5514 |
if test "${PROTO}" = ""; then |
2105 |
cat > conftest.$ac_ext <<EOF |
5515 |
cat >conftest.$ac_ext <<_ACEOF |
2106 |
#line 2107 "configure" |
5516 |
/* confdefs.h. */ |
2107 |
#include "confdefs.h" |
5517 |
_ACEOF |
|
|
5518 |
cat confdefs.h >>conftest.$ac_ext |
5519 |
cat >>conftest.$ac_ext <<_ACEOF |
5520 |
/* end confdefs.h. */ |
2108 |
|
5521 |
|
2109 |
#include <sys/time.h> |
5522 |
#include <sys/time.h> |
2110 |
#include <sys/types.h> |
5523 |
#include <sys/types.h> |
2111 |
#include <unistd.h> |
5524 |
#include <unistd.h> |
2112 |
int select($testproto); |
5525 |
int select($testproto); |
2113 |
|
|
|
2114 |
int main() { |
2115 |
|
5526 |
|
2116 |
; return 0; } |
5527 |
int |
2117 |
EOF |
5528 |
main () |
2118 |
if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5529 |
{ |
2119 |
rm -rf conftest* |
5530 |
|
|
|
5531 |
; |
5532 |
return 0; |
5533 |
} |
5534 |
_ACEOF |
5535 |
rm -f conftest.$ac_objext |
5536 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5537 |
(eval $ac_compile) 2>conftest.er1 |
5538 |
ac_status=$? |
5539 |
grep -v '^ *+' conftest.er1 >conftest.err |
5540 |
rm -f conftest.er1 |
5541 |
cat conftest.err >&5 |
5542 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5543 |
(exit $ac_status); } && |
5544 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5545 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5546 |
(eval $ac_try) 2>&5 |
5547 |
ac_status=$? |
5548 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5549 |
(exit $ac_status); }; } && |
5550 |
{ ac_try='test -s conftest.$ac_objext' |
5551 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5552 |
(eval $ac_try) 2>&5 |
5553 |
ac_status=$? |
5554 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5555 |
(exit $ac_status); }; }; then |
2120 |
PROTO="$testproto"; |
5556 |
PROTO="$testproto"; |
2121 |
else |
5557 |
else |
2122 |
echo "configure: failed program was:" >&5 |
5558 |
echo "$as_me: failed program was:" >&5 |
2123 |
cat conftest.$ac_ext >&5 |
5559 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5560 |
|
2124 |
fi |
5561 |
fi |
2125 |
rm -f conftest* |
5562 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2126 |
fi |
5563 |
fi |
2127 |
done |
5564 |
done |
2128 |
if test "${PROTO}" = ""; then |
5565 |
if test "${PROTO}" = ""; then |
2129 |
{ echo "configure: error: "no match found!"" 1>&2; exit 1; } |
5566 |
{ { echo "$as_me:$LINENO: error: \"no match found!\"" >&5 |
2130 |
fi |
5567 |
echo "$as_me: error: \"no match found!\"" >&2;} |
2131 |
echo "$ac_t""select(${PROTO})" 1>&6 |
5568 |
{ (exit 1); exit 1; }; } |
2132 |
cat >> confdefs.h <<EOF |
5569 |
fi |
|
|
5570 |
echo "$as_me:$LINENO: result: select(${PROTO})" >&5 |
5571 |
echo "${ECHO_T}select(${PROTO})" >&6 |
5572 |
cat >>confdefs.h <<_ACEOF |
2133 |
#define SELECT_SIGNATURE ${PROTO} |
5573 |
#define SELECT_SIGNATURE ${PROTO} |
2134 |
EOF |
5574 |
_ACEOF |
2135 |
|
5575 |
|
2136 |
|
5576 |
|
2137 |
echo $ac_n "checking for correct connect prototype""... $ac_c" 1>&6 |
5577 |
echo "$as_me:$LINENO: checking for correct connect prototype" >&5 |
2138 |
echo "configure:2139: checking for correct connect prototype" >&5 |
5578 |
echo $ECHO_N "checking for correct connect prototype... $ECHO_C" >&6 |
2139 |
PROTO= |
5579 |
PROTO= |
2140 |
PROTO1='int __fd, const struct sockaddr * __addr, int len' |
5580 |
PROTO1='int __fd, const struct sockaddr * __addr, int len' |
2141 |
PROTO2='int __fd, const struct sockaddr_in * __addr, socklen_t __len' |
5581 |
PROTO2='int __fd, const struct sockaddr_in * __addr, socklen_t __len' |
2142 |
PROTO3='int __fd, struct sockaddr * __addr, int __len' |
5582 |
PROTO3='int __fd, struct sockaddr * __addr, int __len' |
2143 |
PROTO4='int __fd, const struct sockaddr * __addr, socklen_t __len' |
5583 |
PROTO4='int __fd, const struct sockaddr * __addr, socklen_t __len' |
2144 |
for testproto in "${PROTO1}" \ |
5584 |
for testproto in "${PROTO1}" \ |
2145 |
"${PROTO2}" \ |
5585 |
"${PROTO2}" \ |
2146 |
"${PROTO3}" \ |
5586 |
"${PROTO3}" \ |
2147 |
"${PROTO4}" |
5587 |
"${PROTO4}" |
2148 |
do |
5588 |
do |
2149 |
if test "${PROTO}" = ""; then |
5589 |
if test "${PROTO}" = ""; then |
2150 |
cat > conftest.$ac_ext <<EOF |
5590 |
cat >conftest.$ac_ext <<_ACEOF |
2151 |
#line 2152 "configure" |
5591 |
/* confdefs.h. */ |
2152 |
#include "confdefs.h" |
5592 |
_ACEOF |
|
|
5593 |
cat confdefs.h >>conftest.$ac_ext |
5594 |
cat >>conftest.$ac_ext <<_ACEOF |
5595 |
/* end confdefs.h. */ |
2153 |
|
5596 |
|
2154 |
#include <sys/socket.h> |
5597 |
#include <sys/socket.h> |
2155 |
int connect($testproto); |
5598 |
int connect($testproto); |
2156 |
|
|
|
2157 |
int main() { |
2158 |
|
5599 |
|
2159 |
; return 0; } |
5600 |
int |
2160 |
EOF |
5601 |
main () |
2161 |
if { (eval echo configure:2162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5602 |
{ |
2162 |
rm -rf conftest* |
5603 |
|
|
|
5604 |
; |
5605 |
return 0; |
5606 |
} |
5607 |
_ACEOF |
5608 |
rm -f conftest.$ac_objext |
5609 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5610 |
(eval $ac_compile) 2>conftest.er1 |
5611 |
ac_status=$? |
5612 |
grep -v '^ *+' conftest.er1 >conftest.err |
5613 |
rm -f conftest.er1 |
5614 |
cat conftest.err >&5 |
5615 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5616 |
(exit $ac_status); } && |
5617 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5618 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5619 |
(eval $ac_try) 2>&5 |
5620 |
ac_status=$? |
5621 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5622 |
(exit $ac_status); }; } && |
5623 |
{ ac_try='test -s conftest.$ac_objext' |
5624 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5625 |
(eval $ac_try) 2>&5 |
5626 |
ac_status=$? |
5627 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5628 |
(exit $ac_status); }; }; then |
2163 |
PROTO="$testproto"; |
5629 |
PROTO="$testproto"; |
2164 |
else |
5630 |
else |
2165 |
echo "configure: failed program was:" >&5 |
5631 |
echo "$as_me: failed program was:" >&5 |
2166 |
cat conftest.$ac_ext >&5 |
5632 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5633 |
|
2167 |
fi |
5634 |
fi |
2168 |
rm -f conftest* |
5635 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2169 |
fi |
5636 |
fi |
2170 |
done |
5637 |
done |
2171 |
if test "${PROTO}" = ""; then |
5638 |
if test "${PROTO}" = ""; then |
2172 |
{ echo "configure: error: "no match found!"" 1>&2; exit 1; } |
5639 |
{ { echo "$as_me:$LINENO: error: \"no match found!\"" >&5 |
2173 |
fi |
5640 |
echo "$as_me: error: \"no match found!\"" >&2;} |
2174 |
echo "$ac_t""connect(${PROTO})" 1>&6 |
5641 |
{ (exit 1); exit 1; }; } |
2175 |
cat >> confdefs.h <<EOF |
5642 |
fi |
|
|
5643 |
echo "$as_me:$LINENO: result: connect(${PROTO})" >&5 |
5644 |
echo "${ECHO_T}connect(${PROTO})" >&6 |
5645 |
cat >>confdefs.h <<_ACEOF |
2176 |
#define CONNECT_SIGNATURE ${PROTO} |
5646 |
#define CONNECT_SIGNATURE ${PROTO} |
2177 |
EOF |
5647 |
_ACEOF |
2178 |
|
5648 |
|
2179 |
|
5649 |
|
2180 |
SOCKETARG="struct sockaddr *" |
5650 |
SOCKETARG="struct sockaddr *" |
2181 |
case "${PROTO}" in |
5651 |
case "${PROTO}" in |
2182 |
*sockaddr_in*) |
5652 |
*sockaddr_in*) |
2183 |
SOCKETARG="struct sockaddr_in *" |
5653 |
SOCKETARG="struct sockaddr_in *" |
2184 |
;; |
5654 |
;; |
2185 |
esac |
5655 |
esac |
2186 |
cat >> confdefs.h <<EOF |
5656 |
cat >>confdefs.h <<_ACEOF |
2187 |
#define CONNECT_SOCKARG ${SOCKETARG} |
5657 |
#define CONNECT_SOCKARG ${SOCKETARG} |
2188 |
EOF |
5658 |
_ACEOF |
2189 |
|
5659 |
|
2190 |
|
5660 |
|
2191 |
echo $ac_n "checking for correct close prototype""... $ac_c" 1>&6 |
5661 |
echo "$as_me:$LINENO: checking for correct close prototype" >&5 |
2192 |
echo "configure:2193: checking for correct close prototype" >&5 |
5662 |
echo $ECHO_N "checking for correct close prototype... $ECHO_C" >&6 |
2193 |
PROTO= |
5663 |
PROTO= |
2194 |
PROTO1='int fd' |
5664 |
PROTO1='int fd' |
2195 |
for testproto in "${PROTO1}" |
5665 |
for testproto in "${PROTO1}" |
2196 |
do |
5666 |
do |
2197 |
if test "${PROTO}" = ""; then |
5667 |
if test "${PROTO}" = ""; then |
2198 |
cat > conftest.$ac_ext <<EOF |
5668 |
cat >conftest.$ac_ext <<_ACEOF |
2199 |
#line 2200 "configure" |
5669 |
/* confdefs.h. */ |
2200 |
#include "confdefs.h" |
5670 |
_ACEOF |
|
|
5671 |
cat confdefs.h >>conftest.$ac_ext |
5672 |
cat >>conftest.$ac_ext <<_ACEOF |
5673 |
/* end confdefs.h. */ |
2201 |
|
5674 |
|
2202 |
#include <stdlib.h> |
5675 |
#include <stdlib.h> |
2203 |
int close($testproto); |
5676 |
int close($testproto); |
2204 |
|
|
|
2205 |
int main() { |
2206 |
|
5677 |
|
2207 |
; return 0; } |
5678 |
int |
2208 |
EOF |
5679 |
main () |
2209 |
if { (eval echo configure:2210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5680 |
{ |
2210 |
rm -rf conftest* |
5681 |
|
|
|
5682 |
; |
5683 |
return 0; |
5684 |
} |
5685 |
_ACEOF |
5686 |
rm -f conftest.$ac_objext |
5687 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5688 |
(eval $ac_compile) 2>conftest.er1 |
5689 |
ac_status=$? |
5690 |
grep -v '^ *+' conftest.er1 >conftest.err |
5691 |
rm -f conftest.er1 |
5692 |
cat conftest.err >&5 |
5693 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5694 |
(exit $ac_status); } && |
5695 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5696 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5697 |
(eval $ac_try) 2>&5 |
5698 |
ac_status=$? |
5699 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5700 |
(exit $ac_status); }; } && |
5701 |
{ ac_try='test -s conftest.$ac_objext' |
5702 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5703 |
(eval $ac_try) 2>&5 |
5704 |
ac_status=$? |
5705 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5706 |
(exit $ac_status); }; }; then |
2211 |
PROTO="$testproto"; |
5707 |
PROTO="$testproto"; |
2212 |
else |
5708 |
else |
2213 |
echo "configure: failed program was:" >&5 |
5709 |
echo "$as_me: failed program was:" >&5 |
2214 |
cat conftest.$ac_ext >&5 |
5710 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5711 |
|
2215 |
fi |
5712 |
fi |
2216 |
rm -f conftest* |
5713 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2217 |
fi |
5714 |
fi |
2218 |
done |
5715 |
done |
2219 |
if test "${PROTO}" = ""; then |
5716 |
if test "${PROTO}" = ""; then |
2220 |
{ echo "configure: error: "no match found!"" 1>&2; exit 1; } |
5717 |
{ { echo "$as_me:$LINENO: error: \"no match found!\"" >&5 |
2221 |
fi |
5718 |
echo "$as_me: error: \"no match found!\"" >&2;} |
2222 |
echo "$ac_t""close(${PROTO})" 1>&6 |
5719 |
{ (exit 1); exit 1; }; } |
2223 |
cat >> confdefs.h <<EOF |
5720 |
fi |
|
|
5721 |
echo "$as_me:$LINENO: result: close(${PROTO})" >&5 |
5722 |
echo "${ECHO_T}close(${PROTO})" >&6 |
5723 |
cat >>confdefs.h <<_ACEOF |
2224 |
#define CLOSE_SIGNATURE ${PROTO} |
5724 |
#define CLOSE_SIGNATURE ${PROTO} |
2225 |
EOF |
5725 |
_ACEOF |
2226 |
|
5726 |
|
2227 |
|
5727 |
|
2228 |
echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6 |
5728 |
echo "$as_me:$LINENO: checking for correct poll prototype" >&5 |
2229 |
echo "configure:2230: checking for correct poll prototype" >&5 |
5729 |
echo $ECHO_N "checking for correct poll prototype... $ECHO_C" >&6 |
2230 |
PROTO= |
5730 |
PROTO= |
2231 |
for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' |
5731 |
for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' |
2232 |
do |
5732 |
do |
2233 |
if test "${PROTO}" = ""; then |
5733 |
if test "${PROTO}" = ""; then |
2234 |
cat > conftest.$ac_ext <<EOF |
5734 |
cat >conftest.$ac_ext <<_ACEOF |
2235 |
#line 2236 "configure" |
5735 |
/* confdefs.h. */ |
2236 |
#include "confdefs.h" |
5736 |
_ACEOF |
|
|
5737 |
cat confdefs.h >>conftest.$ac_ext |
5738 |
cat >>conftest.$ac_ext <<_ACEOF |
5739 |
/* end confdefs.h. */ |
2237 |
|
5740 |
|
2238 |
#include <sys/poll.h> |
5741 |
#include <sys/poll.h> |
2239 |
int poll($testproto); |
5742 |
int poll($testproto); |
2240 |
|
|
|
2241 |
int main() { |
2242 |
|
5743 |
|
2243 |
; return 0; } |
5744 |
int |
2244 |
EOF |
5745 |
main () |
2245 |
if { (eval echo configure:2246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5746 |
{ |
2246 |
rm -rf conftest* |
5747 |
|
|
|
5748 |
; |
5749 |
return 0; |
5750 |
} |
5751 |
_ACEOF |
5752 |
rm -f conftest.$ac_objext |
5753 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5754 |
(eval $ac_compile) 2>conftest.er1 |
5755 |
ac_status=$? |
5756 |
grep -v '^ *+' conftest.er1 >conftest.err |
5757 |
rm -f conftest.er1 |
5758 |
cat conftest.err >&5 |
5759 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5760 |
(exit $ac_status); } && |
5761 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5762 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5763 |
(eval $ac_try) 2>&5 |
5764 |
ac_status=$? |
5765 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5766 |
(exit $ac_status); }; } && |
5767 |
{ ac_try='test -s conftest.$ac_objext' |
5768 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5769 |
(eval $ac_try) 2>&5 |
5770 |
ac_status=$? |
5771 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5772 |
(exit $ac_status); }; }; then |
2247 |
PROTO="$testproto"; |
5773 |
PROTO="$testproto"; |
2248 |
else |
5774 |
else |
2249 |
echo "configure: failed program was:" >&5 |
5775 |
echo "$as_me: failed program was:" >&5 |
2250 |
cat conftest.$ac_ext >&5 |
5776 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5777 |
|
2251 |
fi |
5778 |
fi |
2252 |
rm -f conftest* |
5779 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2253 |
fi |
5780 |
fi |
2254 |
done |
5781 |
done |
2255 |
if test "${PROTO}" = ""; then |
5782 |
if test "${PROTO}" = ""; then |
2256 |
{ echo "configure: error: "no match found!"" 1>&2; exit 1; } |
5783 |
{ { echo "$as_me:$LINENO: error: \"no match found!\"" >&5 |
2257 |
fi |
5784 |
echo "$as_me: error: \"no match found!\"" >&2;} |
2258 |
echo "$ac_t""poll(${PROTO})" 1>&6 |
5785 |
{ (exit 1); exit 1; }; } |
2259 |
cat >> confdefs.h <<EOF |
5786 |
fi |
|
|
5787 |
echo "$as_me:$LINENO: result: poll(${PROTO})" >&5 |
5788 |
echo "${ECHO_T}poll(${PROTO})" >&6 |
5789 |
cat >>confdefs.h <<_ACEOF |
2260 |
#define POLL_SIGNATURE ${PROTO} |
5790 |
#define POLL_SIGNATURE ${PROTO} |
2261 |
EOF |
5791 |
_ACEOF |
|
|
5792 |
|
5793 |
|
5794 |
PROTO="const char *name" |
5795 |
cat >>confdefs.h <<_ACEOF |
5796 |
#define GETHOSTBYNAME_SIGNATURE ${PROTO} |
5797 |
_ACEOF |
5798 |
|
5799 |
|
5800 |
PROTO="const char *node, const char *service, void *hints, void *res" |
5801 |
cat >>confdefs.h <<_ACEOF |
5802 |
#define GETADDRINFO_SIGNATURE ${PROTO} |
5803 |
_ACEOF |
5804 |
|
5805 |
|
5806 |
PROTO="const char *name, int af, int flags, int *error_num" |
5807 |
cat >>confdefs.h <<_ACEOF |
5808 |
#define GETIPNODEBYNAME_SIGNATURE ${PROTO} |
5809 |
_ACEOF |
2262 |
|
5810 |
|
2263 |
|
5811 |
|
2264 |
SPECIALLIBS=${LIBS} |
5812 |
SPECIALLIBS=${LIBS} |
2265 |
|
5813 |
|
2266 |
LIBS=${SIMPLELIBS} |
5814 |
LIBS=${SIMPLELIBS} |
2267 |
|
5815 |
|
2268 |
trap '' 1 2 15 |
5816 |
ac_config_files="$ac_config_files Makefile" |
2269 |
cat > confcache <<\EOF |
5817 |
cat >confcache <<\_ACEOF |
2270 |
# This file is a shell script that caches the results of configure |
5818 |
# This file is a shell script that caches the results of configure |
2271 |
# tests run on this system so they can be shared between configure |
5819 |
# tests run on this system so they can be shared between configure |
2272 |
# scripts and configure runs. It is not useful on other systems. |
5820 |
# scripts and configure runs, see configure's option --config-cache. |
2273 |
# If it contains results you don't want to keep, you may remove or edit it. |
5821 |
# It is not useful on other systems. If it contains results you don't |
|
|
5822 |
# want to keep, you may remove or edit it. |
2274 |
# |
5823 |
# |
2275 |
# By default, configure uses ./config.cache as the cache file, |
5824 |
# config.status only pays attention to the cache file if you give it |
2276 |
# creating it if it does not exist already. You can give configure |
5825 |
# the --recheck option to rerun configure. |
2277 |
# the --cache-file=FILE option to use a different cache file; that is |
|
|
2278 |
# what configure does when it calls configure scripts in |
2279 |
# subdirectories, so they share the cache. |
2280 |
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
2281 |
# config.status only pays attention to the cache file if you give it the |
2282 |
# --recheck option to rerun configure. |
2283 |
# |
5826 |
# |
2284 |
EOF |
5827 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
|
5828 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
5829 |
# following values. |
5830 |
|
5831 |
_ACEOF |
5832 |
|
2285 |
# The following way of writing the cache mishandles newlines in values, |
5833 |
# The following way of writing the cache mishandles newlines in values, |
2286 |
# but we know of no workaround that is simple, portable, and efficient. |
5834 |
# but we know of no workaround that is simple, portable, and efficient. |
2287 |
# So, don't put newlines in cache variables' values. |
5835 |
# So, don't put newlines in cache variables' values. |
2288 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
5836 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
2289 |
# and sets the high bit in the cache file unless we assign to the vars. |
5837 |
# and sets the high bit in the cache file unless we assign to the vars. |
2290 |
(set) 2>&1 | |
5838 |
{ |
2291 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
5839 |
(set) 2>&1 | |
2292 |
*ac_space=\ *) |
5840 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
2293 |
# `set' does not quote correctly, so add quotes (double-quote substitution |
5841 |
*ac_space=\ *) |
2294 |
# turns \\\\ into \\, and sed turns \\ into \). |
5842 |
# `set' does not quote correctly, so add quotes (double-quote |
2295 |
sed -n \ |
5843 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
2296 |
-e "s/'/'\\\\''/g" \ |
5844 |
sed -n \ |
2297 |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
5845 |
"s/'/'\\\\''/g; |
2298 |
;; |
5846 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
2299 |
*) |
5847 |
;; |
2300 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
5848 |
*) |
2301 |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
5849 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
2302 |
;; |
5850 |
sed -n \ |
2303 |
esac >> confcache |
5851 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
2304 |
if cmp -s $cache_file confcache; then |
5852 |
;; |
2305 |
: |
5853 |
esac; |
2306 |
else |
5854 |
} | |
|
|
5855 |
sed ' |
5856 |
t clear |
5857 |
: clear |
5858 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
5859 |
t end |
5860 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5861 |
: end' >>confcache |
5862 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
2307 |
if test -w $cache_file; then |
5863 |
if test -w $cache_file; then |
2308 |
echo "updating cache $cache_file" |
5864 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
2309 |
cat confcache > $cache_file |
5865 |
cat confcache >$cache_file |
2310 |
else |
5866 |
else |
2311 |
echo "not updating unwritable cache $cache_file" |
5867 |
echo "not updating unwritable cache $cache_file" |
2312 |
fi |
5868 |
fi |
2313 |
fi |
5869 |
fi |
2314 |
rm -f confcache |
5870 |
rm -f confcache |
2315 |
|
5871 |
|
2316 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
|
|
2317 |
|
2318 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5872 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
2319 |
# Let make expand exec_prefix. |
5873 |
# Let make expand exec_prefix. |
2320 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
5874 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
2321 |
|
5875 |
|
2322 |
# Any assignment to VPATH causes Sun make to only execute |
5876 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
2323 |
# the first set of double-colon rules, so remove it if not needed. |
5877 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
2324 |
# If there is a colon in the path, we need to keep it. |
5878 |
# trailing colons and then remove the whole line if VPATH becomes empty |
|
|
5879 |
# (actually we leave an empty line to preserve line numbers). |
2325 |
if test "x$srcdir" = x.; then |
5880 |
if test "x$srcdir" = x.; then |
2326 |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
5881 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
|
5882 |
s/:*\$(srcdir):*/:/; |
5883 |
s/:*\${srcdir}:*/:/; |
5884 |
s/:*@srcdir@:*/:/; |
5885 |
s/^\([^=]*=[ ]*\):*/\1/; |
5886 |
s/:*$//; |
5887 |
s/^[^=]*=[ ]*$//; |
5888 |
}' |
2327 |
fi |
5889 |
fi |
2328 |
|
5890 |
|
2329 |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
|
|
2330 |
|
2331 |
DEFS=-DHAVE_CONFIG_H |
5891 |
DEFS=-DHAVE_CONFIG_H |
2332 |
|
5892 |
|
2333 |
# Without the "./", some shells look in PATH for config.status. |
5893 |
ac_libobjs= |
2334 |
: ${CONFIG_STATUS=./config.status} |
5894 |
ac_ltlibobjs= |
|
|
5895 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
5896 |
# 1. Remove the extension, and $U if already installed. |
5897 |
ac_i=`echo "$ac_i" | |
5898 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
5899 |
# 2. Add them. |
5900 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
5901 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
5902 |
done |
5903 |
LIBOBJS=$ac_libobjs |
2335 |
|
5904 |
|
2336 |
echo creating $CONFIG_STATUS |
5905 |
LTLIBOBJS=$ac_ltlibobjs |
2337 |
rm -f $CONFIG_STATUS |
5906 |
|
2338 |
cat > $CONFIG_STATUS <<EOF |
5907 |
|
2339 |
#! /bin/sh |
5908 |
|
2340 |
# Generated automatically by configure. |
5909 |
: ${CONFIG_STATUS=./config.status} |
|
|
5910 |
ac_clean_files_save=$ac_clean_files |
5911 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
5912 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
5913 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
5914 |
cat >$CONFIG_STATUS <<_ACEOF |
5915 |
#! $SHELL |
5916 |
# Generated by $as_me. |
2341 |
# Run this file to recreate the current configuration. |
5917 |
# Run this file to recreate the current configuration. |
2342 |
# This directory was configured as follows, |
|
|
2343 |
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
2344 |
# |
2345 |
# $0 $ac_configure_args |
2346 |
# |
2347 |
# Compiler output produced by configure, useful for debugging |
5918 |
# Compiler output produced by configure, useful for debugging |
2348 |
# configure, is in ./config.log if it exists. |
5919 |
# configure, is in config.log if it exists. |
2349 |
|
5920 |
|
2350 |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
5921 |
debug=false |
2351 |
for ac_option |
5922 |
ac_cs_recheck=false |
|
|
5923 |
ac_cs_silent=false |
5924 |
SHELL=\${CONFIG_SHELL-$SHELL} |
5925 |
_ACEOF |
5926 |
|
5927 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5928 |
## --------------------- ## |
5929 |
## M4sh Initialization. ## |
5930 |
## --------------------- ## |
5931 |
|
5932 |
# Be Bourne compatible |
5933 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
5934 |
emulate sh |
5935 |
NULLCMD=: |
5936 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
5937 |
# is contrary to our usage. Disable this feature. |
5938 |
alias -g '${1+"$@"}'='"$@"' |
5939 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
5940 |
set -o posix |
5941 |
fi |
5942 |
DUALCASE=1; export DUALCASE # for MKS sh |
5943 |
|
5944 |
# Support unset when possible. |
5945 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5946 |
as_unset=unset |
5947 |
else |
5948 |
as_unset=false |
5949 |
fi |
5950 |
|
5951 |
|
5952 |
# Work around bugs in pre-3.0 UWIN ksh. |
5953 |
$as_unset ENV MAIL MAILPATH |
5954 |
PS1='$ ' |
5955 |
PS2='> ' |
5956 |
PS4='+ ' |
5957 |
|
5958 |
# NLS nuisances. |
5959 |
for as_var in \ |
5960 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
5961 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
5962 |
LC_TELEPHONE LC_TIME |
5963 |
do |
5964 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
5965 |
eval $as_var=C; export $as_var |
5966 |
else |
5967 |
$as_unset $as_var |
5968 |
fi |
5969 |
done |
5970 |
|
5971 |
# Required to use basename. |
5972 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
5973 |
as_expr=expr |
5974 |
else |
5975 |
as_expr=false |
5976 |
fi |
5977 |
|
5978 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
5979 |
as_basename=basename |
5980 |
else |
5981 |
as_basename=false |
5982 |
fi |
5983 |
|
5984 |
|
5985 |
# Name of the executable. |
5986 |
as_me=`$as_basename "$0" || |
5987 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
5988 |
X"$0" : 'X\(//\)$' \| \ |
5989 |
X"$0" : 'X\(/\)$' \| \ |
5990 |
. : '\(.\)' 2>/dev/null || |
5991 |
echo X/"$0" | |
5992 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
5993 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
5994 |
/^X\/\(\/\).*/{ s//\1/; q; } |
5995 |
s/.*/./; q'` |
5996 |
|
5997 |
|
5998 |
# PATH needs CR, and LINENO needs CR and PATH. |
5999 |
# Avoid depending upon Character Ranges. |
6000 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
6001 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
6002 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
6003 |
as_cr_digits='0123456789' |
6004 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
6005 |
|
6006 |
# The user is always right. |
6007 |
if test "${PATH_SEPARATOR+set}" != set; then |
6008 |
echo "#! /bin/sh" >conf$$.sh |
6009 |
echo "exit 0" >>conf$$.sh |
6010 |
chmod +x conf$$.sh |
6011 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
6012 |
PATH_SEPARATOR=';' |
6013 |
else |
6014 |
PATH_SEPARATOR=: |
6015 |
fi |
6016 |
rm -f conf$$.sh |
6017 |
fi |
6018 |
|
6019 |
|
6020 |
as_lineno_1=$LINENO |
6021 |
as_lineno_2=$LINENO |
6022 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
6023 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
6024 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
6025 |
# Find who we are. Look in the path if we contain no path at all |
6026 |
# relative or not. |
6027 |
case $0 in |
6028 |
*[\\/]* ) as_myself=$0 ;; |
6029 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6030 |
for as_dir in $PATH |
6031 |
do |
6032 |
IFS=$as_save_IFS |
6033 |
test -z "$as_dir" && as_dir=. |
6034 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
6035 |
done |
6036 |
|
6037 |
;; |
6038 |
esac |
6039 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
6040 |
# in which case we are not to be found in the path. |
6041 |
if test "x$as_myself" = x; then |
6042 |
as_myself=$0 |
6043 |
fi |
6044 |
if test ! -f "$as_myself"; then |
6045 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
6046 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
6047 |
{ (exit 1); exit 1; }; } |
6048 |
fi |
6049 |
case $CONFIG_SHELL in |
6050 |
'') |
6051 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6052 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
2352 |
do |
6053 |
do |
2353 |
case "\$ac_option" in |
6054 |
IFS=$as_save_IFS |
|
|
6055 |
test -z "$as_dir" && as_dir=. |
6056 |
for as_base in sh bash ksh sh5; do |
6057 |
case $as_dir in |
6058 |
/*) |
6059 |
if ("$as_dir/$as_base" -c ' |
6060 |
as_lineno_1=$LINENO |
6061 |
as_lineno_2=$LINENO |
6062 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
6063 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
6064 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
6065 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
6066 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
6067 |
CONFIG_SHELL=$as_dir/$as_base |
6068 |
export CONFIG_SHELL |
6069 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
6070 |
fi;; |
6071 |
esac |
6072 |
done |
6073 |
done |
6074 |
;; |
6075 |
esac |
6076 |
|
6077 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
6078 |
# uniformly replaced by the line number. The first 'sed' inserts a |
6079 |
# line-number line before each line; the second 'sed' does the real |
6080 |
# work. The second script uses 'N' to pair each line-number line |
6081 |
# with the numbered line, and appends trailing '-' during |
6082 |
# substitution so that $LINENO is not a special case at line end. |
6083 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
6084 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
6085 |
sed '=' <$as_myself | |
6086 |
sed ' |
6087 |
N |
6088 |
s,$,-, |
6089 |
: loop |
6090 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
6091 |
t loop |
6092 |
s,-$,, |
6093 |
s,^['$as_cr_digits']*\n,, |
6094 |
' >$as_me.lineno && |
6095 |
chmod +x $as_me.lineno || |
6096 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
6097 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
6098 |
{ (exit 1); exit 1; }; } |
6099 |
|
6100 |
# Don't try to exec as it changes $[0], causing all sort of problems |
6101 |
# (the dirname of $[0] is not the place where we might find the |
6102 |
# original and so on. Autoconf is especially sensible to this). |
6103 |
. ./$as_me.lineno |
6104 |
# Exit status is that of the last command. |
6105 |
exit |
6106 |
} |
6107 |
|
6108 |
|
6109 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
6110 |
*c*,-n*) ECHO_N= ECHO_C=' |
6111 |
' ECHO_T=' ' ;; |
6112 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
6113 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
6114 |
esac |
6115 |
|
6116 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
6117 |
as_expr=expr |
6118 |
else |
6119 |
as_expr=false |
6120 |
fi |
6121 |
|
6122 |
rm -f conf$$ conf$$.exe conf$$.file |
6123 |
echo >conf$$.file |
6124 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
6125 |
# We could just check for DJGPP; but this test a) works b) is more generic |
6126 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
6127 |
if test -f conf$$.exe; then |
6128 |
# Don't use ln at all; we don't have any links |
6129 |
as_ln_s='cp -p' |
6130 |
else |
6131 |
as_ln_s='ln -s' |
6132 |
fi |
6133 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
6134 |
as_ln_s=ln |
6135 |
else |
6136 |
as_ln_s='cp -p' |
6137 |
fi |
6138 |
rm -f conf$$ conf$$.exe conf$$.file |
6139 |
|
6140 |
if mkdir -p . 2>/dev/null; then |
6141 |
as_mkdir_p=: |
6142 |
else |
6143 |
test -d ./-p && rmdir ./-p |
6144 |
as_mkdir_p=false |
6145 |
fi |
6146 |
|
6147 |
as_executable_p="test -f" |
6148 |
|
6149 |
# Sed expression to map a string onto a valid CPP name. |
6150 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
6151 |
|
6152 |
# Sed expression to map a string onto a valid variable name. |
6153 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
6154 |
|
6155 |
|
6156 |
# IFS |
6157 |
# We need space, tab and new line, in precisely that order. |
6158 |
as_nl=' |
6159 |
' |
6160 |
IFS=" $as_nl" |
6161 |
|
6162 |
# CDPATH. |
6163 |
$as_unset CDPATH |
6164 |
|
6165 |
exec 6>&1 |
6166 |
|
6167 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
6168 |
# report actual input values of CONFIG_FILES etc. instead of their |
6169 |
# values after options handling. Logging --version etc. is OK. |
6170 |
exec 5>>config.log |
6171 |
{ |
6172 |
echo |
6173 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
6174 |
## Running $as_me. ## |
6175 |
_ASBOX |
6176 |
} >&5 |
6177 |
cat >&5 <<_CSEOF |
6178 |
|
6179 |
This file was extended by $as_me, which was |
6180 |
generated by GNU Autoconf 2.59. Invocation command line was |
6181 |
|
6182 |
CONFIG_FILES = $CONFIG_FILES |
6183 |
CONFIG_HEADERS = $CONFIG_HEADERS |
6184 |
CONFIG_LINKS = $CONFIG_LINKS |
6185 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
6186 |
$ $0 $@ |
6187 |
|
6188 |
_CSEOF |
6189 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
6190 |
echo >&5 |
6191 |
_ACEOF |
6192 |
|
6193 |
# Files that config.status was made for. |
6194 |
if test -n "$ac_config_files"; then |
6195 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
6196 |
fi |
6197 |
|
6198 |
if test -n "$ac_config_headers"; then |
6199 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
6200 |
fi |
6201 |
|
6202 |
if test -n "$ac_config_links"; then |
6203 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
6204 |
fi |
6205 |
|
6206 |
if test -n "$ac_config_commands"; then |
6207 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
6208 |
fi |
6209 |
|
6210 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6211 |
|
6212 |
ac_cs_usage="\ |
6213 |
\`$as_me' instantiates files from templates according to the |
6214 |
current configuration. |
6215 |
|
6216 |
Usage: $0 [OPTIONS] [FILE]... |
6217 |
|
6218 |
-h, --help print this help, then exit |
6219 |
-V, --version print version number, then exit |
6220 |
-q, --quiet do not print progress messages |
6221 |
-d, --debug don't remove temporary files |
6222 |
--recheck update $as_me by reconfiguring in the same conditions |
6223 |
--file=FILE[:TEMPLATE] |
6224 |
instantiate the configuration file FILE |
6225 |
--header=FILE[:TEMPLATE] |
6226 |
instantiate the configuration header FILE |
6227 |
|
6228 |
Configuration files: |
6229 |
$config_files |
6230 |
|
6231 |
Configuration headers: |
6232 |
$config_headers |
6233 |
|
6234 |
Report bugs to <bug-autoconf@gnu.org>." |
6235 |
_ACEOF |
6236 |
|
6237 |
cat >>$CONFIG_STATUS <<_ACEOF |
6238 |
ac_cs_version="\\ |
6239 |
config.status |
6240 |
configured by $0, generated by GNU Autoconf 2.59, |
6241 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
6242 |
|
6243 |
Copyright (C) 2003 Free Software Foundation, Inc. |
6244 |
This config.status script is free software; the Free Software Foundation |
6245 |
gives unlimited permission to copy, distribute and modify it." |
6246 |
srcdir=$srcdir |
6247 |
INSTALL="$INSTALL" |
6248 |
_ACEOF |
6249 |
|
6250 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6251 |
# If no file are specified by the user, then we need to provide default |
6252 |
# value. By we need to know if files were specified by the user. |
6253 |
ac_need_defaults=: |
6254 |
while test $# != 0 |
6255 |
do |
6256 |
case $1 in |
6257 |
--*=*) |
6258 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
6259 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
6260 |
ac_shift=: |
6261 |
;; |
6262 |
-*) |
6263 |
ac_option=$1 |
6264 |
ac_optarg=$2 |
6265 |
ac_shift=shift |
6266 |
;; |
6267 |
*) # This is not an option, so the user has probably given explicit |
6268 |
# arguments. |
6269 |
ac_option=$1 |
6270 |
ac_need_defaults=false;; |
6271 |
esac |
6272 |
|
6273 |
case $ac_option in |
6274 |
# Handling of the options. |
6275 |
_ACEOF |
6276 |
cat >>$CONFIG_STATUS <<\_ACEOF |
2354 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6277 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
2355 |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
6278 |
ac_cs_recheck=: ;; |
2356 |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
6279 |
--version | --vers* | -V ) |
2357 |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
6280 |
echo "$ac_cs_version"; exit 0 ;; |
2358 |
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
6281 |
--he | --h) |
2359 |
exit 0 ;; |
6282 |
# Conflict between --help and --header |
2360 |
-help | --help | --hel | --he | --h) |
6283 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
2361 |
echo "\$ac_cs_usage"; exit 0 ;; |
6284 |
Try \`$0 --help' for more information." >&5 |
2362 |
*) echo "\$ac_cs_usage"; exit 1 ;; |
6285 |
echo "$as_me: error: ambiguous option: $1 |
|
|
6286 |
Try \`$0 --help' for more information." >&2;} |
6287 |
{ (exit 1); exit 1; }; };; |
6288 |
--help | --hel | -h ) |
6289 |
echo "$ac_cs_usage"; exit 0 ;; |
6290 |
--debug | --d* | -d ) |
6291 |
debug=: ;; |
6292 |
--file | --fil | --fi | --f ) |
6293 |
$ac_shift |
6294 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
6295 |
ac_need_defaults=false;; |
6296 |
--header | --heade | --head | --hea ) |
6297 |
$ac_shift |
6298 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
6299 |
ac_need_defaults=false;; |
6300 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6301 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
6302 |
ac_cs_silent=: ;; |
6303 |
|
6304 |
# This is an error. |
6305 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
6306 |
Try \`$0 --help' for more information." >&5 |
6307 |
echo "$as_me: error: unrecognized option: $1 |
6308 |
Try \`$0 --help' for more information." >&2;} |
6309 |
{ (exit 1); exit 1; }; } ;; |
6310 |
|
6311 |
*) ac_config_targets="$ac_config_targets $1" ;; |
6312 |
|
2363 |
esac |
6313 |
esac |
|
|
6314 |
shift |
2364 |
done |
6315 |
done |
2365 |
|
6316 |
|
2366 |
ac_given_srcdir=$srcdir |
6317 |
ac_configure_extra_args= |
2367 |
ac_given_INSTALL="$INSTALL" |
6318 |
|
|
|
6319 |
if $ac_cs_silent; then |
6320 |
exec 6>/dev/null |
6321 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
6322 |
fi |
6323 |
|
6324 |
_ACEOF |
6325 |
cat >>$CONFIG_STATUS <<_ACEOF |
6326 |
if \$ac_cs_recheck; then |
6327 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
6328 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
6329 |
fi |
6330 |
|
6331 |
_ACEOF |
6332 |
|
6333 |
|
6334 |
|
2368 |
|
6335 |
|
2369 |
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
|
|
2370 |
EOF |
2371 |
cat >> $CONFIG_STATUS <<EOF |
2372 |
|
2373 |
# Protect against being on the right side of a sed subst in config.status. |
2374 |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
2375 |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
2376 |
$ac_vpsub |
2377 |
$extrasub |
2378 |
s%@SHELL@%$SHELL%g |
2379 |
s%@CFLAGS@%$CFLAGS%g |
2380 |
s%@CPPFLAGS@%$CPPFLAGS%g |
2381 |
s%@CXXFLAGS@%$CXXFLAGS%g |
2382 |
s%@FFLAGS@%$FFLAGS%g |
2383 |
s%@DEFS@%$DEFS%g |
2384 |
s%@LDFLAGS@%$LDFLAGS%g |
2385 |
s%@LIBS@%$LIBS%g |
2386 |
s%@exec_prefix@%$exec_prefix%g |
2387 |
s%@prefix@%$prefix%g |
2388 |
s%@program_transform_name@%$program_transform_name%g |
2389 |
s%@bindir@%$bindir%g |
2390 |
s%@sbindir@%$sbindir%g |
2391 |
s%@libexecdir@%$libexecdir%g |
2392 |
s%@datadir@%$datadir%g |
2393 |
s%@sysconfdir@%$sysconfdir%g |
2394 |
s%@sharedstatedir@%$sharedstatedir%g |
2395 |
s%@localstatedir@%$localstatedir%g |
2396 |
s%@libdir@%$libdir%g |
2397 |
s%@includedir@%$includedir%g |
2398 |
s%@oldincludedir@%$oldincludedir%g |
2399 |
s%@infodir@%$infodir%g |
2400 |
s%@mandir@%$mandir%g |
2401 |
s%@host@%$host%g |
2402 |
s%@host_alias@%$host_alias%g |
2403 |
s%@host_cpu@%$host_cpu%g |
2404 |
s%@host_vendor@%$host_vendor%g |
2405 |
s%@host_os@%$host_os%g |
2406 |
s%@CC@%$CC%g |
2407 |
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
2408 |
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
2409 |
s%@INSTALL_DATA@%$INSTALL_DATA%g |
2410 |
s%@LN_S@%$LN_S%g |
2411 |
s%@CPP@%$CPP%g |
2412 |
s%@FIND@%$FIND%g |
2413 |
s%@TAIL@%$TAIL%g |
2414 |
s%@SPECIALLIBS@%$SPECIALLIBS%g |
2415 |
|
6336 |
|
|
|
6337 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6338 |
for ac_config_target in $ac_config_targets |
6339 |
do |
6340 |
case "$ac_config_target" in |
6341 |
# Handling of arguments. |
6342 |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
6343 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
6344 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
6345 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
6346 |
{ (exit 1); exit 1; }; };; |
6347 |
esac |
6348 |
done |
6349 |
|
6350 |
# If the user did not use the arguments to specify the items to instantiate, |
6351 |
# then the envvar interface is used. Set only those that are not. |
6352 |
# We use the long form for the default assignment because of an extremely |
6353 |
# bizarre bug on SunOS 4.1.3. |
6354 |
if $ac_need_defaults; then |
6355 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
6356 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6357 |
fi |
6358 |
|
6359 |
# Have a temporary directory for convenience. Make it in the build tree |
6360 |
# simply because there is no reason to put it here, and in addition, |
6361 |
# creating and moving files from /tmp can sometimes cause problems. |
6362 |
# Create a temporary directory, and hook for its removal unless debugging. |
6363 |
$debug || |
6364 |
{ |
6365 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
6366 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
6367 |
} |
6368 |
|
6369 |
# Create a (secure) tmp directory for tmp files. |
6370 |
|
6371 |
{ |
6372 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
6373 |
test -n "$tmp" && test -d "$tmp" |
6374 |
} || |
6375 |
{ |
6376 |
tmp=./confstat$$-$RANDOM |
6377 |
(umask 077 && mkdir $tmp) |
6378 |
} || |
6379 |
{ |
6380 |
echo "$me: cannot create a temporary directory in ." >&2 |
6381 |
{ (exit 1); exit 1; } |
6382 |
} |
6383 |
|
6384 |
_ACEOF |
6385 |
|
6386 |
cat >>$CONFIG_STATUS <<_ACEOF |
6387 |
|
6388 |
# |
6389 |
# CONFIG_FILES section. |
6390 |
# |
6391 |
|
6392 |
# No need to generate the scripts if there are no CONFIG_FILES. |
6393 |
# This happens for instance when ./config.status config.h |
6394 |
if test -n "\$CONFIG_FILES"; then |
6395 |
# Protect against being on the right side of a sed subst in config.status. |
6396 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
6397 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
6398 |
s,@SHELL@,$SHELL,;t t |
6399 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
6400 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
6401 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
6402 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
6403 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
6404 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
6405 |
s,@exec_prefix@,$exec_prefix,;t t |
6406 |
s,@prefix@,$prefix,;t t |
6407 |
s,@program_transform_name@,$program_transform_name,;t t |
6408 |
s,@bindir@,$bindir,;t t |
6409 |
s,@sbindir@,$sbindir,;t t |
6410 |
s,@libexecdir@,$libexecdir,;t t |
6411 |
s,@datadir@,$datadir,;t t |
6412 |
s,@sysconfdir@,$sysconfdir,;t t |
6413 |
s,@sharedstatedir@,$sharedstatedir,;t t |
6414 |
s,@localstatedir@,$localstatedir,;t t |
6415 |
s,@libdir@,$libdir,;t t |
6416 |
s,@includedir@,$includedir,;t t |
6417 |
s,@oldincludedir@,$oldincludedir,;t t |
6418 |
s,@infodir@,$infodir,;t t |
6419 |
s,@mandir@,$mandir,;t t |
6420 |
s,@build_alias@,$build_alias,;t t |
6421 |
s,@host_alias@,$host_alias,;t t |
6422 |
s,@target_alias@,$target_alias,;t t |
6423 |
s,@DEFS@,$DEFS,;t t |
6424 |
s,@ECHO_C@,$ECHO_C,;t t |
6425 |
s,@ECHO_N@,$ECHO_N,;t t |
6426 |
s,@ECHO_T@,$ECHO_T,;t t |
6427 |
s,@LIBS@,$LIBS,;t t |
6428 |
s,@build@,$build,;t t |
6429 |
s,@build_cpu@,$build_cpu,;t t |
6430 |
s,@build_vendor@,$build_vendor,;t t |
6431 |
s,@build_os@,$build_os,;t t |
6432 |
s,@host@,$host,;t t |
6433 |
s,@host_cpu@,$host_cpu,;t t |
6434 |
s,@host_vendor@,$host_vendor,;t t |
6435 |
s,@host_os@,$host_os,;t t |
6436 |
s,@CC@,$CC,;t t |
6437 |
s,@CFLAGS@,$CFLAGS,;t t |
6438 |
s,@LDFLAGS@,$LDFLAGS,;t t |
6439 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
6440 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
6441 |
s,@EXEEXT@,$EXEEXT,;t t |
6442 |
s,@OBJEXT@,$OBJEXT,;t t |
6443 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
6444 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
6445 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
6446 |
s,@LN_S@,$LN_S,;t t |
6447 |
s,@CPP@,$CPP,;t t |
6448 |
s,@EGREP@,$EGREP,;t t |
6449 |
s,@DEADPOOL_O@,$DEADPOOL_O,;t t |
6450 |
s,@FIND@,$FIND,;t t |
6451 |
s,@TAIL@,$TAIL,;t t |
6452 |
s,@SPECIALLIBS@,$SPECIALLIBS,;t t |
6453 |
s,@LIBOBJS@,$LIBOBJS,;t t |
6454 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
2416 |
CEOF |
6455 |
CEOF |
2417 |
EOF |
|
|
2418 |
|
6456 |
|
2419 |
cat >> $CONFIG_STATUS <<\EOF |
6457 |
_ACEOF |
2420 |
|
6458 |
|
2421 |
# Split the substitutions into bite-sized pieces for seds with |
6459 |
cat >>$CONFIG_STATUS <<\_ACEOF |
2422 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
6460 |
# Split the substitutions into bite-sized pieces for seds with |
2423 |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
6461 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
2424 |
ac_file=1 # Number of current file. |
6462 |
ac_max_sed_lines=48 |
2425 |
ac_beg=1 # First line for current file. |
6463 |
ac_sed_frag=1 # Number of current file. |
2426 |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
6464 |
ac_beg=1 # First line for current file. |
2427 |
ac_more_lines=: |
6465 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
2428 |
ac_sed_cmds="" |
6466 |
ac_more_lines=: |
2429 |
while $ac_more_lines; do |
6467 |
ac_sed_cmds= |
2430 |
if test $ac_beg -gt 1; then |
6468 |
while $ac_more_lines; do |
2431 |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
6469 |
if test $ac_beg -gt 1; then |
2432 |
else |
6470 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
2433 |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
6471 |
else |
2434 |
fi |
6472 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
2435 |
if test ! -s conftest.s$ac_file; then |
6473 |
fi |
2436 |
ac_more_lines=false |
6474 |
if test ! -s $tmp/subs.frag; then |
2437 |
rm -f conftest.s$ac_file |
6475 |
ac_more_lines=false |
2438 |
else |
|
|
2439 |
if test -z "$ac_sed_cmds"; then |
2440 |
ac_sed_cmds="sed -f conftest.s$ac_file" |
2441 |
else |
6476 |
else |
2442 |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
6477 |
# The purpose of the label and of the branching condition is to |
|
|
6478 |
# speed up the sed processing (if there are no `@' at all, there |
6479 |
# is no need to browse any of the substitutions). |
6480 |
# These are the two extra sed commands mentioned above. |
6481 |
(echo ':t |
6482 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
6483 |
if test -z "$ac_sed_cmds"; then |
6484 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
6485 |
else |
6486 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
6487 |
fi |
6488 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
6489 |
ac_beg=$ac_end |
6490 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
2443 |
fi |
6491 |
fi |
2444 |
ac_file=`expr $ac_file + 1` |
6492 |
done |
2445 |
ac_beg=$ac_end |
6493 |
if test -z "$ac_sed_cmds"; then |
2446 |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
6494 |
ac_sed_cmds=cat |
2447 |
fi |
6495 |
fi |
2448 |
done |
6496 |
fi # test -n "$CONFIG_FILES" |
2449 |
if test -z "$ac_sed_cmds"; then |
|
|
2450 |
ac_sed_cmds=cat |
2451 |
fi |
2452 |
EOF |
2453 |
|
2454 |
cat >> $CONFIG_STATUS <<EOF |
2455 |
|
6497 |
|
2456 |
CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
6498 |
_ACEOF |
2457 |
EOF |
6499 |
cat >>$CONFIG_STATUS <<\_ACEOF |
2458 |
cat >> $CONFIG_STATUS <<\EOF |
6500 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
2459 |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
|
|
2460 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6501 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2461 |
case "$ac_file" in |
6502 |
case $ac_file in |
2462 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
6503 |
- | *:- | *:-:* ) # input from stdin |
2463 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
6504 |
cat >$tmp/stdin |
2464 |
*) ac_file_in="${ac_file}.in" ;; |
6505 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
|
6506 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
6507 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
6508 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
6509 |
* ) ac_file_in=$ac_file.in ;; |
2465 |
esac |
6510 |
esac |
2466 |
|
6511 |
|
2467 |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
6512 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
2468 |
|
6513 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
2469 |
# Remove last slash and all that follows it. Not all systems have dirname. |
6514 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
2470 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
6515 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
2471 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
6516 |
X"$ac_file" : 'X\(//\)$' \| \ |
2472 |
# The file is in a subdirectory. |
6517 |
X"$ac_file" : 'X\(/\)' \| \ |
2473 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
6518 |
. : '\(.\)' 2>/dev/null || |
2474 |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
6519 |
echo X"$ac_file" | |
2475 |
# A "../" for each directory in $ac_dir_suffix. |
6520 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
2476 |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
6521 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
2477 |
else |
6522 |
/^X\(\/\/\)$/{ s//\1/; q; } |
2478 |
ac_dir_suffix= ac_dots= |
6523 |
/^X\(\/\).*/{ s//\1/; q; } |
2479 |
fi |
6524 |
s/.*/./; q'` |
2480 |
|
6525 |
{ if $as_mkdir_p; then |
2481 |
case "$ac_given_srcdir" in |
6526 |
mkdir -p "$ac_dir" |
2482 |
.) srcdir=. |
6527 |
else |
2483 |
if test -z "$ac_dots"; then top_srcdir=. |
6528 |
as_dir="$ac_dir" |
2484 |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
6529 |
as_dirs= |
2485 |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
6530 |
while test ! -d "$as_dir"; do |
|
|
6531 |
as_dirs="$as_dir $as_dirs" |
6532 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
6533 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6534 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
6535 |
X"$as_dir" : 'X\(//\)$' \| \ |
6536 |
X"$as_dir" : 'X\(/\)' \| \ |
6537 |
. : '\(.\)' 2>/dev/null || |
6538 |
echo X"$as_dir" | |
6539 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6540 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6541 |
/^X\(\/\/\)$/{ s//\1/; q; } |
6542 |
/^X\(\/\).*/{ s//\1/; q; } |
6543 |
s/.*/./; q'` |
6544 |
done |
6545 |
test ! -n "$as_dirs" || mkdir $as_dirs |
6546 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
6547 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
6548 |
{ (exit 1); exit 1; }; }; } |
6549 |
|
6550 |
ac_builddir=. |
6551 |
|
6552 |
if test "$ac_dir" != .; then |
6553 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
6554 |
# A "../" for each directory in $ac_dir_suffix. |
6555 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
6556 |
else |
6557 |
ac_dir_suffix= ac_top_builddir= |
6558 |
fi |
6559 |
|
6560 |
case $srcdir in |
6561 |
.) # No --srcdir option. We are building in place. |
6562 |
ac_srcdir=. |
6563 |
if test -z "$ac_top_builddir"; then |
6564 |
ac_top_srcdir=. |
6565 |
else |
6566 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
6567 |
fi ;; |
6568 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
6569 |
ac_srcdir=$srcdir$ac_dir_suffix; |
6570 |
ac_top_srcdir=$srcdir ;; |
2486 |
*) # Relative path. |
6571 |
*) # Relative path. |
2487 |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
6572 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
2488 |
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
6573 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
2489 |
esac |
6574 |
esac |
|
|
6575 |
|
6576 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
6577 |
# the directories may not exist. |
6578 |
case `pwd` in |
6579 |
.) ac_abs_builddir="$ac_dir";; |
6580 |
*) |
6581 |
case "$ac_dir" in |
6582 |
.) ac_abs_builddir=`pwd`;; |
6583 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
6584 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
6585 |
esac;; |
6586 |
esac |
6587 |
case $ac_abs_builddir in |
6588 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
6589 |
*) |
6590 |
case ${ac_top_builddir}. in |
6591 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
6592 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
6593 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
6594 |
esac;; |
6595 |
esac |
6596 |
case $ac_abs_builddir in |
6597 |
.) ac_abs_srcdir=$ac_srcdir;; |
6598 |
*) |
6599 |
case $ac_srcdir in |
6600 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
6601 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
6602 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
6603 |
esac;; |
6604 |
esac |
6605 |
case $ac_abs_builddir in |
6606 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
6607 |
*) |
6608 |
case $ac_top_srcdir in |
6609 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
6610 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
6611 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
6612 |
esac;; |
6613 |
esac |
2490 |
|
6614 |
|
2491 |
case "$ac_given_INSTALL" in |
|
|
2492 |
[/$]*) INSTALL="$ac_given_INSTALL" ;; |
2493 |
*) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
2494 |
esac |
2495 |
|
6615 |
|
2496 |
echo creating "$ac_file" |
6616 |
case $INSTALL in |
2497 |
rm -f "$ac_file" |
6617 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
2498 |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
6618 |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
2499 |
case "$ac_file" in |
|
|
2500 |
*Makefile*) ac_comsub="1i\\ |
2501 |
# $configure_input" ;; |
2502 |
*) ac_comsub= ;; |
2503 |
esac |
6619 |
esac |
2504 |
|
6620 |
|
2505 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
6621 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
2506 |
sed -e "$ac_comsub |
6622 |
# use $as_me), people would be surprised to read: |
2507 |
s%@configure_input@%$configure_input%g |
6623 |
# /* config.h. Generated by config.status. */ |
2508 |
s%@srcdir@%$srcdir%g |
6624 |
if test x"$ac_file" = x-; then |
2509 |
s%@top_srcdir@%$top_srcdir%g |
6625 |
configure_input= |
2510 |
s%@INSTALL@%$INSTALL%g |
6626 |
else |
2511 |
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
6627 |
configure_input="$ac_file. " |
2512 |
fi; done |
6628 |
fi |
2513 |
rm -f conftest.s* |
6629 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
|
|
6630 |
sed 's,.*/,,'` by configure." |
6631 |
|
6632 |
# First look for the input files in the build tree, otherwise in the |
6633 |
# src tree. |
6634 |
ac_file_inputs=`IFS=: |
6635 |
for f in $ac_file_in; do |
6636 |
case $f in |
6637 |
-) echo $tmp/stdin ;; |
6638 |
[\\/$]*) |
6639 |
# Absolute (can't be DOS-style, as IFS=:) |
6640 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
6641 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
6642 |
{ (exit 1); exit 1; }; } |
6643 |
echo "$f";; |
6644 |
*) # Relative |
6645 |
if test -f "$f"; then |
6646 |
# Build tree |
6647 |
echo "$f" |
6648 |
elif test -f "$srcdir/$f"; then |
6649 |
# Source tree |
6650 |
echo "$srcdir/$f" |
6651 |
else |
6652 |
# /dev/null tree |
6653 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
6654 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
6655 |
{ (exit 1); exit 1; }; } |
6656 |
fi;; |
6657 |
esac |
6658 |
done` || { (exit 1); exit 1; } |
6659 |
|
6660 |
if test x"$ac_file" != x-; then |
6661 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
6662 |
echo "$as_me: creating $ac_file" >&6;} |
6663 |
rm -f "$ac_file" |
6664 |
fi |
6665 |
_ACEOF |
6666 |
cat >>$CONFIG_STATUS <<_ACEOF |
6667 |
sed "$ac_vpsub |
6668 |
$extrasub |
6669 |
_ACEOF |
6670 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6671 |
:t |
6672 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
6673 |
s,@configure_input@,$configure_input,;t t |
6674 |
s,@srcdir@,$ac_srcdir,;t t |
6675 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
6676 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
6677 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
6678 |
s,@builddir@,$ac_builddir,;t t |
6679 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
6680 |
s,@top_builddir@,$ac_top_builddir,;t t |
6681 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
6682 |
s,@INSTALL@,$ac_INSTALL,;t t |
6683 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
6684 |
rm -f $tmp/stdin |
6685 |
if test x"$ac_file" != x-; then |
6686 |
mv $tmp/out $ac_file |
6687 |
else |
6688 |
cat $tmp/out |
6689 |
rm -f $tmp/out |
6690 |
fi |
6691 |
|
6692 |
done |
6693 |
_ACEOF |
6694 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6695 |
|
6696 |
# |
6697 |
# CONFIG_HEADER section. |
6698 |
# |
2514 |
|
6699 |
|
2515 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
6700 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
2516 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
6701 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
2517 |
# |
6702 |
# |
2518 |
# ac_d sets the value in "#define NAME VALUE" lines. |
6703 |
# ac_d sets the value in "#define NAME VALUE" lines. |
2519 |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
6704 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
2520 |
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
6705 |
ac_dB='[ ].*$,\1#\2' |
2521 |
ac_dC='\3' |
6706 |
ac_dC=' ' |
2522 |
ac_dD='%g' |
6707 |
ac_dD=',;t' |
2523 |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
6708 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
2524 |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
6709 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
2525 |
ac_uB='\([ ]\)%\1#\2define\3' |
6710 |
ac_uB='$,\1#\2define\3' |
2526 |
ac_uC=' ' |
6711 |
ac_uC=' ' |
2527 |
ac_uD='\4%g' |
6712 |
ac_uD=',;t' |
2528 |
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
6713 |
|
2529 |
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
6714 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
2530 |
ac_eB='$%\1#\2define\3' |
|
|
2531 |
ac_eC=' ' |
2532 |
ac_eD='%g' |
2533 |
|
2534 |
if test "${CONFIG_HEADERS+set}" != set; then |
2535 |
EOF |
2536 |
cat >> $CONFIG_STATUS <<EOF |
2537 |
CONFIG_HEADERS="config.h" |
2538 |
EOF |
2539 |
cat >> $CONFIG_STATUS <<\EOF |
2540 |
fi |
2541 |
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
2542 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6715 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2543 |
case "$ac_file" in |
6716 |
case $ac_file in |
2544 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
6717 |
- | *:- | *:-:* ) # input from stdin |
2545 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
6718 |
cat >$tmp/stdin |
2546 |
*) ac_file_in="${ac_file}.in" ;; |
6719 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
|
6720 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
6721 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
6722 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
6723 |
* ) ac_file_in=$ac_file.in ;; |
2547 |
esac |
6724 |
esac |
2548 |
|
6725 |
|
2549 |
echo creating $ac_file |
6726 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
6727 |
echo "$as_me: creating $ac_file" >&6;} |
2550 |
|
6728 |
|
2551 |
rm -f conftest.frag conftest.in conftest.out |
6729 |
# First look for the input files in the build tree, otherwise in the |
2552 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
6730 |
# src tree. |
2553 |
cat $ac_file_inputs > conftest.in |
6731 |
ac_file_inputs=`IFS=: |
2554 |
|
6732 |
for f in $ac_file_in; do |
2555 |
EOF |
6733 |
case $f in |
2556 |
|
6734 |
-) echo $tmp/stdin ;; |
2557 |
# Transform confdefs.h into a sed script conftest.vals that substitutes |
6735 |
[\\/$]*) |
2558 |
# the proper values into config.h.in to produce config.h. And first: |
6736 |
# Absolute (can't be DOS-style, as IFS=:) |
2559 |
# Protect against being on the right side of a sed subst in config.status. |
6737 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
2560 |
# Protect against being in an unquoted here document in config.status. |
6738 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
2561 |
rm -f conftest.vals |
6739 |
{ (exit 1); exit 1; }; } |
2562 |
cat > conftest.hdr <<\EOF |
6740 |
# Do quote $f, to prevent DOS paths from being IFS'd. |
2563 |
s/[\\&%]/\\&/g |
6741 |
echo "$f";; |
2564 |
s%[\\$`]%\\&%g |
6742 |
*) # Relative |
2565 |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
6743 |
if test -f "$f"; then |
2566 |
s%ac_d%ac_u%gp |
6744 |
# Build tree |
2567 |
s%ac_u%ac_e%gp |
6745 |
echo "$f" |
2568 |
EOF |
6746 |
elif test -f "$srcdir/$f"; then |
2569 |
sed -n -f conftest.hdr confdefs.h > conftest.vals |
6747 |
# Source tree |
2570 |
rm -f conftest.hdr |
6748 |
echo "$srcdir/$f" |
|
|
6749 |
else |
6750 |
# /dev/null tree |
6751 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
6752 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
6753 |
{ (exit 1); exit 1; }; } |
6754 |
fi;; |
6755 |
esac |
6756 |
done` || { (exit 1); exit 1; } |
6757 |
# Remove the trailing spaces. |
6758 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
6759 |
|
6760 |
_ACEOF |
6761 |
|
6762 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
6763 |
# `conftest.undefs', that substitutes the proper values into |
6764 |
# config.h.in to produce config.h. The first handles `#define' |
6765 |
# templates, and the second `#undef' templates. |
6766 |
# And first: Protect against being on the right side of a sed subst in |
6767 |
# config.status. Protect against being in an unquoted here document |
6768 |
# in config.status. |
6769 |
rm -f conftest.defines conftest.undefs |
6770 |
# Using a here document instead of a string reduces the quoting nightmare. |
6771 |
# Putting comments in sed scripts is not portable. |
6772 |
# |
6773 |
# `end' is used to avoid that the second main sed command (meant for |
6774 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
6775 |
# See the Autoconf documentation for `clear'. |
6776 |
cat >confdef2sed.sed <<\_ACEOF |
6777 |
s/[\\&,]/\\&/g |
6778 |
s,[\\$`],\\&,g |
6779 |
t clear |
6780 |
: clear |
6781 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
6782 |
t end |
6783 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
6784 |
: end |
6785 |
_ACEOF |
6786 |
# If some macros were called several times there might be several times |
6787 |
# the same #defines, which is useless. Nevertheless, we may not want to |
6788 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
6789 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
6790 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
6791 |
rm -f confdef2sed.sed |
2571 |
|
6792 |
|
2572 |
# This sed command replaces #undef with comments. This is necessary, for |
6793 |
# This sed command replaces #undef with comments. This is necessary, for |
2573 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
6794 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
2574 |
# on some systems where configure will not decide to define it. |
6795 |
# on some systems where configure will not decide to define it. |
2575 |
cat >> conftest.vals <<\EOF |
6796 |
cat >>conftest.undefs <<\_ACEOF |
2576 |
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
6797 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
2577 |
EOF |
6798 |
_ACEOF |
2578 |
|
6799 |
|
2579 |
# Break up conftest.vals because some shells have a limit on |
6800 |
# Break up conftest.defines because some shells have a limit on the size |
2580 |
# the size of here documents, and old seds have small limits too. |
6801 |
# of here documents, and old seds have small limits too (100 cmds). |
2581 |
|
6802 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
|
|
6803 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
6804 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
6805 |
echo ' :' >>$CONFIG_STATUS |
2582 |
rm -f conftest.tail |
6806 |
rm -f conftest.tail |
2583 |
while : |
6807 |
while grep . conftest.defines >/dev/null |
2584 |
do |
6808 |
do |
2585 |
ac_lines=`grep -c . conftest.vals` |
6809 |
# Write a limited-size here document to $tmp/defines.sed. |
2586 |
# grep -c gives empty output for an empty file on some AIX systems. |
6810 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
2587 |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
6811 |
# Speed up: don't consider the non `#define' lines. |
2588 |
# Write a limited-size here document to conftest.frag. |
6812 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
2589 |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
6813 |
# Work around the forget-to-reset-the-flag bug. |
2590 |
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
6814 |
echo 't clr' >>$CONFIG_STATUS |
|
|
6815 |
echo ': clr' >>$CONFIG_STATUS |
6816 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
2591 |
echo 'CEOF |
6817 |
echo 'CEOF |
2592 |
sed -f conftest.frag conftest.in > conftest.out |
6818 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
2593 |
rm -f conftest.in |
6819 |
rm -f $tmp/in |
2594 |
mv conftest.out conftest.in |
6820 |
mv $tmp/out $tmp/in |
2595 |
' >> $CONFIG_STATUS |
6821 |
' >>$CONFIG_STATUS |
2596 |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
6822 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
2597 |
rm -f conftest.vals |
6823 |
rm -f conftest.defines |
2598 |
mv conftest.tail conftest.vals |
6824 |
mv conftest.tail conftest.defines |
2599 |
done |
6825 |
done |
2600 |
rm -f conftest.vals |
6826 |
rm -f conftest.defines |
2601 |
|
6827 |
echo ' fi # grep' >>$CONFIG_STATUS |
2602 |
cat >> $CONFIG_STATUS <<\EOF |
6828 |
echo >>$CONFIG_STATUS |
2603 |
rm -f conftest.frag conftest.h |
6829 |
|
2604 |
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
6830 |
# Break up conftest.undefs because some shells have a limit on the size |
2605 |
cat conftest.in >> conftest.h |
6831 |
# of here documents, and old seds have small limits too (100 cmds). |
2606 |
rm -f conftest.in |
6832 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
2607 |
if cmp -s $ac_file conftest.h 2>/dev/null; then |
6833 |
rm -f conftest.tail |
2608 |
echo "$ac_file is unchanged" |
6834 |
while grep . conftest.undefs >/dev/null |
2609 |
rm -f conftest.h |
6835 |
do |
2610 |
else |
6836 |
# Write a limited-size here document to $tmp/undefs.sed. |
2611 |
# Remove last slash and all that follows it. Not all systems have dirname. |
6837 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
2612 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
6838 |
# Speed up: don't consider the non `#undef' |
2613 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
6839 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
2614 |
# The file is in a subdirectory. |
6840 |
# Work around the forget-to-reset-the-flag bug. |
2615 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
6841 |
echo 't clr' >>$CONFIG_STATUS |
2616 |
fi |
6842 |
echo ': clr' >>$CONFIG_STATUS |
2617 |
rm -f $ac_file |
6843 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
2618 |
mv conftest.h $ac_file |
6844 |
echo 'CEOF |
|
|
6845 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
6846 |
rm -f $tmp/in |
6847 |
mv $tmp/out $tmp/in |
6848 |
' >>$CONFIG_STATUS |
6849 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
6850 |
rm -f conftest.undefs |
6851 |
mv conftest.tail conftest.undefs |
6852 |
done |
6853 |
rm -f conftest.undefs |
6854 |
|
6855 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6856 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
6857 |
# use $as_me), people would be surprised to read: |
6858 |
# /* config.h. Generated by config.status. */ |
6859 |
if test x"$ac_file" = x-; then |
6860 |
echo "/* Generated by configure. */" >$tmp/config.h |
6861 |
else |
6862 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
2619 |
fi |
6863 |
fi |
2620 |
fi; done |
6864 |
cat $tmp/in >>$tmp/config.h |
|
|
6865 |
rm -f $tmp/in |
6866 |
if test x"$ac_file" != x-; then |
6867 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
6868 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
6869 |
echo "$as_me: $ac_file is unchanged" >&6;} |
6870 |
else |
6871 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
6872 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6873 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
6874 |
X"$ac_file" : 'X\(//\)$' \| \ |
6875 |
X"$ac_file" : 'X\(/\)' \| \ |
6876 |
. : '\(.\)' 2>/dev/null || |
6877 |
echo X"$ac_file" | |
6878 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6879 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6880 |
/^X\(\/\/\)$/{ s//\1/; q; } |
6881 |
/^X\(\/\).*/{ s//\1/; q; } |
6882 |
s/.*/./; q'` |
6883 |
{ if $as_mkdir_p; then |
6884 |
mkdir -p "$ac_dir" |
6885 |
else |
6886 |
as_dir="$ac_dir" |
6887 |
as_dirs= |
6888 |
while test ! -d "$as_dir"; do |
6889 |
as_dirs="$as_dir $as_dirs" |
6890 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
6891 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6892 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
6893 |
X"$as_dir" : 'X\(//\)$' \| \ |
6894 |
X"$as_dir" : 'X\(/\)' \| \ |
6895 |
. : '\(.\)' 2>/dev/null || |
6896 |
echo X"$as_dir" | |
6897 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6898 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6899 |
/^X\(\/\/\)$/{ s//\1/; q; } |
6900 |
/^X\(\/\).*/{ s//\1/; q; } |
6901 |
s/.*/./; q'` |
6902 |
done |
6903 |
test ! -n "$as_dirs" || mkdir $as_dirs |
6904 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
6905 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
6906 |
{ (exit 1); exit 1; }; }; } |
2621 |
|
6907 |
|
2622 |
EOF |
6908 |
rm -f $ac_file |
2623 |
cat >> $CONFIG_STATUS <<EOF |
6909 |
mv $tmp/config.h $ac_file |
|
|
6910 |
fi |
6911 |
else |
6912 |
cat $tmp/config.h |
6913 |
rm -f $tmp/config.h |
6914 |
fi |
6915 |
done |
6916 |
_ACEOF |
2624 |
|
6917 |
|
2625 |
EOF |
6918 |
cat >>$CONFIG_STATUS <<\_ACEOF |
2626 |
cat >> $CONFIG_STATUS <<\EOF |
|
|
2627 |
|
6919 |
|
2628 |
exit 0 |
6920 |
{ (exit 0); exit 0; } |
2629 |
EOF |
6921 |
_ACEOF |
2630 |
chmod +x $CONFIG_STATUS |
6922 |
chmod +x $CONFIG_STATUS |
2631 |
rm -fr confdefs* $ac_clean_files |
6923 |
ac_clean_files=$ac_clean_files_save |
2632 |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
6924 |
|
|
|
6925 |
|
6926 |
# configure is writing to config.log, and then calls config.status. |
6927 |
# config.status does its own redirection, appending to config.log. |
6928 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
6929 |
# by configure, so config.status won't be able to write to it; its |
6930 |
# output is simply discarded. So we exec the FD to /dev/null, |
6931 |
# effectively closing config.log, so it can be properly (re)opened and |
6932 |
# appended to by config.status. When coming back to configure, we |
6933 |
# need to make the FD available again. |
6934 |
if test "$no_create" != yes; then |
6935 |
ac_cs_success=: |
6936 |
ac_config_status_args= |
6937 |
test "$silent" = yes && |
6938 |
ac_config_status_args="$ac_config_status_args --quiet" |
6939 |
exec 5>/dev/null |
6940 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
6941 |
exec 5>>config.log |
6942 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
6943 |
# would make configure fail if this is the last instruction. |
6944 |
$ac_cs_success || { (exit 1); exit 1; } |
6945 |
fi |
2633 |
|
6946 |
|